From f91a2938c7bf5ca6ccfae2023698a91ad34b0bd1 Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Sun, 11 Apr 2021 13:10:23 -0400 Subject: [PATCH 1/2] Update latest docs --- docs/latest/404.html | 4 +- docs/latest/api/classes/animation.html | 6 +-- docs/latest/api/classes/animations.html | 6 +-- docs/latest/api/classes/animator.html | 6 +-- docs/latest/api/classes/baseplatform.html | 8 ++-- docs/latest/api/classes/basicplatform.html | 8 ++-- docs/latest/api/classes/chart.html | 6 +-- .../latest/api/classes/datasetcontroller.html | 6 +-- docs/latest/api/classes/domplatform.html | 8 ++-- docs/latest/api/classes/scale.html | 16 +++---- .../latest/api/enums/decimationalgorithm.html | 6 +-- docs/latest/api/enums/updatemodeenum.html | 6 +-- docs/latest/api/index.html | 6 +-- .../api/interfaces/activedatapoint.html | 6 +-- docs/latest/api/interfaces/activeelement.html | 6 +-- .../latest/api/interfaces/animationevent.html | 6 +-- .../api/interfaces/arcborderradius.html | 6 +-- docs/latest/api/interfaces/arcelement.html | 6 +-- .../api/interfaces/archoveroptions.html | 6 +-- docs/latest/api/interfaces/arcoptions.html | 6 +-- docs/latest/api/interfaces/arcprops.html | 6 +-- .../interfaces/barcontrollerchartoptions.html | 6 +-- .../barcontrollerdatasetoptions.html | 6 +-- docs/latest/api/interfaces/barelement.html | 6 +-- .../api/interfaces/barhoveroptions.html | 6 +-- docs/latest/api/interfaces/baroptions.html | 6 +-- docs/latest/api/interfaces/barprops.html | 6 +-- docs/latest/api/interfaces/borderradius.html | 6 +-- .../bubblecontrollerdatasetoptions.html | 6 +-- .../api/interfaces/bubbledatapoint.html | 6 +-- .../api/interfaces/cartesianscaleoptions.html | 6 +-- .../cartesianscaletyperegistry.html | 6 +-- docs/latest/api/interfaces/chartarea.html | 6 +-- .../latest/api/interfaces/chartcomponent.html | 6 +-- .../api/interfaces/chartconfiguration.html | 6 +-- docs/latest/api/interfaces/chartdata.html | 6 +-- .../interfaces/chartdatasetproperties.html | 6 +-- docs/latest/api/interfaces/chartevent.html | 6 +-- docs/latest/api/interfaces/chartmeta.html | 6 +-- .../api/interfaces/charttyperegistry.html | 6 +-- .../api/interfaces/commonelementoptions.html | 6 +-- .../api/interfaces/commonhoveroptions.html | 6 +-- .../api/interfaces/complexfilltarget.html | 6 +-- .../interfaces/controllerdatasetoptions.html | 6 +-- .../api/interfaces/corechartoptions.html | 6 +-- .../interfaces/coreinteractionoptions.html | 6 +-- .../api/interfaces/corescaleoptions.html | 6 +-- .../datasetcontrollerchartcomponent.html | 6 +-- docs/latest/api/interfaces/dateadapter.html | 8 ++-- docs/latest/api/interfaces/defaults.html | 8 ++-- .../interfaces/doughnutanimationoptions.html | 6 +-- .../api/interfaces/doughnutcontroller.html | 6 +-- .../doughnutcontrollerchartoptions.html | 8 ++-- .../doughnutcontrollerdatasetoptions.html | 6 +-- docs/latest/api/interfaces/element.html | 6 +-- .../api/interfaces/elementchartoptions.html | 6 +-- .../api/interfaces/elementoptionsbytype.html | 6 +-- .../latest/api/interfaces/extendedplugin.html | 8 ++-- .../fillercontrollerdatasetoptions.html | 6 +-- docs/latest/api/interfaces/filleroptions.html | 6 +-- docs/latest/api/interfaces/fontspec.html | 6 +-- .../api/interfaces/gridlineoptions.html | 6 +-- .../api/interfaces/interactionitem.html | 6 +-- .../api/interfaces/interactionmodemap.html | 10 ++-- .../api/interfaces/interactionoptions.html | 6 +-- docs/latest/api/interfaces/layoutitem.html | 6 +-- docs/latest/api/interfaces/legendelement.html | 6 +-- docs/latest/api/interfaces/legenditem.html | 8 ++-- docs/latest/api/interfaces/legendoptions.html | 6 +-- .../linecontrollerchartoptions.html | 6 +-- .../linecontrollerdatasetoptions.html | 6 +-- docs/latest/api/interfaces/lineelement.html | 6 +-- .../api/interfaces/linehoveroptions.html | 6 +-- docs/latest/api/interfaces/lineoptions.html | 6 +-- docs/latest/api/interfaces/lineprops.html | 4 +- .../latest/api/interfaces/parsingoptions.html | 6 +-- docs/latest/api/interfaces/plugin.html | 48 +++++++++---------- .../api/interfaces/pluginchartoptions.html | 6 +-- .../api/interfaces/pluginoptionsbytype.html | 6 +-- docs/latest/api/interfaces/point.html | 6 +-- docs/latest/api/interfaces/pointelement.html | 6 +-- .../api/interfaces/pointhoveroptions.html | 6 +-- docs/latest/api/interfaces/pointoptions.html | 6 +-- .../interfaces/pointprefixedhoveroptions.html | 6 +-- .../api/interfaces/pointprefixedoptions.html | 6 +-- docs/latest/api/interfaces/pointprops.html | 6 +-- .../api/interfaces/polarareacontroller.html | 6 +-- .../polarareacontrollerchartoptions.html | 6 +-- .../polarareacontrollerdatasetoptions.html | 6 +-- .../radarcontrollerdatasetoptions.html | 6 +-- .../api/interfaces/radiallinearscale.html | 16 +++---- .../interfaces/radialscaletyperegistry.html | 6 +-- docs/latest/api/interfaces/registry.html | 6 +-- .../api/interfaces/scaletyperegistry.html | 6 +-- .../api/interfaces/scatterdatapoint.html | 6 +-- .../api/interfaces/scriptablecontext.html | 6 +-- .../scriptablelinesegmentcontext.html | 6 +-- .../interfaces/scriptablescalecontext.html | 6 +-- .../interfaces/scriptabletooltipcontext.html | 6 +-- docs/latest/api/interfaces/segment.html | 6 +-- docs/latest/api/interfaces/tick.html | 6 +-- docs/latest/api/interfaces/tickoptions.html | 6 +-- docs/latest/api/interfaces/timescale.html | 16 +++---- docs/latest/api/interfaces/titleoptions.html | 8 ++-- .../api/interfaces/tooltipcallbacks.html | 6 +-- docs/latest/api/interfaces/tooltipitem.html | 6 +-- .../api/interfaces/tooltiplabelstyle.html | 6 +-- docs/latest/api/interfaces/tooltipmodel.html | 6 +-- .../latest/api/interfaces/tooltipoptions.html | 6 +-- docs/latest/api/interfaces/typedregistry.html | 6 +-- docs/latest/api/interfaces/visualelement.html | 6 +-- docs/latest/assets/js/10.0ef561de.js | 1 - docs/latest/assets/js/10.a79de378.js | 1 + docs/latest/assets/js/100.db5329c4.js | 1 - docs/latest/assets/js/100.eee663a2.js | 1 + docs/latest/assets/js/101.621bd17f.js | 1 - docs/latest/assets/js/101.cf578cbb.js | 1 + .../js/{102.abc6d5a8.js => 102.ab8ab92b.js} | 2 +- docs/latest/assets/js/103.7e714d58.js | 1 + docs/latest/assets/js/103.824c664b.js | 1 - docs/latest/assets/js/104.5c7d8858.js | 1 + docs/latest/assets/js/104.fd32bc9e.js | 1 - docs/latest/assets/js/105.1d68e09a.js | 1 + docs/latest/assets/js/105.a8fce9cc.js | 1 - .../js/{106.6adbb026.js => 106.92da18bd.js} | 2 +- docs/latest/assets/js/107.08c9cd6f.js | 1 - docs/latest/assets/js/107.6f10ac74.js | 1 + docs/latest/assets/js/108.1e45abeb.js | 1 + docs/latest/assets/js/108.4f283413.js | 1 - docs/latest/assets/js/109.a738a660.js | 1 + docs/latest/assets/js/109.b3b6f582.js | 1 - .../js/{11.7f81d7b8.js => 11.63cb17e1.js} | 2 +- docs/latest/assets/js/110.e0faa63f.js | 1 + docs/latest/assets/js/110.f24db9f1.js | 1 - docs/latest/assets/js/111.74466325.js | 1 + docs/latest/assets/js/111.8b3cbf74.js | 1 - docs/latest/assets/js/112.00e3774d.js | 1 - docs/latest/assets/js/112.8296e19b.js | 1 + docs/latest/assets/js/113.3ec77bb7.js | 1 - docs/latest/assets/js/113.fc13e57a.js | 1 + docs/latest/assets/js/114.3a9c0bc2.js | 1 + docs/latest/assets/js/114.62f8796a.js | 1 - docs/latest/assets/js/115.10b47ecd.js | 1 + docs/latest/assets/js/115.278437a3.js | 1 - docs/latest/assets/js/116.525d2455.js | 1 + docs/latest/assets/js/116.e1fcc1d0.js | 1 - docs/latest/assets/js/117.17252f25.js | 1 + docs/latest/assets/js/117.88e91eeb.js | 1 - docs/latest/assets/js/118.3ac82c27.js | 1 + docs/latest/assets/js/118.b2d62199.js | 1 - .../js/{119.c2113dc8.js => 119.6e319f1e.js} | 2 +- docs/latest/assets/js/12.af3ff68d.js | 1 + docs/latest/assets/js/12.cbb7d1e1.js | 1 - .../js/{120.ece0dd2f.js => 120.0e595569.js} | 2 +- .../js/{121.45e7fb0f.js => 121.6d998ffd.js} | 0 .../js/{122.677ea225.js => 122.afa8bfe7.js} | 0 .../js/{123.80c81bf2.js => 123.779d36cf.js} | 0 .../js/{124.56d0cc19.js => 124.aadfcb51.js} | 0 .../js/{125.f204c7e7.js => 125.066257ca.js} | 0 .../js/{126.ec98f0df.js => 126.c18239be.js} | 0 .../js/{127.4bda8260.js => 127.787b00cf.js} | 0 .../js/{128.850b138f.js => 128.e9a4c541.js} | 0 .../js/{129.b4cfa86e.js => 129.c797a431.js} | 2 +- docs/latest/assets/js/13.b7e97a24.js | 1 - docs/latest/assets/js/13.d939100c.js | 1 + .../js/{130.fbd01665.js => 130.180c552d.js} | 2 +- .../js/{131.852c4129.js => 131.22f0af24.js} | 2 +- .../js/{132.ec42af3f.js => 132.49826028.js} | 0 .../js/{133.135d54b9.js => 133.72bd9953.js} | 2 +- .../js/{134.5cc44131.js => 134.83642d0d.js} | 2 +- .../js/{135.c23857ac.js => 135.6d317b72.js} | 2 +- .../js/{136.d7d24c70.js => 136.f6489687.js} | 2 +- .../js/{137.2f82698b.js => 137.d8e51241.js} | 2 +- .../js/{138.28a46530.js => 138.fdf11c55.js} | 2 +- .../js/{139.bc71089e.js => 139.c5ca9584.js} | 2 +- docs/latest/assets/js/14.5e5d4bd9.js | 1 + docs/latest/assets/js/14.8547c6f9.js | 1 - .../js/{140.7b997f6c.js => 140.6046865f.js} | 2 +- .../js/{141.2bcbc9a2.js => 141.eeadecc8.js} | 2 +- .../js/{142.39f6fc08.js => 142.d1a290f9.js} | 2 +- .../js/{143.765e86af.js => 143.a5488c00.js} | 2 +- .../js/{144.6e658e5a.js => 144.68b9b863.js} | 2 +- .../js/{145.5713ccac.js => 145.a9f9466e.js} | 2 +- .../js/{146.25c98087.js => 146.adf77307.js} | 0 .../js/{147.ba6767cf.js => 147.dd25d778.js} | 2 +- .../js/{148.d66dcd2c.js => 148.e1172124.js} | 2 +- .../js/{149.106987ae.js => 149.3db445d9.js} | 2 +- docs/latest/assets/js/15.41c18415.js | 1 - docs/latest/assets/js/15.b568f739.js | 1 + .../js/{150.98525ac3.js => 150.dadd8522.js} | 2 +- .../js/{151.0eed2bac.js => 151.ca1b1565.js} | 2 +- .../js/{152.8140349d.js => 152.48f8570e.js} | 0 .../js/{153.3133cb81.js => 153.8d6fd5c8.js} | 2 +- .../js/{154.b18edd5e.js => 154.fcb3d380.js} | 2 +- .../js/{155.4c2ecdc0.js => 155.4b834ca6.js} | 2 +- .../js/{156.4f88415b.js => 156.88c22218.js} | 2 +- .../js/{157.a88f44e3.js => 157.6b66074e.js} | 0 .../js/{158.b6bb0c6c.js => 158.c56031b6.js} | 2 +- .../js/{159.b953925d.js => 159.f33bb4c1.js} | 2 +- docs/latest/assets/js/16.18a619ff.js | 1 - docs/latest/assets/js/16.dc964e15.js | 1 + .../js/{160.6889a41c.js => 160.e9680c69.js} | 2 +- .../js/{161.0ba5575d.js => 161.9f1e28ab.js} | 2 +- .../js/{162.f58b06cd.js => 162.fc3983a6.js} | 2 +- .../js/{163.82598716.js => 163.9e832dc0.js} | 2 +- .../js/{164.0f3dc1ec.js => 164.3cc163f4.js} | 2 +- .../js/{165.abbfc048.js => 165.34cade19.js} | 2 +- .../js/{166.af31a4fc.js => 166.5347ac89.js} | 2 +- .../js/{167.f484bf05.js => 167.eff2831d.js} | 2 +- .../js/{168.6df0a3a9.js => 168.e618654e.js} | 2 +- .../js/{169.6988ad9e.js => 169.9e5b7a91.js} | 2 +- docs/latest/assets/js/17.9899e86e.js | 1 + docs/latest/assets/js/17.a7672df0.js | 1 - .../js/{170.bba58735.js => 170.e9f5c38d.js} | 2 +- .../js/{171.4d62757a.js => 171.eb56ef96.js} | 0 .../js/{172.991b5a96.js => 172.4d5bf00c.js} | 2 +- .../js/{173.f1af4af7.js => 173.887a5d68.js} | 2 +- .../js/{174.a560ad71.js => 174.c5e90344.js} | 2 +- .../js/{175.3af24d58.js => 175.97c4af8b.js} | 2 +- .../js/{176.af576a74.js => 176.10bb64a2.js} | 2 +- .../js/{177.8d2fbf83.js => 177.39202147.js} | 2 +- .../js/{178.8f0f5f24.js => 178.55369968.js} | 2 +- .../js/{179.8678e43d.js => 179.801e181f.js} | 2 +- docs/latest/assets/js/18.8259392d.js | 1 + docs/latest/assets/js/18.d99a8955.js | 1 - .../js/{180.4e9f32ac.js => 180.4dbdd10b.js} | 2 +- .../js/{181.a1ba0d74.js => 181.b89e4b0e.js} | 0 .../js/{182.03d3109d.js => 182.1927f285.js} | 2 +- .../js/{183.2ff41135.js => 183.4d36feec.js} | 0 .../js/{184.b2231777.js => 184.1fac3328.js} | 2 +- .../js/{185.4ad99c89.js => 185.6c8fa5a8.js} | 2 +- .../js/{186.5165b4c6.js => 186.385fd801.js} | 2 +- .../js/{187.cd0f1d29.js => 187.5b86dc25.js} | 2 +- .../js/{188.5f9c50dd.js => 188.8ac9810c.js} | 2 +- .../js/{189.3bbd1fb0.js => 189.2785e485.js} | 2 +- .../js/{19.8722ab9b.js => 19.59e65df3.js} | 2 +- .../js/{190.d6c7ba7e.js => 190.6e8c7e8f.js} | 2 +- .../js/{191.39eca474.js => 191.adcfc175.js} | 2 +- .../js/{192.114a7d57.js => 192.ba04d5ea.js} | 0 .../js/{193.e16bfe88.js => 193.88c0d3c3.js} | 2 +- .../js/{194.2409b054.js => 194.5ff71b86.js} | 2 +- .../js/{195.0f76964b.js => 195.d30ee12a.js} | 2 +- .../js/{196.15e7d5c4.js => 196.a373af9e.js} | 2 +- .../js/{197.7d5b82c0.js => 197.b0642ef1.js} | 2 +- .../js/{198.5d0c8226.js => 198.2c538427.js} | 2 +- .../js/{199.386b9983.js => 199.e2df0be6.js} | 2 +- .../js/{2.0c6e21a4.js => 2.47b832b0.js} | 2 +- docs/latest/assets/js/20.e03c9894.js | 1 - docs/latest/assets/js/20.e8fa3191.js | 1 + .../js/{200.cdef2d1f.js => 200.1b76db29.js} | 2 +- .../js/{201.6ec123cc.js => 201.1f3b8d0d.js} | 2 +- .../js/{202.cff3c7fd.js => 202.341f213f.js} | 0 .../js/{203.2503ff1a.js => 203.14563a95.js} | 2 +- .../js/{204.fcb5dc8e.js => 204.d13f1881.js} | 0 .../js/{205.74645c9f.js => 205.471d40f8.js} | 2 +- .../js/{206.2c187d5b.js => 206.9d293c71.js} | 2 +- .../js/{207.0733bd86.js => 207.8219847c.js} | 2 +- .../js/{208.a901b32b.js => 208.7b13d4e9.js} | 2 +- .../js/{209.d4796577.js => 209.28467871.js} | 2 +- docs/latest/assets/js/21.ea4083d6.js | 1 - docs/latest/assets/js/21.fee6e631.js | 1 + .../js/{210.a6fc9055.js => 210.53598657.js} | 2 +- .../js/{211.628fa940.js => 211.d9c2da28.js} | 2 +- .../js/{212.396efa31.js => 212.2e9df0fb.js} | 2 +- .../js/{213.e5cbe7f9.js => 213.613917c2.js} | 0 .../js/{214.089f1bd4.js => 214.1b637009.js} | 2 +- .../js/{215.8ef27595.js => 215.0c163a89.js} | 2 +- .../js/{216.4415816e.js => 216.da1d581b.js} | 2 +- .../js/{217.9d8991ac.js => 217.d82b0891.js} | 2 +- .../js/{218.e898fcfc.js => 218.d6c62cbb.js} | 2 +- .../js/{219.6b713d5d.js => 219.fffb530f.js} | 2 +- docs/latest/assets/js/22.5703057f.js | 1 + docs/latest/assets/js/22.75ef9757.js | 1 - .../js/{220.28bcb827.js => 220.f6a10664.js} | 2 +- .../js/{221.79432e83.js => 221.9e9325bf.js} | 2 +- .../js/{222.8dc45fcf.js => 222.019af258.js} | 2 +- .../js/{223.0046eb65.js => 223.d1e5d737.js} | 0 .../js/{224.ba6b9714.js => 224.0c9879b6.js} | 2 +- .../js/{225.47608bac.js => 225.4a17da2d.js} | 2 +- .../js/{226.61d91c04.js => 226.9aa0a8fc.js} | 2 +- .../js/{227.198c9166.js => 227.1ae5f133.js} | 2 +- .../js/{228.b0349dda.js => 228.cc4dbf95.js} | 2 +- .../js/{229.51ec6bd7.js => 229.485d294b.js} | 2 +- docs/latest/assets/js/23.35efcd86.js | 1 + docs/latest/assets/js/23.f0778fc2.js | 1 - .../js/{230.deb69283.js => 230.35b30f36.js} | 2 +- .../js/{231.a0f70811.js => 231.653d9ba3.js} | 2 +- .../js/{232.fcd02ed5.js => 232.c15fc19e.js} | 2 +- .../js/{233.85dd004a.js => 233.17759dbc.js} | 2 +- .../js/{234.0f299b0d.js => 234.10713564.js} | 0 .../js/{235.206c2499.js => 235.fdaefd02.js} | 2 +- .../js/{236.ab32ee86.js => 236.8449bd12.js} | 0 .../js/{237.a3313040.js => 237.2b8ab339.js} | 2 +- .../js/{238.05f28f1b.js => 238.da46c0de.js} | 2 +- .../js/{239.257c2ec1.js => 239.19ba83c5.js} | 2 +- docs/latest/assets/js/24.b3cb60bf.js | 1 - docs/latest/assets/js/24.d7879160.js | 1 + .../js/{240.e4073758.js => 240.96c3a582.js} | 2 +- .../js/{241.223589aa.js => 241.898273af.js} | 2 +- .../js/{242.464e4f88.js => 242.2ce1e199.js} | 2 +- docs/latest/assets/js/25.49354505.js | 1 - docs/latest/assets/js/25.5f549319.js | 1 + docs/latest/assets/js/26.353585cd.js | 1 + docs/latest/assets/js/26.5cd11368.js | 1 - docs/latest/assets/js/27.07997596.js | 1 + docs/latest/assets/js/27.f3557547.js | 1 - docs/latest/assets/js/28.97e1e48f.js | 1 - docs/latest/assets/js/28.b0c8a776.js | 1 + .../js/{29.32dffc05.js => 29.91136795.js} | 2 +- .../js/{3.070dc659.js => 3.f47fb655.js} | 0 docs/latest/assets/js/30.5783407f.js | 1 - docs/latest/assets/js/30.c6424404.js | 1 + docs/latest/assets/js/31.7a567ad0.js | 1 - docs/latest/assets/js/31.7e508595.js | 1 + docs/latest/assets/js/32.3cb42dd2.js | 1 - docs/latest/assets/js/32.6239d878.js | 1 + docs/latest/assets/js/33.04619ac5.js | 1 - docs/latest/assets/js/33.18669376.js | 1 + docs/latest/assets/js/34.139281d5.js | 1 - docs/latest/assets/js/34.349037b3.js | 1 + docs/latest/assets/js/35.2bc7aed5.js | 1 + docs/latest/assets/js/35.fbfa4c98.js | 1 - docs/latest/assets/js/36.a4911720.js | 1 + docs/latest/assets/js/36.cfe2dfd0.js | 1 - docs/latest/assets/js/37.b47c5714.js | 1 + docs/latest/assets/js/37.d17ee4cf.js | 1 - docs/latest/assets/js/38.485e4dd3.js | 1 - docs/latest/assets/js/38.b4744c38.js | 1 + docs/latest/assets/js/39.1dd901b9.js | 1 + docs/latest/assets/js/39.4f741a92.js | 1 - .../js/{4.ce242792.js => 4.02ebacaa.js} | 0 docs/latest/assets/js/40.3566dbd1.js | 1 - docs/latest/assets/js/40.fd7b0293.js | 1 + docs/latest/assets/js/41.46ae730a.js | 1 - docs/latest/assets/js/41.87c095f7.js | 1 + docs/latest/assets/js/42.2c640d95.js | 1 + docs/latest/assets/js/42.670bd41a.js | 1 - .../js/{43.99e62d17.js => 43.44d81394.js} | 2 +- .../js/{44.f2a002b7.js => 44.797fa9fb.js} | 2 +- docs/latest/assets/js/45.cb87802f.js | 1 + docs/latest/assets/js/45.ec8e59c9.js | 1 - docs/latest/assets/js/46.84622a0b.js | 1 - docs/latest/assets/js/46.eaa23083.js | 1 + docs/latest/assets/js/47.888e1be0.js | 1 + docs/latest/assets/js/47.e97a844c.js | 1 - .../js/{48.a98c8b58.js => 48.3d2b6dae.js} | 2 +- docs/latest/assets/js/49.a9354155.js | 1 + docs/latest/assets/js/49.dd5207d9.js | 1 - docs/latest/assets/js/50.b539434c.js | 1 - docs/latest/assets/js/50.ece980c4.js | 1 + docs/latest/assets/js/51.208b8ef0.js | 1 + docs/latest/assets/js/51.780cd47d.js | 1 - docs/latest/assets/js/52.56bdcd19.js | 1 + docs/latest/assets/js/52.a1330943.js | 1 - docs/latest/assets/js/53.6f12fc3c.js | 1 - docs/latest/assets/js/53.df736d99.js | 1 + docs/latest/assets/js/54.29b9b9a7.js | 1 - docs/latest/assets/js/54.3cb944cc.js | 1 + docs/latest/assets/js/55.49c0fd5c.js | 1 + docs/latest/assets/js/55.93c18df5.js | 1 - docs/latest/assets/js/56.8beb8892.js | 1 + docs/latest/assets/js/56.e7730f5b.js | 1 - docs/latest/assets/js/57.62b24161.js | 1 + docs/latest/assets/js/57.a4d9f801.js | 1 - .../js/{58.837a30e7.js => 58.a738cc24.js} | 2 +- docs/latest/assets/js/59.cda3b460.js | 1 - docs/latest/assets/js/59.faa2f5d2.js | 1 + .../js/{6.51425ea4.js => 6.a7d136a1.js} | 0 docs/latest/assets/js/60.4b0ad5e2.js | 1 + docs/latest/assets/js/60.8987e982.js | 1 - docs/latest/assets/js/61.bcb61869.js | 1 + docs/latest/assets/js/61.d8d4483c.js | 1 - docs/latest/assets/js/62.d2a0739e.js | 1 - docs/latest/assets/js/62.e6e46eef.js | 1 + .../js/{63.38bf5ef9.js => 63.a2c68d92.js} | 2 +- docs/latest/assets/js/64.1370b0c2.js | 1 - docs/latest/assets/js/64.61e33bb7.js | 1 + .../js/{65.c9ea7df7.js => 65.8b111d02.js} | 2 +- .../js/{66.c14fc7c9.js => 66.e6b561e2.js} | 2 +- .../js/{67.50df0fc7.js => 67.7fdf739f.js} | 2 +- docs/latest/assets/js/68.7f6a9b2d.js | 1 - docs/latest/assets/js/68.9ba7535b.js | 1 + docs/latest/assets/js/69.9baf5afd.js | 1 - docs/latest/assets/js/69.e5b7dac5.js | 1 + .../js/{7.a9072f57.js => 7.882fe3fd.js} | 0 docs/latest/assets/js/70.3999b0cd.js | 1 - docs/latest/assets/js/70.5f575655.js | 1 + docs/latest/assets/js/71.8b4b0011.js | 1 - docs/latest/assets/js/71.e6886a7d.js | 1 + docs/latest/assets/js/72.18792544.js | 1 - docs/latest/assets/js/72.3cbbf440.js | 1 + docs/latest/assets/js/73.7e0c7b18.js | 1 + docs/latest/assets/js/73.d442a441.js | 1 - docs/latest/assets/js/74.26bae493.js | 1 + docs/latest/assets/js/74.88418504.js | 1 - docs/latest/assets/js/75.9641c3e4.js | 1 + docs/latest/assets/js/75.c79342e2.js | 1 - docs/latest/assets/js/76.8f533bcd.js | 1 + docs/latest/assets/js/76.d00f66ea.js | 1 - docs/latest/assets/js/77.9c7bbc3d.js | 1 - docs/latest/assets/js/77.aa12d9c5.js | 1 + docs/latest/assets/js/78.52cd58bc.js | 1 - docs/latest/assets/js/78.de42f53f.js | 1 + docs/latest/assets/js/79.260b827c.js | 1 - docs/latest/assets/js/79.e5a50a48.js | 1 + .../js/{8.f223931f.js => 8.213592ca.js} | 0 docs/latest/assets/js/80.804afa63.js | 1 + docs/latest/assets/js/80.a5cecfd5.js | 1 - docs/latest/assets/js/81.0261566d.js | 1 - docs/latest/assets/js/81.3c4dfdab.js | 1 + .../js/{82.69931859.js => 82.9906a286.js} | 2 +- .../js/{83.4d57cbe5.js => 83.1464037a.js} | 2 +- docs/latest/assets/js/84.6c883a62.js | 1 + docs/latest/assets/js/84.f8ea29f0.js | 1 - .../js/{85.9fd220c2.js => 85.ce19abc2.js} | 2 +- docs/latest/assets/js/86.44f69d78.js | 1 + docs/latest/assets/js/86.b80eae92.js | 1 - .../js/{87.a0d58cde.js => 87.3639bc16.js} | 2 +- docs/latest/assets/js/88.14645b1d.js | 1 + docs/latest/assets/js/88.6d6ec46f.js | 1 - docs/latest/assets/js/89.c98683cb.js | 1 - docs/latest/assets/js/89.e2401403.js | 1 + docs/latest/assets/js/9.97a769a4.js | 1 + docs/latest/assets/js/9.e5e73499.js | 1 - docs/latest/assets/js/90.93280334.js | 1 + docs/latest/assets/js/90.ddd33458.js | 1 - docs/latest/assets/js/91.2a2bd3d2.js | 1 + docs/latest/assets/js/91.5d8e0821.js | 1 - docs/latest/assets/js/92.1906a5fc.js | 1 + docs/latest/assets/js/92.f0d6cb32.js | 1 - .../js/{93.f4fec444.js => 93.040a325e.js} | 2 +- docs/latest/assets/js/94.0f576cde.js | 1 - docs/latest/assets/js/94.e69ba595.js | 1 + docs/latest/assets/js/95.9d59b30f.js | 1 + docs/latest/assets/js/95.a4aec8ca.js | 1 - docs/latest/assets/js/96.281b52d0.js | 1 + docs/latest/assets/js/96.f66957a0.js | 1 - docs/latest/assets/js/97.5181339d.js | 1 + docs/latest/assets/js/97.b0116fe9.js | 1 - docs/latest/assets/js/98.0d8d1de7.js | 1 - docs/latest/assets/js/98.c10d3dd8.js | 1 + .../js/{99.f6a17e01.js => 99.43c1ef40.js} | 2 +- docs/latest/assets/js/app.868dcc37.js | 35 ++++++++++++++ docs/latest/assets/js/app.e57e8154.js | 35 -------------- docs/latest/axes/_common.html | 6 +-- docs/latest/axes/_common_ticks.html | 6 +-- docs/latest/axes/cartesian/_common.html | 6 +-- docs/latest/axes/cartesian/_common_ticks.html | 6 +-- docs/latest/axes/cartesian/category.html | 6 +-- docs/latest/axes/cartesian/index.html | 6 +-- docs/latest/axes/cartesian/linear.html | 6 +-- docs/latest/axes/cartesian/logarithmic.html | 6 +-- docs/latest/axes/cartesian/time.html | 6 +-- docs/latest/axes/cartesian/timeseries.html | 6 +-- docs/latest/axes/index.html | 6 +-- docs/latest/axes/labelling.html | 6 +-- docs/latest/axes/radial/index.html | 6 +-- docs/latest/axes/radial/linear.html | 6 +-- docs/latest/axes/styling.html | 6 +-- docs/latest/charts/area.html | 6 +-- docs/latest/charts/bar.html | 6 +-- docs/latest/charts/bubble.html | 6 +-- docs/latest/charts/doughnut.html | 6 +-- docs/latest/charts/line.html | 6 +-- docs/latest/charts/mixed.html | 6 +-- docs/latest/charts/polar.html | 6 +-- docs/latest/charts/radar.html | 6 +-- docs/latest/charts/scatter.html | 6 +-- docs/latest/configuration/animations.html | 6 +-- .../configuration/canvas-background.html | 6 +-- docs/latest/configuration/decimation.html | 6 +-- .../configuration/device-pixel-ratio.html | 6 +-- docs/latest/configuration/elements.html | 6 +-- docs/latest/configuration/index.html | 6 +-- docs/latest/configuration/interactions.html | 6 +-- docs/latest/configuration/layout.html | 6 +-- docs/latest/configuration/legend.html | 6 +-- docs/latest/configuration/locale.html | 6 +-- docs/latest/configuration/responsive.html | 6 +-- docs/latest/configuration/title.html | 6 +-- docs/latest/configuration/tooltip.html | 6 +-- docs/latest/developers/api.html | 6 +-- docs/latest/developers/axes.html | 6 +-- docs/latest/developers/charts.html | 6 +-- docs/latest/developers/contributing.html | 6 +-- docs/latest/developers/index.html | 6 +-- docs/latest/developers/plugins.html | 6 +-- docs/latest/developers/publishing.html | 6 +-- docs/latest/developers/updates.html | 6 +-- docs/latest/general/accessibility.html | 6 +-- docs/latest/general/colors.html | 6 +-- docs/latest/general/data-structures.html | 6 +-- docs/latest/general/fonts.html | 6 +-- docs/latest/general/options.html | 6 +-- docs/latest/general/padding.html | 6 +-- docs/latest/general/performance.html | 6 +-- docs/latest/getting-started/index.html | 6 +-- docs/latest/getting-started/installation.html | 6 +-- docs/latest/getting-started/integration.html | 6 +-- docs/latest/getting-started/usage.html | 6 +-- docs/latest/getting-started/v3-migration.html | 6 +-- docs/latest/index.html | 6 +-- .../samples/advanced/data-decimation.html | 6 +-- .../samples/advanced/derived-axis-type.html | 6 +-- .../samples/advanced/derived-chart-type.html | 6 +-- .../samples/advanced/linear-gradient.html | 6 +-- .../samples/advanced/programmatic-events.html | 6 +-- .../latest/samples/advanced/progress-bar.html | 6 +-- .../samples/advanced/radial-gradient.html | 6 +-- docs/latest/samples/animations/delay.html | 6 +-- docs/latest/samples/animations/drop.html | 6 +-- docs/latest/samples/animations/loop.html | 6 +-- .../samples/animations/progressive-line.html | 6 +-- docs/latest/samples/area/line-boundaries.html | 6 +-- docs/latest/samples/area/line-datasets.html | 6 +-- docs/latest/samples/area/line-drawtime.html | 6 +-- docs/latest/samples/area/line-stacked.html | 6 +-- docs/latest/samples/area/radar.html | 6 +-- docs/latest/samples/bar/border-radius.html | 6 +-- docs/latest/samples/bar/floating.html | 6 +-- docs/latest/samples/bar/horizontal.html | 6 +-- docs/latest/samples/bar/stacked-groups.html | 6 +-- docs/latest/samples/bar/stacked.html | 6 +-- docs/latest/samples/bar/vertical.html | 6 +-- docs/latest/samples/legend/events.html | 6 +-- docs/latest/samples/legend/html.html | 6 +-- docs/latest/samples/legend/point-style.html | 6 +-- docs/latest/samples/legend/position.html | 6 +-- docs/latest/samples/legend/title.html | 6 +-- docs/latest/samples/line/interpolation.html | 6 +-- docs/latest/samples/line/line.html | 6 +-- docs/latest/samples/line/multi-axis.html | 6 +-- docs/latest/samples/line/segments.html | 6 +-- docs/latest/samples/line/stepped.html | 6 +-- docs/latest/samples/line/styling.html | 6 +-- docs/latest/samples/other-charts/bubble.html | 6 +-- .../samples/other-charts/combo-bar-line.html | 6 +-- .../latest/samples/other-charts/doughnut.html | 6 +-- .../other-charts/multi-series-pie.html | 6 +-- docs/latest/samples/other-charts/pie.html | 6 +-- .../samples/other-charts/polar-area.html | 6 +-- .../other-charts/radar-skip-points.html | 6 +-- docs/latest/samples/other-charts/radar.html | 6 +-- .../other-charts/scatter-multi-axis.html | 6 +-- docs/latest/samples/other-charts/scatter.html | 6 +-- .../other-charts/stacked-bar-line.html | 6 +-- docs/latest/samples/scale-options/center.html | 6 +-- docs/latest/samples/scale-options/grid.html | 6 +-- docs/latest/samples/scale-options/ticks.html | 6 +-- docs/latest/samples/scale-options/titles.html | 6 +-- .../scales/linear-min-max-suggested.html | 6 +-- .../latest/samples/scales/linear-min-max.html | 6 +-- .../samples/scales/linear-step-size.html | 6 +-- docs/latest/samples/scales/log.html | 6 +-- docs/latest/samples/scales/time-combo.html | 6 +-- docs/latest/samples/scales/time-line.html | 6 +-- docs/latest/samples/scales/time-max-span.html | 6 +-- docs/latest/samples/scriptable/bar.html | 6 +-- docs/latest/samples/scriptable/bubble.html | 6 +-- docs/latest/samples/scriptable/line.html | 6 +-- docs/latest/samples/scriptable/pie.html | 6 +-- docs/latest/samples/scriptable/polar.html | 6 +-- docs/latest/samples/scriptable/radar.html | 6 +-- docs/latest/samples/title/alignment.html | 6 +-- docs/latest/samples/tooltip/content.html | 6 +-- docs/latest/samples/tooltip/html.html | 6 +-- docs/latest/samples/tooltip/interactions.html | 6 +-- docs/latest/samples/tooltip/point-style.html | 6 +-- docs/latest/samples/tooltip/position.html | 6 +-- 569 files changed, 1001 insertions(+), 1001 deletions(-) delete mode 100644 docs/latest/assets/js/10.0ef561de.js create mode 100644 docs/latest/assets/js/10.a79de378.js delete mode 100644 docs/latest/assets/js/100.db5329c4.js create mode 100644 docs/latest/assets/js/100.eee663a2.js delete mode 100644 docs/latest/assets/js/101.621bd17f.js create mode 100644 docs/latest/assets/js/101.cf578cbb.js rename docs/latest/assets/js/{102.abc6d5a8.js => 102.ab8ab92b.js} (50%) create mode 100644 docs/latest/assets/js/103.7e714d58.js delete mode 100644 docs/latest/assets/js/103.824c664b.js create mode 100644 docs/latest/assets/js/104.5c7d8858.js delete mode 100644 docs/latest/assets/js/104.fd32bc9e.js create mode 100644 docs/latest/assets/js/105.1d68e09a.js delete mode 100644 docs/latest/assets/js/105.a8fce9cc.js rename docs/latest/assets/js/{106.6adbb026.js => 106.92da18bd.js} (53%) delete mode 100644 docs/latest/assets/js/107.08c9cd6f.js create mode 100644 docs/latest/assets/js/107.6f10ac74.js create mode 100644 docs/latest/assets/js/108.1e45abeb.js delete mode 100644 docs/latest/assets/js/108.4f283413.js create mode 100644 docs/latest/assets/js/109.a738a660.js delete mode 100644 docs/latest/assets/js/109.b3b6f582.js rename docs/latest/assets/js/{11.7f81d7b8.js => 11.63cb17e1.js} (52%) create mode 100644 docs/latest/assets/js/110.e0faa63f.js delete mode 100644 docs/latest/assets/js/110.f24db9f1.js create mode 100644 docs/latest/assets/js/111.74466325.js delete mode 100644 docs/latest/assets/js/111.8b3cbf74.js delete mode 100644 docs/latest/assets/js/112.00e3774d.js create mode 100644 docs/latest/assets/js/112.8296e19b.js delete mode 100644 docs/latest/assets/js/113.3ec77bb7.js create mode 100644 docs/latest/assets/js/113.fc13e57a.js create mode 100644 docs/latest/assets/js/114.3a9c0bc2.js delete mode 100644 docs/latest/assets/js/114.62f8796a.js create mode 100644 docs/latest/assets/js/115.10b47ecd.js delete mode 100644 docs/latest/assets/js/115.278437a3.js create mode 100644 docs/latest/assets/js/116.525d2455.js delete mode 100644 docs/latest/assets/js/116.e1fcc1d0.js create mode 100644 docs/latest/assets/js/117.17252f25.js delete mode 100644 docs/latest/assets/js/117.88e91eeb.js create mode 100644 docs/latest/assets/js/118.3ac82c27.js delete mode 100644 docs/latest/assets/js/118.b2d62199.js rename docs/latest/assets/js/{119.c2113dc8.js => 119.6e319f1e.js} (98%) create mode 100644 docs/latest/assets/js/12.af3ff68d.js delete mode 100644 docs/latest/assets/js/12.cbb7d1e1.js rename docs/latest/assets/js/{120.ece0dd2f.js => 120.0e595569.js} (98%) rename docs/latest/assets/js/{121.45e7fb0f.js => 121.6d998ffd.js} (100%) rename docs/latest/assets/js/{122.677ea225.js => 122.afa8bfe7.js} (100%) rename docs/latest/assets/js/{123.80c81bf2.js => 123.779d36cf.js} (100%) rename docs/latest/assets/js/{124.56d0cc19.js => 124.aadfcb51.js} (100%) rename docs/latest/assets/js/{125.f204c7e7.js => 125.066257ca.js} (100%) rename docs/latest/assets/js/{126.ec98f0df.js => 126.c18239be.js} (100%) rename docs/latest/assets/js/{127.4bda8260.js => 127.787b00cf.js} (100%) rename docs/latest/assets/js/{128.850b138f.js => 128.e9a4c541.js} (100%) rename docs/latest/assets/js/{129.b4cfa86e.js => 129.c797a431.js} (99%) delete mode 100644 docs/latest/assets/js/13.b7e97a24.js create mode 100644 docs/latest/assets/js/13.d939100c.js rename docs/latest/assets/js/{130.fbd01665.js => 130.180c552d.js} (99%) rename docs/latest/assets/js/{131.852c4129.js => 131.22f0af24.js} (98%) rename docs/latest/assets/js/{132.ec42af3f.js => 132.49826028.js} (100%) rename docs/latest/assets/js/{133.135d54b9.js => 133.72bd9953.js} (99%) rename docs/latest/assets/js/{134.5cc44131.js => 134.83642d0d.js} (99%) rename docs/latest/assets/js/{135.c23857ac.js => 135.6d317b72.js} (99%) rename docs/latest/assets/js/{136.d7d24c70.js => 136.f6489687.js} (99%) rename docs/latest/assets/js/{137.2f82698b.js => 137.d8e51241.js} (99%) rename docs/latest/assets/js/{138.28a46530.js => 138.fdf11c55.js} (99%) rename docs/latest/assets/js/{139.bc71089e.js => 139.c5ca9584.js} (99%) create mode 100644 docs/latest/assets/js/14.5e5d4bd9.js delete mode 100644 docs/latest/assets/js/14.8547c6f9.js rename docs/latest/assets/js/{140.7b997f6c.js => 140.6046865f.js} (99%) rename docs/latest/assets/js/{141.2bcbc9a2.js => 141.eeadecc8.js} (99%) rename docs/latest/assets/js/{142.39f6fc08.js => 142.d1a290f9.js} (98%) rename docs/latest/assets/js/{143.765e86af.js => 143.a5488c00.js} (99%) rename docs/latest/assets/js/{144.6e658e5a.js => 144.68b9b863.js} (98%) rename docs/latest/assets/js/{145.5713ccac.js => 145.a9f9466e.js} (98%) rename docs/latest/assets/js/{146.25c98087.js => 146.adf77307.js} (100%) rename docs/latest/assets/js/{147.ba6767cf.js => 147.dd25d778.js} (99%) rename docs/latest/assets/js/{148.d66dcd2c.js => 148.e1172124.js} (99%) rename docs/latest/assets/js/{149.106987ae.js => 149.3db445d9.js} (99%) delete mode 100644 docs/latest/assets/js/15.41c18415.js create mode 100644 docs/latest/assets/js/15.b568f739.js rename docs/latest/assets/js/{150.98525ac3.js => 150.dadd8522.js} (95%) rename docs/latest/assets/js/{151.0eed2bac.js => 151.ca1b1565.js} (99%) rename docs/latest/assets/js/{152.8140349d.js => 152.48f8570e.js} (100%) rename docs/latest/assets/js/{153.3133cb81.js => 153.8d6fd5c8.js} (99%) rename docs/latest/assets/js/{154.b18edd5e.js => 154.fcb3d380.js} (99%) rename docs/latest/assets/js/{155.4c2ecdc0.js => 155.4b834ca6.js} (99%) rename docs/latest/assets/js/{156.4f88415b.js => 156.88c22218.js} (99%) rename docs/latest/assets/js/{157.a88f44e3.js => 157.6b66074e.js} (100%) rename docs/latest/assets/js/{158.b6bb0c6c.js => 158.c56031b6.js} (99%) rename docs/latest/assets/js/{159.b953925d.js => 159.f33bb4c1.js} (99%) delete mode 100644 docs/latest/assets/js/16.18a619ff.js create mode 100644 docs/latest/assets/js/16.dc964e15.js rename docs/latest/assets/js/{160.6889a41c.js => 160.e9680c69.js} (98%) rename docs/latest/assets/js/{161.0ba5575d.js => 161.9f1e28ab.js} (98%) rename docs/latest/assets/js/{162.f58b06cd.js => 162.fc3983a6.js} (99%) rename docs/latest/assets/js/{163.82598716.js => 163.9e832dc0.js} (99%) rename docs/latest/assets/js/{164.0f3dc1ec.js => 164.3cc163f4.js} (99%) rename docs/latest/assets/js/{165.abbfc048.js => 165.34cade19.js} (99%) rename docs/latest/assets/js/{166.af31a4fc.js => 166.5347ac89.js} (99%) rename docs/latest/assets/js/{167.f484bf05.js => 167.eff2831d.js} (99%) rename docs/latest/assets/js/{168.6df0a3a9.js => 168.e618654e.js} (99%) rename docs/latest/assets/js/{169.6988ad9e.js => 169.9e5b7a91.js} (99%) create mode 100644 docs/latest/assets/js/17.9899e86e.js delete mode 100644 docs/latest/assets/js/17.a7672df0.js rename docs/latest/assets/js/{170.bba58735.js => 170.e9f5c38d.js} (99%) rename docs/latest/assets/js/{171.4d62757a.js => 171.eb56ef96.js} (100%) rename docs/latest/assets/js/{172.991b5a96.js => 172.4d5bf00c.js} (99%) rename docs/latest/assets/js/{173.f1af4af7.js => 173.887a5d68.js} (99%) rename docs/latest/assets/js/{174.a560ad71.js => 174.c5e90344.js} (99%) rename docs/latest/assets/js/{175.3af24d58.js => 175.97c4af8b.js} (99%) rename docs/latest/assets/js/{176.af576a74.js => 176.10bb64a2.js} (98%) rename docs/latest/assets/js/{177.8d2fbf83.js => 177.39202147.js} (99%) rename docs/latest/assets/js/{178.8f0f5f24.js => 178.55369968.js} (99%) rename docs/latest/assets/js/{179.8678e43d.js => 179.801e181f.js} (97%) create mode 100644 docs/latest/assets/js/18.8259392d.js delete mode 100644 docs/latest/assets/js/18.d99a8955.js rename docs/latest/assets/js/{180.4e9f32ac.js => 180.4dbdd10b.js} (97%) rename docs/latest/assets/js/{181.a1ba0d74.js => 181.b89e4b0e.js} (100%) rename docs/latest/assets/js/{182.03d3109d.js => 182.1927f285.js} (98%) rename docs/latest/assets/js/{183.2ff41135.js => 183.4d36feec.js} (100%) rename docs/latest/assets/js/{184.b2231777.js => 184.1fac3328.js} (98%) rename docs/latest/assets/js/{185.4ad99c89.js => 185.6c8fa5a8.js} (98%) rename docs/latest/assets/js/{186.5165b4c6.js => 186.385fd801.js} (97%) rename docs/latest/assets/js/{187.cd0f1d29.js => 187.5b86dc25.js} (97%) rename docs/latest/assets/js/{188.5f9c50dd.js => 188.8ac9810c.js} (98%) rename docs/latest/assets/js/{189.3bbd1fb0.js => 189.2785e485.js} (97%) rename docs/latest/assets/js/{19.8722ab9b.js => 19.59e65df3.js} (52%) rename docs/latest/assets/js/{190.d6c7ba7e.js => 190.6e8c7e8f.js} (98%) rename docs/latest/assets/js/{191.39eca474.js => 191.adcfc175.js} (98%) rename docs/latest/assets/js/{192.114a7d57.js => 192.ba04d5ea.js} (100%) rename docs/latest/assets/js/{193.e16bfe88.js => 193.88c0d3c3.js} (96%) rename docs/latest/assets/js/{194.2409b054.js => 194.5ff71b86.js} (98%) rename docs/latest/assets/js/{195.0f76964b.js => 195.d30ee12a.js} (96%) rename docs/latest/assets/js/{196.15e7d5c4.js => 196.a373af9e.js} (96%) rename docs/latest/assets/js/{197.7d5b82c0.js => 197.b0642ef1.js} (97%) rename docs/latest/assets/js/{198.5d0c8226.js => 198.2c538427.js} (96%) rename docs/latest/assets/js/{199.386b9983.js => 199.e2df0be6.js} (98%) rename docs/latest/assets/js/{2.0c6e21a4.js => 2.47b832b0.js} (99%) delete mode 100644 docs/latest/assets/js/20.e03c9894.js create mode 100644 docs/latest/assets/js/20.e8fa3191.js rename docs/latest/assets/js/{200.cdef2d1f.js => 200.1b76db29.js} (96%) rename docs/latest/assets/js/{201.6ec123cc.js => 201.1f3b8d0d.js} (96%) rename docs/latest/assets/js/{202.cff3c7fd.js => 202.341f213f.js} (100%) rename docs/latest/assets/js/{203.2503ff1a.js => 203.14563a95.js} (96%) rename docs/latest/assets/js/{204.fcb5dc8e.js => 204.d13f1881.js} (100%) rename docs/latest/assets/js/{205.74645c9f.js => 205.471d40f8.js} (97%) rename docs/latest/assets/js/{206.2c187d5b.js => 206.9d293c71.js} (95%) rename docs/latest/assets/js/{207.0733bd86.js => 207.8219847c.js} (97%) rename docs/latest/assets/js/{208.a901b32b.js => 208.7b13d4e9.js} (96%) rename docs/latest/assets/js/{209.d4796577.js => 209.28467871.js} (97%) delete mode 100644 docs/latest/assets/js/21.ea4083d6.js create mode 100644 docs/latest/assets/js/21.fee6e631.js rename docs/latest/assets/js/{210.a6fc9055.js => 210.53598657.js} (97%) rename docs/latest/assets/js/{211.628fa940.js => 211.d9c2da28.js} (97%) rename docs/latest/assets/js/{212.396efa31.js => 212.2e9df0fb.js} (98%) rename docs/latest/assets/js/{213.e5cbe7f9.js => 213.613917c2.js} (100%) rename docs/latest/assets/js/{214.089f1bd4.js => 214.1b637009.js} (97%) rename docs/latest/assets/js/{215.8ef27595.js => 215.0c163a89.js} (97%) rename docs/latest/assets/js/{216.4415816e.js => 216.da1d581b.js} (97%) rename docs/latest/assets/js/{217.9d8991ac.js => 217.d82b0891.js} (98%) rename docs/latest/assets/js/{218.e898fcfc.js => 218.d6c62cbb.js} (97%) rename docs/latest/assets/js/{219.6b713d5d.js => 219.fffb530f.js} (98%) create mode 100644 docs/latest/assets/js/22.5703057f.js delete mode 100644 docs/latest/assets/js/22.75ef9757.js rename docs/latest/assets/js/{220.28bcb827.js => 220.f6a10664.js} (97%) rename docs/latest/assets/js/{221.79432e83.js => 221.9e9325bf.js} (97%) rename docs/latest/assets/js/{222.8dc45fcf.js => 222.019af258.js} (97%) rename docs/latest/assets/js/{223.0046eb65.js => 223.d1e5d737.js} (100%) rename docs/latest/assets/js/{224.ba6b9714.js => 224.0c9879b6.js} (96%) rename docs/latest/assets/js/{225.47608bac.js => 225.4a17da2d.js} (95%) rename docs/latest/assets/js/{226.61d91c04.js => 226.9aa0a8fc.js} (98%) rename docs/latest/assets/js/{227.198c9166.js => 227.1ae5f133.js} (96%) rename docs/latest/assets/js/{228.b0349dda.js => 228.cc4dbf95.js} (97%) rename docs/latest/assets/js/{229.51ec6bd7.js => 229.485d294b.js} (97%) create mode 100644 docs/latest/assets/js/23.35efcd86.js delete mode 100644 docs/latest/assets/js/23.f0778fc2.js rename docs/latest/assets/js/{230.deb69283.js => 230.35b30f36.js} (98%) rename docs/latest/assets/js/{231.a0f70811.js => 231.653d9ba3.js} (96%) rename docs/latest/assets/js/{232.fcd02ed5.js => 232.c15fc19e.js} (97%) rename docs/latest/assets/js/{233.85dd004a.js => 233.17759dbc.js} (96%) rename docs/latest/assets/js/{234.0f299b0d.js => 234.10713564.js} (100%) rename docs/latest/assets/js/{235.206c2499.js => 235.fdaefd02.js} (96%) rename docs/latest/assets/js/{236.ab32ee86.js => 236.8449bd12.js} (100%) rename docs/latest/assets/js/{237.a3313040.js => 237.2b8ab339.js} (96%) rename docs/latest/assets/js/{238.05f28f1b.js => 238.da46c0de.js} (96%) rename docs/latest/assets/js/{239.257c2ec1.js => 239.19ba83c5.js} (98%) delete mode 100644 docs/latest/assets/js/24.b3cb60bf.js create mode 100644 docs/latest/assets/js/24.d7879160.js rename docs/latest/assets/js/{240.e4073758.js => 240.96c3a582.js} (97%) rename docs/latest/assets/js/{241.223589aa.js => 241.898273af.js} (97%) rename docs/latest/assets/js/{242.464e4f88.js => 242.2ce1e199.js} (97%) delete mode 100644 docs/latest/assets/js/25.49354505.js create mode 100644 docs/latest/assets/js/25.5f549319.js create mode 100644 docs/latest/assets/js/26.353585cd.js delete mode 100644 docs/latest/assets/js/26.5cd11368.js create mode 100644 docs/latest/assets/js/27.07997596.js delete mode 100644 docs/latest/assets/js/27.f3557547.js delete mode 100644 docs/latest/assets/js/28.97e1e48f.js create mode 100644 docs/latest/assets/js/28.b0c8a776.js rename docs/latest/assets/js/{29.32dffc05.js => 29.91136795.js} (76%) rename docs/latest/assets/js/{3.070dc659.js => 3.f47fb655.js} (100%) delete mode 100644 docs/latest/assets/js/30.5783407f.js create mode 100644 docs/latest/assets/js/30.c6424404.js delete mode 100644 docs/latest/assets/js/31.7a567ad0.js create mode 100644 docs/latest/assets/js/31.7e508595.js delete mode 100644 docs/latest/assets/js/32.3cb42dd2.js create mode 100644 docs/latest/assets/js/32.6239d878.js delete mode 100644 docs/latest/assets/js/33.04619ac5.js create mode 100644 docs/latest/assets/js/33.18669376.js delete mode 100644 docs/latest/assets/js/34.139281d5.js create mode 100644 docs/latest/assets/js/34.349037b3.js create mode 100644 docs/latest/assets/js/35.2bc7aed5.js delete mode 100644 docs/latest/assets/js/35.fbfa4c98.js create mode 100644 docs/latest/assets/js/36.a4911720.js delete mode 100644 docs/latest/assets/js/36.cfe2dfd0.js create mode 100644 docs/latest/assets/js/37.b47c5714.js delete mode 100644 docs/latest/assets/js/37.d17ee4cf.js delete mode 100644 docs/latest/assets/js/38.485e4dd3.js create mode 100644 docs/latest/assets/js/38.b4744c38.js create mode 100644 docs/latest/assets/js/39.1dd901b9.js delete mode 100644 docs/latest/assets/js/39.4f741a92.js rename docs/latest/assets/js/{4.ce242792.js => 4.02ebacaa.js} (100%) delete mode 100644 docs/latest/assets/js/40.3566dbd1.js create mode 100644 docs/latest/assets/js/40.fd7b0293.js delete mode 100644 docs/latest/assets/js/41.46ae730a.js create mode 100644 docs/latest/assets/js/41.87c095f7.js create mode 100644 docs/latest/assets/js/42.2c640d95.js delete mode 100644 docs/latest/assets/js/42.670bd41a.js rename docs/latest/assets/js/{43.99e62d17.js => 43.44d81394.js} (73%) rename docs/latest/assets/js/{44.f2a002b7.js => 44.797fa9fb.js} (65%) create mode 100644 docs/latest/assets/js/45.cb87802f.js delete mode 100644 docs/latest/assets/js/45.ec8e59c9.js delete mode 100644 docs/latest/assets/js/46.84622a0b.js create mode 100644 docs/latest/assets/js/46.eaa23083.js create mode 100644 docs/latest/assets/js/47.888e1be0.js delete mode 100644 docs/latest/assets/js/47.e97a844c.js rename docs/latest/assets/js/{48.a98c8b58.js => 48.3d2b6dae.js} (51%) create mode 100644 docs/latest/assets/js/49.a9354155.js delete mode 100644 docs/latest/assets/js/49.dd5207d9.js delete mode 100644 docs/latest/assets/js/50.b539434c.js create mode 100644 docs/latest/assets/js/50.ece980c4.js create mode 100644 docs/latest/assets/js/51.208b8ef0.js delete mode 100644 docs/latest/assets/js/51.780cd47d.js create mode 100644 docs/latest/assets/js/52.56bdcd19.js delete mode 100644 docs/latest/assets/js/52.a1330943.js delete mode 100644 docs/latest/assets/js/53.6f12fc3c.js create mode 100644 docs/latest/assets/js/53.df736d99.js delete mode 100644 docs/latest/assets/js/54.29b9b9a7.js create mode 100644 docs/latest/assets/js/54.3cb944cc.js create mode 100644 docs/latest/assets/js/55.49c0fd5c.js delete mode 100644 docs/latest/assets/js/55.93c18df5.js create mode 100644 docs/latest/assets/js/56.8beb8892.js delete mode 100644 docs/latest/assets/js/56.e7730f5b.js create mode 100644 docs/latest/assets/js/57.62b24161.js delete mode 100644 docs/latest/assets/js/57.a4d9f801.js rename docs/latest/assets/js/{58.837a30e7.js => 58.a738cc24.js} (53%) delete mode 100644 docs/latest/assets/js/59.cda3b460.js create mode 100644 docs/latest/assets/js/59.faa2f5d2.js rename docs/latest/assets/js/{6.51425ea4.js => 6.a7d136a1.js} (100%) create mode 100644 docs/latest/assets/js/60.4b0ad5e2.js delete mode 100644 docs/latest/assets/js/60.8987e982.js create mode 100644 docs/latest/assets/js/61.bcb61869.js delete mode 100644 docs/latest/assets/js/61.d8d4483c.js delete mode 100644 docs/latest/assets/js/62.d2a0739e.js create mode 100644 docs/latest/assets/js/62.e6e46eef.js rename docs/latest/assets/js/{63.38bf5ef9.js => 63.a2c68d92.js} (80%) delete mode 100644 docs/latest/assets/js/64.1370b0c2.js create mode 100644 docs/latest/assets/js/64.61e33bb7.js rename docs/latest/assets/js/{65.c9ea7df7.js => 65.8b111d02.js} (58%) rename docs/latest/assets/js/{66.c14fc7c9.js => 66.e6b561e2.js} (83%) rename docs/latest/assets/js/{67.50df0fc7.js => 67.7fdf739f.js} (50%) delete mode 100644 docs/latest/assets/js/68.7f6a9b2d.js create mode 100644 docs/latest/assets/js/68.9ba7535b.js delete mode 100644 docs/latest/assets/js/69.9baf5afd.js create mode 100644 docs/latest/assets/js/69.e5b7dac5.js rename docs/latest/assets/js/{7.a9072f57.js => 7.882fe3fd.js} (100%) delete mode 100644 docs/latest/assets/js/70.3999b0cd.js create mode 100644 docs/latest/assets/js/70.5f575655.js delete mode 100644 docs/latest/assets/js/71.8b4b0011.js create mode 100644 docs/latest/assets/js/71.e6886a7d.js delete mode 100644 docs/latest/assets/js/72.18792544.js create mode 100644 docs/latest/assets/js/72.3cbbf440.js create mode 100644 docs/latest/assets/js/73.7e0c7b18.js delete mode 100644 docs/latest/assets/js/73.d442a441.js create mode 100644 docs/latest/assets/js/74.26bae493.js delete mode 100644 docs/latest/assets/js/74.88418504.js create mode 100644 docs/latest/assets/js/75.9641c3e4.js delete mode 100644 docs/latest/assets/js/75.c79342e2.js create mode 100644 docs/latest/assets/js/76.8f533bcd.js delete mode 100644 docs/latest/assets/js/76.d00f66ea.js delete mode 100644 docs/latest/assets/js/77.9c7bbc3d.js create mode 100644 docs/latest/assets/js/77.aa12d9c5.js delete mode 100644 docs/latest/assets/js/78.52cd58bc.js create mode 100644 docs/latest/assets/js/78.de42f53f.js delete mode 100644 docs/latest/assets/js/79.260b827c.js create mode 100644 docs/latest/assets/js/79.e5a50a48.js rename docs/latest/assets/js/{8.f223931f.js => 8.213592ca.js} (100%) create mode 100644 docs/latest/assets/js/80.804afa63.js delete mode 100644 docs/latest/assets/js/80.a5cecfd5.js delete mode 100644 docs/latest/assets/js/81.0261566d.js create mode 100644 docs/latest/assets/js/81.3c4dfdab.js rename docs/latest/assets/js/{82.69931859.js => 82.9906a286.js} (86%) rename docs/latest/assets/js/{83.4d57cbe5.js => 83.1464037a.js} (58%) create mode 100644 docs/latest/assets/js/84.6c883a62.js delete mode 100644 docs/latest/assets/js/84.f8ea29f0.js rename docs/latest/assets/js/{85.9fd220c2.js => 85.ce19abc2.js} (86%) create mode 100644 docs/latest/assets/js/86.44f69d78.js delete mode 100644 docs/latest/assets/js/86.b80eae92.js rename docs/latest/assets/js/{87.a0d58cde.js => 87.3639bc16.js} (51%) create mode 100644 docs/latest/assets/js/88.14645b1d.js delete mode 100644 docs/latest/assets/js/88.6d6ec46f.js delete mode 100644 docs/latest/assets/js/89.c98683cb.js create mode 100644 docs/latest/assets/js/89.e2401403.js create mode 100644 docs/latest/assets/js/9.97a769a4.js delete mode 100644 docs/latest/assets/js/9.e5e73499.js create mode 100644 docs/latest/assets/js/90.93280334.js delete mode 100644 docs/latest/assets/js/90.ddd33458.js create mode 100644 docs/latest/assets/js/91.2a2bd3d2.js delete mode 100644 docs/latest/assets/js/91.5d8e0821.js create mode 100644 docs/latest/assets/js/92.1906a5fc.js delete mode 100644 docs/latest/assets/js/92.f0d6cb32.js rename docs/latest/assets/js/{93.f4fec444.js => 93.040a325e.js} (50%) delete mode 100644 docs/latest/assets/js/94.0f576cde.js create mode 100644 docs/latest/assets/js/94.e69ba595.js create mode 100644 docs/latest/assets/js/95.9d59b30f.js delete mode 100644 docs/latest/assets/js/95.a4aec8ca.js create mode 100644 docs/latest/assets/js/96.281b52d0.js delete mode 100644 docs/latest/assets/js/96.f66957a0.js create mode 100644 docs/latest/assets/js/97.5181339d.js delete mode 100644 docs/latest/assets/js/97.b0116fe9.js delete mode 100644 docs/latest/assets/js/98.0d8d1de7.js create mode 100644 docs/latest/assets/js/98.c10d3dd8.js rename docs/latest/assets/js/{99.f6a17e01.js => 99.43c1ef40.js} (84%) create mode 100644 docs/latest/assets/js/app.868dcc37.js delete mode 100644 docs/latest/assets/js/app.e57e8154.js diff --git a/docs/latest/404.html b/docs/latest/404.html index b3b1337289..71a6fe22f7 100644 --- a/docs/latest/404.html +++ b/docs/latest/404.html @@ -7,11 +7,11 @@ - +
- + diff --git a/docs/latest/api/classes/animation.html b/docs/latest/api/classes/animation.html index 4d4f0bbef1..db1590f2ec 100644 --- a/docs/latest/api/classes/animation.html +++ b/docs/latest/api/classes/animation.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Class: Animation

# Constructors

# constructor

+ new Animation(cfg: Record<string, unknown>, target: Record<string, unknown>, prop: string, to?: unknown): Animation

# Parameters:

Name Type
cfg Record<string, unknown>
target Record<string, unknown>
prop string
to? unknown

Returns: Animation

Defined in: animation.d.ts:4 (opens new window)

# Methods

# active

active(): boolean

Returns: boolean

Defined in: animation.d.ts:6 (opens new window)


# cancel

cancel(): void

Returns: void

Defined in: animation.d.ts:8 (opens new window)


# tick

tick(date: number): void

# Parameters:

Name Type
date number

Returns: void

Defined in: animation.d.ts:9 (opens new window)


# update

update(cfg: Record<string, unknown>, to: unknown, date: number): void

# Parameters:

Name Type
cfg Record<string, unknown>
to unknown
date number

Returns: void

Defined in: animation.d.ts:7 (opens new window)

- + diff --git a/docs/latest/api/classes/animations.html b/docs/latest/api/classes/animations.html index c0d529f0bc..16793ee9f6 100644 --- a/docs/latest/api/classes/animations.html +++ b/docs/latest/api/classes/animations.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Class: Animations

# Constructors

# constructor

+ new Animations(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, animations: Record<string, unknown>): Animations

# Parameters:

Name Type
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>
animations Record<string, unknown>

Returns: Animations

Defined in: animation.d.ts:28 (opens new window)

# Methods

# configure

configure(animations: Record<string, unknown>): void

# Parameters:

Name Type
animations Record<string, unknown>

Returns: void

Defined in: animation.d.ts:30 (opens new window)


# update

update(target: Record<string, unknown>, values: Record<string, unknown>): boolean

# Parameters:

Name Type
target Record<string, unknown>
values Record<string, unknown>

Returns: boolean

Defined in: animation.d.ts:31 (opens new window)

- + diff --git a/docs/latest/api/classes/animator.html b/docs/latest/api/classes/animator.html index 9c50a154ea..c35279a1a9 100644 --- a/docs/latest/api/classes/animator.html +++ b/docs/latest/api/classes/animator.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Class: Animator

# Constructors

# constructor

+ new Animator(): Animator

Returns: Animator

# Methods

# add

add(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, items: readonly Animation[]): void

# Parameters:

Name Type
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>
items readonly Animation[]

Returns: void

Defined in: animation.d.ts:20 (opens new window)


# has

has(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>): boolean

# Parameters:

Name Type
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns: boolean

Defined in: animation.d.ts:21 (opens new window)


# listen

listen(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, event: complete | progress, cb: (event: AnimationEvent) => void): void

# Parameters:

Name Type
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>
event complete | progress
cb (event: AnimationEvent) => void

Returns: void

Defined in: animation.d.ts:19 (opens new window)


# remove

remove(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>): boolean

# Parameters:

Name Type
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns: boolean

Defined in: animation.d.ts:25 (opens new window)


# running

running(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>): boolean

# Parameters:

Name Type
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns: boolean

Defined in: animation.d.ts:23 (opens new window)


# start

start(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>): void

# Parameters:

Name Type
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns: void

Defined in: animation.d.ts:22 (opens new window)


# stop

stop(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>): void

# Parameters:

Name Type
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns: void

Defined in: animation.d.ts:24 (opens new window)

- + diff --git a/docs/latest/api/classes/baseplatform.html b/docs/latest/api/classes/baseplatform.html index b82965b1c6..27230b63ee 100644 --- a/docs/latest/api/classes/baseplatform.html +++ b/docs/latest/api/classes/baseplatform.html @@ -7,7 +7,7 @@ - + @@ -40,8 +40,8 @@ (opens new window) GitHub (opens new window)

# Class: BasePlatform

# Hierarchy

# Constructors

# constructor

+ new BasePlatform(): BasePlatform

Returns: BasePlatform

# Methods

# acquireContext

acquireContext(canvas: HTMLCanvasElement, options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D

Called at chart construction time, returns a context2d instance implementing -the W3C Canvas 2D Context API standard (opens new window).

# Parameters:

Name Type Description
canvas HTMLCanvasElement The canvas from which to acquire context (platform specific)
options? CanvasRenderingContext2DSettings The chart options

Returns: CanvasRenderingContext2D

Defined in: index.esm.d.ts:1907 (opens new window)


# addEventListener

addEventListener(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, type: string, listener: (e: ChartEvent) => void): void

Registers the specified listener on the given chart.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> Chart from which to listen for event
type string The (ChartEvent) type to listen for
listener (e: ChartEvent) => void Receives a notification (an object that implements the ChartEvent interface) when an event of the specified type occurs.

Returns: void

Defined in: index.esm.d.ts:1925 (opens new window)


# getDevicePixelRatio

getDevicePixelRatio(): number

Returns: number

the current devicePixelRatio of the device this platform is connected to.

Defined in: index.esm.d.ts:1936 (opens new window)


# getMaximumSize

getMaximumSize(canvas: HTMLCanvasElement, width?: number, height?: number, aspectRatio?: number): object

# Parameters:

Name Type Description
canvas HTMLCanvasElement The canvas for which to calculate the maximum size
width? number -
height? number -
aspectRatio? number -

Returns: object

Name Type
height number
width number

the maximum size available.

Defined in: index.esm.d.ts:1944 (opens new window)


# isAttached

isAttached(canvas: HTMLCanvasElement): boolean

# Parameters:

Name Type
canvas HTMLCanvasElement

Returns: boolean

true if the canvas is attached to the platform, false if not.

Defined in: index.esm.d.ts:1949 (opens new window)


# releaseContext

releaseContext(context: CanvasRenderingContext2D): boolean

Called at chart destruction time, releases any resources associated to the context -previously returned by the acquireContext() method.

# Parameters:

Name Type Description
context CanvasRenderingContext2D The context2d instance

Returns: boolean

true if the method succeeded, else false

Defined in: index.esm.d.ts:1917 (opens new window)


# removeEventListener

removeEventListener(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, type: string, listener: (e: ChartEvent) => void): void

Removes the specified listener previously registered with addEventListener.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> Chart from which to remove the listener
type string The (ChartEvent) type to remove
listener (e: ChartEvent) => void The listener function to remove from the event target.

Returns: void

Defined in: index.esm.d.ts:1932 (opens new window)

- + diff --git a/docs/latest/api/classes/basicplatform.html b/docs/latest/api/classes/basicplatform.html index 166784dc10..ef752859cc 100644 --- a/docs/latest/api/classes/basicplatform.html +++ b/docs/latest/api/classes/basicplatform.html @@ -7,7 +7,7 @@ - + @@ -40,8 +40,8 @@ (opens new window) GitHub (opens new window)

# Class: BasicPlatform

# Hierarchy

# Constructors

# constructor

+ new BasicPlatform(): BasicPlatform

Returns: BasicPlatform

Inherited from: BasePlatform

# Methods

# acquireContext

acquireContext(canvas: HTMLCanvasElement, options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D

Called at chart construction time, returns a context2d instance implementing -the W3C Canvas 2D Context API standard (opens new window).

# Parameters:

Name Type Description
canvas HTMLCanvasElement The canvas from which to acquire context (platform specific)
options? CanvasRenderingContext2DSettings The chart options

Returns: CanvasRenderingContext2D

Inherited from: BasePlatform

Defined in: index.esm.d.ts:1907 (opens new window)


# addEventListener

addEventListener(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, type: string, listener: (e: ChartEvent) => void): void

Registers the specified listener on the given chart.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> Chart from which to listen for event
type string The (ChartEvent) type to listen for
listener (e: ChartEvent) => void Receives a notification (an object that implements the ChartEvent interface) when an event of the specified type occurs.

Returns: void

Inherited from: BasePlatform

Defined in: index.esm.d.ts:1925 (opens new window)


# getDevicePixelRatio

getDevicePixelRatio(): number

Returns: number

the current devicePixelRatio of the device this platform is connected to.

Inherited from: BasePlatform

Defined in: index.esm.d.ts:1936 (opens new window)


# getMaximumSize

getMaximumSize(canvas: HTMLCanvasElement, width?: number, height?: number, aspectRatio?: number): object

# Parameters:

Name Type Description
canvas HTMLCanvasElement The canvas for which to calculate the maximum size
width? number -
height? number -
aspectRatio? number -

Returns: object

Name Type
height number
width number

the maximum size available.

Inherited from: BasePlatform

Defined in: index.esm.d.ts:1944 (opens new window)


# isAttached

isAttached(canvas: HTMLCanvasElement): boolean

# Parameters:

Name Type
canvas HTMLCanvasElement

Returns: boolean

true if the canvas is attached to the platform, false if not.

Inherited from: BasePlatform

Defined in: index.esm.d.ts:1949 (opens new window)


# releaseContext

releaseContext(context: CanvasRenderingContext2D): boolean

Called at chart destruction time, releases any resources associated to the context -previously returned by the acquireContext() method.

# Parameters:

Name Type Description
context CanvasRenderingContext2D The context2d instance

Returns: boolean

true if the method succeeded, else false

Inherited from: BasePlatform

Defined in: index.esm.d.ts:1917 (opens new window)


# removeEventListener

removeEventListener(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, type: string, listener: (e: ChartEvent) => void): void

Removes the specified listener previously registered with addEventListener.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> Chart from which to remove the listener
type string The (ChartEvent) type to remove
listener (e: ChartEvent) => void The listener function to remove from the event target.

Returns: void

Inherited from: BasePlatform

Defined in: index.esm.d.ts:1932 (opens new window)

- + diff --git a/docs/latest/api/classes/chart.html b/docs/latest/api/classes/chart.html index 4c695cbdf6..64306d7df7 100644 --- a/docs/latest/api/classes/chart.html +++ b/docs/latest/api/classes/chart.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Class: Chart<TType, TData, TLabel>

# Type parameters

Name Type Default
TType ChartType ChartType
TData - TType[]
TLabel - unknown

# Constructors

# constructor

+ new Chart<TType, TData, TLabel>(item: ChartItem, config: ChartConfiguration<TType, TData, TLabel>): Chart<TType, TData, TLabel>

# Type parameters:

Name Type Default
TType bar | line | scatter | bubble | pie | doughnut | polarArea | radar bar | line | scatter | bubble | pie | doughnut | polarArea | radar
TData - ChartTypeRegistry[TType][defaultDataPoint][]
TLabel - unknown

# Parameters:

Name Type
item ChartItem
config ChartConfiguration<TType, TData, TLabel>

Returns: Chart<TType, TData, TLabel>

Defined in: index.esm.d.ts:455 (opens new window)

# Properties

# aspectRatio

Readonly aspectRatio: number

Defined in: index.esm.d.ts:447 (opens new window)


# attached

Readonly attached: boolean

Defined in: index.esm.d.ts:452 (opens new window)


# boxes

Readonly boxes: LayoutItem[]

Defined in: index.esm.d.ts:448 (opens new window)


# canvas

Readonly canvas: HTMLCanvasElement

Defined in: index.esm.d.ts:442 (opens new window)


# chartArea

Readonly chartArea: ChartArea

Defined in: index.esm.d.ts:450 (opens new window)


# config

Readonly config: ChartConfiguration<TType, TData, TLabel>

Defined in: index.esm.d.ts:444 (opens new window)


# ctx

Readonly ctx: CanvasRenderingContext2D

Defined in: index.esm.d.ts:443 (opens new window)


# currentDevicePixelRatio

Readonly currentDevicePixelRatio: number

Defined in: index.esm.d.ts:449 (opens new window)


# data

data: ChartData<TType, TData, TLabel>

Defined in: index.esm.d.ts:454 (opens new window)


# height

Readonly height: number

Defined in: index.esm.d.ts:446 (opens new window)


# id

Readonly id: string

Defined in: index.esm.d.ts:441 (opens new window)


# options

options: DeepPartial<CoreChartOptions<TType> & ElementChartOptions & PluginChartOptions<TType> & DatasetChartOptions<TType> & ScaleChartOptions<TType> & ChartTypeRegistry[TType][chartOptions]>

Defined in: index.esm.d.ts:455 (opens new window)


# platform

Readonly platform: BasePlatform

Defined in: index.esm.d.ts:440 (opens new window)


# scales

Readonly scales: object

# Type declaration:

Defined in: index.esm.d.ts:451 (opens new window)


# width

Readonly width: number

Defined in: index.esm.d.ts:445 (opens new window)


# defaults

Static Readonly defaults: Defaults

Defined in: index.esm.d.ts:494 (opens new window)


# instances

Static Readonly instances: object

# Type declaration:

Defined in: index.esm.d.ts:497 (opens new window)


# overrides

Static Readonly overrides: Overrides

Defined in: index.esm.d.ts:495 (opens new window)


# registry

Static Readonly registry: Registry

Defined in: index.esm.d.ts:498 (opens new window)


# version

Static Readonly version: string

Defined in: index.esm.d.ts:496 (opens new window)

# Methods

# bindEvents

bindEvents(): void

Returns: void

Defined in: index.esm.d.ts:488 (opens new window)


# buildOrUpdateControllers

buildOrUpdateControllers(): void

Returns: void

Defined in: index.esm.d.ts:465 (opens new window)


# buildOrUpdateScales

buildOrUpdateScales(): void

Returns: void

Defined in: index.esm.d.ts:464 (opens new window)


# clear

clear(): Chart<TType, TData, TLabel>

Returns: Chart<TType, TData, TLabel>

Defined in: index.esm.d.ts:459 (opens new window)


# destroy

destroy(): void

Returns: void

Defined in: index.esm.d.ts:486 (opens new window)


# draw

draw(): void

Returns: void

Defined in: index.esm.d.ts:469 (opens new window)


# ensureScalesHaveIDs

ensureScalesHaveIDs(): void

Returns: void

Defined in: index.esm.d.ts:463 (opens new window)


# getActiveElements

getActiveElements(): ActiveElement[]

Returns: ActiveElement[]

Defined in: index.esm.d.ts:483 (opens new window)


# getDataVisibility

getDataVisibility(index: number): boolean

# Parameters:

Name Type
index number

Returns: boolean

Defined in: index.esm.d.ts:479 (opens new window)


# getDatasetMeta

getDatasetMeta(datasetIndex: number): ChartMeta<Element<{}, {}>, Element<{}, {}>>

# Parameters:

Name Type
datasetIndex number

Returns: ChartMeta<Element<{}, {}>, Element<{}, {}>>

Defined in: index.esm.d.ts:474 (opens new window)


# getElementsAtEventForMode

getElementsAtEventForMode(e: Event, mode: string, options: InteractionOptions, useFinalPosition: boolean): InteractionItem[]

# Parameters:

Name Type
e Event
mode string
options InteractionOptions
useFinalPosition boolean

Returns: InteractionItem[]

Defined in: index.esm.d.ts:471 (opens new window)


# getSortedVisibleDatasetMetas

getSortedVisibleDatasetMetas(): ChartMeta<Element<{}, {}>, Element<{}, {}>>[]

Returns: ChartMeta<Element<{}, {}>, Element<{}, {}>>[]

Defined in: index.esm.d.ts:473 (opens new window)


# getVisibleDatasetCount

getVisibleDatasetCount(): number

Returns: number

Defined in: index.esm.d.ts:475 (opens new window)


# hide

hide(datasetIndex: number): void

# Parameters:

Name Type
datasetIndex number

Returns: void

Defined in: index.esm.d.ts:480 (opens new window)


# isDatasetVisible

isDatasetVisible(datasetIndex: number): boolean

# Parameters:

Name Type
datasetIndex number

Returns: boolean

Defined in: index.esm.d.ts:476 (opens new window)


# notifyPlugins

notifyPlugins(hook: string, args?: Record<string, unknown>): boolean | void

# Parameters:

Name Type
hook string
args? Record<string, unknown>

Returns: boolean | void

Defined in: index.esm.d.ts:492 (opens new window)


# render

render(): void

Returns: void

Defined in: index.esm.d.ts:468 (opens new window)


# reset

reset(): void

Returns: void

Defined in: index.esm.d.ts:466 (opens new window)


# resize

resize(width?: number, height?: number): void

# Parameters:

Name Type
width? number
height? number

Returns: void

Defined in: index.esm.d.ts:462 (opens new window)


# setActiveElements

setActiveElements(active: ActiveDataPoint[]): void

# Parameters:

Name Type
active ActiveDataPoint[]

Returns: void

Defined in: index.esm.d.ts:484 (opens new window)


# setDatasetVisibility

setDatasetVisibility(datasetIndex: number, visible: boolean): void

# Parameters:

Name Type
datasetIndex number
visible boolean

Returns: void

Defined in: index.esm.d.ts:477 (opens new window)


# show

show(datasetIndex: number): void

# Parameters:

Name Type
datasetIndex number

Returns: void

Defined in: index.esm.d.ts:481 (opens new window)


# stop

stop(): Chart<TType, TData, TLabel>

Returns: Chart<TType, TData, TLabel>

Defined in: index.esm.d.ts:460 (opens new window)


# toBase64Image

toBase64Image(type?: string, quality?: unknown): string

# Parameters:

Name Type
type? string
quality? unknown

Returns: string

Defined in: index.esm.d.ts:487 (opens new window)


# toggleDataVisibility

toggleDataVisibility(index: number): void

# Parameters:

Name Type
index number

Returns: void

Defined in: index.esm.d.ts:478 (opens new window)


# unbindEvents

unbindEvents(): void

Returns: void

Defined in: index.esm.d.ts:489 (opens new window)


# update

update(mode?: resize | reset | none | hide | show | normal | active): void

# Parameters:

Name Type
mode? resize | reset | none | hide | show | normal | active

Returns: void

Defined in: index.esm.d.ts:467 (opens new window)


# updateHoverStyle

updateHoverStyle(items: Element<{}, {}>, mode: dataset, enabled: boolean): void

# Parameters:

Name Type
items Element<{}, {}>
mode dataset
enabled boolean

Returns: void

Defined in: index.esm.d.ts:490 (opens new window)


# getChart

StaticgetChart(key: string | HTMLCanvasElement | CanvasRenderingContext2D): Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

# Parameters:

Name Type
key string | HTMLCanvasElement | CanvasRenderingContext2D

Returns: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Defined in: index.esm.d.ts:499 (opens new window)


# register

Staticregister(...items: ChartComponentLike[]): void

# Parameters:

Name Type
...items ChartComponentLike[]

Returns: void

Defined in: index.esm.d.ts:500 (opens new window)


# unregister

Staticunregister(...items: ChartComponentLike[]): void

# Parameters:

Name Type
...items ChartComponentLike[]

Returns: void

Defined in: index.esm.d.ts:501 (opens new window)

- + diff --git a/docs/latest/api/classes/datasetcontroller.html b/docs/latest/api/classes/datasetcontroller.html index 34eb0d5eaf..b1826c82d6 100644 --- a/docs/latest/api/classes/datasetcontroller.html +++ b/docs/latest/api/classes/datasetcontroller.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Class: DatasetController<TType, TElement, TDatasetElement, TParsedData>

# Type parameters

Name Type Default
TType ChartType ChartType
TElement Element Element
TDatasetElement Element Element
TParsedData - ParsedDataType<TType>

# Hierarchy

# Constructors

# constructor

+ new DatasetController<TType, TElement, TDatasetElement, TParsedData>(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, datasetIndex: number): DatasetController<TType, TElement, TDatasetElement, TParsedData>

# Type parameters:

Name Type Default
TType bar | line | scatter | bubble | pie | doughnut | polarArea | radar bar | line | scatter | bubble | pie | doughnut | polarArea | radar
TElement Element<{}, {}, TElement> Element<{}, {}>
TDatasetElement Element<{}, {}, TDatasetElement> Element<{}, {}>
TParsedData - ParsedDataType<TType>

# Parameters:

Name Type
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>
datasetIndex number

Returns: DatasetController<TType, TElement, TDatasetElement, TParsedData>

Defined in: index.esm.d.ts:532 (opens new window)

# Properties

# _cachedMeta

Readonly _cachedMeta: ChartMeta<TElement, TDatasetElement>

Defined in: index.esm.d.ts:537 (opens new window)


# chart

Readonly chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Defined in: index.esm.d.ts:535 (opens new window)


# enableOptionSharing

enableOptionSharing: boolean

Defined in: index.esm.d.ts:538 (opens new window)


# index

Readonly index: number

Defined in: index.esm.d.ts:536 (opens new window)

# Methods

# addElements

addElements(): void

Returns: void

Defined in: index.esm.d.ts:554 (opens new window)


# applyStack

ProtectedapplyStack(scale: Scale<CoreScaleOptions>, parsed: unknown[]): number

# Parameters:

Name Type
scale Scale<CoreScaleOptions>
parsed unknown[]

Returns: number

Defined in: index.esm.d.ts:590 (opens new window)


# buildOrUpdateElements

buildOrUpdateElements(resetNewElements?: boolean): void

# Parameters:

Name Type
resetNewElements? boolean

Returns: void

Defined in: index.esm.d.ts:555 (opens new window)


# configure

configure(): void

Returns: void

Defined in: index.esm.d.ts:552 (opens new window)


# draw

draw(): void

Returns: void

Defined in: index.esm.d.ts:547 (opens new window)


# getAllParsedValues

getAllParsedValues(scale: Scale<CoreScaleOptions>): number[]

# Parameters:

Name Type
scale Scale<CoreScaleOptions>

Returns: number[]

Defined in: index.esm.d.ts:541 (opens new window)


# getDataset

getDataset(): ChartDataset<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[]>

Returns: ChartDataset<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[]>

Defined in: index.esm.d.ts:549 (opens new window)


# getLabelAndValue

ProtectedgetLabelAndValue(index: number): object

# Parameters:

Name Type
index number

Returns: object

Name Type
label string
value string

Defined in: index.esm.d.ts:542 (opens new window)


# getMaxOverflow

ProtectedgetMaxOverflow(): number | boolean

Returns: number | boolean

Defined in: index.esm.d.ts:546 (opens new window)


# getMeta

getMeta(): ChartMeta<TElement, TDatasetElement>

Returns: ChartMeta<TElement, TDatasetElement>

Defined in: index.esm.d.ts:550 (opens new window)


# getMinMax

ProtectedgetMinMax(scale: Scale<CoreScaleOptions>, canStack?: boolean): object

# Parameters:

Name Type
scale Scale<CoreScaleOptions>
canStack? boolean

Returns: object

Name Type
max number
min number

Defined in: index.esm.d.ts:597 (opens new window)


# getParsed

ProtectedgetParsed(index: number): TParsedData

# Parameters:

Name Type
index number

Returns: TParsedData

Defined in: index.esm.d.ts:589 (opens new window)


# getScaleForId

getScaleForId(scaleID: string): Scale<CoreScaleOptions>

# Parameters:

Name Type
scaleID string

Returns: Scale<CoreScaleOptions>

Defined in: index.esm.d.ts:551 (opens new window)


# getSharedOptions

ProtectedgetSharedOptions(options: Record<string, unknown>): Record<string, unknown>

Utility for checking if the options are shared and should be animated separately.

# Parameters:

Name Type
options Record<string, unknown>

Returns: Record<string, unknown>

Defined in: index.esm.d.ts:564 (opens new window)


# getStyle

getStyle(index: number, active: boolean): Record<string, unknown>

# Parameters:

Name Type
index number
active boolean

Returns: Record<string, unknown>

Defined in: index.esm.d.ts:557 (opens new window)


# includeOptions

ProtectedincludeOptions(mode: resize | reset | none | hide | show | normal | active, sharedOptions: Record<string, unknown>): boolean

Utility for determining if options should be included in the updated properties

# Parameters:

Name Type
mode resize | reset | none | hide | show | normal | active
sharedOptions Record<string, unknown>

Returns: boolean

Defined in: index.esm.d.ts:569 (opens new window)


# initialize

initialize(): void

Returns: void

Defined in: index.esm.d.ts:553 (opens new window)


# linkScales

linkScales(): void

Returns: void

Defined in: index.esm.d.ts:540 (opens new window)


# parse

parse(start: number, count: number): void

# Parameters:

Name Type
start number
count number

Returns: void

Defined in: index.esm.d.ts:585 (opens new window)


# parseArrayData

ProtectedparseArrayData(meta: ChartMeta<TElement, TDatasetElement>, data: Record<string, unknown>[], start: number, count: number): Record<string, unknown>[]

# Parameters:

Name Type
meta ChartMeta<TElement, TDatasetElement>
data Record<string, unknown>[]
start number
count number

Returns: Record<string, unknown>[]

Defined in: index.esm.d.ts:587 (opens new window)


# parseObjectData

ProtectedparseObjectData(meta: ChartMeta<TElement, TDatasetElement>, data: Record<string, unknown>[], start: number, count: number): Record<string, unknown>[]

# Parameters:

Name Type
meta ChartMeta<TElement, TDatasetElement>
data Record<string, unknown>[]
start number
count number

Returns: Record<string, unknown>[]

Defined in: index.esm.d.ts:588 (opens new window)


# parsePrimitiveData

ProtectedparsePrimitiveData(meta: ChartMeta<TElement, TDatasetElement>, data: Record<string, unknown>[], start: number, count: number): Record<string, unknown>[]

# Parameters:

Name Type
meta ChartMeta<TElement, TDatasetElement>
data Record<string, unknown>[]
start number
count number

Returns: Record<string, unknown>[]

Defined in: index.esm.d.ts:586 (opens new window)


# removeHoverStyle

removeHoverStyle(element: TElement, datasetIndex: number, index: number): void

# Parameters:

Name Type
element TElement
datasetIndex number
index number

Returns: void

Defined in: index.esm.d.ts:582 (opens new window)


# reset

reset(): void

Returns: void

Defined in: index.esm.d.ts:548 (opens new window)


# resolveDataElementOptions

ProtectedresolveDataElementOptions(index: number, mode: resize | reset | none | hide | show | normal | active): Record<string, unknown>

# Parameters:

Name Type
index number
mode resize | reset | none | hide | show | normal | active

Returns: Record<string, unknown>

Defined in: index.esm.d.ts:559 (opens new window)


# resolveDatasetElementOptions

ProtectedresolveDatasetElementOptions(mode: resize | reset | none | hide | show | normal | active): Record<string, unknown>

# Parameters:

Name Type
mode resize | reset | none | hide | show | normal | active

Returns: Record<string, unknown>

Defined in: index.esm.d.ts:558 (opens new window)


# setHoverStyle

setHoverStyle(element: TElement, datasetIndex: number, index: number): void

# Parameters:

Name Type
element TElement
datasetIndex number
index number

Returns: void

Defined in: index.esm.d.ts:583 (opens new window)


# update

update(mode: resize | reset | none | hide | show | normal | active): void

# Parameters:

Name Type
mode resize | reset | none | hide | show | normal | active

Returns: void

Defined in: index.esm.d.ts:544 (opens new window)


# updateElement

ProtectedupdateElement(element: TElement | TDatasetElement, index: number, properties: Record<string, unknown>, mode: resize | reset | none | hide | show | normal | active): void

Utility for updating an element with new properties, using animations when appropriate.

# Parameters:

Name Type
element TElement | TDatasetElement
index number
properties Record<string, unknown>
mode resize | reset | none | hide | show | normal | active

Returns: void

Defined in: index.esm.d.ts:575 (opens new window)


# updateElements

updateElements(elements: TElement[], start: number, count: number, mode: resize | reset | none | hide | show | normal | active): void

# Parameters:

Name Type
elements TElement[]
start number
count number
mode resize | reset | none | hide | show | normal | active

Returns: void

Defined in: index.esm.d.ts:543 (opens new window)


# updateIndex

updateIndex(datasetIndex: number): void

# Parameters:

Name Type
datasetIndex number

Returns: void

Defined in: index.esm.d.ts:545 (opens new window)


# updateRangeFromParsed

ProtectedupdateRangeFromParsed(range: { max: number ; min: number }, scale: Scale<CoreScaleOptions>, parsed: unknown[], stack: string | boolean): void

# Parameters:

Name Type
range object
range.max number
range.min number
scale Scale<CoreScaleOptions>
parsed unknown[]
stack string | boolean

Returns: void

Defined in: index.esm.d.ts:591 (opens new window)


# updateSharedOptions

ProtectedupdateSharedOptions(sharedOptions: Record<string, unknown>, mode: resize | reset | none | hide | show | normal | active, newOptions: Record<string, unknown>): void

Utility to animate the shared options, that are potentially affecting multiple elements.

# Parameters:

Name Type
sharedOptions Record<string, unknown>
mode resize | reset | none | hide | show | normal | active
newOptions Record<string, unknown>

Returns: void

Defined in: index.esm.d.ts:581 (opens new window)

- + diff --git a/docs/latest/api/classes/domplatform.html b/docs/latest/api/classes/domplatform.html index 8473693c29..d617710aea 100644 --- a/docs/latest/api/classes/domplatform.html +++ b/docs/latest/api/classes/domplatform.html @@ -7,7 +7,7 @@ - + @@ -40,8 +40,8 @@ (opens new window) GitHub (opens new window)

# Class: DomPlatform

# Hierarchy

# Constructors

# constructor

+ new DomPlatform(): DomPlatform

Returns: DomPlatform

Inherited from: BasePlatform

# Methods

# acquireContext

acquireContext(canvas: HTMLCanvasElement, options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D

Called at chart construction time, returns a context2d instance implementing -the W3C Canvas 2D Context API standard (opens new window).

# Parameters:

Name Type Description
canvas HTMLCanvasElement The canvas from which to acquire context (platform specific)
options? CanvasRenderingContext2DSettings The chart options

Returns: CanvasRenderingContext2D

Inherited from: BasePlatform

Defined in: index.esm.d.ts:1907 (opens new window)


# addEventListener

addEventListener(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, type: string, listener: (e: ChartEvent) => void): void

Registers the specified listener on the given chart.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> Chart from which to listen for event
type string The (ChartEvent) type to listen for
listener (e: ChartEvent) => void Receives a notification (an object that implements the ChartEvent interface) when an event of the specified type occurs.

Returns: void

Inherited from: BasePlatform

Defined in: index.esm.d.ts:1925 (opens new window)


# getDevicePixelRatio

getDevicePixelRatio(): number

Returns: number

the current devicePixelRatio of the device this platform is connected to.

Inherited from: BasePlatform

Defined in: index.esm.d.ts:1936 (opens new window)


# getMaximumSize

getMaximumSize(canvas: HTMLCanvasElement, width?: number, height?: number, aspectRatio?: number): object

# Parameters:

Name Type Description
canvas HTMLCanvasElement The canvas for which to calculate the maximum size
width? number -
height? number -
aspectRatio? number -

Returns: object

Name Type
height number
width number

the maximum size available.

Inherited from: BasePlatform

Defined in: index.esm.d.ts:1944 (opens new window)


# isAttached

isAttached(canvas: HTMLCanvasElement): boolean

# Parameters:

Name Type
canvas HTMLCanvasElement

Returns: boolean

true if the canvas is attached to the platform, false if not.

Inherited from: BasePlatform

Defined in: index.esm.d.ts:1949 (opens new window)


# releaseContext

releaseContext(context: CanvasRenderingContext2D): boolean

Called at chart destruction time, releases any resources associated to the context -previously returned by the acquireContext() method.

# Parameters:

Name Type Description
context CanvasRenderingContext2D The context2d instance

Returns: boolean

true if the method succeeded, else false

Inherited from: BasePlatform

Defined in: index.esm.d.ts:1917 (opens new window)


# removeEventListener

removeEventListener(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, type: string, listener: (e: ChartEvent) => void): void

Removes the specified listener previously registered with addEventListener.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> Chart from which to remove the listener
type string The (ChartEvent) type to remove
listener (e: ChartEvent) => void The listener function to remove from the event target.

Returns: void

Inherited from: BasePlatform

Defined in: index.esm.d.ts:1932 (opens new window)

- + diff --git a/docs/latest/api/classes/scale.html b/docs/latest/api/classes/scale.html index c55be833f4..93fd4a50fb 100644 --- a/docs/latest/api/classes/scale.html +++ b/docs/latest/api/classes/scale.html @@ -7,7 +7,7 @@ - + @@ -39,12 +39,12 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Class: Scale<O>

# Type parameters

Name Type Default
O CoreScaleOptions CoreScaleOptions

# Hierarchy

# Constructors

# constructor

+ new Scale<O>(cfg: { chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> ; ctx: CanvasRenderingContext2D ; id: string ; type: string }): Scale<O>

# Type parameters:

Name Type Default
O CoreScaleOptions CoreScaleOptions

# Parameters:

Name Type
cfg object
cfg.chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>
cfg.ctx CanvasRenderingContext2D
cfg.id string
cfg.type string

Returns: Scale<O>

Inherited from: Element<{}, O>.constructor

Defined in: index.esm.d.ts:1257 (opens new window)

# Properties

# active

Readonly active: boolean

Inherited from: Element.active

Defined in: element.d.ts:6 (opens new window)


# axis

axis: string

Defined in: index.esm.d.ts:1160 (opens new window)


# bottom

bottom: number

Bottom edge of the item. Set by layout system and cannot be used in update

Inherited from: LayoutItem.bottom

Defined in: layout.d.ts:41 (opens new window)


# chart

Readonly chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Defined in: index.esm.d.ts:1150 (opens new window)


# ctx

Readonly ctx: CanvasRenderingContext2D

Defined in: index.esm.d.ts:1149 (opens new window)


# fullSize

fullSize: boolean

if true, and the item is horizontal, then push vertical boxes down

Inherited from: LayoutItem.fullSize

Defined in: layout.d.ts:17 (opens new window)


# height

height: number

Height of item. Must be valid after update()

Inherited from: LayoutItem.height

Defined in: layout.d.ts:25 (opens new window)


# id

Readonly id: string

Defined in: index.esm.d.ts:1147 (opens new window)


# labelRotation

labelRotation: number

Defined in: index.esm.d.ts:1161 (opens new window)


# left

left: number

Left edge of the item. Set by layout system and cannot be used in update

Inherited from: LayoutItem.left

Defined in: layout.d.ts:29 (opens new window)


# max

max: number

Defined in: index.esm.d.ts:1163 (opens new window)


# maxHeight

maxHeight: number

Defined in: index.esm.d.ts:1153 (opens new window)


# maxWidth

maxWidth: number

Defined in: index.esm.d.ts:1152 (opens new window)


# min

min: number

Defined in: index.esm.d.ts:1162 (opens new window)


# options

Readonly options: O

Inherited from: Element.options

Defined in: element.d.ts:7 (opens new window)


# paddingBottom

paddingBottom: number

Defined in: index.esm.d.ts:1156 (opens new window)


# paddingLeft

paddingLeft: number

Defined in: index.esm.d.ts:1157 (opens new window)


# paddingRight

paddingRight: number

Defined in: index.esm.d.ts:1158 (opens new window)


# paddingTop

paddingTop: number

Defined in: index.esm.d.ts:1155 (opens new window)


# position

position: LayoutPosition

The position of the item in the chart layout. Possible values are

Inherited from: LayoutItem.position

Defined in: layout.d.ts:9 (opens new window)


right: number

Right edge of the item. Set by layout system and cannot be used in update

Inherited from: LayoutItem.right

Defined in: layout.d.ts:37 (opens new window)


# ticks

ticks: Tick[]

Defined in: index.esm.d.ts:1164 (opens new window)


# top

top: number

Top edge of the item. Set by layout system and cannot be used in update

Inherited from: LayoutItem.top

Defined in: layout.d.ts:33 (opens new window)


# type

Readonly type: string

Defined in: index.esm.d.ts:1148 (opens new window)


# weight

weight: number

The weight used to sort the item. Higher weights are further away from the chart area

Inherited from: LayoutItem.weight

Defined in: layout.d.ts:13 (opens new window)


# width

width: number

Width of item. Must be valid after update()

Inherited from: LayoutItem.width

Defined in: layout.d.ts:21 (opens new window)


# x

Readonly x: number

Inherited from: Element.x

Defined in: element.d.ts:4 (opens new window)


# y

Readonly y: number

Inherited from: Element.y

Defined in: element.d.ts:5 (opens new window)

# Methods

# afterBuildTicks

afterBuildTicks(): void

Returns: void

Defined in: index.esm.d.ts:1244 (opens new window)


# afterCalculateLabelRotation

afterCalculateLabelRotation(): void

Returns: void

Defined in: index.esm.d.ts:1250 (opens new window)


# afterDataLimits

afterDataLimits(): void

Returns: void

Defined in: index.esm.d.ts:1241 (opens new window)


# afterFit

afterFit(): void

Returns: void

Defined in: index.esm.d.ts:1253 (opens new window)


# afterSetDimensions

afterSetDimensions(): void

Returns: void

Defined in: index.esm.d.ts:1238 (opens new window)


# afterTickToLabelConversion

afterTickToLabelConversion(): void

Returns: void

Defined in: index.esm.d.ts:1247 (opens new window)


# afterUpdate

afterUpdate(): void

Returns: void

Defined in: index.esm.d.ts:1235 (opens new window)


# beforeBuildTicks

beforeBuildTicks(): void

Returns: void

Defined in: index.esm.d.ts:1242 (opens new window)


# beforeCalculateLabelRotation

beforeCalculateLabelRotation(): void

Returns: void

Defined in: index.esm.d.ts:1248 (opens new window)


# beforeDataLimits

beforeDataLimits(): void

Returns: void

Defined in: index.esm.d.ts:1239 (opens new window)


# beforeFit

beforeFit(): void

Returns: void

Defined in: index.esm.d.ts:1251 (opens new window)


# beforeLayout

OptionalbeforeLayout(): void

Called before the layout process starts

Returns: void

Inherited from: LayoutItem

Defined in: layout.d.ts:46 (opens new window)


# beforeSetDimensions

beforeSetDimensions(): void

Returns: void

Defined in: index.esm.d.ts:1236 (opens new window)


# beforeTickToLabelConversion

beforeTickToLabelConversion(): void

Returns: void

Defined in: index.esm.d.ts:1245 (opens new window)


# beforeUpdate

beforeUpdate(): void

Returns: void

Defined in: index.esm.d.ts:1233 (opens new window)


# buildTicks

buildTicks(): Tick[]

Returns: Tick[]

Defined in: index.esm.d.ts:1243 (opens new window)


# calculateLabelRotation

calculateLabelRotation(): void

Returns: void

Defined in: index.esm.d.ts:1249 (opens new window)


# configure

configure(): void

Returns: void

Defined in: index.esm.d.ts:1234 (opens new window)


# determineDataLimits

determineDataLimits(): void

Returns: void

Defined in: index.esm.d.ts:1240 (opens new window)


# draw

draw(chartArea: ChartArea): void

Draws the element

# Parameters:

Name Type
chartArea ChartArea

Returns: void

Inherited from: LayoutItem

Defined in: layout.d.ts:50 (opens new window)


# drawGrid

drawGrid(chartArea: ChartArea): void

# Parameters:

Name Type
chartArea ChartArea

Returns: void

Defined in: index.esm.d.ts:1169 (opens new window)


# drawLabels

drawLabels(chartArea: ChartArea): void

# Parameters:

Name Type
chartArea ChartArea

Returns: void

Defined in: index.esm.d.ts:1168 (opens new window)


# drawTitle

drawTitle(chartArea: ChartArea): void

# Parameters:

Name Type
chartArea ChartArea

Returns: void

Defined in: index.esm.d.ts:1167 (opens new window)


# fit

fit(): void

Returns: void

Defined in: index.esm.d.ts:1252 (opens new window)


# generateTickLabels

generateTickLabels(ticks: Tick[]): void

# Parameters:

Name Type
ticks Tick[]

Returns: void

Defined in: index.esm.d.ts:1246 (opens new window)


# getBasePixel

getBasePixel(): number

Returns the pixel for the minimum chart value -The coordinate (0, 0) is at the upper-left corner of the canvas

Returns: number

Defined in: index.esm.d.ts:1225 (opens new window)


# getBaseValue

getBaseValue(): number

Returns: number

Defined in: index.esm.d.ts:1219 (opens new window)


# getDecimalForPixel

getDecimalForPixel(pixel: number): number

# Parameters:

Name Type
pixel number

Returns: number

Defined in: index.esm.d.ts:1175 (opens new window)


# getLabelForValue

getLabelForValue(value: number): string

Used to get the label to display in the tooltip for the given value

# Parameters:

Name Type
value number

Returns: string

Defined in: index.esm.d.ts:1195 (opens new window)


# getLabels

getLabels(): string[]

Returns: string[]

Defined in: index.esm.d.ts:1232 (opens new window)


# getLineWidthForValue

getLineWidthForValue(value: number): number

Returns the grid line width at given value

# Parameters:

Name Type
value number

Returns: number

Defined in: index.esm.d.ts:1200 (opens new window)


# getMatchingVisibleMetas

getMatchingVisibleMetas(type?: string): ChartMeta<Element<{}, {}>, Element<{}, {}>>[]

# Parameters:

Name Type
type? string

Returns: ChartMeta<Element<{}, {}>, Element<{}, {}>>[]

Defined in: index.esm.d.ts:1165 (opens new window)


# getMinMax

getMinMax(canStack: boolean): object

# Parameters:

Name Type
canStack boolean

Returns: object

Name Type
max number
min number

Defined in: index.esm.d.ts:1230 (opens new window)


# getPadding

OptionalgetPadding(): ChartArea

Returns an object with padding on the edges

Returns: ChartArea

Inherited from: LayoutItem

Defined in: layout.d.ts:54 (opens new window)


# getPixelForDecimal

getPixelForDecimal(decimal: number): number

Utility for getting the pixel location of a percentage of scale -The coordinate (0, 0) is at the upper-left corner of the canvas

# Parameters:

Name Type
decimal number

Returns: number

Defined in: index.esm.d.ts:1182 (opens new window)


# getPixelForTick

getPixelForTick(index: number): number

Returns the location of the tick at the given index -The coordinate (0, 0) is at the upper-left corner of the canvas

# Parameters:

Name Type
index number

Returns: number

Defined in: index.esm.d.ts:1189 (opens new window)


# getPixelForValue

getPixelForValue(value: number, index: number): number

Returns the location of the given data point. Value can either be an index or a numerical value -The coordinate (0, 0) is at the upper-left corner of the canvas

# Parameters:

Name Type
value number
index number

Returns: number

Defined in: index.esm.d.ts:1209 (opens new window)


# getProps

getProps<P>(props: [P], final?: boolean): Pick<{}, P>

# Type parameters:

Name Type
P never

# Parameters:

Name Type
props [P]
final? boolean

Returns: Pick<{}, P>

Inherited from: Element.getProps

Defined in: element.d.ts:11 (opens new window)

getProps<P, P2>(props: [P, P2], final?: boolean): Pick<{}, P | P2>

# Type parameters:

Name Type
P never
P2 never

# Parameters:

Name Type
props [P, P2]
final? boolean

Returns: Pick<{}, P | P2>

Inherited from: Element.getProps

Defined in: element.d.ts:12 (opens new window)

getProps<P, P2, P3>(props: [P, P2, P3], final?: boolean): Pick<{}, P | P2 | P3>

# Type parameters:

Name Type
P never
P2 never
P3 never

# Parameters:

Name Type
props [P, P2, P3]
final? boolean

Returns: Pick<{}, P | P2 | P3>

Inherited from: Element.getProps

Defined in: element.d.ts:13 (opens new window)

getProps<P, P2, P3, P4>(props: [P, P2, P3, P4], final?: boolean): Pick<{}, P | P2 | P3 | P4>

# Type parameters:

Name Type
P never
P2 never
P3 never
P4 never

# Parameters:

Name Type
props [P, P2, P3, P4]
final? boolean

Returns: Pick<{}, P | P2 | P3 | P4>

Inherited from: Element.getProps

Defined in: element.d.ts:17 (opens new window)

getProps<P, P2, P3, P4, P5>(props: [P, P2, P3, P4, P5], final?: boolean): Pick<{}, P | P2 | P3 | P4 | P5>

# Type parameters:

Name Type
P never
P2 never
P3 never
P4 never
P5 never

# Parameters:

Name Type
props [P, P2, P3, P4, P5]
final? boolean

Returns: Pick<{}, P | P2 | P3 | P4 | P5>

Inherited from: Element.getProps

Defined in: element.d.ts:21 (opens new window)

getProps(props: never[], final?: boolean): object

# Parameters:

Name Type
props never[]
final? boolean

Returns: object

Inherited from: Element.getProps

Defined in: element.d.ts:25 (opens new window)


# getTicks

getTicks(): Tick[]

Returns: Tick[]

Defined in: index.esm.d.ts:1231 (opens new window)


# getUserBounds

getUserBounds(): object

Returns: object

Name Type
max number
maxDefined boolean
min number
minDefined boolean

Defined in: index.esm.d.ts:1229 (opens new window)


# getValueForPixel

getValueForPixel(pixel: number): number

Used to get the data value from a given pixel. This is the inverse of getPixelForValue -The coordinate (0, 0) is at the upper-left corner of the canvas

# Parameters:

Name Type
pixel number

Returns: number

Defined in: index.esm.d.ts:1217 (opens new window)


# hasValue

hasValue(): boolean

Returns: boolean

Inherited from: Element.hasValue

Defined in: element.d.ts:10 (opens new window)


# init

init(options: O): void

# Parameters:

Name Type
options O

Returns: void

Defined in: index.esm.d.ts:1227 (opens new window)


# isFullSize

isFullSize(): boolean

Returns: boolean

Defined in: index.esm.d.ts:1255 (opens new window)


# isHorizontal

isHorizontal(): boolean

returns true if the layout item is horizontal (ie. top or bottom)

Returns: boolean

Inherited from: LayoutItem

Defined in: layout.d.ts:58 (opens new window)


# parse

parse(raw: unknown, index: number): unknown

# Parameters:

Name Type
raw unknown
index number

Returns: unknown

Defined in: index.esm.d.ts:1228 (opens new window)


# setDimensions

setDimensions(): void

Returns: void

Defined in: index.esm.d.ts:1237 (opens new window)


# tooltipPosition

tooltipPosition(useFinalPosition?: boolean): Point

# Parameters:

Name Type
useFinalPosition? boolean

Returns: Point

Inherited from: Element.tooltipPosition

Defined in: element.d.ts:9 (opens new window)


# update

update(width: number, height: number, margins?: ChartArea): void

Takes two parameters: width and height.

# Parameters:

Name Type
width number
height number
margins? ChartArea

Returns: void

Inherited from: LayoutItem

Defined in: layout.d.ts:64 (opens new window)

- + diff --git a/docs/latest/api/enums/decimationalgorithm.html b/docs/latest/api/enums/decimationalgorithm.html index 18f7f9d109..9e80e71d96 100644 --- a/docs/latest/api/enums/decimationalgorithm.html +++ b/docs/latest/api/enums/decimationalgorithm.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Enumeration: DecimationAlgorithm

# Enumeration members

# lttb

lttb: = "lttb"

Defined in: index.esm.d.ts:1956 (opens new window)


# minmax

minmax: = "min-max"

Defined in: index.esm.d.ts:1957 (opens new window)

- + diff --git a/docs/latest/api/enums/updatemodeenum.html b/docs/latest/api/enums/updatemodeenum.html index 38c4fa74ef..f04a7d9875 100644 --- a/docs/latest/api/enums/updatemodeenum.html +++ b/docs/latest/api/enums/updatemodeenum.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Enumeration: UpdateModeEnum

# Enumeration members

# active

active: = "active"

Defined in: index.esm.d.ts:522 (opens new window)


# hide

hide: = "hide"

Defined in: index.esm.d.ts:519 (opens new window)


# none

none: = "none"

Defined in: index.esm.d.ts:518 (opens new window)


# normal

normal: = "normal"

Defined in: index.esm.d.ts:521 (opens new window)


# reset

reset: = "reset"

Defined in: index.esm.d.ts:517 (opens new window)


# resize

resize: = "resize"

Defined in: index.esm.d.ts:516 (opens new window)


# show

show: = "show"

Defined in: index.esm.d.ts:520 (opens new window)

- + diff --git a/docs/latest/api/index.html b/docs/latest/api/index.html index 9084d82c29..ce103f0713 100644 --- a/docs/latest/api/index.html +++ b/docs/latest/api/index.html @@ -7,7 +7,7 @@ - + @@ -39,11 +39,11 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Chart.js - v3.1.0

# Table of contents

# Enumerations

# Classes

# Interfaces

# Type aliases

# AnimationOptions

Ƭ AnimationOptions<TType>: object

# Type parameters:

Name Type
TType ChartType

# Type declaration:

Name Type
animation false | AnimationSpec<TType> & { onComplete?: (this: Chart, event: AnimationEvent) => void ; onProgress?: (this: Chart, event: AnimationEvent) => void }
animations AnimationsSpec<TType>
transitions TransitionsSpec<TType>

Defined in: index.esm.d.ts:1532 (opens new window)


# AnimationSpec

Ƭ AnimationSpec<TType>: object

# Type parameters:

Name Type
TType ChartType

# Type declaration:

Name Type Description
delay? Scriptable<number, ScriptableContext<TType>> Delay before starting the animations. default 0
duration? Scriptable<number, ScriptableContext<TType>> The number of milliseconds an animation takes. default 1000
easing? Scriptable<EasingFunction, ScriptableContext<TType>> Easing function to use default 'easeOutQuart'
loop? Scriptable<boolean, ScriptableContext<TType>> If set to true, the animations loop endlessly. default false

Defined in: index.esm.d.ts:1476 (opens new window)


# AnimationsSpec

Ƭ AnimationsSpec<TType>: object

# Type parameters:

Name Type
TType ChartType

# Type declaration:

Defined in: index.esm.d.ts:1501 (opens new window)


# BarController

Ƭ BarController: DatasetController

Defined in: index.esm.d.ts:139 (opens new window)


# BubbleController

Ƭ BubbleController: DatasetController

Defined in: index.esm.d.ts:167 (opens new window)


# CategoryScale

Ƭ CategoryScale<O>: Scale<O>

# Type parameters:

Name Type Default
O CategoryScaleOptions CategoryScaleOptions

Defined in: index.esm.d.ts:2852 (opens new window)


# CategoryScaleOptions

Ƭ CategoryScaleOptions: CartesianScaleOptions & { labels: string[] | string[][] ; max: string | number ; min: string | number }

Defined in: index.esm.d.ts:2846 (opens new window)


# ChartComponentLike

Ƭ ChartComponentLike: ChartComponent | ChartComponent[] | { [key: string]: ChartComponent; }

Defined in: index.esm.d.ts:1034 (opens new window)


# ChartDataset

Ƭ ChartDataset<TType, TData>: DeepPartial<{ [key in ChartType]: object & ChartTypeRegistry[key]["datasetOptions"]}[TType]> & ChartDatasetProperties<TType, TData>

# Type parameters:

Name Type Default
TType ChartType ChartType
TData - TType[]

Defined in: index.esm.d.ts:3341 (opens new window)


# ChartItem

Ƭ ChartItem: string | CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D | HTMLCanvasElement | OffscreenCanvas | { canvas: HTMLCanvasElement | OffscreenCanvas } | ArrayLike<CanvasRenderingContext2D | HTMLCanvasElement | OffscreenCanvas>

Defined in: index.esm.d.ts:506 (opens new window)


# ChartOptions

Ƭ ChartOptions<TType>: DeepPartial<CoreChartOptions<TType> & ElementChartOptions & PluginChartOptions<TType> & DatasetChartOptions<TType> & ScaleChartOptions<TType> & ChartTypeRegistry[TType][chartOptions]>

# Type parameters:

Name Type Default
TType ChartType ChartType

Defined in: index.esm.d.ts:3323 (opens new window)


# ChartType

Ƭ ChartType: keyof ChartTypeRegistry

Defined in: index.esm.d.ts:3302 (opens new window)


# Color

Ƭ Color: string | CanvasGradient | CanvasPattern

Defined in: color.d.ts:1 (opens new window)


# DatasetChartOptions

Ƭ DatasetChartOptions<TType>: { [key in TType]: object}

# Type parameters:

Name Type Default
TType ChartType ChartType

Defined in: index.esm.d.ts:3311 (opens new window)


# DecimationOptions

Ƭ DecimationOptions: LttbDecimationOptions | MinMaxDecimationOptions

Defined in: index.esm.d.ts:1972 (opens new window)


# DefaultDataPoint

Ƭ DefaultDataPoint<TType>: ChartTypeRegistry[TType][defaultDataPoint][]

# Type parameters:

Name Type
TType ChartType

Defined in: index.esm.d.ts:3332 (opens new window)


# DoughnutDataPoint

Ƭ DoughnutDataPoint: number

Defined in: index.esm.d.ts:300 (opens new window)


# EasingFunction

Ƭ EasingFunction: linear | easeInQuad | easeOutQuad | easeInOutQuad | easeInCubic | easeOutCubic | easeInOutCubic | easeInQuart | easeOutQuart | easeInOutQuart | easeInQuint | easeOutQuint | easeInOutQuint | easeInSine | easeOutSine | easeInOutSine | easeInExpo | easeOutExpo | easeInOutExpo | easeInCirc | easeOutCirc | easeInOutCirc | easeInElastic | easeOutElastic | easeInOutElastic | easeInBack | easeOutBack | easeInOutBack | easeInBounce | easeOutBounce | easeInOutBounce

Defined in: index.esm.d.ts:1443 (opens new window)


# FillTarget

Ƭ FillTarget: number | string | { value: number } | start | end | origin | stack | boolean

Defined in: index.esm.d.ts:1980 (opens new window)


# InteractionMode

Ƭ InteractionMode: keyof InteractionModeMap

Defined in: index.esm.d.ts:701 (opens new window)


# InteractionModeFunction

Ƭ InteractionModeFunction: (chart: Chart, e: ChartEvent, options: InteractionOptions, useFinalPosition?: boolean) => InteractionItem[]

# Type declaration:

▸ (chart: Chart, e: ChartEvent, options: InteractionOptions, useFinalPosition?: boolean): InteractionItem[]

# Parameters:

Name Type
chart Chart
e ChartEvent
options InteractionOptions
useFinalPosition? boolean

Returns: InteractionItem[]

Defined in: index.esm.d.ts:663 (opens new window)


# LayoutPosition

Ƭ LayoutPosition: left | top | right | bottom | center | chartArea | { [scaleId: string]: number; }

Defined in: layout.d.ts:3 (opens new window)


# LineController

Ƭ LineController: DatasetController

Defined in: index.esm.d.ts:211 (opens new window)


# LinearScale

Ƭ LinearScale<O>: Scale<O>

# Type parameters:

Name Type Default
O LinearScaleOptions LinearScaleOptions

Defined in: index.esm.d.ts:2907 (opens new window)


# LinearScaleOptions

Ƭ LinearScaleOptions: CartesianScaleOptions & { beginAtZero: boolean ; grace?: string | number ; suggestedMax?: number ; suggestedMin?: number ; ticks: { count: number ; format: Intl.NumberFormatOptions ; maxTicksLimit: number ; precision: number ; stepSize: number } }

Defined in: index.esm.d.ts:2858 (opens new window)


# LogarithmicScale

Ƭ LogarithmicScale<O>: Scale<O>

# Type parameters:

Name Type Default
O LogarithmicScaleOptions LogarithmicScaleOptions

Defined in: index.esm.d.ts:2932 (opens new window)


# LogarithmicScaleOptions

Ƭ LogarithmicScaleOptions: CartesianScaleOptions & { suggestedMax?: number ; suggestedMin?: number ; ticks: { format: Intl.NumberFormatOptions } }

Defined in: index.esm.d.ts:2913 (opens new window)


# Overrides

Ƭ Overrides: { [key in ChartType]: CoreChartOptions<key> & ElementChartOptions & PluginChartOptions<key> & DatasetChartOptions<ChartType> & ScaleChartOptions<key> & ChartTypeRegistry[key]["chartOptions"]}

Defined in: index.esm.d.ts:641 (opens new window)


# ParsedDataType

Ƭ ParsedDataType<TType>: ChartTypeRegistry[TType][parsedDataType]

# Type parameters:

Name Type Default
TType ChartType ChartType

Defined in: index.esm.d.ts:3334 (opens new window)


# PieAnimationOptions

Ƭ PieAnimationOptions: DoughnutAnimationOptions

Defined in: index.esm.d.ts:319 (opens new window)


# PieController

Ƭ PieController: DoughnutController

Defined in: index.esm.d.ts:323 (opens new window)


# PieControllerChartOptions

Ƭ PieControllerChartOptions: DoughnutControllerChartOptions

Defined in: index.esm.d.ts:318 (opens new window)


# PieControllerDatasetOptions

Ƭ PieControllerDatasetOptions: DoughnutControllerDatasetOptions

Defined in: index.esm.d.ts:317 (opens new window)


# PieDataPoint

Ƭ PieDataPoint: DoughnutDataPoint

Defined in: index.esm.d.ts:321 (opens new window)


# PointStyle

Ƭ PointStyle: circle | cross | crossRot | dash | line | rect | rectRounded | rectRot | star | triangle | HTMLImageElement | HTMLCanvasElement

Defined in: index.esm.d.ts:1734 (opens new window)


# PolarAreaAnimationOptions

Ƭ PolarAreaAnimationOptions: DoughnutAnimationOptions

Defined in: index.esm.d.ts:337 (opens new window)


# RadarController

Ƭ RadarController: DatasetController

Defined in: index.esm.d.ts:386 (opens new window)


# RadarControllerChartOptions

Ƭ RadarControllerChartOptions: LineControllerChartOptions

Defined in: index.esm.d.ts:384 (opens new window)


# RadialLinearScaleOptions

Ƭ RadialLinearScaleOptions: CoreScaleOptions & { angleLines: { borderDash: Scriptable<number[], ScriptableScaleContext> ; borderDashOffset: Scriptable<number, ScriptableScaleContext> ; color: Scriptable<Color, ScriptableScaleContext> ; display: boolean ; lineWidth: Scriptable<number, ScriptableScaleContext> } ; animate: boolean ; beginAtZero: boolean ; grid: GridLineOptions ; max: number ; min: number ; pointLabels: { backdropColor: Scriptable<Color, ScriptableScaleContext> ; backdropPadding: Scriptable<number | ChartArea, ScriptableScaleContext> ; callback: (label: string, index: number) => string ; color: Scriptable<Color, ScriptableScaleContext> ; display: boolean ; font: Scriptable<FontSpec, ScriptableScaleContext> } ; suggestedMax: number ; suggestedMin: number ; ticks: TickOptions & { backdropColor: Scriptable<Color, ScriptableScaleContext> ; backdropPadding: number | ChartArea ; count: number ; format: Intl.NumberFormatOptions ; maxTicksLimit: number ; precision: number ; showLabelBackdrop: Scriptable<boolean, ScriptableScaleContext> ; stepSize: number } }

Defined in: index.esm.d.ts:3029 (opens new window)


# ScaleChartOptions

Ƭ ScaleChartOptions<TType>: object

# Type parameters:

Name Type Default
TType ChartType ChartType

# Type declaration:

Name Type
scales object

Defined in: index.esm.d.ts:3317 (opens new window)


# ScaleOptions

Ƭ ScaleOptions<TScale>: DeepPartial<ScaleOptionsByType<TScale>>

# Type parameters:

Name Type Default
TScale ScaleType ScaleType

Defined in: index.esm.d.ts:3309 (opens new window)


# ScaleOptionsByType

Ƭ ScaleOptionsByType<TScale>: { [key in ScaleType]: object & ScaleTypeRegistry[key]["options"]}[TScale]

# Type parameters:

Name Type Default
TScale ScaleType ScaleType

Defined in: index.esm.d.ts:3304 (opens new window)


# ScaleType

Ƭ ScaleType: keyof ScaleTypeRegistry

Defined in: index.esm.d.ts:3206 (opens new window)


# ScatterController

Ƭ ScatterController: LineController

Defined in: index.esm.d.ts:226 (opens new window)


# ScatterControllerChartOptions

Ƭ ScatterControllerChartOptions: LineControllerChartOptions

Defined in: index.esm.d.ts:224 (opens new window)


# ScatterControllerDatasetOptions

Ƭ ScatterControllerDatasetOptions: LineControllerDatasetOptions

Defined in: index.esm.d.ts:217 (opens new window)


# Scriptable

Ƭ Scriptable<T, TContext>: T | (ctx: TContext) => T

# Type parameters:

Name
T
TContext

Defined in: index.esm.d.ts:34 (opens new window)


# ScriptableAndArray

Ƭ ScriptableAndArray<T, TContext>: readonly T[] | Scriptable<T, TContext>

# Type parameters:

Name
T
TContext

Defined in: index.esm.d.ts:36 (opens new window)


# ScriptableAndArrayOptions

Ƭ ScriptableAndArrayOptions<T, TContext>: { [P in keyof T]: ScriptableAndArray<T[P], TContext>}

# Type parameters:

Name
T
TContext

Defined in: index.esm.d.ts:37 (opens new window)


# ScriptableOptions

Ƭ ScriptableOptions<T, TContext>: { [P in keyof T]: Scriptable<T[P], TContext>}

# Type parameters:

Name
T
TContext

Defined in: index.esm.d.ts:35 (opens new window)


# TextAlign

Ƭ TextAlign: left | center | right

Defined in: index.esm.d.ts:1574 (opens new window)


# TimeScaleOptions

Ƭ TimeScaleOptions: CartesianScaleOptions & { adapters: { date: unknown } ; bounds: ticks | data ; ticks: { source: labels | auto | data } ; time: { displayFormats: { [key: string]: string; } ; isoWeekday: false | number ; minUnit: TimeUnit ; parser: string | (v: unknown) => number ; round: false | TimeUnit ; stepSize: number ; tooltipFormat: string ; unit: false | TimeUnit } }

Defined in: index.esm.d.ts:2938 (opens new window)


# TimeSeriesScale

Ƭ TimeSeriesScale<O>: TimeScale<O>

# Type parameters:

Name Type Default
O TimeScaleOptions TimeScaleOptions

Defined in: index.esm.d.ts:3023 (opens new window)


# TimeUnit

Ƭ TimeUnit: millisecond | second | minute | hour | day | week | month | quarter | year

Defined in: adapters.d.ts:1 (opens new window)


# TooltipXAlignment

Ƭ TooltipXAlignment: left | center | right

Defined in: index.esm.d.ts:2253 (opens new window)


# TooltipYAlignment

Ƭ TooltipYAlignment: top | center | bottom

Defined in: index.esm.d.ts:2254 (opens new window)


# TransitionSpec

Ƭ TransitionSpec<TType>: object

# Type parameters:

Name Type
TType ChartType

# Type declaration:

Name Type
animation AnimationSpec<TType>
animations AnimationsSpec<TType>

Defined in: index.esm.d.ts:1523 (opens new window)


# TransitionsSpec

Ƭ TransitionsSpec<TType>: object

# Type parameters:

Name Type
TType ChartType

# Type declaration:

Defined in: index.esm.d.ts:1528 (opens new window)


# UpdateMode

Ƭ UpdateMode: keyof typeof UpdateModeEnum

Defined in: index.esm.d.ts:525 (opens new window)

# Variables

# ArcElement

ArcElement: ChartComponent & { prototype: ArcElement<ArcProps, ArcOptions> }

Defined in: index.esm.d.ts:1644 (opens new window)


# BarController

BarController: ChartComponent & { prototype: BarController }

Defined in: index.esm.d.ts:140 (opens new window)


# BarElement

BarElement: ChartComponent & { prototype: BarElement<BarProps, BarOptions> }

Defined in: index.esm.d.ts:1885 (opens new window)


# BubbleController

BubbleController: ChartComponent & { prototype: BubbleController }

Defined in: index.esm.d.ts:168 (opens new window)


# CategoryScale

CategoryScale: ChartComponent & { prototype: CategoryScale<CategoryScaleOptions> }

Defined in: index.esm.d.ts:2853 (opens new window)


# DoughnutController

DoughnutController: ChartComponent & { prototype: DoughnutController }

Defined in: index.esm.d.ts:312 (opens new window)


# Element

Element: object

# Type declaration:

Name Type
prototype Element<{}, {}>

Defined in: element.d.ts:27 (opens new window)


# Filler

Const Filler: Plugin

Defined in: index.esm.d.ts:1974 (opens new window)


# Interaction

Const Interaction: object

# Type declaration:

Name Type
modes InteractionModeMap

Defined in: index.esm.d.ts:703 (opens new window)


# Legend

Const Legend: Plugin

Defined in: index.esm.d.ts:2004 (opens new window)


# LineController

LineController: ChartComponent & { prototype: LineController }

Defined in: index.esm.d.ts:212 (opens new window)


# LineElement

LineElement: ChartComponent & { prototype: LineElement<LineProps, LineOptions> }

Defined in: index.esm.d.ts:1724 (opens new window)


# LinearScale

LinearScale: ChartComponent & { prototype: LinearScale<LinearScaleOptions> }

Defined in: index.esm.d.ts:2908 (opens new window)


# LogarithmicScale

LogarithmicScale: ChartComponent & { prototype: LogarithmicScale<LogarithmicScaleOptions> }

Defined in: index.esm.d.ts:2933 (opens new window)


# PieController

PieController: ChartComponent & { prototype: DoughnutController }

Defined in: index.esm.d.ts:324 (opens new window)


# PointElement

PointElement: ChartComponent & { prototype: PointElement<PointProps, PointOptions> }

Defined in: index.esm.d.ts:1836 (opens new window)


# PolarAreaController

PolarAreaController: ChartComponent & { prototype: PolarAreaController }

Defined in: index.esm.d.ts:352 (opens new window)


# RadarController

RadarController: ChartComponent & { prototype: RadarController }

Defined in: index.esm.d.ts:387 (opens new window)


# RadialLinearScale

RadialLinearScale: ChartComponent & { prototype: RadialLinearScale<RadialLinearScaleOptions> }

Defined in: index.esm.d.ts:3174 (opens new window)


# ScatterController

ScatterController: ChartComponent & { prototype: LineController }

Defined in: index.esm.d.ts:227 (opens new window)


# Ticks

Const Ticks: object

# Type declaration:

Name Type
formatters object
formatters.logarithmic [object Object]
formatters.numeric [object Object]
formatters.values [object Object]

Defined in: index.esm.d.ts:1268 (opens new window)


# TimeScale

TimeScale: ChartComponent & { prototype: TimeScale<TimeScaleOptions> }

Defined in: index.esm.d.ts:3018 (opens new window)


# TimeSeriesScale

TimeSeriesScale: ChartComponent & { prototype: TimeSeriesScale<TimeScaleOptions> }

Defined in: index.esm.d.ts:3024 (opens new window)


# Title

Const Title: Plugin

Defined in: index.esm.d.ts:2212 (opens new window)


# Tooltip

Const Tooltip: Plugin & { positioners: { [key: string]: (items: readonly Element[], eventPosition: { x: number ; y: number }) => { x: number ; y: number }; } ; getActiveElements: () => ActiveElement[] ; setActiveElements: (active: ActiveDataPoint[], eventPosition: { x: number ; y: number }) => void }

Defined in: index.esm.d.ts:2332 (opens new window)


# _adapters

Const _adapters: object

# Type declaration:

Name Type
_date DateAdapter

Defined in: adapters.d.ts:61 (opens new window)


# defaults

Const defaults: Defaults

Defined in: index.esm.d.ts:651 (opens new window)


# layouts

Const layouts: object

# Type declaration:

Name Type
addBox (chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, item: LayoutItem) => void
configure (chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, item: LayoutItem, options: { fullSize?: number ; position?: LayoutPosition ; weight?: number }) => void
removeBox (chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, layoutItem: LayoutItem) => void
update (chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, width: number, height: number) => void

Defined in: index.esm.d.ts:707 (opens new window)


# registerables

Const registerables: readonly ChartComponentLike[]

Defined in: index.esm.d.ts:504 (opens new window)


# registry

Const registry: Registry

Defined in: index.esm.d.ts:1060 (opens new window)

- + diff --git a/docs/latest/api/interfaces/activedatapoint.html b/docs/latest/api/interfaces/activedatapoint.html index 49899da3f1..1e7c292473 100644 --- a/docs/latest/api/interfaces/activedatapoint.html +++ b/docs/latest/api/interfaces/activedatapoint.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ActiveDataPoint

# Hierarchy

# Properties

# datasetIndex

datasetIndex: number

Defined in: index.esm.d.ts:427 (opens new window)


# index

index: number

Defined in: index.esm.d.ts:428 (opens new window)

- + diff --git a/docs/latest/api/interfaces/activeelement.html b/docs/latest/api/interfaces/activeelement.html index 96feb2ae8a..6ebd3af3f3 100644 --- a/docs/latest/api/interfaces/activeelement.html +++ b/docs/latest/api/interfaces/activeelement.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ActiveElement

# Hierarchy

# Properties

# datasetIndex

datasetIndex: number

Inherited from: ActiveDataPoint.datasetIndex

Defined in: index.esm.d.ts:427 (opens new window)


# element

element: Element<{}, {}>

Defined in: index.esm.d.ts:432 (opens new window)


# index

index: number

Inherited from: ActiveDataPoint.index

Defined in: index.esm.d.ts:428 (opens new window)

- + diff --git a/docs/latest/api/interfaces/animationevent.html b/docs/latest/api/interfaces/animationevent.html index 7102cb82ff..41f592514b 100644 --- a/docs/latest/api/interfaces/animationevent.html +++ b/docs/latest/api/interfaces/animationevent.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: AnimationEvent

# Properties

# chart

chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Defined in: animation.d.ts:13 (opens new window)


# currentState

currentState: number

Defined in: animation.d.ts:15 (opens new window)


# numSteps

numSteps: number

Defined in: animation.d.ts:14 (opens new window)

- + diff --git a/docs/latest/api/interfaces/arcborderradius.html b/docs/latest/api/interfaces/arcborderradius.html index 3452f65f0e..48211f72be 100644 --- a/docs/latest/api/interfaces/arcborderradius.html +++ b/docs/latest/api/interfaces/arcborderradius.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ArcBorderRadius

# Properties

# innerEnd

innerEnd: number

Defined in: index.esm.d.ts:1617 (opens new window)


# innerStart

innerStart: number

Defined in: index.esm.d.ts:1616 (opens new window)


# outerEnd

outerEnd: number

Defined in: index.esm.d.ts:1615 (opens new window)


# outerStart

outerStart: number

Defined in: index.esm.d.ts:1614 (opens new window)

- + diff --git a/docs/latest/api/interfaces/arcelement.html b/docs/latest/api/interfaces/arcelement.html index d61d6c217f..ac7118832d 100644 --- a/docs/latest/api/interfaces/arcelement.html +++ b/docs/latest/api/interfaces/arcelement.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ArcElement<T, O>

# Type parameters

Name Type Default
T ArcProps ArcProps
O ArcOptions ArcOptions

# Hierarchy

# Properties

# active

Readonly active: boolean

Inherited from: Element.active

Defined in: element.d.ts:6 (opens new window)


# options

Readonly options: O

Inherited from: Element.options

Defined in: element.d.ts:7 (opens new window)


# x

Readonly x: number

Inherited from: Element.x

Defined in: element.d.ts:4 (opens new window)


# y

Readonly y: number

Inherited from: Element.y

Defined in: element.d.ts:5 (opens new window)

# Methods

# draw

draw(ctx: CanvasRenderingContext2D): void

# Parameters:

Name Type
ctx CanvasRenderingContext2D

Returns: void

Inherited from: VisualElement

Defined in: index.esm.d.ts:1577 (opens new window)


# getCenterPoint

getCenterPoint(useFinalPosition?: boolean): object

# Parameters:

Name Type
useFinalPosition? boolean

Returns: object

Name Type
x number
y number

Inherited from: VisualElement

Defined in: index.esm.d.ts:1581 (opens new window)


# getProps

getProps<P>(props: [P], final?: boolean): Pick<T, P>

# Type parameters:

Name Type
P string | number | symbol

# Parameters:

Name Type
props [P]
final? boolean

Returns: Pick<T, P>

Inherited from: Element.getProps

Defined in: element.d.ts:11 (opens new window)

getProps<P, P2>(props: [P, P2], final?: boolean): Pick<T, P | P2>

# Type parameters:

Name Type
P string | number | symbol
P2 string | number | symbol

# Parameters:

Name Type
props [P, P2]
final? boolean

Returns: Pick<T, P | P2>

Inherited from: Element.getProps

Defined in: element.d.ts:12 (opens new window)

getProps<P, P2, P3>(props: [P, P2, P3], final?: boolean): Pick<T, P | P2 | P3>

# Type parameters:

Name Type
P string | number | symbol
P2 string | number | symbol
P3 string | number | symbol

# Parameters:

Name Type
props [P, P2, P3]
final? boolean

Returns: Pick<T, P | P2 | P3>

Inherited from: Element.getProps

Defined in: element.d.ts:13 (opens new window)

getProps<P, P2, P3, P4>(props: [P, P2, P3, P4], final?: boolean): Pick<T, P | P2 | P3 | P4>

# Type parameters:

Name Type
P string | number | symbol
P2 string | number | symbol
P3 string | number | symbol
P4 string | number | symbol

# Parameters:

Name Type
props [P, P2, P3, P4]
final? boolean

Returns: Pick<T, P | P2 | P3 | P4>

Inherited from: Element.getProps

Defined in: element.d.ts:17 (opens new window)

getProps<P, P2, P3, P4, P5>(props: [P, P2, P3, P4, P5], final?: boolean): Pick<T, P | P2 | P3 | P4 | P5>

# Type parameters:

Name Type
P string | number | symbol
P2 string | number | symbol
P3 string | number | symbol
P4 string | number | symbol
P5 string | number | symbol

# Parameters:

Name Type
props [P, P2, P3, P4, P5]
final? boolean

Returns: Pick<T, P | P2 | P3 | P4 | P5>

Inherited from: Element.getProps

Defined in: element.d.ts:21 (opens new window)

getProps(props: keyof T[], final?: boolean): T

# Parameters:

Name Type
props keyof T[]
final? boolean

Returns: T

Inherited from: Element.getProps

Defined in: element.d.ts:25 (opens new window)


# getRange

OptionalgetRange(axis: x | y): number

# Parameters:

Name Type
axis x | y

Returns: number

Inherited from: VisualElement

Defined in: index.esm.d.ts:1582 (opens new window)


# hasValue

hasValue(): boolean

Returns: boolean

Inherited from: Element.hasValue

Defined in: element.d.ts:10 (opens new window)


# inRange

inRange(mouseX: number, mouseY: number, useFinalPosition?: boolean): boolean

# Parameters:

Name Type
mouseX number
mouseY number
useFinalPosition? boolean

Returns: boolean

Inherited from: VisualElement

Defined in: index.esm.d.ts:1578 (opens new window)


# inXRange

inXRange(mouseX: number, useFinalPosition?: boolean): boolean

# Parameters:

Name Type
mouseX number
useFinalPosition? boolean

Returns: boolean

Inherited from: VisualElement

Defined in: index.esm.d.ts:1579 (opens new window)


# inYRange

inYRange(mouseY: number, useFinalPosition?: boolean): boolean

# Parameters:

Name Type
mouseY number
useFinalPosition? boolean

Returns: boolean

Inherited from: VisualElement

Defined in: index.esm.d.ts:1580 (opens new window)


# tooltipPosition

tooltipPosition(useFinalPosition?: boolean): Point

# Parameters:

Name Type
useFinalPosition? boolean

Returns: Point

Inherited from: Element.tooltipPosition

Defined in: element.d.ts:9 (opens new window)

- + diff --git a/docs/latest/api/interfaces/archoveroptions.html b/docs/latest/api/interfaces/archoveroptions.html index 92f651978e..95024cf437 100644 --- a/docs/latest/api/interfaces/archoveroptions.html +++ b/docs/latest/api/interfaces/archoveroptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ArcHoverOptions

# Hierarchy

# Properties

# hoverBackgroundColor

hoverBackgroundColor: Color

Inherited from: CommonHoverOptions.hoverBackgroundColor

Defined in: index.esm.d.ts:1594 (opens new window)


# hoverBorderColor

hoverBorderColor: Color

Inherited from: CommonHoverOptions.hoverBorderColor

Defined in: index.esm.d.ts:1593 (opens new window)


# hoverBorderWidth

hoverBorderWidth: number

Inherited from: CommonHoverOptions.hoverBorderWidth

Defined in: index.esm.d.ts:1592 (opens new window)


# hoverOffset

hoverOffset: number

Defined in: index.esm.d.ts:1637 (opens new window)

- + diff --git a/docs/latest/api/interfaces/arcoptions.html b/docs/latest/api/interfaces/arcoptions.html index 47a87261b7..330cb23201 100644 --- a/docs/latest/api/interfaces/arcoptions.html +++ b/docs/latest/api/interfaces/arcoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ArcOptions

# Hierarchy

# Properties

# backgroundColor

backgroundColor: Color

Inherited from: CommonElementOptions.backgroundColor

Defined in: index.esm.d.ts:1588 (opens new window)


# borderAlign

borderAlign: center | inner

Arc stroke alignment.

Defined in: index.esm.d.ts:1624 (opens new window)


# borderColor

borderColor: Color

Inherited from: CommonElementOptions.borderColor

Defined in: index.esm.d.ts:1587 (opens new window)


# borderRadius

borderRadius: number | ArcBorderRadius

Sets the border radius for arcs

default 0

Defined in: index.esm.d.ts:1633 (opens new window)


# borderWidth

borderWidth: number

Inherited from: CommonElementOptions.borderWidth

Defined in: index.esm.d.ts:1586 (opens new window)


# offset

offset: number

Arc offset (in pixels).

Defined in: index.esm.d.ts:1628 (opens new window)

- + diff --git a/docs/latest/api/interfaces/arcprops.html b/docs/latest/api/interfaces/arcprops.html index b25e1f1dd6..67b6bd1f85 100644 --- a/docs/latest/api/interfaces/arcprops.html +++ b/docs/latest/api/interfaces/arcprops.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ArcProps

# Properties

# circumference

circumference: number

Defined in: index.esm.d.ts:1610 (opens new window)


# endAngle

endAngle: number

Defined in: index.esm.d.ts:1607 (opens new window)


# innerRadius

innerRadius: number

Defined in: index.esm.d.ts:1608 (opens new window)


# outerRadius

outerRadius: number

Defined in: index.esm.d.ts:1609 (opens new window)


# startAngle

startAngle: number

Defined in: index.esm.d.ts:1606 (opens new window)


# x

x: number

Defined in: index.esm.d.ts:1604 (opens new window)


# y

y: number

Defined in: index.esm.d.ts:1605 (opens new window)

- + diff --git a/docs/latest/api/interfaces/barcontrollerchartoptions.html b/docs/latest/api/interfaces/barcontrollerchartoptions.html index cdcf426ea0..6ff1e7fba8 100644 --- a/docs/latest/api/interfaces/barcontrollerchartoptions.html +++ b/docs/latest/api/interfaces/barcontrollerchartoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: BarControllerChartOptions

# Properties

# skipNull

Optional skipNull: boolean

Should null or undefined values be omitted from drawing

Defined in: index.esm.d.ts:136 (opens new window)

- + diff --git a/docs/latest/api/interfaces/barcontrollerdatasetoptions.html b/docs/latest/api/interfaces/barcontrollerdatasetoptions.html index 3ecbedcdb8..0e4310a3cf 100644 --- a/docs/latest/api/interfaces/barcontrollerdatasetoptions.html +++ b/docs/latest/api/interfaces/barcontrollerdatasetoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: BarControllerDatasetOptions

# Hierarchy

# Properties

# animation

animation: false | AnimationSpec<bar> & { onComplete?: (event: AnimationEvent) => void ; onProgress?: (event: AnimationEvent) => void }

Inherited from: AnimationOptions.animation

Defined in: index.esm.d.ts:1533 (opens new window)


# animations

animations: AnimationsSpec<bar>

Inherited from: AnimationOptions.animations

Defined in: index.esm.d.ts:1543 (opens new window)


# backgroundColor

backgroundColor: ScriptableAndArray<Color, ScriptableContext<bar>>

Inherited from: ScriptableAndArrayOptions.backgroundColor

Defined in: index.esm.d.ts:1588 (opens new window)


# barPercentage

barPercentage: number

Percent (0-1) of the available width each bar should be within the category width. 1.0 will take the whole category width and put the bars right next to each other.

default 0.9

Defined in: index.esm.d.ts:103 (opens new window)


# barThickness

barThickness: number | flex

Manually set width of each bar in pixels. If set to 'flex', it computes "optimal" sample widths that globally arrange bars side by side. If not set (default), bars are equally sized based on the smallest interval.

Defined in: index.esm.d.ts:113 (opens new window)


# base

base: ScriptableAndArray<number, ScriptableContext<bar>>

The base value for the bar in data units along the value axis.

Inherited from: ScriptableAndArrayOptions.base

Defined in: index.esm.d.ts:1854 (opens new window)


# borderColor

borderColor: ScriptableAndArray<Color, ScriptableContext<bar>>

Inherited from: ScriptableAndArrayOptions.borderColor

Defined in: index.esm.d.ts:1587 (opens new window)


# borderRadius

borderRadius: ScriptableAndArray<number | BorderRadius, ScriptableContext<bar>>

Border radius

default 0

Inherited from: ScriptableAndArrayOptions.borderRadius

Defined in: index.esm.d.ts:1866 (opens new window)


# borderSkipped

borderSkipped: ScriptableAndArray<false | start | end | left | right | bottom | top, ScriptableContext<bar>>

Skipped (excluded) border: 'start', 'end', 'left', 'right', 'bottom', 'top' or false (none).

default 'start'

Inherited from: ScriptableAndArrayOptions.borderSkipped

Defined in: index.esm.d.ts:1860 (opens new window)


# borderWidth

borderWidth: ScriptableAndArray<number, ScriptableContext<bar>>

Inherited from: ScriptableAndArrayOptions.borderWidth

Defined in: index.esm.d.ts:1586 (opens new window)


# categoryPercentage

categoryPercentage: number

Percent (0-1) of the available width each category should be within the sample width.

default 0.8

Defined in: index.esm.d.ts:108 (opens new window)


# clip

clip: number | ChartArea

How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}

Inherited from: ControllerDatasetOptions.clip

Defined in: index.esm.d.ts:64 (opens new window)


# hidden

hidden: boolean

Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.

default false

Inherited from: ControllerDatasetOptions.hidden

Defined in: index.esm.d.ts:82 (opens new window)


# hoverBackgroundColor

hoverBackgroundColor: ScriptableAndArray<Color, ScriptableContext<bar>>

Inherited from: ScriptableAndArrayOptions.hoverBackgroundColor

Defined in: index.esm.d.ts:1594 (opens new window)


# hoverBorderColor

hoverBorderColor: ScriptableAndArray<Color, ScriptableContext<bar>>

Inherited from: ScriptableAndArrayOptions.hoverBorderColor

Defined in: index.esm.d.ts:1593 (opens new window)


# hoverBorderWidth

hoverBorderWidth: ScriptableAndArray<number, ScriptableContext<bar>>

Inherited from: ScriptableAndArrayOptions.hoverBorderWidth

Defined in: index.esm.d.ts:1592 (opens new window)


# indexAxis

indexAxis: x | y

The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.

default 'x'

Inherited from: ControllerDatasetOptions.indexAxis

Defined in: index.esm.d.ts:60 (opens new window)


# label

label: string

The label for the dataset which appears in the legend and tooltips.

Inherited from: ControllerDatasetOptions.label

Defined in: index.esm.d.ts:68 (opens new window)


# maxBarThickness

maxBarThickness: number

Set this to ensure that bars are not sized thicker than this.

Defined in: index.esm.d.ts:118 (opens new window)


# minBarLength

minBarLength: number

Set this to ensure that bars have a minimum length in pixels.

Defined in: index.esm.d.ts:123 (opens new window)


# normalized

normalized: boolean

Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.

Inherited from: ControllerDatasetOptions.normalized

Defined in: index.esm.d.ts:52 (opens new window)


# order

order: number

The drawing order of dataset. Also affects order for stacking, tooltip and legend.

Inherited from: ControllerDatasetOptions.order

Defined in: index.esm.d.ts:72 (opens new window)


# parsing

parsing: false | { [key: string]: string; }

How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.

Inherited from: ControllerDatasetOptions.parsing

Defined in: index.esm.d.ts:43 (opens new window)


# pointStyle

pointStyle: PointStyle

Point style for the legend

default 'circle;

Defined in: index.esm.d.ts:129 (opens new window)


# stack

stack: string

The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).

Inherited from: ControllerDatasetOptions.stack

Defined in: index.esm.d.ts:77 (opens new window)


# transitions

transitions: TransitionsSpec<bar>

Inherited from: AnimationOptions.transitions

Defined in: index.esm.d.ts:1544 (opens new window)


# xAxisID

xAxisID: string

The ID of the x axis to plot this dataset on.

Defined in: index.esm.d.ts:93 (opens new window)


# yAxisID

yAxisID: string

The ID of the y axis to plot this dataset on.

Defined in: index.esm.d.ts:97 (opens new window)

- + diff --git a/docs/latest/api/interfaces/barelement.html b/docs/latest/api/interfaces/barelement.html index ede4e75b49..4d38df8de9 100644 --- a/docs/latest/api/interfaces/barelement.html +++ b/docs/latest/api/interfaces/barelement.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: BarElement<T, O>

# Type parameters

Name Type Default
T BarProps BarProps
O BarOptions BarOptions

# Hierarchy

# Properties

# active

Readonly active: boolean

Inherited from: Element.active

Defined in: element.d.ts:6 (opens new window)


# options

Readonly options: O

Inherited from: Element.options

Defined in: element.d.ts:7 (opens new window)


# x

Readonly x: number

Inherited from: Element.x

Defined in: element.d.ts:4 (opens new window)


# y

Readonly y: number

Inherited from: Element.y

Defined in: element.d.ts:5 (opens new window)

# Methods

# draw

draw(ctx: CanvasRenderingContext2D): void

# Parameters:

Name Type
ctx CanvasRenderingContext2D

Returns: void

Inherited from: VisualElement

Defined in: index.esm.d.ts:1577 (opens new window)


# getCenterPoint

getCenterPoint(useFinalPosition?: boolean): object

# Parameters:

Name Type
useFinalPosition? boolean

Returns: object

Name Type
x number
y number

Inherited from: VisualElement

Defined in: index.esm.d.ts:1581 (opens new window)


# getProps

getProps<P>(props: [P], final?: boolean): Pick<T, P>

# Type parameters:

Name Type
P string | number | symbol

# Parameters:

Name Type
props [P]
final? boolean

Returns: Pick<T, P>

Inherited from: Element.getProps

Defined in: element.d.ts:11 (opens new window)

getProps<P, P2>(props: [P, P2], final?: boolean): Pick<T, P | P2>

# Type parameters:

Name Type
P string | number | symbol
P2 string | number | symbol

# Parameters:

Name Type
props [P, P2]
final? boolean

Returns: Pick<T, P | P2>

Inherited from: Element.getProps

Defined in: element.d.ts:12 (opens new window)

getProps<P, P2, P3>(props: [P, P2, P3], final?: boolean): Pick<T, P | P2 | P3>

# Type parameters:

Name Type
P string | number | symbol
P2 string | number | symbol
P3 string | number | symbol

# Parameters:

Name Type
props [P, P2, P3]
final? boolean

Returns: Pick<T, P | P2 | P3>

Inherited from: Element.getProps

Defined in: element.d.ts:13 (opens new window)

getProps<P, P2, P3, P4>(props: [P, P2, P3, P4], final?: boolean): Pick<T, P | P2 | P3 | P4>

# Type parameters:

Name Type
P string | number | symbol
P2 string | number | symbol
P3 string | number | symbol
P4 string | number | symbol

# Parameters:

Name Type
props [P, P2, P3, P4]
final? boolean

Returns: Pick<T, P | P2 | P3 | P4>

Inherited from: Element.getProps

Defined in: element.d.ts:17 (opens new window)

getProps<P, P2, P3, P4, P5>(props: [P, P2, P3, P4, P5], final?: boolean): Pick<T, P | P2 | P3 | P4 | P5>

# Type parameters:

Name Type
P string | number | symbol
P2 string | number | symbol
P3 string | number | symbol
P4 string | number | symbol
P5 string | number | symbol

# Parameters:

Name Type
props [P, P2, P3, P4, P5]
final? boolean

Returns: Pick<T, P | P2 | P3 | P4 | P5>

Inherited from: Element.getProps

Defined in: element.d.ts:21 (opens new window)

getProps(props: keyof T[], final?: boolean): T

# Parameters:

Name Type
props keyof T[]
final? boolean

Returns: T

Inherited from: Element.getProps

Defined in: element.d.ts:25 (opens new window)


# getRange

OptionalgetRange(axis: x | y): number

# Parameters:

Name Type
axis x | y

Returns: number

Inherited from: VisualElement

Defined in: index.esm.d.ts:1582 (opens new window)


# hasValue

hasValue(): boolean

Returns: boolean

Inherited from: Element.hasValue

Defined in: element.d.ts:10 (opens new window)


# inRange

inRange(mouseX: number, mouseY: number, useFinalPosition?: boolean): boolean

# Parameters:

Name Type
mouseX number
mouseY number
useFinalPosition? boolean

Returns: boolean

Inherited from: VisualElement

Defined in: index.esm.d.ts:1578 (opens new window)


# inXRange

inXRange(mouseX: number, useFinalPosition?: boolean): boolean

# Parameters:

Name Type
mouseX number
useFinalPosition? boolean

Returns: boolean

Inherited from: VisualElement

Defined in: index.esm.d.ts:1579 (opens new window)


# inYRange

inYRange(mouseY: number, useFinalPosition?: boolean): boolean

# Parameters:

Name Type
mouseY number
useFinalPosition? boolean

Returns: boolean

Inherited from: VisualElement

Defined in: index.esm.d.ts:1580 (opens new window)


# tooltipPosition

tooltipPosition(useFinalPosition?: boolean): Point

# Parameters:

Name Type
useFinalPosition? boolean

Returns: Point

Inherited from: Element.tooltipPosition

Defined in: element.d.ts:9 (opens new window)

- + diff --git a/docs/latest/api/interfaces/barhoveroptions.html b/docs/latest/api/interfaces/barhoveroptions.html index c329301644..c516d46f9c 100644 --- a/docs/latest/api/interfaces/barhoveroptions.html +++ b/docs/latest/api/interfaces/barhoveroptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: BarHoverOptions

# Hierarchy

# Properties

# hoverBackgroundColor

hoverBackgroundColor: Color

Inherited from: CommonHoverOptions.hoverBackgroundColor

Defined in: index.esm.d.ts:1594 (opens new window)


# hoverBorderColor

hoverBorderColor: Color

Inherited from: CommonHoverOptions.hoverBorderColor

Defined in: index.esm.d.ts:1593 (opens new window)


# hoverBorderRadius

hoverBorderRadius: number | BorderRadius

Defined in: index.esm.d.ts:1877 (opens new window)


# hoverBorderWidth

hoverBorderWidth: number

Inherited from: CommonHoverOptions.hoverBorderWidth

Defined in: index.esm.d.ts:1592 (opens new window)

- + diff --git a/docs/latest/api/interfaces/baroptions.html b/docs/latest/api/interfaces/baroptions.html index 51c272aec0..12c8d1babb 100644 --- a/docs/latest/api/interfaces/baroptions.html +++ b/docs/latest/api/interfaces/baroptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: BarOptions

# Hierarchy

# Properties

# backgroundColor

backgroundColor: Color

Inherited from: CommonElementOptions.backgroundColor

Defined in: index.esm.d.ts:1588 (opens new window)


# base

base: number

The base value for the bar in data units along the value axis.

Defined in: index.esm.d.ts:1854 (opens new window)


# borderColor

borderColor: Color

Inherited from: CommonElementOptions.borderColor

Defined in: index.esm.d.ts:1587 (opens new window)


# borderRadius

borderRadius: number | BorderRadius

Border radius

default 0

Defined in: index.esm.d.ts:1866 (opens new window)


# borderSkipped

borderSkipped: false | start | end | left | right | bottom | top

Skipped (excluded) border: 'start', 'end', 'left', 'right', 'bottom', 'top' or false (none).

default 'start'

Defined in: index.esm.d.ts:1860 (opens new window)


# borderWidth

borderWidth: number

Inherited from: CommonElementOptions.borderWidth

Defined in: index.esm.d.ts:1586 (opens new window)

- + diff --git a/docs/latest/api/interfaces/barprops.html b/docs/latest/api/interfaces/barprops.html index 838175ba31..e617002567 100644 --- a/docs/latest/api/interfaces/barprops.html +++ b/docs/latest/api/interfaces/barprops.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: BarProps

# Properties

# base

base: number

Defined in: index.esm.d.ts:1844 (opens new window)


# height

height: number

Defined in: index.esm.d.ts:1847 (opens new window)


# horizontal

horizontal: boolean

Defined in: index.esm.d.ts:1845 (opens new window)


# width

width: number

Defined in: index.esm.d.ts:1846 (opens new window)


# x

x: number

Defined in: index.esm.d.ts:1842 (opens new window)


# y

y: number

Defined in: index.esm.d.ts:1843 (opens new window)

- + diff --git a/docs/latest/api/interfaces/borderradius.html b/docs/latest/api/interfaces/borderradius.html index e77e748cd2..1ffc7b1a75 100644 --- a/docs/latest/api/interfaces/borderradius.html +++ b/docs/latest/api/interfaces/borderradius.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: BorderRadius

# Properties

# bottomLeft

bottomLeft: number

Defined in: index.esm.d.ts:1872 (opens new window)


# bottomRight

bottomRight: number

Defined in: index.esm.d.ts:1873 (opens new window)


# topLeft

topLeft: number

Defined in: index.esm.d.ts:1870 (opens new window)


# topRight

topRight: number

Defined in: index.esm.d.ts:1871 (opens new window)

- + diff --git a/docs/latest/api/interfaces/bubblecontrollerdatasetoptions.html b/docs/latest/api/interfaces/bubblecontrollerdatasetoptions.html index 2e85889818..8a2583adae 100644 --- a/docs/latest/api/interfaces/bubblecontrollerdatasetoptions.html +++ b/docs/latest/api/interfaces/bubblecontrollerdatasetoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: BubbleControllerDatasetOptions

# Hierarchy

# Properties

# backgroundColor

backgroundColor: ScriptableAndArray<Color, ScriptableContext<bubble>>

Inherited from: ScriptableAndArrayOptions.backgroundColor

Defined in: index.esm.d.ts:1588 (opens new window)


# borderColor

borderColor: ScriptableAndArray<Color, ScriptableContext<bubble>>

Inherited from: ScriptableAndArrayOptions.borderColor

Defined in: index.esm.d.ts:1587 (opens new window)


# borderWidth

borderWidth: ScriptableAndArray<number, ScriptableContext<bubble>>

Inherited from: ScriptableAndArrayOptions.borderWidth

Defined in: index.esm.d.ts:1586 (opens new window)


# clip

clip: number | ChartArea

How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}

Inherited from: ControllerDatasetOptions.clip

Defined in: index.esm.d.ts:64 (opens new window)


# hidden

hidden: boolean

Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.

default false

Inherited from: ControllerDatasetOptions.hidden

Defined in: index.esm.d.ts:82 (opens new window)


# hitRadius

hitRadius: ScriptableAndArray<number, ScriptableContext<bubble>>

Extra radius added to point radius for hit detection.

default 1

Inherited from: ScriptableAndArrayOptions.hitRadius

Defined in: index.esm.d.ts:1758 (opens new window)


# hoverBackgroundColor

hoverBackgroundColor: ScriptableAndArray<Color, ScriptableContext<bubble>>

Inherited from: ScriptableAndArrayOptions.hoverBackgroundColor

Defined in: index.esm.d.ts:1594 (opens new window)


# hoverBorderColor

hoverBorderColor: ScriptableAndArray<Color, ScriptableContext<bubble>>

Inherited from: ScriptableAndArrayOptions.hoverBorderColor

Defined in: index.esm.d.ts:1593 (opens new window)


# hoverBorderWidth

hoverBorderWidth: ScriptableAndArray<number, ScriptableContext<bubble>>

Inherited from: ScriptableAndArrayOptions.hoverBorderWidth

Defined in: index.esm.d.ts:1592 (opens new window)


# hoverRadius

hoverRadius: ScriptableAndArray<number, ScriptableContext<bubble>>

Point radius when hovered.

default 4

Inherited from: ScriptableAndArrayOptions.hoverRadius

Defined in: index.esm.d.ts:1776 (opens new window)


# indexAxis

indexAxis: x | y

The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.

default 'x'

Inherited from: ControllerDatasetOptions.indexAxis

Defined in: index.esm.d.ts:60 (opens new window)


# label

label: string

The label for the dataset which appears in the legend and tooltips.

Inherited from: ControllerDatasetOptions.label

Defined in: index.esm.d.ts:68 (opens new window)


# normalized

normalized: boolean

Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.

Inherited from: ControllerDatasetOptions.normalized

Defined in: index.esm.d.ts:52 (opens new window)


# order

order: number

The drawing order of dataset. Also affects order for stacking, tooltip and legend.

Inherited from: ControllerDatasetOptions.order

Defined in: index.esm.d.ts:72 (opens new window)


# parsing

parsing: false | { [key: string]: string; }

How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.

Inherited from: ControllerDatasetOptions.parsing

Defined in: index.esm.d.ts:43 (opens new window)


# pointStyle

pointStyle: ScriptableAndArray<PointStyle, ScriptableContext<bubble>>

Point style

default 'circle;

Inherited from: ScriptableAndArrayOptions.pointStyle

Defined in: index.esm.d.ts:1763 (opens new window)


# radius

radius: ScriptableAndArray<number, ScriptableContext<bubble>>

Point radius

default 3

Inherited from: ScriptableAndArrayOptions.radius

Defined in: index.esm.d.ts:1753 (opens new window)


# rotation

rotation: ScriptableAndArray<number, ScriptableContext<bubble>>

Point rotation (in degrees).

default 0

Inherited from: ScriptableAndArrayOptions.rotation

Defined in: index.esm.d.ts:1768 (opens new window)


# stack

stack: string

The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).

Inherited from: ControllerDatasetOptions.stack

Defined in: index.esm.d.ts:77 (opens new window)

- + diff --git a/docs/latest/api/interfaces/bubbledatapoint.html b/docs/latest/api/interfaces/bubbledatapoint.html index d6f4cca588..ff9bc07feb 100644 --- a/docs/latest/api/interfaces/bubbledatapoint.html +++ b/docs/latest/api/interfaces/bubbledatapoint.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: BubbleDataPoint

# Properties

# r

r: number

Bubble radius in pixels (not scaled).

Defined in: index.esm.d.ts:164 (opens new window)


# x

x: number

X Value

Defined in: index.esm.d.ts:154 (opens new window)


# y

y: number

Y Value

Defined in: index.esm.d.ts:159 (opens new window)

- + diff --git a/docs/latest/api/interfaces/cartesianscaleoptions.html b/docs/latest/api/interfaces/cartesianscaleoptions.html index ea5b93760e..12a2d78019 100644 --- a/docs/latest/api/interfaces/cartesianscaleoptions.html +++ b/docs/latest/api/interfaces/cartesianscaleoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: CartesianScaleOptions

# Hierarchy

# Properties

# alignToPixels

alignToPixels: boolean

Align pixel values to device pixels

Inherited from: CoreScaleOptions.alignToPixels

Defined in: index.esm.d.ts:1077 (opens new window)


# axis

axis: x | y

Which type of axis this is. Possible values are: 'x', 'y'. If not set, this is inferred from the first character of the ID which should be 'x' or 'y'.

Defined in: index.esm.d.ts:2751 (opens new window)


# display

display: boolean | auto

Controls the axis global visibility (visible when true, hidden when false). When display: 'auto', the axis is visible only if at least one associated dataset is visible.

default true

Inherited from: CoreScaleOptions.display

Defined in: index.esm.d.ts:1073 (opens new window)


# grid

grid: GridLineOptions

Defined in: index.esm.d.ts:2769 (opens new window)


# max

max: number

User defined maximum value for the scale, overrides maximum value from data.

Defined in: index.esm.d.ts:2761 (opens new window)


# min

min: number

User defined minimum value for the scale, overrides minimum value from data.

Defined in: index.esm.d.ts:2756 (opens new window)


# offset

offset: boolean

If true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to true for a bar chart by default.

default false

Defined in: index.esm.d.ts:2767 (opens new window)


# position

position: left | right | bottom | top | center | { [scale: string]: number; }

Position of the axis.

Defined in: index.esm.d.ts:2747 (opens new window)


# reverse

reverse: boolean

Reverse the scale.

default false

Inherited from: CoreScaleOptions.reverse

Defined in: index.esm.d.ts:1082 (opens new window)


# stacked

Optional stacked: boolean | single

If true, data will be comprised between datasets of data

default false

Defined in: index.esm.d.ts:2786 (opens new window)


# ticks

ticks: TickOptions & { align: start | end | center ; autoSkip: boolean ; autoSkipPadding: number ; crossAlign: center | near | far ; labelOffset: number ; maxRotation: number ; minRotation: number ; mirror: boolean ; padding: number ; sampleSize: number }

Defined in: index.esm.d.ts:2788 (opens new window)


# title

title: object

# Type declaration:

Name Type
color Color
display boolean
font FontSpec
padding object
padding.bottom number
padding.top number
text string | string[]

Defined in: index.esm.d.ts:2771 (opens new window)


# weight

weight: number

The weight used to sort the axis. Higher weights are further away from the chart area.

default true

Inherited from: CoreScaleOptions.weight

Defined in: index.esm.d.ts:1087 (opens new window)

# Methods

# afterBuildTicks

afterBuildTicks(axis: Scale<CoreScaleOptions>): void

Callback that runs after ticks are created. Useful for filtering ticks.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Inherited from: CoreScaleOptions

Defined in: index.esm.d.ts:1115 (opens new window)


# afterCalculateTickRotation

afterCalculateTickRotation(axis: Scale<CoreScaleOptions>): void

Callback that runs after tick rotation is determined.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Inherited from: CoreScaleOptions

Defined in: index.esm.d.ts:1131 (opens new window)


# afterDataLimits

afterDataLimits(axis: Scale<CoreScaleOptions>): void

Callback that runs after data limits are determined.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Inherited from: CoreScaleOptions

Defined in: index.esm.d.ts:1107 (opens new window)


# afterFit

afterFit(axis: Scale<CoreScaleOptions>): void

Callback that runs after the scale fits to the canvas.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Inherited from: CoreScaleOptions

Defined in: index.esm.d.ts:1139 (opens new window)


# afterSetDimensions

afterSetDimensions(axis: Scale<CoreScaleOptions>): void

Callback that runs after dimensions are set.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Inherited from: CoreScaleOptions

Defined in: index.esm.d.ts:1099 (opens new window)


# afterTickToLabelConversion

afterTickToLabelConversion(axis: Scale<CoreScaleOptions>): void

Callback that runs after ticks are converted into strings.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Inherited from: CoreScaleOptions

Defined in: index.esm.d.ts:1123 (opens new window)


# afterUpdate

afterUpdate(axis: Scale<CoreScaleOptions>): void

Callback that runs at the end of the update process.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Inherited from: CoreScaleOptions

Defined in: index.esm.d.ts:1143 (opens new window)


# beforeBuildTicks

beforeBuildTicks(axis: Scale<CoreScaleOptions>): void

Callback that runs before ticks are created.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Inherited from: CoreScaleOptions

Defined in: index.esm.d.ts:1111 (opens new window)


# beforeCalculateTickRotation

beforeCalculateTickRotation(axis: Scale<CoreScaleOptions>): void

Callback that runs before tick rotation is determined.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Inherited from: CoreScaleOptions

Defined in: index.esm.d.ts:1127 (opens new window)


# beforeDataLimits

beforeDataLimits(axis: Scale<CoreScaleOptions>): void

Callback that runs before data limits are determined.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Inherited from: CoreScaleOptions

Defined in: index.esm.d.ts:1103 (opens new window)


# beforeFit

beforeFit(axis: Scale<CoreScaleOptions>): void

Callback that runs before the scale fits to the canvas.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Inherited from: CoreScaleOptions

Defined in: index.esm.d.ts:1135 (opens new window)


# beforeSetDimensions

beforeSetDimensions(axis: Scale<CoreScaleOptions>): void

Callback that runs before dimensions are set.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Inherited from: CoreScaleOptions

Defined in: index.esm.d.ts:1095 (opens new window)


# beforeTickToLabelConversion

beforeTickToLabelConversion(axis: Scale<CoreScaleOptions>): void

Callback that runs before ticks are converted into strings.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Inherited from: CoreScaleOptions

Defined in: index.esm.d.ts:1119 (opens new window)


# beforeUpdate

beforeUpdate(axis: Scale<CoreScaleOptions>): void

Callback called before the update process starts.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Inherited from: CoreScaleOptions

Defined in: index.esm.d.ts:1091 (opens new window)

- + diff --git a/docs/latest/api/interfaces/cartesianscaletyperegistry.html b/docs/latest/api/interfaces/cartesianscaletyperegistry.html index 9720ea90c0..086cde8503 100644 --- a/docs/latest/api/interfaces/cartesianscaletyperegistry.html +++ b/docs/latest/api/interfaces/cartesianscaletyperegistry.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: CartesianScaleTypeRegistry

# Hierarchy

# Properties

# category

category: object

# Type declaration:

Name Type
options CategoryScaleOptions

Defined in: index.esm.d.ts:3186 (opens new window)


# linear

linear: object

# Type declaration:

Name Type
options LinearScaleOptions

Defined in: index.esm.d.ts:3180 (opens new window)


# logarithmic

logarithmic: object

# Type declaration:

Name Type
options LogarithmicScaleOptions

Defined in: index.esm.d.ts:3183 (opens new window)


# time

time: object

# Type declaration:

Name Type
options TimeScaleOptions

Defined in: index.esm.d.ts:3189 (opens new window)


# timeseries

timeseries: object

# Type declaration:

Name Type
options TimeScaleOptions

Defined in: index.esm.d.ts:3192 (opens new window)

- + diff --git a/docs/latest/api/interfaces/chartarea.html b/docs/latest/api/interfaces/chartarea.html index 5949a4785e..04eb7f0ee2 100644 --- a/docs/latest/api/interfaces/chartarea.html +++ b/docs/latest/api/interfaces/chartarea.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ChartArea

# Properties

# bottom

bottom: number

Defined in: geometric.d.ts:5 (opens new window)


# left

left: number

Defined in: geometric.d.ts:3 (opens new window)


right: number

Defined in: geometric.d.ts:4 (opens new window)


# top

top: number

Defined in: geometric.d.ts:2 (opens new window)

- + diff --git a/docs/latest/api/interfaces/chartcomponent.html b/docs/latest/api/interfaces/chartcomponent.html index 9ce4d7f42a..005720286d 100644 --- a/docs/latest/api/interfaces/chartcomponent.html +++ b/docs/latest/api/interfaces/chartcomponent.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ChartComponent

# Hierarchy

# Properties

# defaultRoutes

Optional defaultRoutes: object

# Type declaration:

Defined in: index.esm.d.ts:1326 (opens new window)


# defaults

Optional defaults: Record<string, unknown>

Defined in: index.esm.d.ts:1325 (opens new window)


# id

id: string

Defined in: index.esm.d.ts:1324 (opens new window)

# Methods

# afterRegister

OptionalafterRegister(): void

Returns: void

Defined in: index.esm.d.ts:1329 (opens new window)


# afterUnregister

OptionalafterUnregister(): void

Returns: void

Defined in: index.esm.d.ts:1331 (opens new window)


# beforeRegister

OptionalbeforeRegister(): void

Returns: void

Defined in: index.esm.d.ts:1328 (opens new window)


# beforeUnregister

OptionalbeforeUnregister(): void

Returns: void

Defined in: index.esm.d.ts:1330 (opens new window)

- + diff --git a/docs/latest/api/interfaces/chartconfiguration.html b/docs/latest/api/interfaces/chartconfiguration.html index f5959d080c..80e7283ce9 100644 --- a/docs/latest/api/interfaces/chartconfiguration.html +++ b/docs/latest/api/interfaces/chartconfiguration.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ChartConfiguration<TType, TData, TLabel>

# Type parameters

Name Type Default
TType ChartType ChartType
TData - TType[]
TLabel - unknown

# Properties

# data

data: ChartData<TType, TData, TLabel>

Defined in: index.esm.d.ts:3363 (opens new window)


# options

Optional options: DeepPartial<CoreChartOptions<TType> & ElementChartOptions & PluginChartOptions<TType> & DatasetChartOptions<TType> & ScaleChartOptions<TType> & ChartTypeRegistry[TType][chartOptions]>

Defined in: index.esm.d.ts:3364 (opens new window)


# plugins

Optional plugins: Plugin<TType, Record<string, unknown>>[]

Defined in: index.esm.d.ts:3365 (opens new window)


# type

type: TType

Defined in: index.esm.d.ts:3362 (opens new window)

- + diff --git a/docs/latest/api/interfaces/chartdata.html b/docs/latest/api/interfaces/chartdata.html index 2ac02050a0..52133a1a27 100644 --- a/docs/latest/api/interfaces/chartdata.html +++ b/docs/latest/api/interfaces/chartdata.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ChartData<TType, TData, TLabel>

# Type parameters

Name Type Default
TType ChartType ChartType
TData - TType[]
TLabel - unknown

# Properties

# datasets

datasets: ChartDataset<TType, TData>[]

Defined in: index.esm.d.ts:3354 (opens new window)


# labels

Optional labels: TLabel[]

Defined in: index.esm.d.ts:3353 (opens new window)

- + diff --git a/docs/latest/api/interfaces/chartdatasetproperties.html b/docs/latest/api/interfaces/chartdatasetproperties.html index b88d7192a4..9865ec4a6e 100644 --- a/docs/latest/api/interfaces/chartdatasetproperties.html +++ b/docs/latest/api/interfaces/chartdatasetproperties.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ChartDatasetProperties<TType, TData>

# Type parameters

Name Type
TType ChartType
TData -

# Properties

# data

data: TData

Defined in: index.esm.d.ts:3338 (opens new window)


# type

Optional type: TType

Defined in: index.esm.d.ts:3337 (opens new window)

- + diff --git a/docs/latest/api/interfaces/chartevent.html b/docs/latest/api/interfaces/chartevent.html index 515d9419ad..3b984b5f5e 100644 --- a/docs/latest/api/interfaces/chartevent.html +++ b/docs/latest/api/interfaces/chartevent.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ChartEvent

# Properties

# native

native: Event

Defined in: index.esm.d.ts:1319 (opens new window)


# type

type: resize | mousemove | mouseout | click | contextmenu | mouseenter | mousedown | mouseup | dblclick | keydown | keypress | keyup

Defined in: index.esm.d.ts:1306 (opens new window)


# x

x: number

Defined in: index.esm.d.ts:1320 (opens new window)


# y

y: number

Defined in: index.esm.d.ts:1321 (opens new window)

- + diff --git a/docs/latest/api/interfaces/chartmeta.html b/docs/latest/api/interfaces/chartmeta.html index 313f9b71e7..0328a06fbc 100644 --- a/docs/latest/api/interfaces/chartmeta.html +++ b/docs/latest/api/interfaces/chartmeta.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ChartMeta<TElement, TDatasetElement>

# Type parameters

Name Type Default
TElement Element Element
TDatasetElement Element Element

# Properties

# _parsed

_parsed: unknown[]

Defined in: index.esm.d.ts:423 (opens new window)


# _sorted

_sorted: boolean

Defined in: index.esm.d.ts:421 (opens new window)


# _stacked

_stacked: boolean | single

Defined in: index.esm.d.ts:422 (opens new window)


# controller

controller: DatasetController<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, Element<{}, {}>, Element<{}, {}>, number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData>

Defined in: index.esm.d.ts:393 (opens new window)


# data

data: TElement[]

Defined in: index.esm.d.ts:404 (opens new window)


# dataset

Optional dataset: TDatasetElement

Defined in: index.esm.d.ts:405 (opens new window)


# hidden

hidden: boolean

Defined in: index.esm.d.ts:407 (opens new window)


# iAxisID

iAxisID: string

Defined in: index.esm.d.ts:412 (opens new window)


# iScale

Optional iScale: Scale<CoreScaleOptions>

Defined in: index.esm.d.ts:418 (opens new window)


# index

index: number

Defined in: index.esm.d.ts:397 (opens new window)


# indexAxis

indexAxis: x | y

Defined in: index.esm.d.ts:402 (opens new window)


# label

label: string

Defined in: index.esm.d.ts:396 (opens new window)


# order

order: number

Defined in: index.esm.d.ts:394 (opens new window)


# rAxisID

Optional rAxisID: string

Defined in: index.esm.d.ts:411 (opens new window)


# rScale

Optional rScale: Scale<CoreScaleOptions>

Defined in: index.esm.d.ts:417 (opens new window)


# stack

stack: number

Defined in: index.esm.d.ts:400 (opens new window)


# type

type: string

Defined in: index.esm.d.ts:392 (opens new window)


# vAxisID

vAxisID: string

Defined in: index.esm.d.ts:413 (opens new window)


# vScale

Optional vScale: Scale<CoreScaleOptions>

Defined in: index.esm.d.ts:419 (opens new window)


# visible

visible: boolean

Defined in: index.esm.d.ts:398 (opens new window)


# xAxisID

Optional xAxisID: string

Defined in: index.esm.d.ts:409 (opens new window)


# xScale

Optional xScale: Scale<CoreScaleOptions>

Defined in: index.esm.d.ts:415 (opens new window)


# yAxisID

Optional yAxisID: string

Defined in: index.esm.d.ts:410 (opens new window)


# yScale

Optional yScale: Scale<CoreScaleOptions>

Defined in: index.esm.d.ts:416 (opens new window)

- + diff --git a/docs/latest/api/interfaces/charttyperegistry.html b/docs/latest/api/interfaces/charttyperegistry.html index 95146b281a..a8300ac0ba 100644 --- a/docs/latest/api/interfaces/charttyperegistry.html +++ b/docs/latest/api/interfaces/charttyperegistry.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ChartTypeRegistry

# Properties

# bar

bar: object

# Type declaration:

Name Type
chartOptions BarControllerChartOptions
datasetOptions BarControllerDatasetOptions
defaultDataPoint number
parsedDataType BarParsedData
scales linear | logarithmic | category | time | timeseries

Defined in: index.esm.d.ts:3244 (opens new window)


# bubble

bubble: object

# Type declaration:

Name Type
chartOptions unknown
datasetOptions BubbleControllerDatasetOptions
defaultDataPoint BubbleDataPoint
parsedDataType BubbleParsedData
scales linear | logarithmic | category | time | timeseries

Defined in: index.esm.d.ts:3265 (opens new window)


# doughnut

doughnut: object

# Type declaration:

Name Type
chartOptions DoughnutControllerChartOptions
datasetOptions DoughnutControllerDatasetOptions
defaultDataPoint number
parsedDataType number
scales linear | logarithmic | category | time | timeseries

Defined in: index.esm.d.ts:3279 (opens new window)


# line

line: object

# Type declaration:

Name Type
chartOptions LineControllerChartOptions
datasetOptions LineControllerDatasetOptions & FillerControllerDatasetOptions
defaultDataPoint number | ScatterDataPoint
parsedDataType CartesianParsedData
scales linear | logarithmic | category | time | timeseries

Defined in: index.esm.d.ts:3251 (opens new window)


# pie

pie: object

# Type declaration:

Name Type
chartOptions DoughnutControllerChartOptions
datasetOptions DoughnutControllerDatasetOptions
defaultDataPoint number
parsedDataType number
scales linear | logarithmic | category | time | timeseries

Defined in: index.esm.d.ts:3272 (opens new window)


# polarArea

polarArea: object

# Type declaration:

Name Type
chartOptions PolarAreaControllerChartOptions
datasetOptions PolarAreaControllerDatasetOptions
defaultDataPoint number
parsedDataType RadialParsedData
scales radialLinear

Defined in: index.esm.d.ts:3286 (opens new window)


# radar

radar: object

# Type declaration:

Name Type
chartOptions LineControllerChartOptions
datasetOptions RadarControllerDatasetOptions
defaultDataPoint number
parsedDataType RadialParsedData
scales radialLinear

Defined in: index.esm.d.ts:3293 (opens new window)


# scatter

scatter: object

# Type declaration:

Name Type
chartOptions LineControllerChartOptions
datasetOptions LineControllerDatasetOptions
defaultDataPoint number | ScatterDataPoint
parsedDataType CartesianParsedData
scales linear | logarithmic | category | time | timeseries

Defined in: index.esm.d.ts:3258 (opens new window)

- + diff --git a/docs/latest/api/interfaces/commonelementoptions.html b/docs/latest/api/interfaces/commonelementoptions.html index d7803a4e25..df5eb40e6a 100644 --- a/docs/latest/api/interfaces/commonelementoptions.html +++ b/docs/latest/api/interfaces/commonelementoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: CommonElementOptions

# Hierarchy

# Properties

# backgroundColor

backgroundColor: Color

Defined in: index.esm.d.ts:1588 (opens new window)


# borderColor

borderColor: Color

Defined in: index.esm.d.ts:1587 (opens new window)


# borderWidth

borderWidth: number

Defined in: index.esm.d.ts:1586 (opens new window)

- + diff --git a/docs/latest/api/interfaces/commonhoveroptions.html b/docs/latest/api/interfaces/commonhoveroptions.html index 0598309113..c3f17e894d 100644 --- a/docs/latest/api/interfaces/commonhoveroptions.html +++ b/docs/latest/api/interfaces/commonhoveroptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: CommonHoverOptions

# Hierarchy

# Properties

# hoverBackgroundColor

hoverBackgroundColor: Color

Defined in: index.esm.d.ts:1594 (opens new window)


# hoverBorderColor

hoverBorderColor: Color

Defined in: index.esm.d.ts:1593 (opens new window)


# hoverBorderWidth

hoverBorderWidth: number

Defined in: index.esm.d.ts:1592 (opens new window)

- + diff --git a/docs/latest/api/interfaces/complexfilltarget.html b/docs/latest/api/interfaces/complexfilltarget.html index 8818830fa9..a1ec542a54 100644 --- a/docs/latest/api/interfaces/complexfilltarget.html +++ b/docs/latest/api/interfaces/complexfilltarget.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ComplexFillTarget

# Properties

# above

above: Color

If no color is set, the default color will be the background color of the chart.

Defined in: index.esm.d.ts:1990 (opens new window)


# below

below: Color

Same as the above.

Defined in: index.esm.d.ts:1994 (opens new window)


# target

target: FillTarget

The accepted values are the same as the filling mode values, so you may use absolute and relative dataset indexes and/or boundaries.

Defined in: index.esm.d.ts:1986 (opens new window)

- + diff --git a/docs/latest/api/interfaces/controllerdatasetoptions.html b/docs/latest/api/interfaces/controllerdatasetoptions.html index 7cf29a9706..0ecb2e9b2b 100644 --- a/docs/latest/api/interfaces/controllerdatasetoptions.html +++ b/docs/latest/api/interfaces/controllerdatasetoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ControllerDatasetOptions

# Hierarchy

# Properties

# clip

clip: number | ChartArea

How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}

Defined in: index.esm.d.ts:64 (opens new window)


# hidden

hidden: boolean

Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.

default false

Defined in: index.esm.d.ts:82 (opens new window)


# indexAxis

indexAxis: x | y

The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.

default 'x'

Defined in: index.esm.d.ts:60 (opens new window)


# label

label: string

The label for the dataset which appears in the legend and tooltips.

Defined in: index.esm.d.ts:68 (opens new window)


# normalized

normalized: boolean

Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.

Inherited from: ParsingOptions.normalized

Defined in: index.esm.d.ts:52 (opens new window)


# order

order: number

The drawing order of dataset. Also affects order for stacking, tooltip and legend.

Defined in: index.esm.d.ts:72 (opens new window)


# parsing

parsing: false | { [key: string]: string; }

How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.

Inherited from: ParsingOptions.parsing

Defined in: index.esm.d.ts:43 (opens new window)


# stack

stack: string

The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).

Defined in: index.esm.d.ts:77 (opens new window)

- + diff --git a/docs/latest/api/interfaces/corechartoptions.html b/docs/latest/api/interfaces/corechartoptions.html index 33d0ffec63..f851a7e285 100644 --- a/docs/latest/api/interfaces/corechartoptions.html +++ b/docs/latest/api/interfaces/corechartoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: CoreChartOptions<TType>

# Type parameters

Name Type
TType ChartType

# Hierarchy

# Properties

# animation

animation: false | AnimationSpec<TType> & { onComplete?: (event: AnimationEvent) => void ; onProgress?: (event: AnimationEvent) => void }

Inherited from: AnimationOptions.animation

Defined in: index.esm.d.ts:1533 (opens new window)


# animations

animations: AnimationsSpec<TType>

Inherited from: AnimationOptions.animations

Defined in: index.esm.d.ts:1543 (opens new window)


# aspectRatio

aspectRatio: number

Canvas aspect ratio (i.e. width / height, a value of 1 representing a square canvas). Note that this option is ignored if the height is explicitly defined either as attribute or via the style.

default 2

Defined in: index.esm.d.ts:1399 (opens new window)


# backgroundColor

backgroundColor: Color

base background color

see Defaults.backgroundColor

Defined in: index.esm.d.ts:1373 (opens new window)


# borderColor

borderColor: Color

base border color

see Defaults.borderColor

Defined in: index.esm.d.ts:1378 (opens new window)


# color

color: Color

base color

see Defaults.color

Defined in: index.esm.d.ts:1368 (opens new window)


# datasets

datasets: object

# Type declaration:

Name Type
bar
bubble
doughnut
line
pie
polarArea
radar
scatter

Defined in: index.esm.d.ts:1354 (opens new window)


# devicePixelRatio

devicePixelRatio: number

Override the window's default devicePixelRatio.

default window.devicePixelRatio

Defined in: index.esm.d.ts:1416 (opens new window)


# events

events: (mousemove | mouseout | click | touchstart | touchmove)[]

The events option defines the browser events that the chart should listen to for tooltips and hovering.

default ['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove']

Defined in: index.esm.d.ts:1426 (opens new window)


# font

font: FontSpec

base font

see Defaults.font

Defined in: index.esm.d.ts:1383 (opens new window)


# hover

hover: CoreInteractionOptions

Defined in: index.esm.d.ts:1420 (opens new window)


# indexAxis

indexAxis: x | y

The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.

default 'x'

Defined in: index.esm.d.ts:1362 (opens new window)


# interaction

interaction: CoreInteractionOptions

Defined in: index.esm.d.ts:1418 (opens new window)


# layout

layout: object

# Type declaration:

Name Type
padding Scriptable<number | ChartArea, ScriptableContext<TType>>

Defined in: index.esm.d.ts:1438 (opens new window)


# locale

locale: string

Locale used for number formatting (using Intl.NumberFormat).

default user's browser setting

Defined in: index.esm.d.ts:1405 (opens new window)


# maintainAspectRatio

maintainAspectRatio: boolean

Maintain the original canvas aspect ratio (width / height) when resizing.

default true

Defined in: index.esm.d.ts:1393 (opens new window)


# normalized

normalized: boolean

Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.

Inherited from: ParsingOptions.normalized

Defined in: index.esm.d.ts:52 (opens new window)


# parsing

parsing: false | { [key: string]: string; }

How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.

Inherited from: ParsingOptions.parsing

Defined in: index.esm.d.ts:43 (opens new window)


# responsive

responsive: boolean

Resizes the chart canvas when its container does (important note...).

default true

Defined in: index.esm.d.ts:1388 (opens new window)


# transitions

transitions: TransitionsSpec<TType>

Inherited from: AnimationOptions.transitions

Defined in: index.esm.d.ts:1544 (opens new window)

# Methods

# onClick

onClick(event: ChartEvent, elements: ActiveElement[], chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>): void

Called if the event is of type 'mouseup' or 'click'. Passed the event, an array of active elements, and the chart.

# Parameters:

Name Type
event ChartEvent
elements ActiveElement[]
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns: void

Defined in: index.esm.d.ts:1436 (opens new window)


# onHover

onHover(event: ChartEvent, elements: ActiveElement[], chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>): void

Called when any of the events fire. Passed the event, an array of active elements (bars, points, etc), and the chart.

# Parameters:

Name Type
event ChartEvent
elements ActiveElement[]
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns: void

Defined in: index.esm.d.ts:1431 (opens new window)


# onResize

onResize(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, size: { height: number ; width: number }): void

Called when a resize occurs. Gets passed two arguments: the chart instance and the new size.

# Parameters:

Name Type
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>
size object
size.height number
size.width number

Returns: void

Defined in: index.esm.d.ts:1410 (opens new window)

- + diff --git a/docs/latest/api/interfaces/coreinteractionoptions.html b/docs/latest/api/interfaces/coreinteractionoptions.html index 58b2552678..9ae168f1ad 100644 --- a/docs/latest/api/interfaces/coreinteractionoptions.html +++ b/docs/latest/api/interfaces/coreinteractionoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: CoreInteractionOptions

# Hierarchy

# Properties

# axis

axis: x | y | xy

Can be set to 'x', 'y', or 'xy' to define which directions are used in calculating distances. Defaults to 'x' for 'index' mode and 'xy' in dataset and 'nearest' modes.

Defined in: index.esm.d.ts:1349 (opens new window)


# intersect

intersect: boolean

if true, the hover mode only applies when the mouse position intersects an item on the chart.

default true

Defined in: index.esm.d.ts:1344 (opens new window)


# mode

mode: x | y | dataset | index | point | nearest

Sets which elements appear in the tooltip. See Interaction Modes for details.

default 'nearest'

Defined in: index.esm.d.ts:1339 (opens new window)

- + diff --git a/docs/latest/api/interfaces/corescaleoptions.html b/docs/latest/api/interfaces/corescaleoptions.html index 1c1b35a97c..3f81d8e722 100644 --- a/docs/latest/api/interfaces/corescaleoptions.html +++ b/docs/latest/api/interfaces/corescaleoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: CoreScaleOptions

# Hierarchy

# Properties

# alignToPixels

alignToPixels: boolean

Align pixel values to device pixels

Defined in: index.esm.d.ts:1077 (opens new window)


# display

display: boolean | auto

Controls the axis global visibility (visible when true, hidden when false). When display: 'auto', the axis is visible only if at least one associated dataset is visible.

default true

Defined in: index.esm.d.ts:1073 (opens new window)


# reverse

reverse: boolean

Reverse the scale.

default false

Defined in: index.esm.d.ts:1082 (opens new window)


# weight

weight: number

The weight used to sort the axis. Higher weights are further away from the chart area.

default true

Defined in: index.esm.d.ts:1087 (opens new window)

# Methods

# afterBuildTicks

afterBuildTicks(axis: Scale<CoreScaleOptions>): void

Callback that runs after ticks are created. Useful for filtering ticks.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Defined in: index.esm.d.ts:1115 (opens new window)


# afterCalculateTickRotation

afterCalculateTickRotation(axis: Scale<CoreScaleOptions>): void

Callback that runs after tick rotation is determined.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Defined in: index.esm.d.ts:1131 (opens new window)


# afterDataLimits

afterDataLimits(axis: Scale<CoreScaleOptions>): void

Callback that runs after data limits are determined.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Defined in: index.esm.d.ts:1107 (opens new window)


# afterFit

afterFit(axis: Scale<CoreScaleOptions>): void

Callback that runs after the scale fits to the canvas.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Defined in: index.esm.d.ts:1139 (opens new window)


# afterSetDimensions

afterSetDimensions(axis: Scale<CoreScaleOptions>): void

Callback that runs after dimensions are set.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Defined in: index.esm.d.ts:1099 (opens new window)


# afterTickToLabelConversion

afterTickToLabelConversion(axis: Scale<CoreScaleOptions>): void

Callback that runs after ticks are converted into strings.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Defined in: index.esm.d.ts:1123 (opens new window)


# afterUpdate

afterUpdate(axis: Scale<CoreScaleOptions>): void

Callback that runs at the end of the update process.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Defined in: index.esm.d.ts:1143 (opens new window)


# beforeBuildTicks

beforeBuildTicks(axis: Scale<CoreScaleOptions>): void

Callback that runs before ticks are created.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Defined in: index.esm.d.ts:1111 (opens new window)


# beforeCalculateTickRotation

beforeCalculateTickRotation(axis: Scale<CoreScaleOptions>): void

Callback that runs before tick rotation is determined.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Defined in: index.esm.d.ts:1127 (opens new window)


# beforeDataLimits

beforeDataLimits(axis: Scale<CoreScaleOptions>): void

Callback that runs before data limits are determined.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Defined in: index.esm.d.ts:1103 (opens new window)


# beforeFit

beforeFit(axis: Scale<CoreScaleOptions>): void

Callback that runs before the scale fits to the canvas.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Defined in: index.esm.d.ts:1135 (opens new window)


# beforeSetDimensions

beforeSetDimensions(axis: Scale<CoreScaleOptions>): void

Callback that runs before dimensions are set.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Defined in: index.esm.d.ts:1095 (opens new window)


# beforeTickToLabelConversion

beforeTickToLabelConversion(axis: Scale<CoreScaleOptions>): void

Callback that runs before ticks are converted into strings.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Defined in: index.esm.d.ts:1119 (opens new window)


# beforeUpdate

beforeUpdate(axis: Scale<CoreScaleOptions>): void

Callback called before the update process starts.

# Parameters:

Name Type
axis Scale<CoreScaleOptions>

Returns: void

Defined in: index.esm.d.ts:1091 (opens new window)

- + diff --git a/docs/latest/api/interfaces/datasetcontrollerchartcomponent.html b/docs/latest/api/interfaces/datasetcontrollerchartcomponent.html index a3acadd750..515f995834 100644 --- a/docs/latest/api/interfaces/datasetcontrollerchartcomponent.html +++ b/docs/latest/api/interfaces/datasetcontrollerchartcomponent.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: DatasetControllerChartComponent

# Hierarchy

# Properties

# defaultRoutes

Optional defaultRoutes: object

# Type declaration:

Inherited from: ChartComponent.defaultRoutes

Defined in: index.esm.d.ts:1326 (opens new window)


# defaults

defaults: object

# Type declaration:

Name Type
dataElementType? string | false
datasetElementType? string | false

Overrides: ChartComponent.defaults

Defined in: index.esm.d.ts:601 (opens new window)


# id

id: string

Inherited from: ChartComponent.id

Defined in: index.esm.d.ts:1324 (opens new window)

# Methods

# afterRegister

OptionalafterRegister(): void

Returns: void

Inherited from: ChartComponent

Defined in: index.esm.d.ts:1329 (opens new window)


# afterUnregister

OptionalafterUnregister(): void

Returns: void

Inherited from: ChartComponent

Defined in: index.esm.d.ts:1331 (opens new window)


# beforeRegister

OptionalbeforeRegister(): void

Returns: void

Inherited from: ChartComponent

Defined in: index.esm.d.ts:1328 (opens new window)


# beforeUnregister

OptionalbeforeUnregister(): void

Returns: void

Inherited from: ChartComponent

Defined in: index.esm.d.ts:1330 (opens new window)

- + diff --git a/docs/latest/api/interfaces/dateadapter.html b/docs/latest/api/interfaces/dateadapter.html index 489fdd8b8f..d7a1646686 100644 --- a/docs/latest/api/interfaces/dateadapter.html +++ b/docs/latest/api/interfaces/dateadapter.html @@ -7,7 +7,7 @@ - + @@ -39,8 +39,8 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: DateAdapter

# Properties

# options

Readonly options: any

Defined in: adapters.d.ts:6 (opens new window)

# Methods

# add

add(timestamp: number, amount: number, unit: TimeUnit): number

Adds the specified amount of unit to the given timestamp.

# Parameters:

Name Type Description
timestamp number the input timestamp
amount number the amount to add
unit TimeUnit the unit as string

Returns: number

Defined in: adapters.d.ts:34 (opens new window)


# diff

diff(a: number, b: number, unit: TimeUnit): number

Returns the number of unit between the given timestamps.

# Parameters:

Name Type Description
a number the input timestamp (reference)
b number the timestamp to subtract
unit TimeUnit the unit as string

Returns: number

Defined in: adapters.d.ts:42 (opens new window)


# endOf

endOf(timestamp: number, unit: millisecond | second | minute | hour | day | week | month | quarter | year | isoWeek): number

Returns end of unit for the given timestamp.

# Parameters:

Name Type Description
timestamp number the input timestamp
unit millisecond | second | minute | hour | day | week | month | quarter | year | isoWeek the unit as string

Returns: number

Defined in: adapters.d.ts:58 (opens new window)


# format

format(timestamp: number, format: TimeUnit): string

Returns the formatted date in the specified format for a given timestamp.

# Parameters:

Name Type Description
timestamp number the timestamp to format
format TimeUnit the date/time token

Returns: string

Defined in: adapters.d.ts:26 (opens new window)


# formats

formats(): object

Returns a map of time formats for the supported formatting units defined -in Unit as well as 'datetime' representing a detailed date/time string.

Returns: object

Defined in: adapters.d.ts:13 (opens new window)


# override

override(members: Partial<DateAdapter>): void

# Parameters:

Name Type
members Partial<DateAdapter>

Returns: void

Defined in: adapters.d.ts:5 (opens new window)


# parse

parse(value: any, format?: TimeUnit): number

Parses the given value and return the associated timestamp.

# Parameters:

Name Type Description
value any the value to parse (usually comes from the data)
format? TimeUnit -

Returns: number

Defined in: adapters.d.ts:19 (opens new window)


# startOf

startOf(timestamp: number, unit: millisecond | second | minute | hour | day | week | month | quarter | year | isoWeek, weekday?: number): number

Returns start of unit for the given timestamp.

# Parameters:

Name Type Description
timestamp number the input timestamp
unit millisecond | second | minute | hour | day | week | month | quarter | year | isoWeek the unit as string
weekday? number -

Returns: number

Defined in: adapters.d.ts:51 (opens new window)

- + diff --git a/docs/latest/api/interfaces/defaults.html b/docs/latest/api/interfaces/defaults.html index 35c851b335..4493262cdf 100644 --- a/docs/latest/api/interfaces/defaults.html +++ b/docs/latest/api/interfaces/defaults.html @@ -7,7 +7,7 @@ - + @@ -39,10 +39,10 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: Defaults

# Hierarchy

# Properties

# animation

animation: false | AnimationSpec<bar | line | scatter | bubble | pie | doughnut | polarArea | radar> & { onComplete?: (event: AnimationEvent) => void ; onProgress?: (event: AnimationEvent) => void }

Inherited from: CoreChartOptions.animation

Defined in: index.esm.d.ts:1533 (opens new window)


# animations

animations: AnimationsSpec<bar | line | scatter | bubble | pie | doughnut | polarArea | radar>

Inherited from: CoreChartOptions.animations

Defined in: index.esm.d.ts:1543 (opens new window)


# aspectRatio

aspectRatio: number

Canvas aspect ratio (i.e. width / height, a value of 1 representing a square canvas). Note that this option is ignored if the height is explicitly defined either as attribute or via the style.

default 2

Inherited from: CoreChartOptions.aspectRatio

Defined in: index.esm.d.ts:1399 (opens new window)


# backgroundColor

backgroundColor: Color

base background color

see Defaults.backgroundColor

Inherited from: CoreChartOptions.backgroundColor

Defined in: index.esm.d.ts:1373 (opens new window)


# borderColor

borderColor: Color

base border color

see Defaults.borderColor

Inherited from: CoreChartOptions.borderColor

Defined in: index.esm.d.ts:1378 (opens new window)


# color

color: Color

base color

see Defaults.color

Inherited from: CoreChartOptions.color

Defined in: index.esm.d.ts:1368 (opens new window)


# datasets

datasets: object

# Type declaration:

Name Type
bar
bubble
doughnut
line
pie
polarArea
radar
scatter

Inherited from: CoreChartOptions.datasets

Defined in: index.esm.d.ts:1354 (opens new window)


# devicePixelRatio

devicePixelRatio: number

Override the window's default devicePixelRatio.

default window.devicePixelRatio

Inherited from: CoreChartOptions.devicePixelRatio

Defined in: index.esm.d.ts:1416 (opens new window)


# elements

elements: Partial<ElementOptionsByType>

Inherited from: ElementChartOptions.elements

Defined in: index.esm.d.ts:1897 (opens new window)


# events

events: (mousemove | mouseout | click | touchstart | touchmove)[]

The events option defines the browser events that the chart should listen to for tooltips and hovering.

default ['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove']

Inherited from: CoreChartOptions.events

Defined in: index.esm.d.ts:1426 (opens new window)


# font

font: FontSpec

base font

see Defaults.font

Inherited from: CoreChartOptions.font

Defined in: index.esm.d.ts:1383 (opens new window)


# hover

hover: CoreInteractionOptions

Inherited from: CoreChartOptions.hover

Defined in: index.esm.d.ts:1420 (opens new window)


# indexAxis

indexAxis: x | y

The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.

default 'x'

Inherited from: CoreChartOptions.indexAxis

Defined in: index.esm.d.ts:1362 (opens new window)


# interaction

interaction: CoreInteractionOptions

Inherited from: CoreChartOptions.interaction

Defined in: index.esm.d.ts:1418 (opens new window)


# layout

layout: object

# Type declaration:

Name Type
padding Scriptable<number | ChartArea, ScriptableContext<bar | line | scatter | bubble | pie | doughnut | polarArea | radar>>

Inherited from: CoreChartOptions.layout

Defined in: index.esm.d.ts:1438 (opens new window)


# locale

locale: string

Locale used for number formatting (using Intl.NumberFormat).

default user's browser setting

Inherited from: CoreChartOptions.locale

Defined in: index.esm.d.ts:1405 (opens new window)


# maintainAspectRatio

maintainAspectRatio: boolean

Maintain the original canvas aspect ratio (width / height) when resizing.

default true

Inherited from: CoreChartOptions.maintainAspectRatio

Defined in: index.esm.d.ts:1393 (opens new window)


# normalized

normalized: boolean

Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.

Inherited from: CoreChartOptions.normalized

Defined in: index.esm.d.ts:52 (opens new window)


# parsing

parsing: false | { [key: string]: string; }

How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.

Inherited from: CoreChartOptions.parsing

Defined in: index.esm.d.ts:43 (opens new window)


# plugins

plugins: PluginOptionsByType<bar | line | scatter | bubble | pie | doughnut | polarArea | radar>

Inherited from: PluginChartOptions.plugins

Defined in: index.esm.d.ts:2626 (opens new window)


# responsive

responsive: boolean

Resizes the chart canvas when its container does (important note...).

default true

Inherited from: CoreChartOptions.responsive

Defined in: index.esm.d.ts:1388 (opens new window)


# scale

scale: ScaleOptionsByType<linear | logarithmic | category | time | timeseries | radialLinear>

Defined in: index.esm.d.ts:609 (opens new window)


# scales

scales: object

# Type declaration:

Name Type
category
linear
logarithmic
radialLinear
time
timeseries

Defined in: index.esm.d.ts:610 (opens new window)


# transitions

transitions: TransitionsSpec<bar | line | scatter | bubble | pie | doughnut | polarArea | radar>

Inherited from: CoreChartOptions.transitions

Defined in: index.esm.d.ts:1544 (opens new window)

# Methods

# describe

describe(scope: string, values: Record<string, unknown>): Record<string, unknown>

# Parameters:

Name Type
scope string
values Record<string, unknown>

Returns: Record<string, unknown>

Defined in: index.esm.d.ts:618 (opens new window)


# get

get(scope: string): Record<string, unknown>

# Parameters:

Name Type
scope string

Returns: Record<string, unknown>

Defined in: index.esm.d.ts:616 (opens new window)


# onClick

onClick(event: ChartEvent, elements: ActiveElement[], chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>): void

Called if the event is of type 'mouseup' or 'click'. Passed the event, an array of active elements, and the chart.

# Parameters:

Name Type
event ChartEvent
elements ActiveElement[]
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns: void

Inherited from: CoreChartOptions

Defined in: index.esm.d.ts:1436 (opens new window)


# onHover

onHover(event: ChartEvent, elements: ActiveElement[], chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>): void

Called when any of the events fire. Passed the event, an array of active elements (bars, points, etc), and the chart.

# Parameters:

Name Type
event ChartEvent
elements ActiveElement[]
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns: void

Inherited from: CoreChartOptions

Defined in: index.esm.d.ts:1431 (opens new window)


# onResize

onResize(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, size: { height: number ; width: number }): void

Called when a resize occurs. Gets passed two arguments: the chart instance and the new size.

# Parameters:

Name Type
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>
size object
size.height number
size.width number

Returns: void

Inherited from: CoreChartOptions

Defined in: index.esm.d.ts:1410 (opens new window)


# override

override(scope: string, values: Record<string, unknown>): Record<string, unknown>

# Parameters:

Name Type
scope string
values Record<string, unknown>

Returns: Record<string, unknown>

Defined in: index.esm.d.ts:619 (opens new window)


# route

route(scope: string, name: string, targetScope: string, targetName: string): void

Routes the named defaults to fallback to another scope/name. + (opens new window)

# Interface: Defaults

# Hierarchy

# Properties

# animation

animation: false | AnimationSpec<bar | line | scatter | bubble | pie | doughnut | polarArea | radar> & { onComplete?: (event: AnimationEvent) => void ; onProgress?: (event: AnimationEvent) => void }

Inherited from: CoreChartOptions.animation

Defined in: index.esm.d.ts:1533 (opens new window)


# animations

animations: AnimationsSpec<bar | line | scatter | bubble | pie | doughnut | polarArea | radar>

Inherited from: CoreChartOptions.animations

Defined in: index.esm.d.ts:1543 (opens new window)


# aspectRatio

aspectRatio: number

Canvas aspect ratio (i.e. width / height, a value of 1 representing a square canvas). Note that this option is ignored if the height is explicitly defined either as attribute or via the style.

default 2

Inherited from: CoreChartOptions.aspectRatio

Defined in: index.esm.d.ts:1399 (opens new window)


# backgroundColor

backgroundColor: Color

base background color

see Defaults.backgroundColor

Inherited from: CoreChartOptions.backgroundColor

Defined in: index.esm.d.ts:1373 (opens new window)


# borderColor

borderColor: Color

base border color

see Defaults.borderColor

Inherited from: CoreChartOptions.borderColor

Defined in: index.esm.d.ts:1378 (opens new window)


# color

color: Color

base color

see Defaults.color

Inherited from: CoreChartOptions.color

Defined in: index.esm.d.ts:1368 (opens new window)


# datasets

datasets: object

# Type declaration:

Name Type
bar
bubble
doughnut
line
pie
polarArea
radar
scatter

Inherited from: CoreChartOptions.datasets

Defined in: index.esm.d.ts:1354 (opens new window)


# devicePixelRatio

devicePixelRatio: number

Override the window's default devicePixelRatio.

default window.devicePixelRatio

Inherited from: CoreChartOptions.devicePixelRatio

Defined in: index.esm.d.ts:1416 (opens new window)


# elements

elements: Partial<ElementOptionsByType>

Inherited from: ElementChartOptions.elements

Defined in: index.esm.d.ts:1897 (opens new window)


# events

events: (mousemove | mouseout | click | touchstart | touchmove)[]

The events option defines the browser events that the chart should listen to for tooltips and hovering.

default ['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove']

Inherited from: CoreChartOptions.events

Defined in: index.esm.d.ts:1426 (opens new window)


# font

font: FontSpec

base font

see Defaults.font

Inherited from: CoreChartOptions.font

Defined in: index.esm.d.ts:1383 (opens new window)


# hover

hover: CoreInteractionOptions

Inherited from: CoreChartOptions.hover

Defined in: index.esm.d.ts:1420 (opens new window)


# indexAxis

indexAxis: x | y

The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.

default 'x'

Inherited from: CoreChartOptions.indexAxis

Defined in: index.esm.d.ts:1362 (opens new window)


# interaction

interaction: CoreInteractionOptions

Inherited from: CoreChartOptions.interaction

Defined in: index.esm.d.ts:1418 (opens new window)


# layout

layout: object

# Type declaration:

Name Type
padding Scriptable<number | ChartArea, ScriptableContext<bar | line | scatter | bubble | pie | doughnut | polarArea | radar>>

Inherited from: CoreChartOptions.layout

Defined in: index.esm.d.ts:1438 (opens new window)


# locale

locale: string

Locale used for number formatting (using Intl.NumberFormat).

default user's browser setting

Inherited from: CoreChartOptions.locale

Defined in: index.esm.d.ts:1405 (opens new window)


# maintainAspectRatio

maintainAspectRatio: boolean

Maintain the original canvas aspect ratio (width / height) when resizing.

default true

Inherited from: CoreChartOptions.maintainAspectRatio

Defined in: index.esm.d.ts:1393 (opens new window)


# normalized

normalized: boolean

Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.

Inherited from: CoreChartOptions.normalized

Defined in: index.esm.d.ts:52 (opens new window)


# parsing

parsing: false | { [key: string]: string; }

How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.

Inherited from: CoreChartOptions.parsing

Defined in: index.esm.d.ts:43 (opens new window)


# plugins

plugins: PluginOptionsByType<bar | line | scatter | bubble | pie | doughnut | polarArea | radar>

Inherited from: PluginChartOptions.plugins

Defined in: index.esm.d.ts:2626 (opens new window)


# responsive

responsive: boolean

Resizes the chart canvas when its container does (important note...).

default true

Inherited from: CoreChartOptions.responsive

Defined in: index.esm.d.ts:1388 (opens new window)


# scale

scale: ScaleOptionsByType<linear | logarithmic | category | time | timeseries | radialLinear>

Defined in: index.esm.d.ts:609 (opens new window)


# scales

scales: object

# Type declaration:

Name Type
category
linear
logarithmic
radialLinear
time
timeseries

Defined in: index.esm.d.ts:610 (opens new window)


# transitions

transitions: TransitionsSpec<bar | line | scatter | bubble | pie | doughnut | polarArea | radar>

Inherited from: CoreChartOptions.transitions

Defined in: index.esm.d.ts:1544 (opens new window)

# Methods

# describe

describe(scope: string, values: Record<string, unknown>): Record<string, unknown>

# Parameters:

Name Type
scope string
values Record<string, unknown>

Returns: Record<string, unknown>

Defined in: index.esm.d.ts:618 (opens new window)


# get

get(scope: string): Record<string, unknown>

# Parameters:

Name Type
scope string

Returns: Record<string, unknown>

Defined in: index.esm.d.ts:616 (opens new window)


# onClick

onClick(event: ChartEvent, elements: ActiveElement[], chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>): void

Called if the event is of type 'mouseup' or 'click'. Passed the event, an array of active elements, and the chart.

# Parameters:

Name Type
event ChartEvent
elements ActiveElement[]
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns: void

Inherited from: CoreChartOptions

Defined in: index.esm.d.ts:1436 (opens new window)


# onHover

onHover(event: ChartEvent, elements: ActiveElement[], chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>): void

Called when any of the events fire. Passed the event, an array of active elements (bars, points, etc), and the chart.

# Parameters:

Name Type
event ChartEvent
elements ActiveElement[]
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns: void

Inherited from: CoreChartOptions

Defined in: index.esm.d.ts:1431 (opens new window)


# onResize

onResize(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, size: { height: number ; width: number }): void

Called when a resize occurs. Gets passed two arguments: the chart instance and the new size.

# Parameters:

Name Type
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>
size object
size.height number
size.width number

Returns: void

Inherited from: CoreChartOptions

Defined in: index.esm.d.ts:1410 (opens new window)


# override

override(scope: string, values: Record<string, unknown>): Record<string, unknown>

# Parameters:

Name Type
scope string
values Record<string, unknown>

Returns: Record<string, unknown>

Defined in: index.esm.d.ts:619 (opens new window)


# route

route(scope: string, name: string, targetScope: string, targetName: string): void

Routes the named defaults to fallback to another scope/name. This routing is useful when those target values, like defaults.color, are changed runtime. If the values would be copied, the runtime change would not take effect. By routing, the -fallback is evaluated at each access, so its always up to date.

Example:

defaults.route('elements.arc', 'backgroundColor', '', 'color')

  • reads the backgroundColor from defaults.color when undefined locally

# Parameters:

Name Type Description
scope string Scope this route applies to.
name string Property name that should be routed to different namespace when not defined here.
targetScope string The namespace where those properties should be routed to. Empty string ('') is the root of defaults.
targetName string The target name in the target scope the property should be routed to.

Returns: void

Defined in: index.esm.d.ts:638 (opens new window)


# set

set(values: Record<string, unknown>): Record<string, unknown>

# Parameters:

Name Type
values Record<string, unknown>

Returns: Record<string, unknown>

Defined in: index.esm.d.ts:614 (opens new window)

set(scope: string, values: Record<string, unknown>): Record<string, unknown>

# Parameters:

Name Type
scope string
values Record<string, unknown>

Returns: Record<string, unknown>

Defined in: index.esm.d.ts:615 (opens new window)

- + diff --git a/docs/latest/api/interfaces/doughnutanimationoptions.html b/docs/latest/api/interfaces/doughnutanimationoptions.html index 16f9778d9c..00827d0871 100644 --- a/docs/latest/api/interfaces/doughnutanimationoptions.html +++ b/docs/latest/api/interfaces/doughnutanimationoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: DoughnutAnimationOptions

# Properties

# animateRotate

animateRotate: boolean

If true, the chart will animate in with a rotation animation. This property is in the options.animation object.

default true

Defined in: index.esm.d.ts:262 (opens new window)


# animateScale

animateScale: boolean

If true, will animate scaling the chart from the center outwards.

default false

Defined in: index.esm.d.ts:268 (opens new window)

- + diff --git a/docs/latest/api/interfaces/doughnutcontroller.html b/docs/latest/api/interfaces/doughnutcontroller.html index acfaf60028..3fa5ce97b7 100644 --- a/docs/latest/api/interfaces/doughnutcontroller.html +++ b/docs/latest/api/interfaces/doughnutcontroller.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: DoughnutController

# Hierarchy

# Properties

# _cachedMeta

Readonly _cachedMeta: ChartMeta<Element<{}, {}>, Element<{}, {}>>

Inherited from: DatasetController._cachedMeta

Defined in: index.esm.d.ts:537 (opens new window)


# chart

Readonly chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Inherited from: DatasetController.chart

Defined in: index.esm.d.ts:535 (opens new window)


# enableOptionSharing

enableOptionSharing: boolean

Inherited from: DatasetController.enableOptionSharing

Defined in: index.esm.d.ts:538 (opens new window)


# index

Readonly index: number

Inherited from: DatasetController.index

Defined in: index.esm.d.ts:536 (opens new window)


# innerRadius

Readonly innerRadius: number

Defined in: index.esm.d.ts:303 (opens new window)


# offsetX

Readonly offsetX: number

Defined in: index.esm.d.ts:305 (opens new window)


# offsetY

Readonly offsetY: number

Defined in: index.esm.d.ts:306 (opens new window)


# outerRadius

Readonly outerRadius: number

Defined in: index.esm.d.ts:304 (opens new window)

# Methods

# addElements

addElements(): void

Returns: void

Inherited from: DatasetController

Defined in: index.esm.d.ts:554 (opens new window)


# applyStack

ProtectedapplyStack(scale: Scale<CoreScaleOptions>, parsed: unknown[]): number

# Parameters:

Name Type
scale Scale<CoreScaleOptions>
parsed unknown[]

Returns: number

Inherited from: DatasetController

Defined in: index.esm.d.ts:590 (opens new window)


# buildOrUpdateElements

buildOrUpdateElements(resetNewElements?: boolean): void

# Parameters:

Name Type
resetNewElements? boolean

Returns: void

Inherited from: DatasetController

Defined in: index.esm.d.ts:555 (opens new window)


# calculateCircumference

calculateCircumference(value: number): number

# Parameters:

Name Type
value number

Returns: number

Defined in: index.esm.d.ts:309 (opens new window)


# calculateTotal

calculateTotal(): number

Returns: number

Defined in: index.esm.d.ts:308 (opens new window)


# configure

configure(): void

Returns: void

Inherited from: DatasetController

Defined in: index.esm.d.ts:552 (opens new window)


# draw

draw(): void

Returns: void

Inherited from: DatasetController

Defined in: index.esm.d.ts:547 (opens new window)


# getAllParsedValues

getAllParsedValues(scale: Scale<CoreScaleOptions>): number[]

# Parameters:

Name Type
scale Scale<CoreScaleOptions>

Returns: number[]

Inherited from: DatasetController

Defined in: index.esm.d.ts:541 (opens new window)


# getDataset

getDataset(): ChartDataset<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[]>

Returns: ChartDataset<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[]>

Inherited from: DatasetController

Defined in: index.esm.d.ts:549 (opens new window)


# getLabelAndValue

ProtectedgetLabelAndValue(index: number): object

# Parameters:

Name Type
index number

Returns: object

Name Type
label string
value string

Inherited from: DatasetController

Defined in: index.esm.d.ts:542 (opens new window)


# getMaxOverflow

ProtectedgetMaxOverflow(): number | boolean

Returns: number | boolean

Inherited from: DatasetController

Defined in: index.esm.d.ts:546 (opens new window)


# getMeta

getMeta(): ChartMeta<Element<{}, {}>, Element<{}, {}>>

Returns: ChartMeta<Element<{}, {}>, Element<{}, {}>>

Inherited from: DatasetController

Defined in: index.esm.d.ts:550 (opens new window)


# getMinMax

ProtectedgetMinMax(scale: Scale<CoreScaleOptions>, canStack?: boolean): object

# Parameters:

Name Type
scale Scale<CoreScaleOptions>
canStack? boolean

Returns: object

Name Type
max number
min number

Inherited from: DatasetController

Defined in: index.esm.d.ts:597 (opens new window)


# getParsed

ProtectedgetParsed(index: number): number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData

# Parameters:

Name Type
index number

Returns: number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData

Inherited from: DatasetController

Defined in: index.esm.d.ts:589 (opens new window)


# getScaleForId

getScaleForId(scaleID: string): Scale<CoreScaleOptions>

# Parameters:

Name Type
scaleID string

Returns: Scale<CoreScaleOptions>

Inherited from: DatasetController

Defined in: index.esm.d.ts:551 (opens new window)


# getSharedOptions

ProtectedgetSharedOptions(options: Record<string, unknown>): Record<string, unknown>

Utility for checking if the options are shared and should be animated separately.

# Parameters:

Name Type
options Record<string, unknown>

Returns: Record<string, unknown>

Inherited from: DatasetController

Defined in: index.esm.d.ts:564 (opens new window)


# getStyle

getStyle(index: number, active: boolean): Record<string, unknown>

# Parameters:

Name Type
index number
active boolean

Returns: Record<string, unknown>

Inherited from: DatasetController

Defined in: index.esm.d.ts:557 (opens new window)


# includeOptions

ProtectedincludeOptions(mode: resize | reset | none | hide | show | normal | active, sharedOptions: Record<string, unknown>): boolean

Utility for determining if options should be included in the updated properties

# Parameters:

Name Type
mode resize | reset | none | hide | show | normal | active
sharedOptions Record<string, unknown>

Returns: boolean

Inherited from: DatasetController

Defined in: index.esm.d.ts:569 (opens new window)


# initialize

initialize(): void

Returns: void

Inherited from: DatasetController

Defined in: index.esm.d.ts:553 (opens new window)


# linkScales

linkScales(): void

Returns: void

Inherited from: DatasetController

Defined in: index.esm.d.ts:540 (opens new window)


# parse

parse(start: number, count: number): void

# Parameters:

Name Type
start number
count number

Returns: void

Inherited from: DatasetController

Defined in: index.esm.d.ts:585 (opens new window)


# parseArrayData

ProtectedparseArrayData(meta: ChartMeta<Element<{}, {}>, Element<{}, {}>>, data: Record<string, unknown>[], start: number, count: number): Record<string, unknown>[]

# Parameters:

Name Type
meta ChartMeta<Element<{}, {}>, Element<{}, {}>>
data Record<string, unknown>[]
start number
count number

Returns: Record<string, unknown>[]

Inherited from: DatasetController

Defined in: index.esm.d.ts:587 (opens new window)


# parseObjectData

ProtectedparseObjectData(meta: ChartMeta<Element<{}, {}>, Element<{}, {}>>, data: Record<string, unknown>[], start: number, count: number): Record<string, unknown>[]

# Parameters:

Name Type
meta ChartMeta<Element<{}, {}>, Element<{}, {}>>
data Record<string, unknown>[]
start number
count number

Returns: Record<string, unknown>[]

Inherited from: DatasetController

Defined in: index.esm.d.ts:588 (opens new window)


# parsePrimitiveData

ProtectedparsePrimitiveData(meta: ChartMeta<Element<{}, {}>, Element<{}, {}>>, data: Record<string, unknown>[], start: number, count: number): Record<string, unknown>[]

# Parameters:

Name Type
meta ChartMeta<Element<{}, {}>, Element<{}, {}>>
data Record<string, unknown>[]
start number
count number

Returns: Record<string, unknown>[]

Inherited from: DatasetController

Defined in: index.esm.d.ts:586 (opens new window)


# removeHoverStyle

removeHoverStyle(element: Element<{}, {}>, datasetIndex: number, index: number): void

# Parameters:

Name Type
element Element<{}, {}>
datasetIndex number
index number

Returns: void

Inherited from: DatasetController

Defined in: index.esm.d.ts:582 (opens new window)


# reset

reset(): void

Returns: void

Inherited from: DatasetController

Defined in: index.esm.d.ts:548 (opens new window)


# resolveDataElementOptions

ProtectedresolveDataElementOptions(index: number, mode: resize | reset | none | hide | show | normal | active): Record<string, unknown>

# Parameters:

Name Type
index number
mode resize | reset | none | hide | show | normal | active

Returns: Record<string, unknown>

Inherited from: DatasetController

Defined in: index.esm.d.ts:559 (opens new window)


# resolveDatasetElementOptions

ProtectedresolveDatasetElementOptions(mode: resize | reset | none | hide | show | normal | active): Record<string, unknown>

# Parameters:

Name Type
mode resize | reset | none | hide | show | normal | active

Returns: Record<string, unknown>

Inherited from: DatasetController

Defined in: index.esm.d.ts:558 (opens new window)


# setHoverStyle

setHoverStyle(element: Element<{}, {}>, datasetIndex: number, index: number): void

# Parameters:

Name Type
element Element<{}, {}>
datasetIndex number
index number

Returns: void

Inherited from: DatasetController

Defined in: index.esm.d.ts:583 (opens new window)


# update

update(mode: resize | reset | none | hide | show | normal | active): void

# Parameters:

Name Type
mode resize | reset | none | hide | show | normal | active

Returns: void

Inherited from: DatasetController

Defined in: index.esm.d.ts:544 (opens new window)


# updateElement

ProtectedupdateElement(element: Element<{}, {}>, index: number, properties: Record<string, unknown>, mode: resize | reset | none | hide | show | normal | active): void

Utility for updating an element with new properties, using animations when appropriate.

# Parameters:

Name Type
element Element<{}, {}>
index number
properties Record<string, unknown>
mode resize | reset | none | hide | show | normal | active

Returns: void

Inherited from: DatasetController

Defined in: index.esm.d.ts:575 (opens new window)


# updateElements

updateElements(elements: Element<{}, {}>[], start: number, count: number, mode: resize | reset | none | hide | show | normal | active): void

# Parameters:

Name Type
elements Element<{}, {}>[]
start number
count number
mode resize | reset | none | hide | show | normal | active

Returns: void

Inherited from: DatasetController

Defined in: index.esm.d.ts:543 (opens new window)


# updateIndex

updateIndex(datasetIndex: number): void

# Parameters:

Name Type
datasetIndex number

Returns: void

Inherited from: DatasetController

Defined in: index.esm.d.ts:545 (opens new window)


# updateRangeFromParsed

ProtectedupdateRangeFromParsed(range: { max: number ; min: number }, scale: Scale<CoreScaleOptions>, parsed: unknown[], stack: string | boolean): void

# Parameters:

Name Type
range object
range.max number
range.min number
scale Scale<CoreScaleOptions>
parsed unknown[]
stack string | boolean

Returns: void

Inherited from: DatasetController

Defined in: index.esm.d.ts:591 (opens new window)


# updateSharedOptions

ProtectedupdateSharedOptions(sharedOptions: Record<string, unknown>, mode: resize | reset | none | hide | show | normal | active, newOptions: Record<string, unknown>): void

Utility to animate the shared options, that are potentially affecting multiple elements.

# Parameters:

Name Type
sharedOptions Record<string, unknown>
mode resize | reset | none | hide | show | normal | active
newOptions Record<string, unknown>

Returns: void

Inherited from: DatasetController

Defined in: index.esm.d.ts:581 (opens new window)

- + diff --git a/docs/latest/api/interfaces/doughnutcontrollerchartoptions.html b/docs/latest/api/interfaces/doughnutcontrollerchartoptions.html index a442a9fc52..bc1c41aced 100644 --- a/docs/latest/api/interfaces/doughnutcontrollerchartoptions.html +++ b/docs/latest/api/interfaces/doughnutcontrollerchartoptions.html @@ -7,7 +7,7 @@ - + @@ -39,8 +39,8 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: DoughnutControllerChartOptions

# Properties

# animation

animation: DoughnutAnimationOptions

Defined in: index.esm.d.ts:297 (opens new window)


# circumference

circumference: number

Sweep to allow arcs to cover.

default 360

Defined in: index.esm.d.ts:276 (opens new window)


# cutout

cutout: Scriptable<string | number, ScriptableContext<doughnut>>

The portion of the chart that is cut out of the middle. ('50%' - for doughnut, 0 - for pie) -String ending with '%' means percentage, number means pixels.

default 50

Defined in: index.esm.d.ts:283 (opens new window)


# radius

radius: Scriptable<string | number, ScriptableContext<doughnut>>

The outer radius of the chart. String ending with '%' means percentage of maximum radius, number means pixels.

default '100%'

Defined in: index.esm.d.ts:289 (opens new window)


# rotation

rotation: number

Starting angle to draw arcs from.

default 0

Defined in: index.esm.d.ts:295 (opens new window)

- + diff --git a/docs/latest/api/interfaces/doughnutcontrollerdatasetoptions.html b/docs/latest/api/interfaces/doughnutcontrollerdatasetoptions.html index 40d88b2893..80304da96c 100644 --- a/docs/latest/api/interfaces/doughnutcontrollerdatasetoptions.html +++ b/docs/latest/api/interfaces/doughnutcontrollerdatasetoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: DoughnutControllerDatasetOptions

# Hierarchy

# Properties

# animation

animation: false | AnimationSpec<doughnut> & { onComplete?: (event: AnimationEvent) => void ; onProgress?: (event: AnimationEvent) => void }

Inherited from: AnimationOptions.animation

Defined in: index.esm.d.ts:1533 (opens new window)


# animations

animations: AnimationsSpec<doughnut>

Inherited from: AnimationOptions.animations

Defined in: index.esm.d.ts:1543 (opens new window)


# backgroundColor

backgroundColor: ScriptableAndArray<Color, ScriptableContext<doughnut>>

Inherited from: ScriptableAndArrayOptions.backgroundColor

Defined in: index.esm.d.ts:1588 (opens new window)


# borderAlign

borderAlign: ScriptableAndArray<center | inner, ScriptableContext<doughnut>>

Arc stroke alignment.

Inherited from: ScriptableAndArrayOptions.borderAlign

Defined in: index.esm.d.ts:1624 (opens new window)


# borderColor

borderColor: ScriptableAndArray<Color, ScriptableContext<doughnut>>

Inherited from: ScriptableAndArrayOptions.borderColor

Defined in: index.esm.d.ts:1587 (opens new window)


# borderRadius

borderRadius: ScriptableAndArray<number | ArcBorderRadius, ScriptableContext<doughnut>>

Sets the border radius for arcs

default 0

Inherited from: ScriptableAndArrayOptions.borderRadius

Defined in: index.esm.d.ts:1633 (opens new window)


# borderWidth

borderWidth: ScriptableAndArray<number, ScriptableContext<doughnut>>

Inherited from: ScriptableAndArrayOptions.borderWidth

Defined in: index.esm.d.ts:1586 (opens new window)


# circumference

circumference: number

Sweep to allow arcs to cover.

default 360

Defined in: index.esm.d.ts:242 (opens new window)


# clip

clip: number | ChartArea

How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}

Inherited from: ControllerDatasetOptions.clip

Defined in: index.esm.d.ts:64 (opens new window)


# hidden

hidden: boolean

Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.

default false

Inherited from: ControllerDatasetOptions.hidden

Defined in: index.esm.d.ts:82 (opens new window)


# hoverBackgroundColor

hoverBackgroundColor: ScriptableAndArray<Color, ScriptableContext<doughnut>>

Inherited from: ScriptableAndArrayOptions.hoverBackgroundColor

Defined in: index.esm.d.ts:1594 (opens new window)


# hoverBorderColor

hoverBorderColor: ScriptableAndArray<Color, ScriptableContext<doughnut>>

Inherited from: ScriptableAndArrayOptions.hoverBorderColor

Defined in: index.esm.d.ts:1593 (opens new window)


# hoverBorderWidth

hoverBorderWidth: ScriptableAndArray<number, ScriptableContext<doughnut>>

Inherited from: ScriptableAndArrayOptions.hoverBorderWidth

Defined in: index.esm.d.ts:1592 (opens new window)


# hoverOffset

hoverOffset: ScriptableAndArray<number, ScriptableContext<doughnut>>

Inherited from: ScriptableAndArrayOptions.hoverOffset

Defined in: index.esm.d.ts:1637 (opens new window)


# indexAxis

indexAxis: x | y

The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.

default 'x'

Inherited from: ControllerDatasetOptions.indexAxis

Defined in: index.esm.d.ts:60 (opens new window)


# label

label: string

The label for the dataset which appears in the legend and tooltips.

Inherited from: ControllerDatasetOptions.label

Defined in: index.esm.d.ts:68 (opens new window)


# normalized

normalized: boolean

Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.

Inherited from: ControllerDatasetOptions.normalized

Defined in: index.esm.d.ts:52 (opens new window)


# offset

offset: ScriptableAndArray<number, ScriptableContext<doughnut>>

Arc offset (in pixels).

Inherited from: ScriptableAndArrayOptions.offset

Defined in: index.esm.d.ts:1628 (opens new window)


# order

order: number

The drawing order of dataset. Also affects order for stacking, tooltip and legend.

Inherited from: ControllerDatasetOptions.order

Defined in: index.esm.d.ts:72 (opens new window)


# parsing

parsing: false | { [key: string]: string; }

How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.

Inherited from: ControllerDatasetOptions.parsing

Defined in: index.esm.d.ts:43 (opens new window)


# rotation

rotation: number

Starting angle to draw this dataset from.

default 0

Defined in: index.esm.d.ts:248 (opens new window)


# stack

stack: string

The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).

Inherited from: ControllerDatasetOptions.stack

Defined in: index.esm.d.ts:77 (opens new window)


# transitions

transitions: TransitionsSpec<doughnut>

Inherited from: AnimationOptions.transitions

Defined in: index.esm.d.ts:1544 (opens new window)


# weight

weight: number

The relative thickness of the dataset. Providing a value for weight will cause the pie or doughnut dataset to be drawn with a thickness relative to the sum of all the dataset weight values.

default 1

Defined in: index.esm.d.ts:254 (opens new window)

- + diff --git a/docs/latest/api/interfaces/element.html b/docs/latest/api/interfaces/element.html index 7d38dd8039..d248e8ace0 100644 --- a/docs/latest/api/interfaces/element.html +++ b/docs/latest/api/interfaces/element.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: Element<T, O>

# Type parameters

Name Default
T {}
O {}

# Properties

# active

Readonly active: boolean

Defined in: element.d.ts:6 (opens new window)


# options

Readonly options: O

Defined in: element.d.ts:7 (opens new window)


# x

Readonly x: number

Defined in: element.d.ts:4 (opens new window)


# y

Readonly y: number

Defined in: element.d.ts:5 (opens new window)

# Methods

# getProps

getProps<P>(props: [P], final?: boolean): Pick<T, P>

# Type parameters:

Name Type
P string | number | symbol

# Parameters:

Name Type
props [P]
final? boolean

Returns: Pick<T, P>

Defined in: element.d.ts:11 (opens new window)

getProps<P, P2>(props: [P, P2], final?: boolean): Pick<T, P | P2>

# Type parameters:

Name Type
P string | number | symbol
P2 string | number | symbol

# Parameters:

Name Type
props [P, P2]
final? boolean

Returns: Pick<T, P | P2>

Defined in: element.d.ts:12 (opens new window)

getProps<P, P2, P3>(props: [P, P2, P3], final?: boolean): Pick<T, P | P2 | P3>

# Type parameters:

Name Type
P string | number | symbol
P2 string | number | symbol
P3 string | number | symbol

# Parameters:

Name Type
props [P, P2, P3]
final? boolean

Returns: Pick<T, P | P2 | P3>

Defined in: element.d.ts:13 (opens new window)

getProps<P, P2, P3, P4>(props: [P, P2, P3, P4], final?: boolean): Pick<T, P | P2 | P3 | P4>

# Type parameters:

Name Type
P string | number | symbol
P2 string | number | symbol
P3 string | number | symbol
P4 string | number | symbol

# Parameters:

Name Type
props [P, P2, P3, P4]
final? boolean

Returns: Pick<T, P | P2 | P3 | P4>

Defined in: element.d.ts:17 (opens new window)

getProps<P, P2, P3, P4, P5>(props: [P, P2, P3, P4, P5], final?: boolean): Pick<T, P | P2 | P3 | P4 | P5>

# Type parameters:

Name Type
P string | number | symbol
P2 string | number | symbol
P3 string | number | symbol
P4 string | number | symbol
P5 string | number | symbol

# Parameters:

Name Type
props [P, P2, P3, P4, P5]
final? boolean

Returns: Pick<T, P | P2 | P3 | P4 | P5>

Defined in: element.d.ts:21 (opens new window)

getProps(props: keyof T[], final?: boolean): T

# Parameters:

Name Type
props keyof T[]
final? boolean

Returns: T

Defined in: element.d.ts:25 (opens new window)


# hasValue

hasValue(): boolean

Returns: boolean

Defined in: element.d.ts:10 (opens new window)


# tooltipPosition

tooltipPosition(useFinalPosition?: boolean): Point

# Parameters:

Name Type
useFinalPosition? boolean

Returns: Point

Defined in: element.d.ts:9 (opens new window)

- + diff --git a/docs/latest/api/interfaces/elementchartoptions.html b/docs/latest/api/interfaces/elementchartoptions.html index 8fe2215bc3..f2f535780b 100644 --- a/docs/latest/api/interfaces/elementchartoptions.html +++ b/docs/latest/api/interfaces/elementchartoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ElementChartOptions

# Hierarchy

# Properties

# elements

elements: Partial<ElementOptionsByType>

Defined in: index.esm.d.ts:1897 (opens new window)

- + diff --git a/docs/latest/api/interfaces/elementoptionsbytype.html b/docs/latest/api/interfaces/elementoptionsbytype.html index a5c05a9d23..06cafe2c4c 100644 --- a/docs/latest/api/interfaces/elementoptionsbytype.html +++ b/docs/latest/api/interfaces/elementoptionsbytype.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)
- + diff --git a/docs/latest/api/interfaces/extendedplugin.html b/docs/latest/api/interfaces/extendedplugin.html index 459b2fddde..fc0f1f1e1e 100644 --- a/docs/latest/api/interfaces/extendedplugin.html +++ b/docs/latest/api/interfaces/extendedplugin.html @@ -7,7 +7,7 @@ - + @@ -40,8 +40,8 @@ (opens new window) GitHub (opens new window)

# Interface: ExtendedPlugin<TType, O, Model>

# Type parameters

Name Type Default
TType ChartType -
O - AnyObject
Model - TooltipModel<TType>

# Hierarchy

# Methods

# afterTooltipDraw

OptionalafterTooltipDraw(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { tooltip: Model }, options: O): void

desc Called after drawing the tooltip. Note that this hook will not -be called if the tooltip drawing has been previously cancelled.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.tooltip Model The tooltip.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:2388 (opens new window)


# beforeTooltipDraw

OptionalbeforeTooltipDraw(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { tooltip: Model }, options: O): boolean | void

desc Called before drawing the tooltip. If any plugin returns false, -the tooltip drawing is cancelled until another render is triggered.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.tooltip Model The tooltip.
options O The plugin options.

Returns: boolean | void

false to cancel the chart tooltip drawing.

Defined in: index.esm.d.ts:2379 (opens new window)

- + diff --git a/docs/latest/api/interfaces/fillercontrollerdatasetoptions.html b/docs/latest/api/interfaces/fillercontrollerdatasetoptions.html index 9b9b81a1f1..790f2d7834 100644 --- a/docs/latest/api/interfaces/fillercontrollerdatasetoptions.html +++ b/docs/latest/api/interfaces/fillercontrollerdatasetoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: FillerControllerDatasetOptions

# Properties

# fill

fill: string | number | boolean | { value: number } | ComplexFillTarget

Both line and radar charts support a fill option on the dataset object which can be used to create area between two datasets or a dataset and a boundary, i.e. the scale origin, start or end

Defined in: index.esm.d.ts:2001 (opens new window)

- + diff --git a/docs/latest/api/interfaces/filleroptions.html b/docs/latest/api/interfaces/filleroptions.html index 8ea74c53f6..7bc9e248bc 100644 --- a/docs/latest/api/interfaces/filleroptions.html +++ b/docs/latest/api/interfaces/filleroptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: FillerOptions

# Properties

# drawTime

drawTime: beforeDatasetDraw | beforeDatasetsDraw

Defined in: index.esm.d.ts:1976 (opens new window)


# propagate

propagate: boolean

Defined in: index.esm.d.ts:1977 (opens new window)

- + diff --git a/docs/latest/api/interfaces/fontspec.html b/docs/latest/api/interfaces/fontspec.html index dba412569d..e707e5754e 100644 --- a/docs/latest/api/interfaces/fontspec.html +++ b/docs/latest/api/interfaces/fontspec.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: FontSpec

# Properties

# family

family: string

Default font family for all text, follows CSS font-family options.

default "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"

Defined in: index.esm.d.ts:1552 (opens new window)


# lineHeight

lineHeight: string | number

Height of an individual line of text (see MDN).

default 1.2

Defined in: index.esm.d.ts:1571 (opens new window)


# size

size: number

Default font size (in px) for text. Does not apply to radialLinear scale point labels.

default 12

Defined in: index.esm.d.ts:1557 (opens new window)


# style

style: normal | italic | oblique | initial | inherit

Default font style. Does not apply to tooltip title or footer. Does not apply to chart title. Follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit)

default 'normal'

Defined in: index.esm.d.ts:1562 (opens new window)


# weight

weight: string

Default font weight (boldness). (see MDN).

Defined in: index.esm.d.ts:1566 (opens new window)

- + diff --git a/docs/latest/api/interfaces/gridlineoptions.html b/docs/latest/api/interfaces/gridlineoptions.html index 56ec9bf375..1283e4c1c9 100644 --- a/docs/latest/api/interfaces/gridlineoptions.html +++ b/docs/latest/api/interfaces/gridlineoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: GridLineOptions

# Properties

# borderColor

borderColor: Color

Defined in: index.esm.d.ts:2634 (opens new window)


# borderDash

borderDash: number[]

default []

Defined in: index.esm.d.ts:2647 (opens new window)


# borderDashOffset

borderDashOffset: Scriptable<number, ScriptableScaleContext>

default 0

Defined in: index.esm.d.ts:2651 (opens new window)


# borderWidth

borderWidth: number

Defined in: index.esm.d.ts:2635 (opens new window)


# circular

circular: boolean

default false

Defined in: index.esm.d.ts:2639 (opens new window)


# color

color: string | CanvasGradient | CanvasPattern | readonly Color[] | (ctx: ScriptableScaleContext) => Color

default 'rgba(0, 0, 0, 0.1)'

Defined in: index.esm.d.ts:2643 (opens new window)


# display

display: boolean

default true

Defined in: index.esm.d.ts:2633 (opens new window)


# drawBorder

drawBorder: boolean

default true

Defined in: index.esm.d.ts:2660 (opens new window)


# drawOnChartArea

drawOnChartArea: boolean

default true

Defined in: index.esm.d.ts:2664 (opens new window)


# drawTicks

drawTicks: boolean

default true

Defined in: index.esm.d.ts:2668 (opens new window)


# lineWidth

lineWidth: number | readonly number[] | (ctx: ScriptableScaleContext) => number

default 1

Defined in: index.esm.d.ts:2655 (opens new window)


# offset

offset: boolean

default false

Defined in: index.esm.d.ts:2692 (opens new window)


# tickBorderDash

tickBorderDash: number[]

default []

Defined in: index.esm.d.ts:2672 (opens new window)


# tickBorderDashOffset

tickBorderDashOffset: Scriptable<number, ScriptableScaleContext>

default 0

Defined in: index.esm.d.ts:2676 (opens new window)


# tickColor

tickColor: string | CanvasGradient | CanvasPattern | readonly Color[] | (ctx: ScriptableScaleContext) => Color

default 'rgba(0, 0, 0, 0.1)'

Defined in: index.esm.d.ts:2680 (opens new window)


# tickLength

tickLength: number

default 10

Defined in: index.esm.d.ts:2684 (opens new window)


# tickWidth

tickWidth: number

default 1

Defined in: index.esm.d.ts:2688 (opens new window)

- + diff --git a/docs/latest/api/interfaces/interactionitem.html b/docs/latest/api/interfaces/interactionitem.html index bba1295598..86fb654450 100644 --- a/docs/latest/api/interfaces/interactionitem.html +++ b/docs/latest/api/interfaces/interactionitem.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: InteractionItem

# Properties

# datasetIndex

datasetIndex: number

Defined in: index.esm.d.ts:659 (opens new window)


# element

element: Element<{}, {}>

Defined in: index.esm.d.ts:658 (opens new window)


# index

index: number

Defined in: index.esm.d.ts:660 (opens new window)

- + diff --git a/docs/latest/api/interfaces/interactionmodemap.html b/docs/latest/api/interfaces/interactionmodemap.html index 6cdad2f877..b2737b82c2 100644 --- a/docs/latest/api/interfaces/interactionmodemap.html +++ b/docs/latest/api/interfaces/interactionmodemap.html @@ -7,7 +7,7 @@ - + @@ -40,9 +40,9 @@ (opens new window) GitHub (opens new window)

# Interface: InteractionModeMap

# Properties

# dataset

dataset: InteractionModeFunction

Returns items in the same dataset. If the options.intersect parameter is true, we only return items if we intersect something -If the options.intersect is false, we find the nearest item and return the items in that dataset

Defined in: index.esm.d.ts:681 (opens new window)


# index

index: InteractionModeFunction

Returns items at the same index. If the options.intersect parameter is true, we only return items if we intersect something -If the options.intersect mode is false, we find the nearest item and return the items at the same index as that item

Defined in: index.esm.d.ts:675 (opens new window)


# nearest

nearest: InteractionModeFunction

nearest mode returns the element closest to the point

Defined in: index.esm.d.ts:690 (opens new window)


# point

point: InteractionModeFunction

Point mode returns all elements that hit test based on the event position -of the event

Defined in: index.esm.d.ts:686 (opens new window)


# x

x: InteractionModeFunction

x mode returns the elements that hit-test at the current x coordinate

Defined in: index.esm.d.ts:694 (opens new window)


# y

y: InteractionModeFunction

y mode returns the elements that hit-test at the current y coordinate

Defined in: index.esm.d.ts:698 (opens new window)

- + diff --git a/docs/latest/api/interfaces/interactionoptions.html b/docs/latest/api/interfaces/interactionoptions.html index f3036273fd..a714503486 100644 --- a/docs/latest/api/interfaces/interactionoptions.html +++ b/docs/latest/api/interfaces/interactionoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: InteractionOptions

# Properties

# axis

Optional axis: string

Defined in: index.esm.d.ts:653 (opens new window)


# intersect

Optional intersect: boolean

Defined in: index.esm.d.ts:654 (opens new window)

- + diff --git a/docs/latest/api/interfaces/layoutitem.html b/docs/latest/api/interfaces/layoutitem.html index 84ede6b469..646a651327 100644 --- a/docs/latest/api/interfaces/layoutitem.html +++ b/docs/latest/api/interfaces/layoutitem.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: LayoutItem

# Hierarchy

# Properties

# bottom

bottom: number

Bottom edge of the item. Set by layout system and cannot be used in update

Defined in: layout.d.ts:41 (opens new window)


# fullSize

fullSize: boolean

if true, and the item is horizontal, then push vertical boxes down

Defined in: layout.d.ts:17 (opens new window)


# height

height: number

Height of item. Must be valid after update()

Defined in: layout.d.ts:25 (opens new window)


# left

left: number

Left edge of the item. Set by layout system and cannot be used in update

Defined in: layout.d.ts:29 (opens new window)


# position

position: LayoutPosition

The position of the item in the chart layout. Possible values are

Defined in: layout.d.ts:9 (opens new window)


right: number

Right edge of the item. Set by layout system and cannot be used in update

Defined in: layout.d.ts:37 (opens new window)


# top

top: number

Top edge of the item. Set by layout system and cannot be used in update

Defined in: layout.d.ts:33 (opens new window)


# weight

weight: number

The weight used to sort the item. Higher weights are further away from the chart area

Defined in: layout.d.ts:13 (opens new window)


# width

width: number

Width of item. Must be valid after update()

Defined in: layout.d.ts:21 (opens new window)

# Methods

# beforeLayout

OptionalbeforeLayout(): void

Called before the layout process starts

Returns: void

Defined in: layout.d.ts:46 (opens new window)


# draw

draw(chartArea: ChartArea): void

Draws the element

# Parameters:

Name Type
chartArea ChartArea

Returns: void

Defined in: layout.d.ts:50 (opens new window)


# getPadding

OptionalgetPadding(): ChartArea

Returns an object with padding on the edges

Returns: ChartArea

Defined in: layout.d.ts:54 (opens new window)


# isHorizontal

isHorizontal(): boolean

returns true if the layout item is horizontal (ie. top or bottom)

Returns: boolean

Defined in: layout.d.ts:58 (opens new window)


# update

update(width: number, height: number, margins?: ChartArea): void

Takes two parameters: width and height.

# Parameters:

Name Type
width number
height number
margins? ChartArea

Returns: void

Defined in: layout.d.ts:64 (opens new window)

- + diff --git a/docs/latest/api/interfaces/legendelement.html b/docs/latest/api/interfaces/legendelement.html index b7c691852f..92b365066b 100644 --- a/docs/latest/api/interfaces/legendelement.html +++ b/docs/latest/api/interfaces/legendelement.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: LegendElement

# Hierarchy

# Properties

# active

Readonly active: boolean

Inherited from: Element.active

Defined in: element.d.ts:6 (opens new window)


# bottom

bottom: number

Bottom edge of the item. Set by layout system and cannot be used in update

Inherited from: LayoutItem.bottom

Defined in: layout.d.ts:41 (opens new window)


# fullSize

fullSize: boolean

if true, and the item is horizontal, then push vertical boxes down

Inherited from: LayoutItem.fullSize

Defined in: layout.d.ts:17 (opens new window)


# height

height: number

Height of item. Must be valid after update()

Inherited from: LayoutItem.height

Defined in: layout.d.ts:25 (opens new window)


# left

left: number

Left edge of the item. Set by layout system and cannot be used in update

Inherited from: LayoutItem.left

Defined in: layout.d.ts:29 (opens new window)


# options

Readonly options: object

# Type declaration:

Inherited from: Element.options

Defined in: element.d.ts:7 (opens new window)


# position

position: LayoutPosition

The position of the item in the chart layout. Possible values are

Inherited from: LayoutItem.position

Defined in: layout.d.ts:9 (opens new window)


right: number

Right edge of the item. Set by layout system and cannot be used in update

Inherited from: LayoutItem.right

Defined in: layout.d.ts:37 (opens new window)


# top

top: number

Top edge of the item. Set by layout system and cannot be used in update

Inherited from: LayoutItem.top

Defined in: layout.d.ts:33 (opens new window)


# weight

weight: number

The weight used to sort the item. Higher weights are further away from the chart area

Inherited from: LayoutItem.weight

Defined in: layout.d.ts:13 (opens new window)


# width

width: number

Width of item. Must be valid after update()

Inherited from: LayoutItem.width

Defined in: layout.d.ts:21 (opens new window)


# x

Readonly x: number

Inherited from: Element.x

Defined in: element.d.ts:4 (opens new window)


# y

Readonly y: number

Inherited from: Element.y

Defined in: element.d.ts:5 (opens new window)

# Methods

# beforeLayout

OptionalbeforeLayout(): void

Called before the layout process starts

Returns: void

Inherited from: LayoutItem

Defined in: layout.d.ts:46 (opens new window)


# draw

draw(chartArea: ChartArea): void

Draws the element

# Parameters:

Name Type
chartArea ChartArea

Returns: void

Inherited from: LayoutItem

Defined in: layout.d.ts:50 (opens new window)


# getPadding

OptionalgetPadding(): ChartArea

Returns an object with padding on the edges

Returns: ChartArea

Inherited from: LayoutItem

Defined in: layout.d.ts:54 (opens new window)


# getProps

getProps<P>(props: [P], final?: boolean): Pick<{}, P>

# Type parameters:

Name Type
P never

# Parameters:

Name Type
props [P]
final? boolean

Returns: Pick<{}, P>

Inherited from: Element.getProps

Defined in: element.d.ts:11 (opens new window)

getProps<P, P2>(props: [P, P2], final?: boolean): Pick<{}, P | P2>

# Type parameters:

Name Type
P never
P2 never

# Parameters:

Name Type
props [P, P2]
final? boolean

Returns: Pick<{}, P | P2>

Inherited from: Element.getProps

Defined in: element.d.ts:12 (opens new window)

getProps<P, P2, P3>(props: [P, P2, P3], final?: boolean): Pick<{}, P | P2 | P3>

# Type parameters:

Name Type
P never
P2 never
P3 never

# Parameters:

Name Type
props [P, P2, P3]
final? boolean

Returns: Pick<{}, P | P2 | P3>

Inherited from: Element.getProps

Defined in: element.d.ts:13 (opens new window)

getProps<P, P2, P3, P4>(props: [P, P2, P3, P4], final?: boolean): Pick<{}, P | P2 | P3 | P4>

# Type parameters:

Name Type
P never
P2 never
P3 never
P4 never

# Parameters:

Name Type
props [P, P2, P3, P4]
final? boolean

Returns: Pick<{}, P | P2 | P3 | P4>

Inherited from: Element.getProps

Defined in: element.d.ts:17 (opens new window)

getProps<P, P2, P3, P4, P5>(props: [P, P2, P3, P4, P5], final?: boolean): Pick<{}, P | P2 | P3 | P4 | P5>

# Type parameters:

Name Type
P never
P2 never
P3 never
P4 never
P5 never

# Parameters:

Name Type
props [P, P2, P3, P4, P5]
final? boolean

Returns: Pick<{}, P | P2 | P3 | P4 | P5>

Inherited from: Element.getProps

Defined in: element.d.ts:21 (opens new window)

getProps(props: never[], final?: boolean): object

# Parameters:

Name Type
props never[]
final? boolean

Returns: object

Inherited from: Element.getProps

Defined in: element.d.ts:25 (opens new window)


# hasValue

hasValue(): boolean

Returns: boolean

Inherited from: Element.hasValue

Defined in: element.d.ts:10 (opens new window)


# isHorizontal

isHorizontal(): boolean

returns true if the layout item is horizontal (ie. top or bottom)

Returns: boolean

Inherited from: LayoutItem

Defined in: layout.d.ts:58 (opens new window)


# tooltipPosition

tooltipPosition(useFinalPosition?: boolean): Point

# Parameters:

Name Type
useFinalPosition? boolean

Returns: Point

Inherited from: Element.tooltipPosition

Defined in: element.d.ts:9 (opens new window)


# update

update(width: number, height: number, margins?: ChartArea): void

Takes two parameters: width and height.

# Parameters:

Name Type
width number
height number
margins? ChartArea

Returns: void

Inherited from: LayoutItem

Defined in: layout.d.ts:64 (opens new window)

- + diff --git a/docs/latest/api/interfaces/legenditem.html b/docs/latest/api/interfaces/legenditem.html index fd61b12c3e..9ef6c0f7fe 100644 --- a/docs/latest/api/interfaces/legenditem.html +++ b/docs/latest/api/interfaces/legenditem.html @@ -7,7 +7,7 @@ - + @@ -39,8 +39,8 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: LegendItem

# Properties

# borderRadius

Optional borderRadius: number | BorderRadius

Border radius of the legend box

since 3.1.0

Defined in: index.esm.d.ts:2016 (opens new window)


# datasetIndex

datasetIndex: number

Index of the associated dataset

Defined in: index.esm.d.ts:2021 (opens new window)


# fillStyle

Optional fillStyle: Color

Fill style of the legend box

Defined in: index.esm.d.ts:2026 (opens new window)


# fontColor

Optional fontColor: Color

Font color for the text -Defaults to LegendOptions.labels.color

Defined in: index.esm.d.ts:2032 (opens new window)


# hidden

Optional hidden: boolean

If true, this item represents a hidden dataset. Label will be rendered with a strike-through effect

Defined in: index.esm.d.ts:2037 (opens new window)


# lineCap

Optional lineCap: CanvasLineCap

For box border.

see https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/lineCap

Defined in: index.esm.d.ts:2043 (opens new window)


# lineDash

Optional lineDash: number[]

For box border.

see https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash

Defined in: index.esm.d.ts:2049 (opens new window)


# lineDashOffset

Optional lineDashOffset: number

For box border.

see https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset

Defined in: index.esm.d.ts:2055 (opens new window)


# lineJoin

Optional lineJoin: CanvasLineJoin

For box border.

see https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin

Defined in: index.esm.d.ts:2061 (opens new window)


# lineWidth

Optional lineWidth: number

Width of box border

Defined in: index.esm.d.ts:2066 (opens new window)


# pointStyle

Optional pointStyle: PointStyle

Point style of the legend box (only used if usePointStyle is true)

Defined in: index.esm.d.ts:2076 (opens new window)


# rotation

Optional rotation: number

Rotation of the point in degrees (only used if usePointStyle is true)

Defined in: index.esm.d.ts:2081 (opens new window)


# strokeStyle

Optional strokeStyle: Color

Stroke style of the legend box

Defined in: index.esm.d.ts:2071 (opens new window)


# text

text: string

Label that will be displayed

Defined in: index.esm.d.ts:2010 (opens new window)


# textAlign

Optional textAlign: TextAlign

Text alignment

Defined in: index.esm.d.ts:2086 (opens new window)

- + diff --git a/docs/latest/api/interfaces/legendoptions.html b/docs/latest/api/interfaces/legendoptions.html index 9a7c328854..ed2be710bf 100644 --- a/docs/latest/api/interfaces/legendoptions.html +++ b/docs/latest/api/interfaces/legendoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: LegendOptions

# Properties

# align

align: start | end | center

Alignment of the legend.

default 'center'

Defined in: index.esm.d.ts:2106 (opens new window)


# display

display: boolean

Is the legend shown?

default true

Defined in: index.esm.d.ts:2096 (opens new window)


# fullSize

fullSize: boolean

Marks that this box should take the full width/height of the canvas (moving other boxes). This is unlikely to need to be changed in day-to-day use.

default true

Defined in: index.esm.d.ts:2111 (opens new window)


# labels

labels: object

# Type declaration:

Name Type Description
boxHeight number Height of the coloured box. default fontSize
boxWidth number Width of colored box. default 40
color Color Color of label see Defaults.color
font FontSpec Font of label see Defaults.font
padding number Padding between rows of colored boxes. default 10
pointStyle PointStyle Override point style for the legend. Only applies if usePointStyle is true
textAlign? TextAlign Text alignment
usePointStyle boolean Label style will match corresponding point style (size is based on the minimum value between boxWidth and font.size). default false
filter (item: LegendItem, data: ChartData<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>) => boolean -
generateLabels (chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>) => LegendItem[] -
sort (a: LegendItem, b: LegendItem, data: ChartData<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>) => number -

Defined in: index.esm.d.ts:2130 (opens new window)


# position

position: LayoutPosition

Position of the legend.

default 'top'

Defined in: index.esm.d.ts:2101 (opens new window)


# reverse

reverse: boolean

Legend will show datasets in reverse order.

default false

Defined in: index.esm.d.ts:2116 (opens new window)


# title

title: object

# Type declaration:

Name Type Description
color Color Color of title see Defaults.color
display boolean Is the legend title displayed. default false
font FontSpec see Fonts
padding? number | ChartArea -
position start | end | center -
text string The string title.

Defined in: index.esm.d.ts:2188 (opens new window)

# Methods

# onClick

onClick(e: ChartEvent, legendItem: LegendItem, legend: LegendElement): void

A callback that is called when a click event is registered on a label item.

# Parameters:

Name Type
e ChartEvent
legendItem LegendItem
legend LegendElement

Returns: void

Defined in: index.esm.d.ts:2120 (opens new window)


# onHover

onHover(e: ChartEvent, legendItem: LegendItem, legend: LegendElement): void

A callback that is called when a 'mousemove' event is registered on top of a label item

# Parameters:

Name Type
e ChartEvent
legendItem LegendItem
legend LegendElement

Returns: void

Defined in: index.esm.d.ts:2124 (opens new window)


# onLeave

onLeave(e: ChartEvent, legendItem: LegendItem, legend: LegendElement): void

A callback that is called when a 'mousemove' event is registered outside of a previously hovered label item.

# Parameters:

Name Type
e ChartEvent
legendItem LegendItem
legend LegendElement

Returns: void

Defined in: index.esm.d.ts:2128 (opens new window)

- + diff --git a/docs/latest/api/interfaces/linecontrollerchartoptions.html b/docs/latest/api/interfaces/linecontrollerchartoptions.html index a37ea42f87..859e5d9d8d 100644 --- a/docs/latest/api/interfaces/linecontrollerchartoptions.html +++ b/docs/latest/api/interfaces/linecontrollerchartoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: LineControllerChartOptions

# Properties

# showLine

showLine: boolean

If false, the lines between points are not drawn.

default true

Defined in: index.esm.d.ts:208 (opens new window)


# spanGaps

spanGaps: number | boolean

If true, lines will be drawn between points with no or null data. If false, points with NaN data will create a break in the line. Can also be a number specifying the maximum gap length to span. The unit of the value depends on the scale used.

default false

Defined in: index.esm.d.ts:203 (opens new window)

- + diff --git a/docs/latest/api/interfaces/linecontrollerdatasetoptions.html b/docs/latest/api/interfaces/linecontrollerdatasetoptions.html index cbb4b8a604..e6c15bff14 100644 --- a/docs/latest/api/interfaces/linecontrollerdatasetoptions.html +++ b/docs/latest/api/interfaces/linecontrollerdatasetoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: LineControllerDatasetOptions

# Hierarchy

# Properties

# animation

animation: false | AnimationSpec<line> & { onComplete?: (event: AnimationEvent) => void ; onProgress?: (event: AnimationEvent) => void }

Inherited from: AnimationOptions.animation

Defined in: index.esm.d.ts:1533 (opens new window)


# animations

animations: AnimationsSpec<line>

Inherited from: AnimationOptions.animations

Defined in: index.esm.d.ts:1543 (opens new window)


# backgroundColor

backgroundColor: Scriptable<Color, ScriptableContext<line>>

Inherited from: ScriptableOptions.backgroundColor

Defined in: index.esm.d.ts:1588 (opens new window)


# borderCapStyle

borderCapStyle: Scriptable<CanvasLineCap, ScriptableContext<line>>

Line cap style. See MDN.

default 'butt'

Inherited from: ScriptableOptions.borderCapStyle

Defined in: index.esm.d.ts:1656 (opens new window)


# borderColor

borderColor: Scriptable<Color, ScriptableContext<line>>

Inherited from: ScriptableOptions.borderColor

Defined in: index.esm.d.ts:1587 (opens new window)


# borderDash

borderDash: Scriptable<number[], ScriptableContext<line>>

Line dash. See MDN.

default []

Inherited from: ScriptableOptions.borderDash

Defined in: index.esm.d.ts:1661 (opens new window)


# borderDashOffset

borderDashOffset: Scriptable<number, ScriptableContext<line>>

Line dash offset. See MDN.

default 0.0

Inherited from: ScriptableOptions.borderDashOffset

Defined in: index.esm.d.ts:1666 (opens new window)


# borderJoinStyle

borderJoinStyle: Scriptable<CanvasLineJoin, ScriptableContext<line>>

Line join style. See MDN.

default 'miter'

Inherited from: ScriptableOptions.borderJoinStyle

Defined in: index.esm.d.ts:1671 (opens new window)


# borderWidth

borderWidth: Scriptable<number, ScriptableContext<line>>

Inherited from: ScriptableOptions.borderWidth

Defined in: index.esm.d.ts:1586 (opens new window)


# capBezierPoints

capBezierPoints: Scriptable<boolean, ScriptableContext<line>>

true to keep Bézier control inside the chart, false for no restriction.

default true

Inherited from: ScriptableOptions.capBezierPoints

Defined in: index.esm.d.ts:1676 (opens new window)


# clip

clip: number | ChartArea

How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}

Inherited from: ControllerDatasetOptions.clip

Defined in: index.esm.d.ts:64 (opens new window)


# cubicInterpolationMode

cubicInterpolationMode: Scriptable<default | monotone, ScriptableContext<line>>

Interpolation mode to apply.

default 'default'

Inherited from: ScriptableOptions.cubicInterpolationMode

Defined in: index.esm.d.ts:1681 (opens new window)


# hidden

hidden: boolean

Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.

default false

Inherited from: ControllerDatasetOptions.hidden

Defined in: index.esm.d.ts:82 (opens new window)


# hoverBackgroundColor

hoverBackgroundColor: Scriptable<Color, ScriptableContext<line>>

Inherited from: ScriptableOptions.hoverBackgroundColor

Defined in: index.esm.d.ts:1594 (opens new window)


# hoverBorderCapStyle

hoverBorderCapStyle: Scriptable<CanvasLineCap, ScriptableContext<line>>

Inherited from: ScriptableOptions.hoverBorderCapStyle

Defined in: index.esm.d.ts:1705 (opens new window)


# hoverBorderColor

hoverBorderColor: Scriptable<Color, ScriptableContext<line>>

Inherited from: ScriptableOptions.hoverBorderColor

Defined in: index.esm.d.ts:1593 (opens new window)


# hoverBorderDash

hoverBorderDash: Scriptable<number[], ScriptableContext<line>>

Inherited from: ScriptableOptions.hoverBorderDash

Defined in: index.esm.d.ts:1706 (opens new window)


# hoverBorderDashOffset

hoverBorderDashOffset: Scriptable<number, ScriptableContext<line>>

Inherited from: ScriptableOptions.hoverBorderDashOffset

Defined in: index.esm.d.ts:1707 (opens new window)


# hoverBorderJoinStyle

hoverBorderJoinStyle: Scriptable<CanvasLineJoin, ScriptableContext<line>>

Inherited from: ScriptableOptions.hoverBorderJoinStyle

Defined in: index.esm.d.ts:1708 (opens new window)


# hoverBorderWidth

hoverBorderWidth: Scriptable<number, ScriptableContext<line>>

Inherited from: ScriptableOptions.hoverBorderWidth

Defined in: index.esm.d.ts:1592 (opens new window)


# indexAxis

indexAxis: x | y

The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.

default 'x'

Inherited from: ControllerDatasetOptions.indexAxis

Defined in: index.esm.d.ts:60 (opens new window)


# label

label: string

The label for the dataset which appears in the legend and tooltips.

Inherited from: ControllerDatasetOptions.label

Defined in: index.esm.d.ts:68 (opens new window)


# normalized

normalized: boolean

Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.

Inherited from: ControllerDatasetOptions.normalized

Defined in: index.esm.d.ts:52 (opens new window)


# order

order: number

The drawing order of dataset. Also affects order for stacking, tooltip and legend.

Inherited from: ControllerDatasetOptions.order

Defined in: index.esm.d.ts:72 (opens new window)


# parsing

parsing: false | { [key: string]: string; }

How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.

Inherited from: ControllerDatasetOptions.parsing

Defined in: index.esm.d.ts:43 (opens new window)


# pointBackgroundColor

pointBackgroundColor: ScriptableAndArray<Color, ScriptableContext<line>>

The fill color for points.

Inherited from: ScriptableAndArrayOptions.pointBackgroundColor

Defined in: index.esm.d.ts:1783 (opens new window)


# pointBorderColor

pointBorderColor: ScriptableAndArray<Color, ScriptableContext<line>>

The border color for points.

Inherited from: ScriptableAndArrayOptions.pointBorderColor

Defined in: index.esm.d.ts:1787 (opens new window)


# pointBorderWidth

pointBorderWidth: ScriptableAndArray<number, ScriptableContext<line>>

The width of the point border in pixels.

Inherited from: ScriptableAndArrayOptions.pointBorderWidth

Defined in: index.esm.d.ts:1791 (opens new window)


# pointHitRadius

pointHitRadius: ScriptableAndArray<number, ScriptableContext<line>>

The pixel size of the non-displayed point that reacts to mouse events.

Inherited from: ScriptableAndArrayOptions.pointHitRadius

Defined in: index.esm.d.ts:1795 (opens new window)


# pointHoverBackgroundColor

pointHoverBackgroundColor: ScriptableAndArray<Color, ScriptableContext<line>>

Point background color when hovered.

Inherited from: ScriptableAndArrayOptions.pointHoverBackgroundColor

Defined in: index.esm.d.ts:1814 (opens new window)


# pointHoverBorderColor

pointHoverBorderColor: ScriptableAndArray<Color, ScriptableContext<line>>

Point border color when hovered.

Inherited from: ScriptableAndArrayOptions.pointHoverBorderColor

Defined in: index.esm.d.ts:1818 (opens new window)


# pointHoverBorderWidth

pointHoverBorderWidth: ScriptableAndArray<number, ScriptableContext<line>>

Border width of point when hovered.

Inherited from: ScriptableAndArrayOptions.pointHoverBorderWidth

Defined in: index.esm.d.ts:1822 (opens new window)


# pointHoverRadius

pointHoverRadius: ScriptableAndArray<number, ScriptableContext<line>>

The radius of the point when hovered.

Inherited from: ScriptableAndArrayOptions.pointHoverRadius

Defined in: index.esm.d.ts:1826 (opens new window)


# pointRadius

pointRadius: ScriptableAndArray<number, ScriptableContext<line>>

The radius of the point shape. If set to 0, the point is not rendered.

Inherited from: ScriptableAndArrayOptions.pointRadius

Defined in: index.esm.d.ts:1799 (opens new window)


# pointRotation

pointRotation: ScriptableAndArray<number, ScriptableContext<line>>

The rotation of the point in degrees.

Inherited from: ScriptableAndArrayOptions.pointRotation

Defined in: index.esm.d.ts:1803 (opens new window)


# pointStyle

pointStyle: ScriptableAndArray<PointStyle, ScriptableContext<line>>

Style of the point.

Inherited from: ScriptableAndArrayOptions.pointStyle

Defined in: index.esm.d.ts:1807 (opens new window)


# segment

segment: Scriptable<{ backgroundColor: Scriptable<Color, ScriptableLineSegmentContext> ; borderCapStyle: Scriptable<CanvasLineCap, ScriptableLineSegmentContext> ; borderColor: Scriptable<Color, ScriptableLineSegmentContext> ; borderDash: Scriptable<number[], ScriptableLineSegmentContext> ; borderDashOffset: Scriptable<number, ScriptableLineSegmentContext> ; borderJoinStyle: Scriptable<CanvasLineJoin, ScriptableLineSegmentContext> ; borderWidth: Scriptable<number, ScriptableLineSegmentContext> }, ScriptableContext<line>>

Inherited from: ScriptableOptions.segment

Defined in: index.esm.d.ts:1693 (opens new window)


# showLine

showLine: boolean

Defined in: index.esm.d.ts:195 (opens new window)


# spanGaps

spanGaps: number | boolean

If true, lines will be drawn between points with no or null data. If false, points with NaN data will create a break in the line. Can also be a number specifying the maximum gap length to span. The unit of the value depends on the scale used.

default false

Defined in: index.esm.d.ts:193 (opens new window)


# stack

stack: string

The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).

Inherited from: ControllerDatasetOptions.stack

Defined in: index.esm.d.ts:77 (opens new window)


# stepped

stepped: Scriptable<boolean | before | after | middle, ScriptableContext<line>>

true to show the line as a stepped line (tension will be ignored).

default false

Inherited from: ScriptableOptions.stepped

Defined in: index.esm.d.ts:1691 (opens new window)


# tension

tension: Scriptable<number, ScriptableContext<line>>

Bézier curve tension (0 for no Bézier curves).

default 0

Inherited from: ScriptableOptions.tension

Defined in: index.esm.d.ts:1686 (opens new window)


# transitions

transitions: TransitionsSpec<line>

Inherited from: AnimationOptions.transitions

Defined in: index.esm.d.ts:1544 (opens new window)


# xAxisID

xAxisID: string

The ID of the x axis to plot this dataset on.

Defined in: index.esm.d.ts:183 (opens new window)


# yAxisID

yAxisID: string

The ID of the y axis to plot this dataset on.

Defined in: index.esm.d.ts:187 (opens new window)

- + diff --git a/docs/latest/api/interfaces/lineelement.html b/docs/latest/api/interfaces/lineelement.html index b42883babf..9ae47dd3c4 100644 --- a/docs/latest/api/interfaces/lineelement.html +++ b/docs/latest/api/interfaces/lineelement.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: LineElement<T, O>

# Type parameters

Name Type Default
T LineProps LineProps
O LineOptions LineOptions

# Hierarchy

# Properties

# active

Readonly active: boolean

Inherited from: Element.active

Defined in: element.d.ts:6 (opens new window)


# options

Readonly options: O

Inherited from: Element.options

Defined in: element.d.ts:7 (opens new window)


# points

points: Point[]

Defined in: index.esm.d.ts:1715 (opens new window)


# segments

Readonly segments: Segment[]

Defined in: index.esm.d.ts:1716 (opens new window)


# x

Readonly x: number

Inherited from: Element.x

Defined in: element.d.ts:4 (opens new window)


# y

Readonly y: number

Inherited from: Element.y

Defined in: element.d.ts:5 (opens new window)

# Methods

# draw

draw(ctx: CanvasRenderingContext2D): void

# Parameters:

Name Type
ctx CanvasRenderingContext2D

Returns: void

Inherited from: VisualElement

Defined in: index.esm.d.ts:1577 (opens new window)


# first

first(): false | Point

Returns: false | Point

Defined in: index.esm.d.ts:1717 (opens new window)


# getCenterPoint

getCenterPoint(useFinalPosition?: boolean): object

# Parameters:

Name Type
useFinalPosition? boolean

Returns: object

Name Type
x number
y number

Inherited from: VisualElement

Defined in: index.esm.d.ts:1581 (opens new window)


# getProps

getProps<P>(props: [P], final?: boolean): Pick<T, P>

# Type parameters:

Name Type
P string | number | symbol

# Parameters:

Name Type
props [P]
final? boolean

Returns: Pick<T, P>

Inherited from: Element.getProps

Defined in: element.d.ts:11 (opens new window)

getProps<P, P2>(props: [P, P2], final?: boolean): Pick<T, P | P2>

# Type parameters:

Name Type
P string | number | symbol
P2 string | number | symbol

# Parameters:

Name Type
props [P, P2]
final? boolean

Returns: Pick<T, P | P2>

Inherited from: Element.getProps

Defined in: element.d.ts:12 (opens new window)

getProps<P, P2, P3>(props: [P, P2, P3], final?: boolean): Pick<T, P | P2 | P3>

# Type parameters:

Name Type
P string | number | symbol
P2 string | number | symbol
P3 string | number | symbol

# Parameters:

Name Type
props [P, P2, P3]
final? boolean

Returns: Pick<T, P | P2 | P3>

Inherited from: Element.getProps

Defined in: element.d.ts:13 (opens new window)

getProps<P, P2, P3, P4>(props: [P, P2, P3, P4], final?: boolean): Pick<T, P | P2 | P3 | P4>

# Type parameters:

Name Type
P string | number | symbol
P2 string | number | symbol
P3 string | number | symbol
P4 string | number | symbol

# Parameters:

Name Type
props [P, P2, P3, P4]
final? boolean

Returns: Pick<T, P | P2 | P3 | P4>

Inherited from: Element.getProps

Defined in: element.d.ts:17 (opens new window)

getProps<P, P2, P3, P4, P5>(props: [P, P2, P3, P4, P5], final?: boolean): Pick<T, P | P2 | P3 | P4 | P5>

# Type parameters:

Name Type
P string | number | symbol
P2 string | number | symbol
P3 string | number | symbol
P4 string | number | symbol
P5 string | number | symbol

# Parameters:

Name Type
props [P, P2, P3, P4, P5]
final? boolean

Returns: Pick<T, P | P2 | P3 | P4 | P5>

Inherited from: Element.getProps

Defined in: element.d.ts:21 (opens new window)

getProps(props: keyof T[], final?: boolean): T

# Parameters:

Name Type
props keyof T[]
final? boolean

Returns: T

Inherited from: Element.getProps

Defined in: element.d.ts:25 (opens new window)


# getRange

OptionalgetRange(axis: x | y): number

# Parameters:

Name Type
axis x | y

Returns: number

Inherited from: VisualElement

Defined in: index.esm.d.ts:1582 (opens new window)


# hasValue

hasValue(): boolean

Returns: boolean

Inherited from: Element.hasValue

Defined in: element.d.ts:10 (opens new window)


# inRange

inRange(mouseX: number, mouseY: number, useFinalPosition?: boolean): boolean

# Parameters:

Name Type
mouseX number
mouseY number
useFinalPosition? boolean

Returns: boolean

Inherited from: VisualElement

Defined in: index.esm.d.ts:1578 (opens new window)


# inXRange

inXRange(mouseX: number, useFinalPosition?: boolean): boolean

# Parameters:

Name Type
mouseX number
useFinalPosition? boolean

Returns: boolean

Inherited from: VisualElement

Defined in: index.esm.d.ts:1579 (opens new window)


# inYRange

inYRange(mouseY: number, useFinalPosition?: boolean): boolean

# Parameters:

Name Type
mouseY number
useFinalPosition? boolean

Returns: boolean

Inherited from: VisualElement

Defined in: index.esm.d.ts:1580 (opens new window)


# interpolate

interpolate(point: Point, property: x | y): Point | Point[]

# Parameters:

Name Type
point Point
property x | y

Returns: Point | Point[]

Defined in: index.esm.d.ts:1719 (opens new window)


# last

last(): false | Point

Returns: false | Point

Defined in: index.esm.d.ts:1718 (opens new window)


# path

path(ctx: CanvasRenderingContext2D): boolean

# Parameters:

Name Type
ctx CanvasRenderingContext2D

Returns: boolean

Defined in: index.esm.d.ts:1721 (opens new window)


# pathSegment

pathSegment(ctx: CanvasRenderingContext2D, segment: Segment, params: Record<string, unknown>): boolean

# Parameters:

Name Type
ctx CanvasRenderingContext2D
segment Segment
params Record<string, unknown>

Returns: boolean

Defined in: index.esm.d.ts:1720 (opens new window)


# tooltipPosition

tooltipPosition(useFinalPosition?: boolean): Point

# Parameters:

Name Type
useFinalPosition? boolean

Returns: Point

Inherited from: Element.tooltipPosition

Defined in: element.d.ts:9 (opens new window)


# updateControlPoints

updateControlPoints(chartArea: ChartArea): void

# Parameters:

Name Type
chartArea ChartArea

Returns: void

Defined in: index.esm.d.ts:1714 (opens new window)

- + diff --git a/docs/latest/api/interfaces/linehoveroptions.html b/docs/latest/api/interfaces/linehoveroptions.html index c691ab2600..5d23ba38d4 100644 --- a/docs/latest/api/interfaces/linehoveroptions.html +++ b/docs/latest/api/interfaces/linehoveroptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: LineHoverOptions

# Hierarchy

# Properties

# hoverBackgroundColor

hoverBackgroundColor: Color

Inherited from: CommonHoverOptions.hoverBackgroundColor

Defined in: index.esm.d.ts:1594 (opens new window)


# hoverBorderCapStyle

hoverBorderCapStyle: CanvasLineCap

Defined in: index.esm.d.ts:1705 (opens new window)


# hoverBorderColor

hoverBorderColor: Color

Inherited from: CommonHoverOptions.hoverBorderColor

Defined in: index.esm.d.ts:1593 (opens new window)


# hoverBorderDash

hoverBorderDash: number[]

Defined in: index.esm.d.ts:1706 (opens new window)


# hoverBorderDashOffset

hoverBorderDashOffset: number

Defined in: index.esm.d.ts:1707 (opens new window)


# hoverBorderJoinStyle

hoverBorderJoinStyle: CanvasLineJoin

Defined in: index.esm.d.ts:1708 (opens new window)


# hoverBorderWidth

hoverBorderWidth: number

Inherited from: CommonHoverOptions.hoverBorderWidth

Defined in: index.esm.d.ts:1592 (opens new window)

- + diff --git a/docs/latest/api/interfaces/lineoptions.html b/docs/latest/api/interfaces/lineoptions.html index 2d0c6b460c..e1d3c8f8dc 100644 --- a/docs/latest/api/interfaces/lineoptions.html +++ b/docs/latest/api/interfaces/lineoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: LineOptions

# Hierarchy

# Properties

# backgroundColor

backgroundColor: Color

Inherited from: CommonElementOptions.backgroundColor

Defined in: index.esm.d.ts:1588 (opens new window)


# borderCapStyle

borderCapStyle: CanvasLineCap

Line cap style. See MDN.

default 'butt'

Defined in: index.esm.d.ts:1656 (opens new window)


# borderColor

borderColor: Color

Inherited from: CommonElementOptions.borderColor

Defined in: index.esm.d.ts:1587 (opens new window)


# borderDash

borderDash: number[]

Line dash. See MDN.

default []

Defined in: index.esm.d.ts:1661 (opens new window)


# borderDashOffset

borderDashOffset: number

Line dash offset. See MDN.

default 0.0

Defined in: index.esm.d.ts:1666 (opens new window)


# borderJoinStyle

borderJoinStyle: CanvasLineJoin

Line join style. See MDN.

default 'miter'

Defined in: index.esm.d.ts:1671 (opens new window)


# borderWidth

borderWidth: number

Inherited from: CommonElementOptions.borderWidth

Defined in: index.esm.d.ts:1586 (opens new window)


# capBezierPoints

capBezierPoints: boolean

true to keep Bézier control inside the chart, false for no restriction.

default true

Defined in: index.esm.d.ts:1676 (opens new window)


# cubicInterpolationMode

cubicInterpolationMode: default | monotone

Interpolation mode to apply.

default 'default'

Defined in: index.esm.d.ts:1681 (opens new window)


# segment

segment: object

# Type declaration:

Name Type
backgroundColor Scriptable<Color, ScriptableLineSegmentContext>
borderCapStyle Scriptable<CanvasLineCap, ScriptableLineSegmentContext>
borderColor Scriptable<Color, ScriptableLineSegmentContext>
borderDash Scriptable<number[], ScriptableLineSegmentContext>
borderDashOffset Scriptable<number, ScriptableLineSegmentContext>
borderJoinStyle Scriptable<CanvasLineJoin, ScriptableLineSegmentContext>
borderWidth Scriptable<number, ScriptableLineSegmentContext>

Defined in: index.esm.d.ts:1693 (opens new window)


# stepped

stepped: boolean | before | after | middle

true to show the line as a stepped line (tension will be ignored).

default false

Defined in: index.esm.d.ts:1691 (opens new window)


# tension

tension: number

Bézier curve tension (0 for no Bézier curves).

default 0

Defined in: index.esm.d.ts:1686 (opens new window)

- + diff --git a/docs/latest/api/interfaces/lineprops.html b/docs/latest/api/interfaces/lineprops.html index d4fd0a54e0..5388c46331 100644 --- a/docs/latest/api/interfaces/lineprops.html +++ b/docs/latest/api/interfaces/lineprops.html @@ -7,7 +7,7 @@ - + @@ -48,6 +48,6 @@ →

- + diff --git a/docs/latest/api/interfaces/parsingoptions.html b/docs/latest/api/interfaces/parsingoptions.html index 7fa7fd8d6e..86bc0194d0 100644 --- a/docs/latest/api/interfaces/parsingoptions.html +++ b/docs/latest/api/interfaces/parsingoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ParsingOptions

# Hierarchy

# Properties

# normalized

normalized: boolean

Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.

Defined in: index.esm.d.ts:52 (opens new window)


# parsing

parsing: false | { [key: string]: string; }

How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.

Defined in: index.esm.d.ts:43 (opens new window)

- + diff --git a/docs/latest/api/interfaces/plugin.html b/docs/latest/api/interfaces/plugin.html index 6b5f3dbdd8..0cfca87326 100644 --- a/docs/latest/api/interfaces/plugin.html +++ b/docs/latest/api/interfaces/plugin.html @@ -7,7 +7,7 @@ - + @@ -39,30 +39,30 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: Plugin<TType, O>

# Type parameters

Name Type Default
TType ChartType ChartType
O - AnyObject

# Hierarchy

# Properties

# id

id: string

Defined in: index.esm.d.ts:746 (opens new window)

# Methods

# afterBuildTicks

OptionalafterBuildTicks(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { scale: Scale<CoreScaleOptions> }, options: O): void

desc Called after scale has build its ticks. This hook is called separately for each scale in the chart.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.scale Scale<CoreScaleOptions> The scale.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:905 (opens new window)


# afterDataLimits

OptionalafterDataLimits(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { scale: Scale<CoreScaleOptions> }, options: O): void

desc Called after scale data limits are calculated. This hook is called separately for each scale in the chart.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.scale Scale<CoreScaleOptions> The scale.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:889 (opens new window)


# afterDatasetDraw

OptionalafterDatasetDraw(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { index: number ; meta: ChartMeta<Element<{}, {}>, Element<{}, {}>> }, options: O): void

desc Called after the chart datasets at the given args.index have been drawn + (opens new window)

# Interface: Plugin<TType, O>

# Type parameters

Name Type Default
TType ChartType ChartType
O - AnyObject

# Hierarchy

# Properties

# id

id: string

Defined in: index.esm.d.ts:746 (opens new window)

# Methods

# afterBuildTicks

OptionalafterBuildTicks(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { scale: Scale<CoreScaleOptions> }, options: O): void

desc Called after scale has build its ticks. This hook is called separately for each scale in the chart.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.scale Scale<CoreScaleOptions> The scale.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:905 (opens new window)


# afterDataLimits

OptionalafterDataLimits(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { scale: Scale<CoreScaleOptions> }, options: O): void

desc Called after scale data limits are calculated. This hook is called separately for each scale in the chart.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.scale Scale<CoreScaleOptions> The scale.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:889 (opens new window)


# afterDatasetDraw

OptionalafterDatasetDraw(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { index: number ; meta: ChartMeta<Element<{}, {}>, Element<{}, {}>> }, options: O): void

desc Called after the chart datasets at the given args.index have been drawn (datasets are drawn in the reverse order). Note that this hook will not be called -if the datasets drawing has been previously cancelled.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.index number The dataset index.
args.meta ChartMeta<Element<{}, {}>, Element<{}, {}>> The dataset metadata.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:987 (opens new window)


# afterDatasetUpdate

OptionalafterDatasetUpdate(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { cancelable: false ; index: number ; meta: ChartMeta<Element<{}, {}>, Element<{}, {}>> ; mode: resize | reset | none | hide | show | normal | active }, options: O): void

desc Called after the chart datasets at the given args.index has been updated. Note -that this hook will not be called if the datasets update has been previously cancelled.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.cancelable false -
args.index number The dataset index.
args.meta ChartMeta<Element<{}, {}>, Element<{}, {}>> The dataset metadata.
args.mode resize | reset | none | hide | show | normal | active The update mode.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:864 (opens new window)


# afterDatasetsDraw

OptionalafterDatasetsDraw(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: Record<string, never>, options: O, cancelable: false): void

desc Called after the chart datasets have been drawn. Note that this hook -will not be called if the datasets drawing has been previously cancelled.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args Record<string, never> The call arguments.
options O The plugin options.
cancelable false -

Returns: void

Defined in: index.esm.d.ts:964 (opens new window)


# afterDatasetsUpdate

OptionalafterDatasetsUpdate(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { cancelable: true ; mode: resize | reset | none | hide | show | normal | active }, options: O): void

desc Called after the chart datasets have been updated. Note that this hook -will not be called if the datasets update has been previously cancelled.

since version 2.1.5

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.cancelable true -
args.mode resize | reset | none | hide | show | normal | active The update mode.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:841 (opens new window)


# afterDraw

OptionalafterDraw(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: Record<string, never>, options: O): void

desc Called after the chart has been drawn. Note that this hook will not be called -if the drawing has been previously cancelled.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args Record<string, never> The call arguments.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:947 (opens new window)


# afterEvent

OptionalafterEvent(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { cancelable: false ; changed?: boolean ; event: ChartEvent ; replay: boolean }, options: O): void

desc Called after the event has been consumed. Note that this hook -will not be called if the event has been previously discarded.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.cancelable false -
args.changed? boolean -
args.event ChartEvent The event object.
args.replay boolean True if this event is replayed from Chart.update
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:1008 (opens new window)


# afterInit

OptionalafterInit(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: Record<string, never>, options: O): void

desc Called after chart has been initialized and before the first update.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args Record<string, never> The call arguments.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:785 (opens new window)


# afterLayout

OptionalafterLayout(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: Record<string, never>, options: O): void

desc Called after the chart has been laid out. Note that this hook will not -be called if the layout update has been previously cancelled.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args Record<string, never> The call arguments.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:913 (opens new window)


# afterRender

OptionalafterRender(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: Record<string, never>, options: O): void

desc Called after the chart has been fully rendered (and animation completed). Note -that this hook will not be called if the rendering has been previously cancelled.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args Record<string, never> The call arguments.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:930 (opens new window)


# afterTooltipDraw

OptionalafterTooltipDraw(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { tooltip: TooltipModel<TType> }, options: Record<string, unknown>): void

desc Called after drawing the tooltip. Note that this hook will not -be called if the tooltip drawing has been previously cancelled.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.tooltip TooltipModel<TType> The tooltip.
options Record<string, unknown> The plugin options.

Returns: void

Inherited from: ExtendedPlugin

Defined in: index.esm.d.ts:2388 (opens new window)


# afterUpdate

OptionalafterUpdate(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { mode: resize | reset | none | hide | show | normal | active }, options: O): void

desc Called after chart has been updated and before rendering. Note that this -hook will not be called if the chart update has been previously cancelled.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.mode resize | reset | none | hide | show | normal | active The update mode
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:804 (opens new window)


# beforeBuildTicks

OptionalbeforeBuildTicks(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { scale: Scale<CoreScaleOptions> }, options: O): void

desc Called before scale bulds its ticks. This hook is called separately for each scale in the chart.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.scale Scale<CoreScaleOptions> The scale.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:897 (opens new window)


# beforeDataLimits

OptionalbeforeDataLimits(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { scale: Scale<CoreScaleOptions> }, options: O): void

desc Called before scale data limits are calculated. This hook is called separately for each scale in the chart.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.scale Scale<CoreScaleOptions> The scale.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:881 (opens new window)


# beforeDatasetDraw

OptionalbeforeDatasetDraw(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { index: number ; meta: ChartMeta<Element<{}, {}>, Element<{}, {}>> }, options: O): boolean | void

desc Called before drawing the chart dataset at the given args.index (datasets +if the datasets drawing has been previously cancelled.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.index number The dataset index.
args.meta ChartMeta<Element<{}, {}>, Element<{}, {}>> The dataset metadata.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:987 (opens new window)


# afterDatasetUpdate

OptionalafterDatasetUpdate(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { cancelable: false ; index: number ; meta: ChartMeta<Element<{}, {}>, Element<{}, {}>> ; mode: resize | reset | none | hide | show | normal | active }, options: O): void

desc Called after the chart datasets at the given args.index has been updated. Note +that this hook will not be called if the datasets update has been previously cancelled.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.cancelable false -
args.index number The dataset index.
args.meta ChartMeta<Element<{}, {}>, Element<{}, {}>> The dataset metadata.
args.mode resize | reset | none | hide | show | normal | active The update mode.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:864 (opens new window)


# afterDatasetsDraw

OptionalafterDatasetsDraw(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: Record<string, never>, options: O, cancelable: false): void

desc Called after the chart datasets have been drawn. Note that this hook +will not be called if the datasets drawing has been previously cancelled.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args Record<string, never> The call arguments.
options O The plugin options.
cancelable false -

Returns: void

Defined in: index.esm.d.ts:964 (opens new window)


# afterDatasetsUpdate

OptionalafterDatasetsUpdate(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { cancelable: true ; mode: resize | reset | none | hide | show | normal | active }, options: O): void

desc Called after the chart datasets have been updated. Note that this hook +will not be called if the datasets update has been previously cancelled.

since version 2.1.5

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.cancelable true -
args.mode resize | reset | none | hide | show | normal | active The update mode.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:841 (opens new window)


# afterDraw

OptionalafterDraw(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: Record<string, never>, options: O): void

desc Called after the chart has been drawn. Note that this hook will not be called +if the drawing has been previously cancelled.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args Record<string, never> The call arguments.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:947 (opens new window)


# afterEvent

OptionalafterEvent(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { cancelable: false ; changed?: boolean ; event: ChartEvent ; replay: boolean }, options: O): void

desc Called after the event has been consumed. Note that this hook +will not be called if the event has been previously discarded.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.cancelable false -
args.changed? boolean -
args.event ChartEvent The event object.
args.replay boolean True if this event is replayed from Chart.update
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:1008 (opens new window)


# afterInit

OptionalafterInit(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: Record<string, never>, options: O): void

desc Called after chart has been initialized and before the first update.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args Record<string, never> The call arguments.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:785 (opens new window)


# afterLayout

OptionalafterLayout(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: Record<string, never>, options: O): void

desc Called after the chart has been laid out. Note that this hook will not +be called if the layout update has been previously cancelled.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args Record<string, never> The call arguments.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:913 (opens new window)


# afterRender

OptionalafterRender(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: Record<string, never>, options: O): void

desc Called after the chart has been fully rendered (and animation completed). Note +that this hook will not be called if the rendering has been previously cancelled.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args Record<string, never> The call arguments.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:930 (opens new window)


# afterTooltipDraw

OptionalafterTooltipDraw(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { tooltip: TooltipModel<TType> }, options: Record<string, unknown>): void

desc Called after drawing the tooltip. Note that this hook will not +be called if the tooltip drawing has been previously cancelled.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.tooltip TooltipModel<TType> The tooltip.
options Record<string, unknown> The plugin options.

Returns: void

Inherited from: ExtendedPlugin

Defined in: index.esm.d.ts:2388 (opens new window)


# afterUpdate

OptionalafterUpdate(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { mode: resize | reset | none | hide | show | normal | active }, options: O): void

desc Called after chart has been updated and before rendering. Note that this +hook will not be called if the chart update has been previously cancelled.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.mode resize | reset | none | hide | show | normal | active The update mode
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:804 (opens new window)


# beforeBuildTicks

OptionalbeforeBuildTicks(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { scale: Scale<CoreScaleOptions> }, options: O): void

desc Called before scale bulds its ticks. This hook is called separately for each scale in the chart.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.scale Scale<CoreScaleOptions> The scale.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:897 (opens new window)


# beforeDataLimits

OptionalbeforeDataLimits(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { scale: Scale<CoreScaleOptions> }, options: O): void

desc Called before scale data limits are calculated. This hook is called separately for each scale in the chart.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.scale Scale<CoreScaleOptions> The scale.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:881 (opens new window)


# beforeDatasetDraw

OptionalbeforeDatasetDraw(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { index: number ; meta: ChartMeta<Element<{}, {}>, Element<{}, {}>> }, options: O): boolean | void

desc Called before drawing the chart dataset at the given args.index (datasets are drawn in the reverse order). If any plugin returns false, the datasets drawing -is cancelled until another render is triggered.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.index number The dataset index.
args.meta ChartMeta<Element<{}, {}>, Element<{}, {}>> The dataset metadata.
options O The plugin options.

Returns: boolean | void

false to cancel the chart datasets drawing.

Defined in: index.esm.d.ts:976 (opens new window)


# beforeDatasetUpdate

OptionalbeforeDatasetUpdate(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { cancelable: true ; index: number ; meta: ChartMeta<Element<{}, {}>, Element<{}, {}>> ; mode: resize | reset | none | hide | show | normal | active }, options: O): boolean | void

desc Called before updating the chart dataset at the given args.index. If any plugin -returns false, the datasets update is cancelled until another update is triggered.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.cancelable true -
args.index number The dataset index.
args.meta ChartMeta<Element<{}, {}>, Element<{}, {}>> The dataset metadata.
args.mode resize | reset | none | hide | show | normal | active The update mode.
options O The plugin options.

Returns: boolean | void

false to cancel the chart datasets drawing.

Defined in: index.esm.d.ts:853 (opens new window)


# beforeDatasetsDraw

OptionalbeforeDatasetsDraw(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { cancelable: true }, options: O): boolean | void

desc Called before drawing the chart datasets. If any plugin returns false, -the datasets drawing is cancelled until another render is triggered.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.cancelable true -
options O The plugin options.

Returns: boolean | void

false to cancel the chart datasets drawing.

Defined in: index.esm.d.ts:956 (opens new window)


# beforeDatasetsUpdate

OptionalbeforeDatasetsUpdate(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { mode: resize | reset | none | hide | show | normal | active }, options: O): boolean | void

desc Called before updating the chart datasets. If any plugin returns false, -the datasets update is cancelled until another update is triggered.

since version 2.1.5

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.mode resize | reset | none | hide | show | normal | active The update mode.
options O The plugin options.

Returns: boolean | void

false to cancel the datasets update.

Defined in: index.esm.d.ts:831 (opens new window)


# beforeDraw

OptionalbeforeDraw(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { cancelable: true }, options: O): boolean | void

desc Called before drawing chart at every animation frame. If any plugin returns false, -the frame drawing is cancelled untilanother render is triggered.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.cancelable true -
options O The plugin options.

Returns: boolean | void

false to cancel the chart drawing.

Defined in: index.esm.d.ts:939 (opens new window)


# beforeElementsUpdate

OptionalbeforeElementsUpdate(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: Record<string, never>, options: O): void

desc Called during the update process, before any chart elements have been created. -This can be used for data decimation by changing the data array inside a dataset.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args Record<string, never> The call arguments.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:812 (opens new window)


# beforeEvent

OptionalbeforeEvent(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { cancelable: true ; event: ChartEvent ; replay: boolean }, options: O): boolean | void

desc Called before processing the specified event. If any plugin returns false, -the event will be discarded.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.cancelable true -
args.event ChartEvent The event object.
args.replay boolean True if this event is replayed from Chart.update
options O The plugin options.

Returns: boolean | void

Defined in: index.esm.d.ts:997 (opens new window)


# beforeInit

OptionalbeforeInit(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: Record<string, never>, options: O): void

desc Called before initializing chart.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args Record<string, never> The call arguments.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:778 (opens new window)


# beforeLayout

OptionalbeforeLayout(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { cancelable: true }, options: O): boolean | void

desc Called before laying out chart. If any plugin returns false, -the layout update is cancelled until another update is triggered.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.cancelable true -
options O The plugin options.

Returns: boolean | void

false to cancel the chart layout.

Defined in: index.esm.d.ts:873 (opens new window)


# beforeRender

OptionalbeforeRender(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { cancelable: true }, options: O): boolean | void

desc Called before rendering chart. If any plugin returns false, -the rendering is cancelled until another render is triggered.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.cancelable true -
options O The plugin options.

Returns: boolean | void

false to cancel the chart rendering.

Defined in: index.esm.d.ts:922 (opens new window)


# beforeTooltipDraw

OptionalbeforeTooltipDraw(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { tooltip: TooltipModel<TType> }, options: Record<string, unknown>): boolean | void

desc Called before drawing the tooltip. If any plugin returns false, -the tooltip drawing is cancelled until another render is triggered.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.tooltip TooltipModel<TType> The tooltip.
options Record<string, unknown> The plugin options.

Returns: boolean | void

false to cancel the chart tooltip drawing.

Inherited from: ExtendedPlugin

Defined in: index.esm.d.ts:2379 (opens new window)


# beforeUpdate

OptionalbeforeUpdate(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { cancelable: true ; mode: resize | reset | none | hide | show | normal | active }, options: O): boolean | void

desc Called before updating chart. If any plugin returns false, the update -is cancelled (and thus subsequent render(s)) until another update is triggered.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.cancelable true -
args.mode resize | reset | none | hide | show | normal | active The update mode
options O The plugin options.

Returns: boolean | void

false to cancel the chart update.

Defined in: index.esm.d.ts:795 (opens new window)


# destroy

Optionaldestroy(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: Record<string, never>, options: O): void

Called after the chart has been destroyed.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args Record<string, never> The call arguments.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:1023 (opens new window)


# install

Optionalinstall(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: Record<string, never>, options: O): void

desc Called when plugin is installed for this chart instance. This hook is also invoked for disabled plugins (options === false).

since 3.0.0

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args Record<string, never> The call arguments.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:755 (opens new window)


# reset

Optionalreset(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: Record<string, never>, options: O): void

desc Called during chart reset

since version 3.0.0

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args Record<string, never> The call arguments.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:820 (opens new window)


# resize

Optionalresize(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: { size: { height: number ; width: number } }, options: O): void

desc Called after the chart as been resized.

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args object The call arguments.
args.size object The new canvas display size (eq. canvas.style width & height).
args.size.height number -
args.size.width number -
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:1016 (opens new window)


# start

Optionalstart(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: Record<string, never>, options: O): void

desc Called when a plugin is starting. This happens when chart is created or plugin is enabled.

since 3.0.0

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args Record<string, never> The call arguments.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:763 (opens new window)


# stop

Optionalstop(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: Record<string, never>, options: O): void

desc Called when a plugin stopping. This happens when chart is destroyed or plugin is disabled.

since 3.0.0

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args Record<string, never> The call arguments.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:771 (opens new window)


# uninstall

Optionaluninstall(chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>, args: Record<string, never>, options: O): void

Called after chart is destroyed on all plugins that were installed for that chart. This hook is also invoked for disabled plugins (options === false).

since 3.0.0

# Parameters:

Name Type Description
chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> The chart instance.
args Record<string, never> The call arguments.
options O The plugin options.

Returns: void

Defined in: index.esm.d.ts:1031 (opens new window)

- + diff --git a/docs/latest/api/interfaces/pluginchartoptions.html b/docs/latest/api/interfaces/pluginchartoptions.html index e8dab210ca..2503398c0a 100644 --- a/docs/latest/api/interfaces/pluginchartoptions.html +++ b/docs/latest/api/interfaces/pluginchartoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: PluginChartOptions<TType>

# Type parameters

Name Type
TType ChartType

# Hierarchy

# Properties

# plugins

plugins: PluginOptionsByType<TType>

Defined in: index.esm.d.ts:2626 (opens new window)

- + diff --git a/docs/latest/api/interfaces/pluginoptionsbytype.html b/docs/latest/api/interfaces/pluginoptionsbytype.html index f1bfd0d581..d78746885f 100644 --- a/docs/latest/api/interfaces/pluginoptionsbytype.html +++ b/docs/latest/api/interfaces/pluginoptionsbytype.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: PluginOptionsByType<TType>

# Type parameters

Name Type
TType ChartType

# Properties

# decimation

decimation: DecimationOptions

Defined in: index.esm.d.ts:2619 (opens new window)


# filler

filler: FillerOptions

Defined in: index.esm.d.ts:2620 (opens new window)


# legend

legend: LegendOptions

Defined in: index.esm.d.ts:2621 (opens new window)


# title

title: TitleOptions

Defined in: index.esm.d.ts:2622 (opens new window)


# tooltip

tooltip: TooltipOptions<TType>

Defined in: index.esm.d.ts:2623 (opens new window)

- + diff --git a/docs/latest/api/interfaces/point.html b/docs/latest/api/interfaces/point.html index efb63b9e21..e68c96a072 100644 --- a/docs/latest/api/interfaces/point.html +++ b/docs/latest/api/interfaces/point.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: Point

# Properties

# x

x: number

Defined in: geometric.d.ts:9 (opens new window)


# y

y: number

Defined in: geometric.d.ts:10 (opens new window)

- + diff --git a/docs/latest/api/interfaces/pointelement.html b/docs/latest/api/interfaces/pointelement.html index 98ba7e51f1..a7cc23ff1d 100644 --- a/docs/latest/api/interfaces/pointelement.html +++ b/docs/latest/api/interfaces/pointelement.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: PointElement<T, O>

# Type parameters

Name Type Default
T PointProps PointProps
O PointOptions PointOptions

# Hierarchy

# Properties

# active

Readonly active: boolean

Inherited from: Element.active

Defined in: element.d.ts:6 (opens new window)


# options

Readonly options: O

Inherited from: Element.options

Defined in: element.d.ts:7 (opens new window)


# parsed

Readonly parsed: CartesianParsedData

Defined in: index.esm.d.ts:1833 (opens new window)


# skip

Readonly skip: boolean

Defined in: index.esm.d.ts:1832 (opens new window)


# x

Readonly x: number

Inherited from: Element.x

Defined in: element.d.ts:4 (opens new window)


# y

Readonly y: number

Inherited from: Element.y

Defined in: element.d.ts:5 (opens new window)

# Methods

# draw

draw(ctx: CanvasRenderingContext2D): void

# Parameters:

Name Type
ctx CanvasRenderingContext2D

Returns: void

Inherited from: VisualElement

Defined in: index.esm.d.ts:1577 (opens new window)


# getCenterPoint

getCenterPoint(useFinalPosition?: boolean): object

# Parameters:

Name Type
useFinalPosition? boolean

Returns: object

Name Type
x number
y number

Inherited from: VisualElement

Defined in: index.esm.d.ts:1581 (opens new window)


# getProps

getProps<P>(props: [P], final?: boolean): Pick<T, P>

# Type parameters:

Name Type
P string | number | symbol

# Parameters:

Name Type
props [P]
final? boolean

Returns: Pick<T, P>

Inherited from: Element.getProps

Defined in: element.d.ts:11 (opens new window)

getProps<P, P2>(props: [P, P2], final?: boolean): Pick<T, P | P2>

# Type parameters:

Name Type
P string | number | symbol
P2 string | number | symbol

# Parameters:

Name Type
props [P, P2]
final? boolean

Returns: Pick<T, P | P2>

Inherited from: Element.getProps

Defined in: element.d.ts:12 (opens new window)

getProps<P, P2, P3>(props: [P, P2, P3], final?: boolean): Pick<T, P | P2 | P3>

# Type parameters:

Name Type
P string | number | symbol
P2 string | number | symbol
P3 string | number | symbol

# Parameters:

Name Type
props [P, P2, P3]
final? boolean

Returns: Pick<T, P | P2 | P3>

Inherited from: Element.getProps

Defined in: element.d.ts:13 (opens new window)

getProps<P, P2, P3, P4>(props: [P, P2, P3, P4], final?: boolean): Pick<T, P | P2 | P3 | P4>

# Type parameters:

Name Type
P string | number | symbol
P2 string | number | symbol
P3 string | number | symbol
P4 string | number | symbol

# Parameters:

Name Type
props [P, P2, P3, P4]
final? boolean

Returns: Pick<T, P | P2 | P3 | P4>

Inherited from: Element.getProps

Defined in: element.d.ts:17 (opens new window)

getProps<P, P2, P3, P4, P5>(props: [P, P2, P3, P4, P5], final?: boolean): Pick<T, P | P2 | P3 | P4 | P5>

# Type parameters:

Name Type
P string | number | symbol
P2 string | number | symbol
P3 string | number | symbol
P4 string | number | symbol
P5 string | number | symbol

# Parameters:

Name Type
props [P, P2, P3, P4, P5]
final? boolean

Returns: Pick<T, P | P2 | P3 | P4 | P5>

Inherited from: Element.getProps

Defined in: element.d.ts:21 (opens new window)

getProps(props: keyof T[], final?: boolean): T

# Parameters:

Name Type
props keyof T[]
final? boolean

Returns: T

Inherited from: Element.getProps

Defined in: element.d.ts:25 (opens new window)


# getRange

OptionalgetRange(axis: x | y): number

# Parameters:

Name Type
axis x | y

Returns: number

Inherited from: VisualElement

Defined in: index.esm.d.ts:1582 (opens new window)


# hasValue

hasValue(): boolean

Returns: boolean

Inherited from: Element.hasValue

Defined in: element.d.ts:10 (opens new window)


# inRange

inRange(mouseX: number, mouseY: number, useFinalPosition?: boolean): boolean

# Parameters:

Name Type
mouseX number
mouseY number
useFinalPosition? boolean

Returns: boolean

Inherited from: VisualElement

Defined in: index.esm.d.ts:1578 (opens new window)


# inXRange

inXRange(mouseX: number, useFinalPosition?: boolean): boolean

# Parameters:

Name Type
mouseX number
useFinalPosition? boolean

Returns: boolean

Inherited from: VisualElement

Defined in: index.esm.d.ts:1579 (opens new window)


# inYRange

inYRange(mouseY: number, useFinalPosition?: boolean): boolean

# Parameters:

Name Type
mouseY number
useFinalPosition? boolean

Returns: boolean

Inherited from: VisualElement

Defined in: index.esm.d.ts:1580 (opens new window)


# tooltipPosition

tooltipPosition(useFinalPosition?: boolean): Point

# Parameters:

Name Type
useFinalPosition? boolean

Returns: Point

Inherited from: Element.tooltipPosition

Defined in: element.d.ts:9 (opens new window)

- + diff --git a/docs/latest/api/interfaces/pointhoveroptions.html b/docs/latest/api/interfaces/pointhoveroptions.html index 41756d0eb9..278ab6bc55 100644 --- a/docs/latest/api/interfaces/pointhoveroptions.html +++ b/docs/latest/api/interfaces/pointhoveroptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: PointHoverOptions

# Hierarchy

# Properties

# hoverBackgroundColor

hoverBackgroundColor: Color

Inherited from: CommonHoverOptions.hoverBackgroundColor

Defined in: index.esm.d.ts:1594 (opens new window)


# hoverBorderColor

hoverBorderColor: Color

Inherited from: CommonHoverOptions.hoverBorderColor

Defined in: index.esm.d.ts:1593 (opens new window)


# hoverBorderWidth

hoverBorderWidth: number

Inherited from: CommonHoverOptions.hoverBorderWidth

Defined in: index.esm.d.ts:1592 (opens new window)


# hoverRadius

hoverRadius: number

Point radius when hovered.

default 4

Defined in: index.esm.d.ts:1776 (opens new window)

- + diff --git a/docs/latest/api/interfaces/pointoptions.html b/docs/latest/api/interfaces/pointoptions.html index ccd25851ff..8e6b67357e 100644 --- a/docs/latest/api/interfaces/pointoptions.html +++ b/docs/latest/api/interfaces/pointoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: PointOptions

# Hierarchy

# Properties

# backgroundColor

backgroundColor: Color

Inherited from: CommonElementOptions.backgroundColor

Defined in: index.esm.d.ts:1588 (opens new window)


# borderColor

borderColor: Color

Inherited from: CommonElementOptions.borderColor

Defined in: index.esm.d.ts:1587 (opens new window)


# borderWidth

borderWidth: number

Inherited from: CommonElementOptions.borderWidth

Defined in: index.esm.d.ts:1586 (opens new window)


# hitRadius

hitRadius: number

Extra radius added to point radius for hit detection.

default 1

Defined in: index.esm.d.ts:1758 (opens new window)


# pointStyle

pointStyle: PointStyle

Point style

default 'circle;

Defined in: index.esm.d.ts:1763 (opens new window)


# radius

radius: number

Point radius

default 3

Defined in: index.esm.d.ts:1753 (opens new window)


# rotation

rotation: number

Point rotation (in degrees).

default 0

Defined in: index.esm.d.ts:1768 (opens new window)

- + diff --git a/docs/latest/api/interfaces/pointprefixedhoveroptions.html b/docs/latest/api/interfaces/pointprefixedhoveroptions.html index 049a4dbd05..da14ac2da5 100644 --- a/docs/latest/api/interfaces/pointprefixedhoveroptions.html +++ b/docs/latest/api/interfaces/pointprefixedhoveroptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: PointPrefixedHoverOptions

# Properties

# pointHoverBackgroundColor

pointHoverBackgroundColor: Color

Point background color when hovered.

Defined in: index.esm.d.ts:1814 (opens new window)


# pointHoverBorderColor

pointHoverBorderColor: Color

Point border color when hovered.

Defined in: index.esm.d.ts:1818 (opens new window)


# pointHoverBorderWidth

pointHoverBorderWidth: number

Border width of point when hovered.

Defined in: index.esm.d.ts:1822 (opens new window)


# pointHoverRadius

pointHoverRadius: number

The radius of the point when hovered.

Defined in: index.esm.d.ts:1826 (opens new window)

- + diff --git a/docs/latest/api/interfaces/pointprefixedoptions.html b/docs/latest/api/interfaces/pointprefixedoptions.html index b7141cb097..89ad2f4ee1 100644 --- a/docs/latest/api/interfaces/pointprefixedoptions.html +++ b/docs/latest/api/interfaces/pointprefixedoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: PointPrefixedOptions

# Properties

# pointBackgroundColor

pointBackgroundColor: Color

The fill color for points.

Defined in: index.esm.d.ts:1783 (opens new window)


# pointBorderColor

pointBorderColor: Color

The border color for points.

Defined in: index.esm.d.ts:1787 (opens new window)


# pointBorderWidth

pointBorderWidth: number

The width of the point border in pixels.

Defined in: index.esm.d.ts:1791 (opens new window)


# pointHitRadius

pointHitRadius: number

The pixel size of the non-displayed point that reacts to mouse events.

Defined in: index.esm.d.ts:1795 (opens new window)


# pointRadius

pointRadius: number

The radius of the point shape. If set to 0, the point is not rendered.

Defined in: index.esm.d.ts:1799 (opens new window)


# pointRotation

pointRotation: number

The rotation of the point in degrees.

Defined in: index.esm.d.ts:1803 (opens new window)


# pointStyle

pointStyle: PointStyle

Style of the point.

Defined in: index.esm.d.ts:1807 (opens new window)

- + diff --git a/docs/latest/api/interfaces/pointprops.html b/docs/latest/api/interfaces/pointprops.html index 272206d625..172f074ed6 100644 --- a/docs/latest/api/interfaces/pointprops.html +++ b/docs/latest/api/interfaces/pointprops.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: PointProps

# Properties

# x

x: number

Defined in: index.esm.d.ts:1730 (opens new window)


# y

y: number

Defined in: index.esm.d.ts:1731 (opens new window)

- + diff --git a/docs/latest/api/interfaces/polarareacontroller.html b/docs/latest/api/interfaces/polarareacontroller.html index 40669c3998..e718fe8f68 100644 --- a/docs/latest/api/interfaces/polarareacontroller.html +++ b/docs/latest/api/interfaces/polarareacontroller.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: PolarAreaController

# Hierarchy

# Properties

# _cachedMeta

Readonly _cachedMeta: ChartMeta<Element<{}, {}>, Element<{}, {}>>

Inherited from: DoughnutController._cachedMeta

Defined in: index.esm.d.ts:537 (opens new window)


# chart

Readonly chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Inherited from: DoughnutController.chart

Defined in: index.esm.d.ts:535 (opens new window)


# enableOptionSharing

enableOptionSharing: boolean

Inherited from: DoughnutController.enableOptionSharing

Defined in: index.esm.d.ts:538 (opens new window)


# index

Readonly index: number

Inherited from: DoughnutController.index

Defined in: index.esm.d.ts:536 (opens new window)


# innerRadius

Readonly innerRadius: number

Inherited from: DoughnutController.innerRadius

Defined in: index.esm.d.ts:303 (opens new window)


# offsetX

Readonly offsetX: number

Inherited from: DoughnutController.offsetX

Defined in: index.esm.d.ts:305 (opens new window)


# offsetY

Readonly offsetY: number

Inherited from: DoughnutController.offsetY

Defined in: index.esm.d.ts:306 (opens new window)


# outerRadius

Readonly outerRadius: number

Inherited from: DoughnutController.outerRadius

Defined in: index.esm.d.ts:304 (opens new window)

# Methods

# addElements

addElements(): void

Returns: void

Inherited from: DoughnutController.addElements

Defined in: index.esm.d.ts:554 (opens new window)


# applyStack

ProtectedapplyStack(scale: Scale<CoreScaleOptions>, parsed: unknown[]): number

# Parameters:

Name Type
scale Scale<CoreScaleOptions>
parsed unknown[]

Returns: number

Inherited from: DoughnutController.applyStack

Defined in: index.esm.d.ts:590 (opens new window)


# buildOrUpdateElements

buildOrUpdateElements(resetNewElements?: boolean): void

# Parameters:

Name Type
resetNewElements? boolean

Returns: void

Inherited from: DoughnutController.buildOrUpdateElements

Defined in: index.esm.d.ts:555 (opens new window)


# calculateCircumference

calculateCircumference(value: number): number

# Parameters:

Name Type
value number

Returns: number

Inherited from: DoughnutController.calculateCircumference

Defined in: index.esm.d.ts:309 (opens new window)


# calculateTotal

calculateTotal(): number

Returns: number

Inherited from: DoughnutController.calculateTotal

Defined in: index.esm.d.ts:308 (opens new window)


# configure

configure(): void

Returns: void

Inherited from: DoughnutController.configure

Defined in: index.esm.d.ts:552 (opens new window)


# countVisibleElements

countVisibleElements(): number

Returns: number

Defined in: index.esm.d.ts:350 (opens new window)


# draw

draw(): void

Returns: void

Inherited from: DoughnutController.draw

Defined in: index.esm.d.ts:547 (opens new window)


# getAllParsedValues

getAllParsedValues(scale: Scale<CoreScaleOptions>): number[]

# Parameters:

Name Type
scale Scale<CoreScaleOptions>

Returns: number[]

Inherited from: DoughnutController.getAllParsedValues

Defined in: index.esm.d.ts:541 (opens new window)


# getDataset

getDataset(): ChartDataset<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[]>

Returns: ChartDataset<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[]>

Inherited from: DoughnutController.getDataset

Defined in: index.esm.d.ts:549 (opens new window)


# getLabelAndValue

ProtectedgetLabelAndValue(index: number): object

# Parameters:

Name Type
index number

Returns: object

Name Type
label string
value string

Inherited from: DoughnutController.getLabelAndValue

Defined in: index.esm.d.ts:542 (opens new window)


# getMaxOverflow

ProtectedgetMaxOverflow(): number | boolean

Returns: number | boolean

Inherited from: DoughnutController.getMaxOverflow

Defined in: index.esm.d.ts:546 (opens new window)


# getMeta

getMeta(): ChartMeta<Element<{}, {}>, Element<{}, {}>>

Returns: ChartMeta<Element<{}, {}>, Element<{}, {}>>

Inherited from: DoughnutController.getMeta

Defined in: index.esm.d.ts:550 (opens new window)


# getMinMax

ProtectedgetMinMax(scale: Scale<CoreScaleOptions>, canStack?: boolean): object

# Parameters:

Name Type
scale Scale<CoreScaleOptions>
canStack? boolean

Returns: object

Name Type
max number
min number

Inherited from: DoughnutController.getMinMax

Defined in: index.esm.d.ts:597 (opens new window)


# getParsed

ProtectedgetParsed(index: number): number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData

# Parameters:

Name Type
index number

Returns: number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData

Inherited from: DoughnutController.getParsed

Defined in: index.esm.d.ts:589 (opens new window)


# getScaleForId

getScaleForId(scaleID: string): Scale<CoreScaleOptions>

# Parameters:

Name Type
scaleID string

Returns: Scale<CoreScaleOptions>

Inherited from: DoughnutController.getScaleForId

Defined in: index.esm.d.ts:551 (opens new window)


# getSharedOptions

ProtectedgetSharedOptions(options: Record<string, unknown>): Record<string, unknown>

Utility for checking if the options are shared and should be animated separately.

# Parameters:

Name Type
options Record<string, unknown>

Returns: Record<string, unknown>

Inherited from: DoughnutController.getSharedOptions

Defined in: index.esm.d.ts:564 (opens new window)


# getStyle

getStyle(index: number, active: boolean): Record<string, unknown>

# Parameters:

Name Type
index number
active boolean

Returns: Record<string, unknown>

Inherited from: DoughnutController.getStyle

Defined in: index.esm.d.ts:557 (opens new window)


# includeOptions

ProtectedincludeOptions(mode: resize | reset | none | hide | show | normal | active, sharedOptions: Record<string, unknown>): boolean

Utility for determining if options should be included in the updated properties

# Parameters:

Name Type
mode resize | reset | none | hide | show | normal | active
sharedOptions Record<string, unknown>

Returns: boolean

Inherited from: DoughnutController.includeOptions

Defined in: index.esm.d.ts:569 (opens new window)


# initialize

initialize(): void

Returns: void

Inherited from: DoughnutController.initialize

Defined in: index.esm.d.ts:553 (opens new window)


# linkScales

linkScales(): void

Returns: void

Inherited from: DoughnutController.linkScales

Defined in: index.esm.d.ts:540 (opens new window)


# parse

parse(start: number, count: number): void

# Parameters:

Name Type
start number
count number

Returns: void

Inherited from: DoughnutController.parse

Defined in: index.esm.d.ts:585 (opens new window)


# parseArrayData

ProtectedparseArrayData(meta: ChartMeta<Element<{}, {}>, Element<{}, {}>>, data: Record<string, unknown>[], start: number, count: number): Record<string, unknown>[]

# Parameters:

Name Type
meta ChartMeta<Element<{}, {}>, Element<{}, {}>>
data Record<string, unknown>[]
start number
count number

Returns: Record<string, unknown>[]

Inherited from: DoughnutController.parseArrayData

Defined in: index.esm.d.ts:587 (opens new window)


# parseObjectData

ProtectedparseObjectData(meta: ChartMeta<Element<{}, {}>, Element<{}, {}>>, data: Record<string, unknown>[], start: number, count: number): Record<string, unknown>[]

# Parameters:

Name Type
meta ChartMeta<Element<{}, {}>, Element<{}, {}>>
data Record<string, unknown>[]
start number
count number

Returns: Record<string, unknown>[]

Inherited from: DoughnutController.parseObjectData

Defined in: index.esm.d.ts:588 (opens new window)


# parsePrimitiveData

ProtectedparsePrimitiveData(meta: ChartMeta<Element<{}, {}>, Element<{}, {}>>, data: Record<string, unknown>[], start: number, count: number): Record<string, unknown>[]

# Parameters:

Name Type
meta ChartMeta<Element<{}, {}>, Element<{}, {}>>
data Record<string, unknown>[]
start number
count number

Returns: Record<string, unknown>[]

Inherited from: DoughnutController.parsePrimitiveData

Defined in: index.esm.d.ts:586 (opens new window)


# removeHoverStyle

removeHoverStyle(element: Element<{}, {}>, datasetIndex: number, index: number): void

# Parameters:

Name Type
element Element<{}, {}>
datasetIndex number
index number

Returns: void

Inherited from: DoughnutController.removeHoverStyle

Defined in: index.esm.d.ts:582 (opens new window)


# reset

reset(): void

Returns: void

Inherited from: DoughnutController.reset

Defined in: index.esm.d.ts:548 (opens new window)


# resolveDataElementOptions

ProtectedresolveDataElementOptions(index: number, mode: resize | reset | none | hide | show | normal | active): Record<string, unknown>

# Parameters:

Name Type
index number
mode resize | reset | none | hide | show | normal | active

Returns: Record<string, unknown>

Inherited from: DoughnutController.resolveDataElementOptions

Defined in: index.esm.d.ts:559 (opens new window)


# resolveDatasetElementOptions

ProtectedresolveDatasetElementOptions(mode: resize | reset | none | hide | show | normal | active): Record<string, unknown>

# Parameters:

Name Type
mode resize | reset | none | hide | show | normal | active

Returns: Record<string, unknown>

Inherited from: DoughnutController.resolveDatasetElementOptions

Defined in: index.esm.d.ts:558 (opens new window)


# setHoverStyle

setHoverStyle(element: Element<{}, {}>, datasetIndex: number, index: number): void

# Parameters:

Name Type
element Element<{}, {}>
datasetIndex number
index number

Returns: void

Inherited from: DoughnutController.setHoverStyle

Defined in: index.esm.d.ts:583 (opens new window)


# update

update(mode: resize | reset | none | hide | show | normal | active): void

# Parameters:

Name Type
mode resize | reset | none | hide | show | normal | active

Returns: void

Inherited from: DoughnutController.update

Defined in: index.esm.d.ts:544 (opens new window)


# updateElement

ProtectedupdateElement(element: Element<{}, {}>, index: number, properties: Record<string, unknown>, mode: resize | reset | none | hide | show | normal | active): void

Utility for updating an element with new properties, using animations when appropriate.

# Parameters:

Name Type
element Element<{}, {}>
index number
properties Record<string, unknown>
mode resize | reset | none | hide | show | normal | active

Returns: void

Inherited from: DoughnutController.updateElement

Defined in: index.esm.d.ts:575 (opens new window)


# updateElements

updateElements(elements: Element<{}, {}>[], start: number, count: number, mode: resize | reset | none | hide | show | normal | active): void

# Parameters:

Name Type
elements Element<{}, {}>[]
start number
count number
mode resize | reset | none | hide | show | normal | active

Returns: void

Inherited from: DoughnutController.updateElements

Defined in: index.esm.d.ts:543 (opens new window)


# updateIndex

updateIndex(datasetIndex: number): void

# Parameters:

Name Type
datasetIndex number

Returns: void

Inherited from: DoughnutController.updateIndex

Defined in: index.esm.d.ts:545 (opens new window)


# updateRangeFromParsed

ProtectedupdateRangeFromParsed(range: { max: number ; min: number }, scale: Scale<CoreScaleOptions>, parsed: unknown[], stack: string | boolean): void

# Parameters:

Name Type
range object
range.max number
range.min number
scale Scale<CoreScaleOptions>
parsed unknown[]
stack string | boolean

Returns: void

Inherited from: DoughnutController.updateRangeFromParsed

Defined in: index.esm.d.ts:591 (opens new window)


# updateSharedOptions

ProtectedupdateSharedOptions(sharedOptions: Record<string, unknown>, mode: resize | reset | none | hide | show | normal | active, newOptions: Record<string, unknown>): void

Utility to animate the shared options, that are potentially affecting multiple elements.

# Parameters:

Name Type
sharedOptions Record<string, unknown>
mode resize | reset | none | hide | show | normal | active
newOptions Record<string, unknown>

Returns: void

Inherited from: DoughnutController.updateSharedOptions

Defined in: index.esm.d.ts:581 (opens new window)

- + diff --git a/docs/latest/api/interfaces/polarareacontrollerchartoptions.html b/docs/latest/api/interfaces/polarareacontrollerchartoptions.html index f47ad06053..8d37968b5a 100644 --- a/docs/latest/api/interfaces/polarareacontrollerchartoptions.html +++ b/docs/latest/api/interfaces/polarareacontrollerchartoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: PolarAreaControllerChartOptions

# Properties

# animation

animation: DoughnutAnimationOptions

Defined in: index.esm.d.ts:346 (opens new window)


# startAngle

startAngle: number

Starting angle to draw arcs for the first item in a dataset. In degrees, 0 is at top.

default 0

Defined in: index.esm.d.ts:344 (opens new window)

- + diff --git a/docs/latest/api/interfaces/polarareacontrollerdatasetoptions.html b/docs/latest/api/interfaces/polarareacontrollerdatasetoptions.html index dc989e95e0..69de19a7a6 100644 --- a/docs/latest/api/interfaces/polarareacontrollerdatasetoptions.html +++ b/docs/latest/api/interfaces/polarareacontrollerdatasetoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: PolarAreaControllerDatasetOptions

# Hierarchy

# Properties

# angle

angle: number

Arc angle to cover. - for polar only

default circumference / (arc count)

Defined in: index.esm.d.ts:334 (opens new window)


# animation

animation: false | AnimationSpec<doughnut> & { onComplete?: (event: AnimationEvent) => void ; onProgress?: (event: AnimationEvent) => void }

Inherited from: DoughnutControllerDatasetOptions.animation

Defined in: index.esm.d.ts:1533 (opens new window)


# animations

animations: AnimationsSpec<doughnut>

Inherited from: DoughnutControllerDatasetOptions.animations

Defined in: index.esm.d.ts:1543 (opens new window)


# backgroundColor

backgroundColor: ScriptableAndArray<Color, ScriptableContext<doughnut>>

Inherited from: DoughnutControllerDatasetOptions.backgroundColor

Defined in: index.esm.d.ts:1588 (opens new window)


# borderAlign

borderAlign: ScriptableAndArray<center | inner, ScriptableContext<doughnut>>

Arc stroke alignment.

Inherited from: DoughnutControllerDatasetOptions.borderAlign

Defined in: index.esm.d.ts:1624 (opens new window)


# borderColor

borderColor: ScriptableAndArray<Color, ScriptableContext<doughnut>>

Inherited from: DoughnutControllerDatasetOptions.borderColor

Defined in: index.esm.d.ts:1587 (opens new window)


# borderRadius

borderRadius: ScriptableAndArray<number | ArcBorderRadius, ScriptableContext<doughnut>>

Sets the border radius for arcs

default 0

Inherited from: DoughnutControllerDatasetOptions.borderRadius

Defined in: index.esm.d.ts:1633 (opens new window)


# borderWidth

borderWidth: ScriptableAndArray<number, ScriptableContext<doughnut>>

Inherited from: DoughnutControllerDatasetOptions.borderWidth

Defined in: index.esm.d.ts:1586 (opens new window)


# circumference

circumference: number

Sweep to allow arcs to cover.

default 360

Inherited from: DoughnutControllerDatasetOptions.circumference

Defined in: index.esm.d.ts:242 (opens new window)


# clip

clip: number | ChartArea

How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}

Inherited from: DoughnutControllerDatasetOptions.clip

Defined in: index.esm.d.ts:64 (opens new window)


# hidden

hidden: boolean

Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.

default false

Inherited from: DoughnutControllerDatasetOptions.hidden

Defined in: index.esm.d.ts:82 (opens new window)


# hoverBackgroundColor

hoverBackgroundColor: ScriptableAndArray<Color, ScriptableContext<doughnut>>

Inherited from: DoughnutControllerDatasetOptions.hoverBackgroundColor

Defined in: index.esm.d.ts:1594 (opens new window)


# hoverBorderColor

hoverBorderColor: ScriptableAndArray<Color, ScriptableContext<doughnut>>

Inherited from: DoughnutControllerDatasetOptions.hoverBorderColor

Defined in: index.esm.d.ts:1593 (opens new window)


# hoverBorderWidth

hoverBorderWidth: ScriptableAndArray<number, ScriptableContext<doughnut>>

Inherited from: DoughnutControllerDatasetOptions.hoverBorderWidth

Defined in: index.esm.d.ts:1592 (opens new window)


# hoverOffset

hoverOffset: ScriptableAndArray<number, ScriptableContext<doughnut>>

Inherited from: DoughnutControllerDatasetOptions.hoverOffset

Defined in: index.esm.d.ts:1637 (opens new window)


# indexAxis

indexAxis: x | y

The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.

default 'x'

Inherited from: DoughnutControllerDatasetOptions.indexAxis

Defined in: index.esm.d.ts:60 (opens new window)


# label

label: string

The label for the dataset which appears in the legend and tooltips.

Inherited from: DoughnutControllerDatasetOptions.label

Defined in: index.esm.d.ts:68 (opens new window)


# normalized

normalized: boolean

Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.

Inherited from: DoughnutControllerDatasetOptions.normalized

Defined in: index.esm.d.ts:52 (opens new window)


# offset

offset: ScriptableAndArray<number, ScriptableContext<doughnut>>

Arc offset (in pixels).

Inherited from: DoughnutControllerDatasetOptions.offset

Defined in: index.esm.d.ts:1628 (opens new window)


# order

order: number

The drawing order of dataset. Also affects order for stacking, tooltip and legend.

Inherited from: DoughnutControllerDatasetOptions.order

Defined in: index.esm.d.ts:72 (opens new window)


# parsing

parsing: false | { [key: string]: string; }

How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.

Inherited from: DoughnutControllerDatasetOptions.parsing

Defined in: index.esm.d.ts:43 (opens new window)


# rotation

rotation: number

Starting angle to draw this dataset from.

default 0

Inherited from: DoughnutControllerDatasetOptions.rotation

Defined in: index.esm.d.ts:248 (opens new window)


# stack

stack: string

The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).

Inherited from: DoughnutControllerDatasetOptions.stack

Defined in: index.esm.d.ts:77 (opens new window)


# transitions

transitions: TransitionsSpec<doughnut>

Inherited from: DoughnutControllerDatasetOptions.transitions

Defined in: index.esm.d.ts:1544 (opens new window)


# weight

weight: number

The relative thickness of the dataset. Providing a value for weight will cause the pie or doughnut dataset to be drawn with a thickness relative to the sum of all the dataset weight values.

default 1

Inherited from: DoughnutControllerDatasetOptions.weight

Defined in: index.esm.d.ts:254 (opens new window)

- + diff --git a/docs/latest/api/interfaces/radarcontrollerdatasetoptions.html b/docs/latest/api/interfaces/radarcontrollerdatasetoptions.html index 27c9d5522d..b6d64f9f37 100644 --- a/docs/latest/api/interfaces/radarcontrollerdatasetoptions.html +++ b/docs/latest/api/interfaces/radarcontrollerdatasetoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: RadarControllerDatasetOptions

# Hierarchy

# Properties

# animation

animation: false | AnimationSpec<radar> & { onComplete?: (event: AnimationEvent) => void ; onProgress?: (event: AnimationEvent) => void }

Inherited from: AnimationOptions.animation

Defined in: index.esm.d.ts:1533 (opens new window)


# animations

animations: AnimationsSpec<radar>

Inherited from: AnimationOptions.animations

Defined in: index.esm.d.ts:1543 (opens new window)


# backgroundColor

backgroundColor: Scriptable<Color, ScriptableContext<radar>>

Inherited from: ScriptableOptions.backgroundColor

Defined in: index.esm.d.ts:1588 (opens new window)


# borderCapStyle

borderCapStyle: Scriptable<CanvasLineCap, ScriptableContext<radar>>

Line cap style. See MDN.

default 'butt'

Inherited from: ScriptableOptions.borderCapStyle

Defined in: index.esm.d.ts:1656 (opens new window)


# borderColor

borderColor: Scriptable<Color, ScriptableContext<radar>>

Inherited from: ScriptableOptions.borderColor

Defined in: index.esm.d.ts:1587 (opens new window)


# borderDash

borderDash: Scriptable<number[], ScriptableContext<radar>>

Line dash. See MDN.

default []

Inherited from: ScriptableOptions.borderDash

Defined in: index.esm.d.ts:1661 (opens new window)


# borderDashOffset

borderDashOffset: Scriptable<number, ScriptableContext<radar>>

Line dash offset. See MDN.

default 0.0

Inherited from: ScriptableOptions.borderDashOffset

Defined in: index.esm.d.ts:1666 (opens new window)


# borderJoinStyle

borderJoinStyle: Scriptable<CanvasLineJoin, ScriptableContext<radar>>

Line join style. See MDN.

default 'miter'

Inherited from: ScriptableOptions.borderJoinStyle

Defined in: index.esm.d.ts:1671 (opens new window)


# borderWidth

borderWidth: Scriptable<number, ScriptableContext<radar>>

Inherited from: ScriptableOptions.borderWidth

Defined in: index.esm.d.ts:1586 (opens new window)


# capBezierPoints

capBezierPoints: Scriptable<boolean, ScriptableContext<radar>>

true to keep Bézier control inside the chart, false for no restriction.

default true

Inherited from: ScriptableOptions.capBezierPoints

Defined in: index.esm.d.ts:1676 (opens new window)


# clip

clip: number | ChartArea

How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}

Inherited from: ControllerDatasetOptions.clip

Defined in: index.esm.d.ts:64 (opens new window)


# cubicInterpolationMode

cubicInterpolationMode: Scriptable<default | monotone, ScriptableContext<radar>>

Interpolation mode to apply.

default 'default'

Inherited from: ScriptableOptions.cubicInterpolationMode

Defined in: index.esm.d.ts:1681 (opens new window)


# hidden

hidden: boolean

Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.

default false

Inherited from: ControllerDatasetOptions.hidden

Defined in: index.esm.d.ts:82 (opens new window)


# hoverBackgroundColor

hoverBackgroundColor: Scriptable<Color, ScriptableContext<radar>>

Inherited from: ScriptableOptions.hoverBackgroundColor

Defined in: index.esm.d.ts:1594 (opens new window)


# hoverBorderCapStyle

hoverBorderCapStyle: Scriptable<CanvasLineCap, ScriptableContext<radar>>

Inherited from: ScriptableOptions.hoverBorderCapStyle

Defined in: index.esm.d.ts:1705 (opens new window)


# hoverBorderColor

hoverBorderColor: Scriptable<Color, ScriptableContext<radar>>

Inherited from: ScriptableOptions.hoverBorderColor

Defined in: index.esm.d.ts:1593 (opens new window)


# hoverBorderDash

hoverBorderDash: Scriptable<number[], ScriptableContext<radar>>

Inherited from: ScriptableOptions.hoverBorderDash

Defined in: index.esm.d.ts:1706 (opens new window)


# hoverBorderDashOffset

hoverBorderDashOffset: Scriptable<number, ScriptableContext<radar>>

Inherited from: ScriptableOptions.hoverBorderDashOffset

Defined in: index.esm.d.ts:1707 (opens new window)


# hoverBorderJoinStyle

hoverBorderJoinStyle: Scriptable<CanvasLineJoin, ScriptableContext<radar>>

Inherited from: ScriptableOptions.hoverBorderJoinStyle

Defined in: index.esm.d.ts:1708 (opens new window)


# hoverBorderWidth

hoverBorderWidth: Scriptable<number, ScriptableContext<radar>>

Inherited from: ScriptableOptions.hoverBorderWidth

Defined in: index.esm.d.ts:1592 (opens new window)


# indexAxis

indexAxis: x | y

The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.

default 'x'

Inherited from: ControllerDatasetOptions.indexAxis

Defined in: index.esm.d.ts:60 (opens new window)


# label

label: string

The label for the dataset which appears in the legend and tooltips.

Inherited from: ControllerDatasetOptions.label

Defined in: index.esm.d.ts:68 (opens new window)


# normalized

normalized: boolean

Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.

Inherited from: ControllerDatasetOptions.normalized

Defined in: index.esm.d.ts:52 (opens new window)


# order

order: number

The drawing order of dataset. Also affects order for stacking, tooltip and legend.

Inherited from: ControllerDatasetOptions.order

Defined in: index.esm.d.ts:72 (opens new window)


# parsing

parsing: false | { [key: string]: string; }

How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.

Inherited from: ControllerDatasetOptions.parsing

Defined in: index.esm.d.ts:43 (opens new window)


# pointBackgroundColor

pointBackgroundColor: Scriptable<Color, ScriptableContext<radar>>

The fill color for points.

Inherited from: ScriptableOptions.pointBackgroundColor

Defined in: index.esm.d.ts:1783 (opens new window)


# pointBorderColor

pointBorderColor: Scriptable<Color, ScriptableContext<radar>>

The border color for points.

Inherited from: ScriptableOptions.pointBorderColor

Defined in: index.esm.d.ts:1787 (opens new window)


# pointBorderWidth

pointBorderWidth: Scriptable<number, ScriptableContext<radar>>

The width of the point border in pixels.

Inherited from: ScriptableOptions.pointBorderWidth

Defined in: index.esm.d.ts:1791 (opens new window)


# pointHitRadius

pointHitRadius: Scriptable<number, ScriptableContext<radar>>

The pixel size of the non-displayed point that reacts to mouse events.

Inherited from: ScriptableOptions.pointHitRadius

Defined in: index.esm.d.ts:1795 (opens new window)


# pointHoverBackgroundColor

pointHoverBackgroundColor: Scriptable<Color, ScriptableContext<radar>>

Point background color when hovered.

Inherited from: ScriptableOptions.pointHoverBackgroundColor

Defined in: index.esm.d.ts:1814 (opens new window)


# pointHoverBorderColor

pointHoverBorderColor: Scriptable<Color, ScriptableContext<radar>>

Point border color when hovered.

Inherited from: ScriptableOptions.pointHoverBorderColor

Defined in: index.esm.d.ts:1818 (opens new window)


# pointHoverBorderWidth

pointHoverBorderWidth: Scriptable<number, ScriptableContext<radar>>

Border width of point when hovered.

Inherited from: ScriptableOptions.pointHoverBorderWidth

Defined in: index.esm.d.ts:1822 (opens new window)


# pointHoverRadius

pointHoverRadius: Scriptable<number, ScriptableContext<radar>>

The radius of the point when hovered.

Inherited from: ScriptableOptions.pointHoverRadius

Defined in: index.esm.d.ts:1826 (opens new window)


# pointRadius

pointRadius: Scriptable<number, ScriptableContext<radar>>

The radius of the point shape. If set to 0, the point is not rendered.

Inherited from: ScriptableOptions.pointRadius

Defined in: index.esm.d.ts:1799 (opens new window)


# pointRotation

pointRotation: Scriptable<number, ScriptableContext<radar>>

The rotation of the point in degrees.

Inherited from: ScriptableOptions.pointRotation

Defined in: index.esm.d.ts:1803 (opens new window)


# pointStyle

pointStyle: Scriptable<PointStyle, ScriptableContext<radar>>

Style of the point.

Inherited from: ScriptableOptions.pointStyle

Defined in: index.esm.d.ts:1807 (opens new window)


# segment

segment: Scriptable<{ backgroundColor: Scriptable<Color, ScriptableLineSegmentContext> ; borderCapStyle: Scriptable<CanvasLineCap, ScriptableLineSegmentContext> ; borderColor: Scriptable<Color, ScriptableLineSegmentContext> ; borderDash: Scriptable<number[], ScriptableLineSegmentContext> ; borderDashOffset: Scriptable<number, ScriptableLineSegmentContext> ; borderJoinStyle: Scriptable<CanvasLineJoin, ScriptableLineSegmentContext> ; borderWidth: Scriptable<number, ScriptableLineSegmentContext> }, ScriptableContext<radar>>

Inherited from: ScriptableOptions.segment

Defined in: index.esm.d.ts:1693 (opens new window)


# showLine

showLine: boolean

If false, the line is not drawn for this dataset.

Defined in: index.esm.d.ts:381 (opens new window)


# spanGaps

spanGaps: number | boolean

If true, lines will be drawn between points with no or null data. If false, points with NaN data will create a break in the line. Can also be a number specifying the maximum gap length to span. The unit of the value depends on the scale used.

Defined in: index.esm.d.ts:376 (opens new window)


# stack

stack: string

The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).

Inherited from: ControllerDatasetOptions.stack

Defined in: index.esm.d.ts:77 (opens new window)


# stepped

stepped: Scriptable<boolean | before | after | middle, ScriptableContext<radar>>

true to show the line as a stepped line (tension will be ignored).

default false

Inherited from: ScriptableOptions.stepped

Defined in: index.esm.d.ts:1691 (opens new window)


# tension

tension: Scriptable<number, ScriptableContext<radar>>

Bézier curve tension (0 for no Bézier curves).

default 0

Inherited from: ScriptableOptions.tension

Defined in: index.esm.d.ts:1686 (opens new window)


# transitions

transitions: TransitionsSpec<radar>

Inherited from: AnimationOptions.transitions

Defined in: index.esm.d.ts:1544 (opens new window)


# xAxisID

xAxisID: string

The ID of the x axis to plot this dataset on.

Defined in: index.esm.d.ts:367 (opens new window)


# yAxisID

yAxisID: string

The ID of the y axis to plot this dataset on.

Defined in: index.esm.d.ts:371 (opens new window)

- + diff --git a/docs/latest/api/interfaces/radiallinearscale.html b/docs/latest/api/interfaces/radiallinearscale.html index 793338b3a8..ec6e798f95 100644 --- a/docs/latest/api/interfaces/radiallinearscale.html +++ b/docs/latest/api/interfaces/radiallinearscale.html @@ -7,7 +7,7 @@ - + @@ -39,12 +39,12 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: RadialLinearScale<O>

# Type parameters

Name Type Default
O RadialLinearScaleOptions RadialLinearScaleOptions

# Hierarchy

  • Scale<O>

    RadialLinearScale

# Properties

# active

Readonly active: boolean

Inherited from: Scale.active

Defined in: element.d.ts:6 (opens new window)


# axis

axis: string

Inherited from: Scale.axis

Defined in: index.esm.d.ts:1160 (opens new window)


# bottom

bottom: number

Bottom edge of the item. Set by layout system and cannot be used in update

Inherited from: Scale.bottom

Defined in: layout.d.ts:41 (opens new window)


# chart

Readonly chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Inherited from: Scale.chart

Defined in: index.esm.d.ts:1150 (opens new window)


# ctx

Readonly ctx: CanvasRenderingContext2D

Inherited from: Scale.ctx

Defined in: index.esm.d.ts:1149 (opens new window)


# fullSize

fullSize: boolean

if true, and the item is horizontal, then push vertical boxes down

Inherited from: Scale.fullSize

Defined in: layout.d.ts:17 (opens new window)


# height

height: number

Height of item. Must be valid after update()

Inherited from: Scale.height

Defined in: layout.d.ts:25 (opens new window)


# id

Readonly id: string

Inherited from: Scale.id

Defined in: index.esm.d.ts:1147 (opens new window)


# labelRotation

labelRotation: number

Inherited from: Scale.labelRotation

Defined in: index.esm.d.ts:1161 (opens new window)


# left

left: number

Left edge of the item. Set by layout system and cannot be used in update

Inherited from: Scale.left

Defined in: layout.d.ts:29 (opens new window)


# max

max: number

Inherited from: Scale.max

Defined in: index.esm.d.ts:1163 (opens new window)


# maxHeight

maxHeight: number

Inherited from: Scale.maxHeight

Defined in: index.esm.d.ts:1153 (opens new window)


# maxWidth

maxWidth: number

Inherited from: Scale.maxWidth

Defined in: index.esm.d.ts:1152 (opens new window)


# min

min: number

Inherited from: Scale.min

Defined in: index.esm.d.ts:1162 (opens new window)


# options

Readonly options: O

Inherited from: Scale.options

Defined in: element.d.ts:7 (opens new window)


# paddingBottom

paddingBottom: number

Inherited from: Scale.paddingBottom

Defined in: index.esm.d.ts:1156 (opens new window)


# paddingLeft

paddingLeft: number

Inherited from: Scale.paddingLeft

Defined in: index.esm.d.ts:1157 (opens new window)


# paddingRight

paddingRight: number

Inherited from: Scale.paddingRight

Defined in: index.esm.d.ts:1158 (opens new window)


# paddingTop

paddingTop: number

Inherited from: Scale.paddingTop

Defined in: index.esm.d.ts:1155 (opens new window)


# position

position: LayoutPosition

The position of the item in the chart layout. Possible values are

Inherited from: Scale.position

Defined in: layout.d.ts:9 (opens new window)


right: number

Right edge of the item. Set by layout system and cannot be used in update

Inherited from: Scale.right

Defined in: layout.d.ts:37 (opens new window)


# ticks

ticks: Tick[]

Inherited from: Scale.ticks

Defined in: index.esm.d.ts:1164 (opens new window)


# top

top: number

Top edge of the item. Set by layout system and cannot be used in update

Inherited from: Scale.top

Defined in: layout.d.ts:33 (opens new window)


# type

Readonly type: string

Inherited from: Scale.type

Defined in: index.esm.d.ts:1148 (opens new window)


# weight

weight: number

The weight used to sort the item. Higher weights are further away from the chart area

Inherited from: Scale.weight

Defined in: layout.d.ts:13 (opens new window)


# width

width: number

Width of item. Must be valid after update()

Inherited from: Scale.width

Defined in: layout.d.ts:21 (opens new window)


# x

Readonly x: number

Inherited from: Scale.x

Defined in: element.d.ts:4 (opens new window)


# y

Readonly y: number

Inherited from: Scale.y

Defined in: element.d.ts:5 (opens new window)

# Methods

# afterBuildTicks

afterBuildTicks(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1244 (opens new window)


# afterCalculateLabelRotation

afterCalculateLabelRotation(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1250 (opens new window)


# afterDataLimits

afterDataLimits(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1241 (opens new window)


# afterFit

afterFit(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1253 (opens new window)


# afterSetDimensions

afterSetDimensions(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1238 (opens new window)


# afterTickToLabelConversion

afterTickToLabelConversion(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1247 (opens new window)


# afterUpdate

afterUpdate(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1235 (opens new window)


# beforeBuildTicks

beforeBuildTicks(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1242 (opens new window)


# beforeCalculateLabelRotation

beforeCalculateLabelRotation(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1248 (opens new window)


# beforeDataLimits

beforeDataLimits(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1239 (opens new window)


# beforeFit

beforeFit(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1251 (opens new window)


# beforeLayout

OptionalbeforeLayout(): void

Called before the layout process starts

Returns: void

Inherited from: Scale

Defined in: layout.d.ts:46 (opens new window)


# beforeSetDimensions

beforeSetDimensions(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1236 (opens new window)


# beforeTickToLabelConversion

beforeTickToLabelConversion(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1245 (opens new window)


# beforeUpdate

beforeUpdate(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1233 (opens new window)


# buildTicks

buildTicks(): Tick[]

Returns: Tick[]

Inherited from: Scale

Defined in: index.esm.d.ts:1243 (opens new window)


# calculateLabelRotation

calculateLabelRotation(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1249 (opens new window)


# configure

configure(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1234 (opens new window)


# determineDataLimits

determineDataLimits(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1240 (opens new window)


# draw

draw(chartArea: ChartArea): void

Draws the element

# Parameters:

Name Type
chartArea ChartArea

Returns: void

Inherited from: Scale

Defined in: layout.d.ts:50 (opens new window)


# drawGrid

drawGrid(chartArea: ChartArea): void

# Parameters:

Name Type
chartArea ChartArea

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1169 (opens new window)


# drawLabels

drawLabels(chartArea: ChartArea): void

# Parameters:

Name Type
chartArea ChartArea

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1168 (opens new window)


# drawTitle

drawTitle(chartArea: ChartArea): void

# Parameters:

Name Type
chartArea ChartArea

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1167 (opens new window)


# fit

fit(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1252 (opens new window)


# generateTickLabels

generateTickLabels(ticks: Tick[]): void

# Parameters:

Name Type
ticks Tick[]

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1246 (opens new window)


# getBasePixel

getBasePixel(): number

Returns the pixel for the minimum chart value -The coordinate (0, 0) is at the upper-left corner of the canvas

Returns: number

Inherited from: Scale

Defined in: index.esm.d.ts:1225 (opens new window)


# getBasePosition

getBasePosition(index: number): object

# Parameters:

Name Type
index number

Returns: object

Name Type
angle number
x number
y number

Defined in: index.esm.d.ts:3172 (opens new window)


# getBaseValue

getBaseValue(): number

Returns: number

Inherited from: Scale

Defined in: index.esm.d.ts:1219 (opens new window)


# getDecimalForPixel

getDecimalForPixel(pixel: number): number

# Parameters:

Name Type
pixel number

Returns: number

Inherited from: Scale

Defined in: index.esm.d.ts:1175 (opens new window)


# getDistanceFromCenterForValue

getDistanceFromCenterForValue(value: number): number

# Parameters:

Name Type
value number

Returns: number

Defined in: index.esm.d.ts:3167 (opens new window)


# getIndexAngle

getIndexAngle(index: number): number

# Parameters:

Name Type
index number

Returns: number

Defined in: index.esm.d.ts:3166 (opens new window)


# getLabelForValue

getLabelForValue(value: number): string

Used to get the label to display in the tooltip for the given value

# Parameters:

Name Type
value number

Returns: string

Inherited from: Scale

Defined in: index.esm.d.ts:1195 (opens new window)


# getLabels

getLabels(): string[]

Returns: string[]

Inherited from: Scale

Defined in: index.esm.d.ts:1232 (opens new window)


# getLineWidthForValue

getLineWidthForValue(value: number): number

Returns the grid line width at given value

# Parameters:

Name Type
value number

Returns: number

Inherited from: Scale

Defined in: index.esm.d.ts:1200 (opens new window)


# getMatchingVisibleMetas

getMatchingVisibleMetas(type?: string): ChartMeta<Element<{}, {}>, Element<{}, {}>>[]

# Parameters:

Name Type
type? string

Returns: ChartMeta<Element<{}, {}>, Element<{}, {}>>[]

Inherited from: Scale

Defined in: index.esm.d.ts:1165 (opens new window)


# getMinMax

getMinMax(canStack: boolean): object

# Parameters:

Name Type
canStack boolean

Returns: object

Name Type
max number
min number

Inherited from: Scale

Defined in: index.esm.d.ts:1230 (opens new window)


# getPadding

OptionalgetPadding(): ChartArea

Returns an object with padding on the edges

Returns: ChartArea

Inherited from: Scale

Defined in: layout.d.ts:54 (opens new window)


# getPixelForDecimal

getPixelForDecimal(decimal: number): number

Utility for getting the pixel location of a percentage of scale -The coordinate (0, 0) is at the upper-left corner of the canvas

# Parameters:

Name Type
decimal number

Returns: number

Inherited from: Scale

Defined in: index.esm.d.ts:1182 (opens new window)


# getPixelForTick

getPixelForTick(index: number): number

Returns the location of the tick at the given index -The coordinate (0, 0) is at the upper-left corner of the canvas

# Parameters:

Name Type
index number

Returns: number

Inherited from: Scale

Defined in: index.esm.d.ts:1189 (opens new window)


# getPixelForValue

getPixelForValue(value: number, index: number): number

Returns the location of the given data point. Value can either be an index or a numerical value -The coordinate (0, 0) is at the upper-left corner of the canvas

# Parameters:

Name Type
value number
index number

Returns: number

Inherited from: Scale

Defined in: index.esm.d.ts:1209 (opens new window)


# getPointLabelPosition

getPointLabelPosition(index: number): ChartArea

# Parameters:

Name Type
index number

Returns: ChartArea

Defined in: index.esm.d.ts:3171 (opens new window)


# getPointPosition

getPointPosition(index: number, distanceFromCenter: number): object

# Parameters:

Name Type
index number
distanceFromCenter number

Returns: object

Name Type
angle number
x number
y number

Defined in: index.esm.d.ts:3169 (opens new window)


# getPointPositionForValue

getPointPositionForValue(index: number, value: number): object

# Parameters:

Name Type
index number
value number

Returns: object

Name Type
angle number
x number
y number

Defined in: index.esm.d.ts:3170 (opens new window)


# getProps

getProps<P>(props: [P], final?: boolean): Pick<{}, P>

# Type parameters:

Name Type
P never

# Parameters:

Name Type
props [P]
final? boolean

Returns: Pick<{}, P>

Inherited from: Scale

Defined in: element.d.ts:11 (opens new window)

getProps<P, P2>(props: [P, P2], final?: boolean): Pick<{}, P | P2>

# Type parameters:

Name Type
P never
P2 never

# Parameters:

Name Type
props [P, P2]
final? boolean

Returns: Pick<{}, P | P2>

Inherited from: Scale

Defined in: element.d.ts:12 (opens new window)

getProps<P, P2, P3>(props: [P, P2, P3], final?: boolean): Pick<{}, P | P2 | P3>

# Type parameters:

Name Type
P never
P2 never
P3 never

# Parameters:

Name Type
props [P, P2, P3]
final? boolean

Returns: Pick<{}, P | P2 | P3>

Inherited from: Scale

Defined in: element.d.ts:13 (opens new window)

getProps<P, P2, P3, P4>(props: [P, P2, P3, P4], final?: boolean): Pick<{}, P | P2 | P3 | P4>

# Type parameters:

Name Type
P never
P2 never
P3 never
P4 never

# Parameters:

Name Type
props [P, P2, P3, P4]
final? boolean

Returns: Pick<{}, P | P2 | P3 | P4>

Inherited from: Scale

Defined in: element.d.ts:17 (opens new window)

getProps<P, P2, P3, P4, P5>(props: [P, P2, P3, P4, P5], final?: boolean): Pick<{}, P | P2 | P3 | P4 | P5>

# Type parameters:

Name Type
P never
P2 never
P3 never
P4 never
P5 never

# Parameters:

Name Type
props [P, P2, P3, P4, P5]
final? boolean

Returns: Pick<{}, P | P2 | P3 | P4 | P5>

Inherited from: Scale

Defined in: element.d.ts:21 (opens new window)

getProps(props: never[], final?: boolean): object

# Parameters:

Name Type
props never[]
final? boolean

Returns: object

Inherited from: Scale

Defined in: element.d.ts:25 (opens new window)


# getTicks

getTicks(): Tick[]

Returns: Tick[]

Inherited from: Scale

Defined in: index.esm.d.ts:1231 (opens new window)


# getUserBounds

getUserBounds(): object

Returns: object

Name Type
max number
maxDefined boolean
min number
minDefined boolean

Inherited from: Scale

Defined in: index.esm.d.ts:1229 (opens new window)


# getValueForDistanceFromCenter

getValueForDistanceFromCenter(distance: number): number

# Parameters:

Name Type
distance number

Returns: number

Defined in: index.esm.d.ts:3168 (opens new window)


# getValueForPixel

getValueForPixel(pixel: number): number

Used to get the data value from a given pixel. This is the inverse of getPixelForValue -The coordinate (0, 0) is at the upper-left corner of the canvas

# Parameters:

Name Type
pixel number

Returns: number

Inherited from: Scale

Defined in: index.esm.d.ts:1217 (opens new window)


# hasValue

hasValue(): boolean

Returns: boolean

Inherited from: Scale

Defined in: element.d.ts:10 (opens new window)


# init

init(options: O): void

# Parameters:

Name Type
options O

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1227 (opens new window)


# isFullSize

isFullSize(): boolean

Returns: boolean

Inherited from: Scale

Defined in: index.esm.d.ts:1255 (opens new window)


# isHorizontal

isHorizontal(): boolean

returns true if the layout item is horizontal (ie. top or bottom)

Returns: boolean

Inherited from: Scale

Defined in: layout.d.ts:58 (opens new window)


# parse

parse(raw: unknown, index: number): unknown

# Parameters:

Name Type
raw unknown
index number

Returns: unknown

Inherited from: Scale

Defined in: index.esm.d.ts:1228 (opens new window)


# setCenterPoint

setCenterPoint(leftMovement: number, rightMovement: number, topMovement: number, bottomMovement: number): void

# Parameters:

Name Type
leftMovement number
rightMovement number
topMovement number
bottomMovement number

Returns: void

Defined in: index.esm.d.ts:3165 (opens new window)


# setDimensions

setDimensions(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1237 (opens new window)


# tooltipPosition

tooltipPosition(useFinalPosition?: boolean): Point

# Parameters:

Name Type
useFinalPosition? boolean

Returns: Point

Inherited from: Scale

Defined in: element.d.ts:9 (opens new window)


# update

update(width: number, height: number, margins?: ChartArea): void

Takes two parameters: width and height.

# Parameters:

Name Type
width number
height number
margins? ChartArea

Returns: void

Inherited from: Scale

Defined in: layout.d.ts:64 (opens new window)

- + diff --git a/docs/latest/api/interfaces/radialscaletyperegistry.html b/docs/latest/api/interfaces/radialscaletyperegistry.html index 96a0f563ba..31b3c05139 100644 --- a/docs/latest/api/interfaces/radialscaletyperegistry.html +++ b/docs/latest/api/interfaces/radialscaletyperegistry.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: RadialScaleTypeRegistry

# Hierarchy

# Properties

# radialLinear

radialLinear: object

# Type declaration:

Name Type
options RadialLinearScaleOptions

Defined in: index.esm.d.ts:3198 (opens new window)

- + diff --git a/docs/latest/api/interfaces/registry.html b/docs/latest/api/interfaces/registry.html index 8f3cde6461..f14b121666 100644 --- a/docs/latest/api/interfaces/registry.html +++ b/docs/latest/api/interfaces/registry.html @@ -7,7 +7,7 @@ - + @@ -40,7 +40,7 @@ (opens new window) GitHub (opens new window)

# Interface: Registry

Please use the module's default export which provides a singleton instance -Note: class is exported for typedoc

# Properties

# controllers

Readonly controllers: TypedRegistry<DatasetController<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, Element<{}, {}>, Element<{}, {}>, number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData>>

Defined in: index.esm.d.ts:1041 (opens new window)


# elements

Readonly elements: TypedRegistry<Element<{}, {}>>

Defined in: index.esm.d.ts:1042 (opens new window)


# plugins

Readonly plugins: TypedRegistry<Plugin<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, Record<string, unknown>>>

Defined in: index.esm.d.ts:1043 (opens new window)


# scales

Readonly scales: TypedRegistry<Scale<CoreScaleOptions>>

Defined in: index.esm.d.ts:1044 (opens new window)

# Methods

# add

add(...args: ChartComponentLike[]): void

# Parameters:

Name Type
...args ChartComponentLike[]

Returns: void

Defined in: index.esm.d.ts:1046 (opens new window)


# addControllers

addControllers(...args: ChartComponentLike[]): void

# Parameters:

Name Type
...args ChartComponentLike[]

Returns: void

Defined in: index.esm.d.ts:1049 (opens new window)


# addElements

addElements(...args: ChartComponentLike[]): void

# Parameters:

Name Type
...args ChartComponentLike[]

Returns: void

Defined in: index.esm.d.ts:1050 (opens new window)


# addPlugins

addPlugins(...args: ChartComponentLike[]): void

# Parameters:

Name Type
...args ChartComponentLike[]

Returns: void

Defined in: index.esm.d.ts:1051 (opens new window)


# addScales

addScales(...args: ChartComponentLike[]): void

# Parameters:

Name Type
...args ChartComponentLike[]

Returns: void

Defined in: index.esm.d.ts:1052 (opens new window)


# getController

getController(id: string): DatasetController<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, Element<{}, {}>, Element<{}, {}>, number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData>

# Parameters:

Name Type
id string

Returns: DatasetController<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, Element<{}, {}>, Element<{}, {}>, number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData>

Defined in: index.esm.d.ts:1054 (opens new window)


# getElement

getElement(id: string): Element<{}, {}>

# Parameters:

Name Type
id string

Returns: Element<{}, {}>

Defined in: index.esm.d.ts:1055 (opens new window)


# getPlugin

getPlugin(id: string): Plugin<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, Record<string, unknown>>

# Parameters:

Name Type
id string

Returns: Plugin<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, Record<string, unknown>>

Defined in: index.esm.d.ts:1056 (opens new window)


# getScale

getScale(id: string): Scale<CoreScaleOptions>

# Parameters:

Name Type
id string

Returns: Scale<CoreScaleOptions>

Defined in: index.esm.d.ts:1057 (opens new window)


# remove

remove(...args: ChartComponentLike[]): void

# Parameters:

Name Type
...args ChartComponentLike[]

Returns: void

Defined in: index.esm.d.ts:1047 (opens new window)

- + diff --git a/docs/latest/api/interfaces/scaletyperegistry.html b/docs/latest/api/interfaces/scaletyperegistry.html index eba07fedf6..b352773f0a 100644 --- a/docs/latest/api/interfaces/scaletyperegistry.html +++ b/docs/latest/api/interfaces/scaletyperegistry.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ScaleTypeRegistry

# Hierarchy

# Properties

# category

category: object

# Type declaration:

Name Type
options CategoryScaleOptions

Inherited from: CartesianScaleTypeRegistry.category

Defined in: index.esm.d.ts:3186 (opens new window)


# linear

linear: object

# Type declaration:

Name Type
options LinearScaleOptions

Inherited from: CartesianScaleTypeRegistry.linear

Defined in: index.esm.d.ts:3180 (opens new window)


# logarithmic

logarithmic: object

# Type declaration:

Name Type
options LogarithmicScaleOptions

Inherited from: CartesianScaleTypeRegistry.logarithmic

Defined in: index.esm.d.ts:3183 (opens new window)


# radialLinear

radialLinear: object

# Type declaration:

Name Type
options RadialLinearScaleOptions

Inherited from: RadialScaleTypeRegistry.radialLinear

Defined in: index.esm.d.ts:3198 (opens new window)


# time

time: object

# Type declaration:

Name Type
options TimeScaleOptions

Inherited from: CartesianScaleTypeRegistry.time

Defined in: index.esm.d.ts:3189 (opens new window)


# timeseries

timeseries: object

# Type declaration:

Name Type
options TimeScaleOptions

Inherited from: CartesianScaleTypeRegistry.timeseries

Defined in: index.esm.d.ts:3192 (opens new window)

- + diff --git a/docs/latest/api/interfaces/scatterdatapoint.html b/docs/latest/api/interfaces/scatterdatapoint.html index f95cc5d1e0..ec361f9a4c 100644 --- a/docs/latest/api/interfaces/scatterdatapoint.html +++ b/docs/latest/api/interfaces/scatterdatapoint.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ScatterDataPoint

# Properties

# x

x: number

Defined in: index.esm.d.ts:220 (opens new window)


# y

y: number

Defined in: index.esm.d.ts:221 (opens new window)

- + diff --git a/docs/latest/api/interfaces/scriptablecontext.html b/docs/latest/api/interfaces/scriptablecontext.html index 4614675d8c..5e1fef0e86 100644 --- a/docs/latest/api/interfaces/scriptablecontext.html +++ b/docs/latest/api/interfaces/scriptablecontext.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ScriptableContext<TType>

# Type parameters

Name Type
TType ChartType

# Properties

# active

active: boolean

Defined in: index.esm.d.ts:19 (opens new window)


# chart

chart: Chart<TType, ChartTypeRegistry[TType][defaultDataPoint][], unknown>

Defined in: index.esm.d.ts:20 (opens new window)


# dataIndex

dataIndex: number

Defined in: index.esm.d.ts:21 (opens new window)


# dataset

dataset: UnionToIntersection<ChartDataset<TType, ChartTypeRegistry[TType][defaultDataPoint][]>>

Defined in: index.esm.d.ts:22 (opens new window)


# datasetIndex

datasetIndex: number

Defined in: index.esm.d.ts:23 (opens new window)


# parsed

parsed: UnionToIntersection<ParsedDataType<TType>>

Defined in: index.esm.d.ts:24 (opens new window)


# raw

raw: unknown

Defined in: index.esm.d.ts:25 (opens new window)

- + diff --git a/docs/latest/api/interfaces/scriptablelinesegmentcontext.html b/docs/latest/api/interfaces/scriptablelinesegmentcontext.html index 003c2bac89..c974244d65 100644 --- a/docs/latest/api/interfaces/scriptablelinesegmentcontext.html +++ b/docs/latest/api/interfaces/scriptablelinesegmentcontext.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ScriptableLineSegmentContext

# Properties

# p0

p0: PointElement<PointProps, PointOptions>

Defined in: index.esm.d.ts:30 (opens new window)


# p1

p1: PointElement<PointProps, PointOptions>

Defined in: index.esm.d.ts:31 (opens new window)


# type

type: segment

Defined in: index.esm.d.ts:29 (opens new window)

- + diff --git a/docs/latest/api/interfaces/scriptablescalecontext.html b/docs/latest/api/interfaces/scriptablescalecontext.html index c1136ed398..d73d17f907 100644 --- a/docs/latest/api/interfaces/scriptablescalecontext.html +++ b/docs/latest/api/interfaces/scriptablescalecontext.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ScriptableScaleContext

# Properties

# chart

chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Defined in: index.esm.d.ts:1262 (opens new window)


# index

index: number

Defined in: index.esm.d.ts:1264 (opens new window)


# scale

scale: Scale<CoreScaleOptions>

Defined in: index.esm.d.ts:1263 (opens new window)


# tick

tick: Tick

Defined in: index.esm.d.ts:1265 (opens new window)

- + diff --git a/docs/latest/api/interfaces/scriptabletooltipcontext.html b/docs/latest/api/interfaces/scriptabletooltipcontext.html index b9fe5cc990..cf673a43f6 100644 --- a/docs/latest/api/interfaces/scriptabletooltipcontext.html +++ b/docs/latest/api/interfaces/scriptabletooltipcontext.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: ScriptableTooltipContext<TType>

# Type parameters

Name Type
TType ChartType

# Properties

# chart

chart: Chart<TType, ChartTypeRegistry[TType][defaultDataPoint][], unknown>

Defined in: index.esm.d.ts:2392 (opens new window)


# tooltip

tooltip: TooltipModel<TType>

Defined in: index.esm.d.ts:2393 (opens new window)


# tooltipItems

tooltipItems: TooltipItem<TType>[]

Defined in: index.esm.d.ts:2394 (opens new window)

- + diff --git a/docs/latest/api/interfaces/segment.html b/docs/latest/api/interfaces/segment.html index 60ed9d353a..b19554d428 100644 --- a/docs/latest/api/interfaces/segment.html +++ b/docs/latest/api/interfaces/segment.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: Segment

# Properties

# end

end: number

Defined in: index.esm.d.ts:1599 (opens new window)


# loop

loop: boolean

Defined in: index.esm.d.ts:1600 (opens new window)


# start

start: number

Defined in: index.esm.d.ts:1598 (opens new window)

- + diff --git a/docs/latest/api/interfaces/tick.html b/docs/latest/api/interfaces/tick.html index 0b9849a116..145cc88b57 100644 --- a/docs/latest/api/interfaces/tick.html +++ b/docs/latest/api/interfaces/tick.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: Tick

# Properties

# label

Optional label: string | string[]

Defined in: index.esm.d.ts:1064 (opens new window)


# major

Optional major: boolean

Defined in: index.esm.d.ts:1065 (opens new window)


# value

value: number

Defined in: index.esm.d.ts:1063 (opens new window)

- + diff --git a/docs/latest/api/interfaces/tickoptions.html b/docs/latest/api/interfaces/tickoptions.html index 880990e76a..10593fae8c 100644 --- a/docs/latest/api/interfaces/tickoptions.html +++ b/docs/latest/api/interfaces/tickoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: TickOptions

# Properties

# callback

callback: (tickValue: string | number, index: number, ticks: Tick[]) => string

Returns the string representation of the tick value as it should be displayed on the chart. See callback.

# Type declaration:

▸ (tickValue: string | number, index: number, ticks: Tick[]): string

# Parameters:

Name Type
tickValue string | number
index number
ticks Tick[]

Returns: string

Defined in: index.esm.d.ts:2699 (opens new window)

Defined in: index.esm.d.ts:2699 (opens new window)


# color

color: Scriptable<Color, ScriptableScaleContext>

Color of tick

see Defaults.color

Defined in: index.esm.d.ts:2709 (opens new window)


# display

display: boolean

If true, show tick labels.

default true

Defined in: index.esm.d.ts:2704 (opens new window)


# font

font: Scriptable<FontSpec, ScriptableScaleContext>

see Fonts

Defined in: index.esm.d.ts:2713 (opens new window)


# major

major: object

# Type declaration:

Name Type Description
enabled boolean If true, major ticks are generated. A major tick will affect autoskipping and major will be defined on ticks in the scriptable options context. default false

Defined in: index.esm.d.ts:2734 (opens new window)


# padding

padding: number

Sets the offset of the tick labels from the axis

Defined in: index.esm.d.ts:2717 (opens new window)


# textStrokeColor

textStrokeColor: Scriptable<Color, ScriptableScaleContext>

The color of the stroke around the text.

default undefined

Defined in: index.esm.d.ts:2722 (opens new window)


# textStrokeWidth

textStrokeWidth: Scriptable<number, ScriptableScaleContext>

Stroke width around the text.

default 0

Defined in: index.esm.d.ts:2727 (opens new window)


# z

z: number

z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.

default 0

Defined in: index.esm.d.ts:2732 (opens new window)

- + diff --git a/docs/latest/api/interfaces/timescale.html b/docs/latest/api/interfaces/timescale.html index 6dd1e5e87d..768d5dcc38 100644 --- a/docs/latest/api/interfaces/timescale.html +++ b/docs/latest/api/interfaces/timescale.html @@ -7,7 +7,7 @@ - + @@ -39,12 +39,12 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: TimeScale<O>

# Type parameters

Name Type Default
O TimeScaleOptions TimeScaleOptions

# Hierarchy

# Properties

# active

Readonly active: boolean

Inherited from: Scale.active

Defined in: element.d.ts:6 (opens new window)


# axis

axis: string

Inherited from: Scale.axis

Defined in: index.esm.d.ts:1160 (opens new window)


# bottom

bottom: number

Bottom edge of the item. Set by layout system and cannot be used in update

Inherited from: Scale.bottom

Defined in: layout.d.ts:41 (opens new window)


# chart

Readonly chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Inherited from: Scale.chart

Defined in: index.esm.d.ts:1150 (opens new window)


# ctx

Readonly ctx: CanvasRenderingContext2D

Inherited from: Scale.ctx

Defined in: index.esm.d.ts:1149 (opens new window)


# fullSize

fullSize: boolean

if true, and the item is horizontal, then push vertical boxes down

Inherited from: Scale.fullSize

Defined in: layout.d.ts:17 (opens new window)


# height

height: number

Height of item. Must be valid after update()

Inherited from: Scale.height

Defined in: layout.d.ts:25 (opens new window)


# id

Readonly id: string

Inherited from: Scale.id

Defined in: index.esm.d.ts:1147 (opens new window)


# labelRotation

labelRotation: number

Inherited from: Scale.labelRotation

Defined in: index.esm.d.ts:1161 (opens new window)


# left

left: number

Left edge of the item. Set by layout system and cannot be used in update

Inherited from: Scale.left

Defined in: layout.d.ts:29 (opens new window)


# max

max: number

Inherited from: Scale.max

Defined in: index.esm.d.ts:1163 (opens new window)


# maxHeight

maxHeight: number

Inherited from: Scale.maxHeight

Defined in: index.esm.d.ts:1153 (opens new window)


# maxWidth

maxWidth: number

Inherited from: Scale.maxWidth

Defined in: index.esm.d.ts:1152 (opens new window)


# min

min: number

Inherited from: Scale.min

Defined in: index.esm.d.ts:1162 (opens new window)


# options

Readonly options: O

Inherited from: Scale.options

Defined in: element.d.ts:7 (opens new window)


# paddingBottom

paddingBottom: number

Inherited from: Scale.paddingBottom

Defined in: index.esm.d.ts:1156 (opens new window)


# paddingLeft

paddingLeft: number

Inherited from: Scale.paddingLeft

Defined in: index.esm.d.ts:1157 (opens new window)


# paddingRight

paddingRight: number

Inherited from: Scale.paddingRight

Defined in: index.esm.d.ts:1158 (opens new window)


# paddingTop

paddingTop: number

Inherited from: Scale.paddingTop

Defined in: index.esm.d.ts:1155 (opens new window)


# position

position: LayoutPosition

The position of the item in the chart layout. Possible values are

Inherited from: Scale.position

Defined in: layout.d.ts:9 (opens new window)


right: number

Right edge of the item. Set by layout system and cannot be used in update

Inherited from: Scale.right

Defined in: layout.d.ts:37 (opens new window)


# ticks

ticks: Tick[]

Inherited from: Scale.ticks

Defined in: index.esm.d.ts:1164 (opens new window)


# top

top: number

Top edge of the item. Set by layout system and cannot be used in update

Inherited from: Scale.top

Defined in: layout.d.ts:33 (opens new window)


# type

Readonly type: string

Inherited from: Scale.type

Defined in: index.esm.d.ts:1148 (opens new window)


# weight

weight: number

The weight used to sort the item. Higher weights are further away from the chart area

Inherited from: Scale.weight

Defined in: layout.d.ts:13 (opens new window)


# width

width: number

Width of item. Must be valid after update()

Inherited from: Scale.width

Defined in: layout.d.ts:21 (opens new window)


# x

Readonly x: number

Inherited from: Scale.x

Defined in: element.d.ts:4 (opens new window)


# y

Readonly y: number

Inherited from: Scale.y

Defined in: element.d.ts:5 (opens new window)

# Methods

# afterBuildTicks

afterBuildTicks(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1244 (opens new window)


# afterCalculateLabelRotation

afterCalculateLabelRotation(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1250 (opens new window)


# afterDataLimits

afterDataLimits(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1241 (opens new window)


# afterFit

afterFit(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1253 (opens new window)


# afterSetDimensions

afterSetDimensions(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1238 (opens new window)


# afterTickToLabelConversion

afterTickToLabelConversion(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1247 (opens new window)


# afterUpdate

afterUpdate(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1235 (opens new window)


# beforeBuildTicks

beforeBuildTicks(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1242 (opens new window)


# beforeCalculateLabelRotation

beforeCalculateLabelRotation(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1248 (opens new window)


# beforeDataLimits

beforeDataLimits(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1239 (opens new window)


# beforeFit

beforeFit(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1251 (opens new window)


# beforeLayout

OptionalbeforeLayout(): void

Called before the layout process starts

Returns: void

Inherited from: Scale

Defined in: layout.d.ts:46 (opens new window)


# beforeSetDimensions

beforeSetDimensions(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1236 (opens new window)


# beforeTickToLabelConversion

beforeTickToLabelConversion(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1245 (opens new window)


# beforeUpdate

beforeUpdate(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1233 (opens new window)


# buildTicks

buildTicks(): Tick[]

Returns: Tick[]

Inherited from: Scale

Defined in: index.esm.d.ts:1243 (opens new window)


# calculateLabelRotation

calculateLabelRotation(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1249 (opens new window)


# configure

configure(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1234 (opens new window)


# determineDataLimits

determineDataLimits(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1240 (opens new window)


# draw

draw(chartArea: ChartArea): void

Draws the element

# Parameters:

Name Type
chartArea ChartArea

Returns: void

Inherited from: Scale

Defined in: layout.d.ts:50 (opens new window)


# drawGrid

drawGrid(chartArea: ChartArea): void

# Parameters:

Name Type
chartArea ChartArea

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1169 (opens new window)


# drawLabels

drawLabels(chartArea: ChartArea): void

# Parameters:

Name Type
chartArea ChartArea

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1168 (opens new window)


# drawTitle

drawTitle(chartArea: ChartArea): void

# Parameters:

Name Type
chartArea ChartArea

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1167 (opens new window)


# fit

fit(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1252 (opens new window)


# generateTickLabels

generateTickLabels(ticks: Tick[]): void

# Parameters:

Name Type
ticks Tick[]

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1246 (opens new window)


# getBasePixel

getBasePixel(): number

Returns the pixel for the minimum chart value -The coordinate (0, 0) is at the upper-left corner of the canvas

Returns: number

Inherited from: Scale

Defined in: index.esm.d.ts:1225 (opens new window)


# getBaseValue

getBaseValue(): number

Returns: number

Inherited from: Scale

Defined in: index.esm.d.ts:1219 (opens new window)


# getDataTimestamps

getDataTimestamps(): number[]

Returns: number[]

Defined in: index.esm.d.ts:3013 (opens new window)


# getDecimalForPixel

getDecimalForPixel(pixel: number): number

# Parameters:

Name Type
pixel number

Returns: number

Inherited from: Scale

Defined in: index.esm.d.ts:1175 (opens new window)


# getLabelForValue

getLabelForValue(value: number): string

Used to get the label to display in the tooltip for the given value

# Parameters:

Name Type
value number

Returns: string

Inherited from: Scale

Defined in: index.esm.d.ts:1195 (opens new window)


# getLabelTimestamps

getLabelTimestamps(): string[]

Returns: string[]

Defined in: index.esm.d.ts:3014 (opens new window)


# getLabels

getLabels(): string[]

Returns: string[]

Inherited from: Scale

Defined in: index.esm.d.ts:1232 (opens new window)


# getLineWidthForValue

getLineWidthForValue(value: number): number

Returns the grid line width at given value

# Parameters:

Name Type
value number

Returns: number

Inherited from: Scale

Defined in: index.esm.d.ts:1200 (opens new window)


# getMatchingVisibleMetas

getMatchingVisibleMetas(type?: string): ChartMeta<Element<{}, {}>, Element<{}, {}>>[]

# Parameters:

Name Type
type? string

Returns: ChartMeta<Element<{}, {}>, Element<{}, {}>>[]

Inherited from: Scale

Defined in: index.esm.d.ts:1165 (opens new window)


# getMinMax

getMinMax(canStack: boolean): object

# Parameters:

Name Type
canStack boolean

Returns: object

Name Type
max number
min number

Inherited from: Scale

Defined in: index.esm.d.ts:1230 (opens new window)


# getPadding

OptionalgetPadding(): ChartArea

Returns an object with padding on the edges

Returns: ChartArea

Inherited from: Scale

Defined in: layout.d.ts:54 (opens new window)


# getPixelForDecimal

getPixelForDecimal(decimal: number): number

Utility for getting the pixel location of a percentage of scale -The coordinate (0, 0) is at the upper-left corner of the canvas

# Parameters:

Name Type
decimal number

Returns: number

Inherited from: Scale

Defined in: index.esm.d.ts:1182 (opens new window)


# getPixelForTick

getPixelForTick(index: number): number

Returns the location of the tick at the given index -The coordinate (0, 0) is at the upper-left corner of the canvas

# Parameters:

Name Type
index number

Returns: number

Inherited from: Scale

Defined in: index.esm.d.ts:1189 (opens new window)


# getPixelForValue

getPixelForValue(value: number, index: number): number

Returns the location of the given data point. Value can either be an index or a numerical value -The coordinate (0, 0) is at the upper-left corner of the canvas

# Parameters:

Name Type
value number
index number

Returns: number

Inherited from: Scale

Defined in: index.esm.d.ts:1209 (opens new window)


# getProps

getProps<P>(props: [P], final?: boolean): Pick<{}, P>

# Type parameters:

Name Type
P never

# Parameters:

Name Type
props [P]
final? boolean

Returns: Pick<{}, P>

Inherited from: Scale

Defined in: element.d.ts:11 (opens new window)

getProps<P, P2>(props: [P, P2], final?: boolean): Pick<{}, P | P2>

# Type parameters:

Name Type
P never
P2 never

# Parameters:

Name Type
props [P, P2]
final? boolean

Returns: Pick<{}, P | P2>

Inherited from: Scale

Defined in: element.d.ts:12 (opens new window)

getProps<P, P2, P3>(props: [P, P2, P3], final?: boolean): Pick<{}, P | P2 | P3>

# Type parameters:

Name Type
P never
P2 never
P3 never

# Parameters:

Name Type
props [P, P2, P3]
final? boolean

Returns: Pick<{}, P | P2 | P3>

Inherited from: Scale

Defined in: element.d.ts:13 (opens new window)

getProps<P, P2, P3, P4>(props: [P, P2, P3, P4], final?: boolean): Pick<{}, P | P2 | P3 | P4>

# Type parameters:

Name Type
P never
P2 never
P3 never
P4 never

# Parameters:

Name Type
props [P, P2, P3, P4]
final? boolean

Returns: Pick<{}, P | P2 | P3 | P4>

Inherited from: Scale

Defined in: element.d.ts:17 (opens new window)

getProps<P, P2, P3, P4, P5>(props: [P, P2, P3, P4, P5], final?: boolean): Pick<{}, P | P2 | P3 | P4 | P5>

# Type parameters:

Name Type
P never
P2 never
P3 never
P4 never
P5 never

# Parameters:

Name Type
props [P, P2, P3, P4, P5]
final? boolean

Returns: Pick<{}, P | P2 | P3 | P4 | P5>

Inherited from: Scale

Defined in: element.d.ts:21 (opens new window)

getProps(props: never[], final?: boolean): object

# Parameters:

Name Type
props never[]
final? boolean

Returns: object

Inherited from: Scale

Defined in: element.d.ts:25 (opens new window)


# getTicks

getTicks(): Tick[]

Returns: Tick[]

Inherited from: Scale

Defined in: index.esm.d.ts:1231 (opens new window)


# getUserBounds

getUserBounds(): object

Returns: object

Name Type
max number
maxDefined boolean
min number
minDefined boolean

Inherited from: Scale

Defined in: index.esm.d.ts:1229 (opens new window)


# getValueForPixel

getValueForPixel(pixel: number): number

Used to get the data value from a given pixel. This is the inverse of getPixelForValue -The coordinate (0, 0) is at the upper-left corner of the canvas

# Parameters:

Name Type
pixel number

Returns: number

Inherited from: Scale

Defined in: index.esm.d.ts:1217 (opens new window)


# hasValue

hasValue(): boolean

Returns: boolean

Inherited from: Scale

Defined in: element.d.ts:10 (opens new window)


# init

init(options: O): void

# Parameters:

Name Type
options O

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1227 (opens new window)


# isFullSize

isFullSize(): boolean

Returns: boolean

Inherited from: Scale

Defined in: index.esm.d.ts:1255 (opens new window)


# isHorizontal

isHorizontal(): boolean

returns true if the layout item is horizontal (ie. top or bottom)

Returns: boolean

Inherited from: Scale

Defined in: layout.d.ts:58 (opens new window)


# normalize

normalize(values: number[]): number[]

# Parameters:

Name Type
values number[]

Returns: number[]

Defined in: index.esm.d.ts:3015 (opens new window)


# parse

parse(raw: unknown, index: number): unknown

# Parameters:

Name Type
raw unknown
index number

Returns: unknown

Inherited from: Scale

Defined in: index.esm.d.ts:1228 (opens new window)


# setDimensions

setDimensions(): void

Returns: void

Inherited from: Scale

Defined in: index.esm.d.ts:1237 (opens new window)


# tooltipPosition

tooltipPosition(useFinalPosition?: boolean): Point

# Parameters:

Name Type
useFinalPosition? boolean

Returns: Point

Inherited from: Scale

Defined in: element.d.ts:9 (opens new window)


# update

update(width: number, height: number, margins?: ChartArea): void

Takes two parameters: width and height.

# Parameters:

Name Type
width number
height number
margins? ChartArea

Returns: void

Inherited from: Scale

Defined in: layout.d.ts:64 (opens new window)

- + diff --git a/docs/latest/api/interfaces/titleoptions.html b/docs/latest/api/interfaces/titleoptions.html index eb77a9f60a..2e9d971401 100644 --- a/docs/latest/api/interfaces/titleoptions.html +++ b/docs/latest/api/interfaces/titleoptions.html @@ -7,7 +7,7 @@ - + @@ -39,8 +39,8 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: TitleOptions

# Properties

# align

align: start | end | center

Alignment of the title.

default 'center'

Defined in: index.esm.d.ts:2219 (opens new window)


# color

color: Color

Color of text

see Defaults.color

Defined in: index.esm.d.ts:2234 (opens new window)


# display

display: boolean

Is the title shown?

default false

Defined in: index.esm.d.ts:2224 (opens new window)


# font

font: FontSpec

Defined in: index.esm.d.ts:2235 (opens new window)


# fullSize

fullSize: boolean

Marks that this box should take the full width/height of the canvas (moving other boxes). If set to false, places the box above/beside the -chart area

default true

Defined in: index.esm.d.ts:2242 (opens new window)


# padding

padding: number | { bottom: number ; top: number }

Adds padding above and below the title text if a single number is specified. It is also possible to change top and bottom padding separately.

Defined in: index.esm.d.ts:2246 (opens new window)


# position

position: left | right | bottom | top

Position of title

default 'top'

Defined in: index.esm.d.ts:2229 (opens new window)


# text

text: string | string[]

Title text to display. If specified as an array, text is rendered on multiple lines.

Defined in: index.esm.d.ts:2250 (opens new window)

- + diff --git a/docs/latest/api/interfaces/tooltipcallbacks.html b/docs/latest/api/interfaces/tooltipcallbacks.html index df7494d79a..896529617d 100644 --- a/docs/latest/api/interfaces/tooltipcallbacks.html +++ b/docs/latest/api/interfaces/tooltipcallbacks.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: TooltipCallbacks<TType, Model, Item>

# Type parameters

Name Type Default
TType ChartType -
Model - TooltipModel<TType>
Item - TooltipItem<TType>

# Methods

# afterBody

afterBody(tooltipItems: Item[]): string | string[]

# Parameters:

Name Type
tooltipItems Item[]

Returns: string | string[]

Defined in: index.esm.d.ts:2351 (opens new window)


# afterFooter

afterFooter(tooltipItems: Item[]): string | string[]

# Parameters:

Name Type
tooltipItems Item[]

Returns: string | string[]

Defined in: index.esm.d.ts:2363 (opens new window)


# afterLabel

afterLabel(tooltipItem: Item): string | string[]

# Parameters:

Name Type
tooltipItem Item

Returns: string | string[]

Defined in: index.esm.d.ts:2355 (opens new window)


# afterTitle

afterTitle(tooltipItems: Item[]): string | string[]

# Parameters:

Name Type
tooltipItems Item[]

Returns: string | string[]

Defined in: index.esm.d.ts:2348 (opens new window)


# beforeBody

beforeBody(tooltipItems: Item[]): string | string[]

# Parameters:

Name Type
tooltipItems Item[]

Returns: string | string[]

Defined in: index.esm.d.ts:2350 (opens new window)


# beforeFooter

beforeFooter(tooltipItems: Item[]): string | string[]

# Parameters:

Name Type
tooltipItems Item[]

Returns: string | string[]

Defined in: index.esm.d.ts:2361 (opens new window)


# beforeLabel

beforeLabel(tooltipItem: Item): string | string[]

# Parameters:

Name Type
tooltipItem Item

Returns: string | string[]

Defined in: index.esm.d.ts:2353 (opens new window)


# beforeTitle

beforeTitle(tooltipItems: Item[]): string | string[]

# Parameters:

Name Type
tooltipItems Item[]

Returns: string | string[]

Defined in: index.esm.d.ts:2346 (opens new window)


footer(tooltipItems: Item[]): string | string[]

# Parameters:

Name Type
tooltipItems Item[]

Returns: string | string[]

Defined in: index.esm.d.ts:2362 (opens new window)


# label

label(tooltipItem: Item): string | string[]

# Parameters:

Name Type
tooltipItem Item

Returns: string | string[]

Defined in: index.esm.d.ts:2354 (opens new window)


# labelColor

labelColor(tooltipItem: Item): TooltipLabelStyle

# Parameters:

Name Type
tooltipItem Item

Returns: TooltipLabelStyle

Defined in: index.esm.d.ts:2357 (opens new window)


# labelPointStyle

labelPointStyle(tooltipItem: Item): object

# Parameters:

Name Type
tooltipItem Item

Returns: object

Name Type
pointStyle PointStyle
rotation number

Defined in: index.esm.d.ts:2359 (opens new window)


# labelTextColor

labelTextColor(tooltipItem: Item): Color

# Parameters:

Name Type
tooltipItem Item

Returns: Color

Defined in: index.esm.d.ts:2358 (opens new window)


# title

title(tooltipItems: Item[]): string | string[]

# Parameters:

Name Type
tooltipItems Item[]

Returns: string | string[]

Defined in: index.esm.d.ts:2347 (opens new window)

- + diff --git a/docs/latest/api/interfaces/tooltipitem.html b/docs/latest/api/interfaces/tooltipitem.html index 07526a5fdb..0350fe283d 100644 --- a/docs/latest/api/interfaces/tooltipitem.html +++ b/docs/latest/api/interfaces/tooltipitem.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: TooltipItem<TType>

# Type parameters

Name Type
TType ChartType

# Properties

# chart

chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

The chart the tooltip is being shown on

Defined in: index.esm.d.ts:2575 (opens new window)


# dataIndex

dataIndex: number

Index of this data item in the dataset

Defined in: index.esm.d.ts:2610 (opens new window)


# dataset

dataset: ChartDataset<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[]>

The dataset the item comes from

Defined in: index.esm.d.ts:2600 (opens new window)


# datasetIndex

datasetIndex: number

Index of the dataset the item comes from

Defined in: index.esm.d.ts:2605 (opens new window)


# element

element: Element<{}, {}>

The chart element (point, arc, bar, etc.) for this tooltip item

Defined in: index.esm.d.ts:2615 (opens new window)


# formattedValue

formattedValue: string

Formatted value for the tooltip

Defined in: index.esm.d.ts:2595 (opens new window)


# label

label: string

Label for the tooltip

Defined in: index.esm.d.ts:2580 (opens new window)


# parsed

parsed: UnionToIntersection<ParsedDataType<TType>>

Parsed data values for the given dataIndex and datasetIndex

Defined in: index.esm.d.ts:2585 (opens new window)


# raw

raw: unknown

Raw data values for the given dataIndex and datasetIndex

Defined in: index.esm.d.ts:2590 (opens new window)

- + diff --git a/docs/latest/api/interfaces/tooltiplabelstyle.html b/docs/latest/api/interfaces/tooltiplabelstyle.html index 037c794605..c114b72eb0 100644 --- a/docs/latest/api/interfaces/tooltiplabelstyle.html +++ b/docs/latest/api/interfaces/tooltiplabelstyle.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: TooltipLabelStyle

# Properties

# backgroundColor

backgroundColor: Color

Defined in: index.esm.d.ts:2257 (opens new window)


# borderColor

borderColor: Color

Defined in: index.esm.d.ts:2256 (opens new window)


# borderDash

Optional borderDash: [number, number]

Border dash

since 3.1.0

Defined in: index.esm.d.ts:2269 (opens new window)


# borderDashOffset

Optional borderDashOffset: number

Border dash offset

since 3.1.0

Defined in: index.esm.d.ts:2275 (opens new window)


# borderRadius

Optional borderRadius: number | BorderRadius

borderRadius

since 3.1.0

Defined in: index.esm.d.ts:2281 (opens new window)


# borderWidth

Optional borderWidth: number

Width of border line

since 3.1.0

Defined in: index.esm.d.ts:2263 (opens new window)

- + diff --git a/docs/latest/api/interfaces/tooltipmodel.html b/docs/latest/api/interfaces/tooltipmodel.html index c05426cd7e..7eba523002 100644 --- a/docs/latest/api/interfaces/tooltipmodel.html +++ b/docs/latest/api/interfaces/tooltipmodel.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: TooltipModel<TType>

# Type parameters

Name Type
TType ChartType

# Properties

# afterBody

afterBody: string[]

Defined in: index.esm.d.ts:2310 (opens new window)


# beforeBody

beforeBody: string[]

Defined in: index.esm.d.ts:2308 (opens new window)


# body

body: { after: string[] ; before: string[] ; lines: string[] }[]

Defined in: index.esm.d.ts:2306 (opens new window)


# caretX

caretX: number

Defined in: index.esm.d.ts:2297 (opens new window)


# caretY

caretY: number

Defined in: index.esm.d.ts:2298 (opens new window)


# dataPoints

dataPoints: TooltipItem<TType>[]

Defined in: index.esm.d.ts:2285 (opens new window)


footer: string[]

Defined in: index.esm.d.ts:2318 (opens new window)


# height

height: number

Defined in: index.esm.d.ts:2295 (opens new window)


# labelColors

labelColors: TooltipLabelStyle[]

Defined in: index.esm.d.ts:2321 (opens new window)


# labelPointStyles

labelPointStyles: { pointStyle: PointStyle ; rotation: number }[]

Defined in: index.esm.d.ts:2323 (opens new window)


# labelTextColors

labelTextColors: Color[]

Defined in: index.esm.d.ts:2322 (opens new window)


# opacity

opacity: number

Defined in: index.esm.d.ts:2326 (opens new window)


# options

options: TooltipOptions<TType>

Defined in: index.esm.d.ts:2329 (opens new window)


# title

title: string[]

Defined in: index.esm.d.ts:2314 (opens new window)


# width

width: number

Defined in: index.esm.d.ts:2294 (opens new window)


# x

x: number

Defined in: index.esm.d.ts:2292 (opens new window)


# xAlign

xAlign: TextAlign

Defined in: index.esm.d.ts:2288 (opens new window)


# y

y: number

Defined in: index.esm.d.ts:2293 (opens new window)


# yAlign

yAlign: TooltipYAlignment

Defined in: index.esm.d.ts:2289 (opens new window)

- + diff --git a/docs/latest/api/interfaces/tooltipoptions.html b/docs/latest/api/interfaces/tooltipoptions.html index 618bb5246a..692a32886d 100644 --- a/docs/latest/api/interfaces/tooltipoptions.html +++ b/docs/latest/api/interfaces/tooltipoptions.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: TooltipOptions<TType>

# Type parameters

Name Type
TType ChartType

# Hierarchy

# Properties

# animation

animation: AnimationSpec<TType>

Defined in: index.esm.d.ts:2566 (opens new window)


# animations

animations: AnimationsSpec<TType>

Defined in: index.esm.d.ts:2567 (opens new window)


# axis

axis: x | y | xy

Can be set to 'x', 'y', or 'xy' to define which directions are used in calculating distances. Defaults to 'x' for 'index' mode and 'xy' in dataset and 'nearest' modes.

Inherited from: CoreInteractionOptions.axis

Defined in: index.esm.d.ts:1349 (opens new window)


# backgroundColor

backgroundColor: Scriptable<Color, ScriptableTooltipContext<TType>>

Background color of the tooltip.

default 'rgba(0, 0, 0, 0.8)'

Defined in: index.esm.d.ts:2429 (opens new window)


# bodyAlign

bodyAlign: Scriptable<TextAlign, ScriptableTooltipContext<TType>>

Horizontal alignment of the body text lines.

default 'left'

Defined in: index.esm.d.ts:2474 (opens new window)


# bodyColor

bodyColor: Scriptable<Color, ScriptableTooltipContext<TType>>

Color of body

default '#fff'

Defined in: index.esm.d.ts:2464 (opens new window)


# bodyFont

bodyFont: Scriptable<FontSpec, ScriptableTooltipContext<TType>>

See Fonts.

default {}

Defined in: index.esm.d.ts:2469 (opens new window)


# bodySpacing

bodySpacing: Scriptable<number, ScriptableTooltipContext<TType>>

Spacing to add to top and bottom of each tooltip item.

default 2

Defined in: index.esm.d.ts:2459 (opens new window)


# borderColor

borderColor: Scriptable<Color, ScriptableTooltipContext<TType>>

Color of the border.

default 'rgba(0, 0, 0, 0)'

Defined in: index.esm.d.ts:2549 (opens new window)


# borderWidth

borderWidth: Scriptable<number, ScriptableTooltipContext<TType>>

Size of the border.

default 0

Defined in: index.esm.d.ts:2554 (opens new window)


# boxHeight

boxHeight: Scriptable<number, ScriptableTooltipContext<TType>>

Height of the color box if displayColors is true.

default bodyFont.size

Defined in: index.esm.d.ts:2539 (opens new window)


# boxWidth

boxWidth: Scriptable<number, ScriptableTooltipContext<TType>>

Width of the color box if displayColors is true.

default bodyFont.size

Defined in: index.esm.d.ts:2534 (opens new window)


# callbacks

callbacks: TooltipCallbacks<TType, TooltipModel<TType>, TooltipItem<TType>>

Defined in: index.esm.d.ts:2568 (opens new window)


# caretPadding

caretPadding: Scriptable<number, ScriptableTooltipContext<TType>>

Extra distance to move the end of the tooltip arrow away from the tooltip point.

default 2

Defined in: index.esm.d.ts:2509 (opens new window)


# caretSize

caretSize: Scriptable<number, ScriptableTooltipContext<TType>>

Size, in px, of the tooltip arrow.

default 5

Defined in: index.esm.d.ts:2514 (opens new window)


# cornerRadius

cornerRadius: Scriptable<number, ScriptableTooltipContext<TType>>

Radius of tooltip corner curves.

default 6

Defined in: index.esm.d.ts:2519 (opens new window)


# displayColors

displayColors: Scriptable<boolean, ScriptableTooltipContext<TType>>

If true, color boxes are shown in the tooltip.

default true

Defined in: index.esm.d.ts:2529 (opens new window)


# enabled

enabled: Scriptable<boolean, ScriptableTooltipContext<TType>>

Are on-canvas tooltips enabled?

default true

Defined in: index.esm.d.ts:2402 (opens new window)


# filter

filter: (e: TooltipItem<bar | line | scatter | bubble | pie | doughnut | polarArea | radar>, index: number, array: TooltipItem<bar | line | scatter | bubble | pie | doughnut | polarArea | radar>[], data: ChartData<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>) => boolean

# Type declaration:

▸ (e: TooltipItem<bar | line | scatter | bubble | pie | doughnut | polarArea | radar>, index: number, array: TooltipItem<bar | line | scatter | bubble | pie | doughnut | polarArea | radar>[], data: ChartData<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>): boolean

# Parameters:

Name Type
e TooltipItem<bar | line | scatter | bubble | pie | doughnut | polarArea | radar>
index number
array TooltipItem<bar | line | scatter | bubble | pie | doughnut | polarArea | radar>[]
data ChartData<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns: boolean

Defined in: index.esm.d.ts:2423 (opens new window)

Defined in: index.esm.d.ts:2423 (opens new window)


# footerAlign

footerAlign: Scriptable<TextAlign, ScriptableTooltipContext<TType>>

Horizontal alignment of the footer text lines.

default 'left'

Defined in: index.esm.d.ts:2499 (opens new window)


# footerColor

footerColor: Scriptable<Color, ScriptableTooltipContext<TType>>

Color of footer

default '#fff'

Defined in: index.esm.d.ts:2489 (opens new window)


# footerFont

footerFont: Scriptable<FontSpec, ScriptableTooltipContext<TType>>

See Fonts

default {weight: 'bold'}

Defined in: index.esm.d.ts:2494 (opens new window)


# footerMarginTop

footerMarginTop: Scriptable<number, ScriptableTooltipContext<TType>>

Margin to add before drawing the footer.

default 6

Defined in: index.esm.d.ts:2484 (opens new window)


# footerSpacing

footerSpacing: Scriptable<number, ScriptableTooltipContext<TType>>

Spacing to add to top and bottom of each footer line.

default 2

Defined in: index.esm.d.ts:2479 (opens new window)


# intersect

intersect: boolean

if true, the hover mode only applies when the mouse position intersects an item on the chart.

default true

Inherited from: CoreInteractionOptions.intersect

Defined in: index.esm.d.ts:1344 (opens new window)


# itemSort

itemSort: (a: TooltipItem<bar | line | scatter | bubble | pie | doughnut | polarArea | radar>, b: TooltipItem<bar | line | scatter | bubble | pie | doughnut | polarArea | radar>, data: ChartData<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>) => number

Sort tooltip items.

# Type declaration:

▸ (a: TooltipItem<bar | line | scatter | bubble | pie | doughnut | polarArea | radar>, b: TooltipItem<bar | line | scatter | bubble | pie | doughnut | polarArea | radar>, data: ChartData<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>): number

# Parameters:

Name Type
a TooltipItem<bar | line | scatter | bubble | pie | doughnut | polarArea | radar>
b TooltipItem<bar | line | scatter | bubble | pie | doughnut | polarArea | radar>
data ChartData<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>

Returns: number

Defined in: index.esm.d.ts:2421 (opens new window)

Defined in: index.esm.d.ts:2421 (opens new window)


# mode

mode: x | y | dataset | index | point | nearest

Sets which elements appear in the tooltip. See Interaction Modes for details.

default 'nearest'

Inherited from: CoreInteractionOptions.mode

Defined in: index.esm.d.ts:1339 (opens new window)


# multiKeyBackground

multiKeyBackground: Scriptable<Color, ScriptableTooltipContext<TType>>

Color to draw behind the colored boxes when multiple items are in the tooltip.

default '#fff'

Defined in: index.esm.d.ts:2524 (opens new window)


# padding

padding: Scriptable<number | ChartArea, ScriptableTooltipContext<TType>>

Padding to add to the tooltip

default 6

Defined in: index.esm.d.ts:2504 (opens new window)


# position

position: Scriptable<nearest | average, ScriptableTooltipContext<TType>>

The mode for positioning the tooltip

Defined in: index.esm.d.ts:2410 (opens new window)


# rtl

rtl: Scriptable<boolean, ScriptableTooltipContext<TType>>

true for rendering the legends from right to left.

Defined in: index.esm.d.ts:2558 (opens new window)


# textDirection

textDirection: Scriptable<string, ScriptableTooltipContext<TType>>

This will force the text direction 'rtl' or 'ltr on the canvas for rendering the tooltips, regardless of the css specified on the canvas

default canvas's default

Defined in: index.esm.d.ts:2564 (opens new window)


# titleAlign

titleAlign: Scriptable<TextAlign, ScriptableTooltipContext<TType>>

Horizontal alignment of the title text lines.

default 'left'

Defined in: index.esm.d.ts:2454 (opens new window)


# titleColor

titleColor: Scriptable<Color, ScriptableTooltipContext<TType>>

Color of title

default '#fff'

Defined in: index.esm.d.ts:2434 (opens new window)


# titleFont

titleFont: Scriptable<FontSpec, ScriptableTooltipContext<TType>>

See Fonts

default {weight: 'bold'}

Defined in: index.esm.d.ts:2439 (opens new window)


# titleMarginBottom

titleMarginBottom: Scriptable<number, ScriptableTooltipContext<TType>>

Margin to add on bottom of title section.

default 6

Defined in: index.esm.d.ts:2449 (opens new window)


# titleSpacing

titleSpacing: Scriptable<number, ScriptableTooltipContext<TType>>

Spacing to add to top and bottom of each title line.

default 2

Defined in: index.esm.d.ts:2444 (opens new window)


# usePointStyle

usePointStyle: Scriptable<boolean, ScriptableTooltipContext<TType>>

Use the corresponding point style (from dataset options) instead of color boxes, ex: star, triangle etc. (size is based on the minimum value between boxWidth and boxHeight)

default false

Defined in: index.esm.d.ts:2544 (opens new window)


# xAlign

xAlign: Scriptable<TextAlign, ScriptableTooltipContext<TType>>

Override the tooltip alignment calculations

Defined in: index.esm.d.ts:2415 (opens new window)


# yAlign

yAlign: Scriptable<TooltipYAlignment, ScriptableTooltipContext<TType>>

Defined in: index.esm.d.ts:2416 (opens new window)

# Methods

# external

external(args: { chart: Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown> ; tooltip: TooltipModel<TType> }): void

See external tooltip section.

# Parameters:

Name Type
args object
args.chart Chart<bar | line | scatter | bubble | pie | doughnut | polarArea | radar, (number | ScatterDataPoint | BubbleDataPoint)[], unknown>
args.tooltip TooltipModel<TType>

Returns: void

Defined in: index.esm.d.ts:2406 (opens new window)

- + diff --git a/docs/latest/api/interfaces/typedregistry.html b/docs/latest/api/interfaces/typedregistry.html index 4fdc1a0795..9d5297ee46 100644 --- a/docs/latest/api/interfaces/typedregistry.html +++ b/docs/latest/api/interfaces/typedregistry.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: TypedRegistry<T>

# Type parameters

Name
T

# Methods

# get

get(id: string): T

# Parameters:

Name Type
id string

Returns: T

Defined in: index.esm.d.ts:1301 (opens new window)


# register

register(item: ChartComponent): string

# Parameters:

Name Type
item ChartComponent

Returns: string

The scope where items defaults were registered to.

Defined in: index.esm.d.ts:1300 (opens new window)


# unregister

unregister(item: ChartComponent): void

# Parameters:

Name Type
item ChartComponent

Returns: void

Defined in: index.esm.d.ts:1302 (opens new window)

- + diff --git a/docs/latest/api/interfaces/visualelement.html b/docs/latest/api/interfaces/visualelement.html index e071cf63d3..4a0860f8f4 100644 --- a/docs/latest/api/interfaces/visualelement.html +++ b/docs/latest/api/interfaces/visualelement.html @@ -7,7 +7,7 @@ - + @@ -39,11 +39,11 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Interface: VisualElement

# Hierarchy

# Methods

# draw

draw(ctx: CanvasRenderingContext2D): void

# Parameters:

Name Type
ctx CanvasRenderingContext2D

Returns: void

Defined in: index.esm.d.ts:1577 (opens new window)


# getCenterPoint

getCenterPoint(useFinalPosition?: boolean): object

# Parameters:

Name Type
useFinalPosition? boolean

Returns: object

Name Type
x number
y number

Defined in: index.esm.d.ts:1581 (opens new window)


# getRange

OptionalgetRange(axis: x | y): number

# Parameters:

Name Type
axis x | y

Returns: number

Defined in: index.esm.d.ts:1582 (opens new window)


# inRange

inRange(mouseX: number, mouseY: number, useFinalPosition?: boolean): boolean

# Parameters:

Name Type
mouseX number
mouseY number
useFinalPosition? boolean

Returns: boolean

Defined in: index.esm.d.ts:1578 (opens new window)


# inXRange

inXRange(mouseX: number, useFinalPosition?: boolean): boolean

# Parameters:

Name Type
mouseX number
useFinalPosition? boolean

Returns: boolean

Defined in: index.esm.d.ts:1579 (opens new window)


# inYRange

inYRange(mouseY: number, useFinalPosition?: boolean): boolean

# Parameters:

Name Type
mouseY number
useFinalPosition? boolean

Returns: boolean

Defined in: index.esm.d.ts:1580 (opens new window)

- + diff --git a/docs/latest/assets/js/10.0ef561de.js b/docs/latest/assets/js/10.0ef561de.js deleted file mode 100644 index 5539263413..0000000000 --- a/docs/latest/assets/js/10.0ef561de.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{337:function(t,e,a){"use strict";a.r(e);var r=a(7),n=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-animation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-animation"}},[t._v("#")]),t._v(" Class: Animation")]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new Animation")]),t._v("("),a("code",[t._v("cfg")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("target")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("prop")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("to?")]),t._v(": "),a("em",[t._v("unknown")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/animation.html"}},[a("em",[t._v("Animation")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("target")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("prop")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("to?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/animation.html"}},[a("em",[t._v("Animation")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("active")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"cancel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cancel"}},[t._v("#")]),t._v(" cancel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("cancel")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L8",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:8"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tick"}},[t._v("#")]),t._v(" tick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tick")]),t._v("("),a("code",[t._v("date")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("date")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("cfg")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("to")]),t._v(": "),a("em",[t._v("unknown")]),t._v(", "),a("code",[t._v("date")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("to")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("date")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:7"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/10.a79de378.js b/docs/latest/assets/js/10.a79de378.js new file mode 100644 index 0000000000..1701433cfd --- /dev/null +++ b/docs/latest/assets/js/10.a79de378.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{337:function(t,e,a){"use strict";a.r(e);var r=a(7),n=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-animation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-animation"}},[t._v("#")]),t._v(" Class: Animation")]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new Animation")]),t._v("("),a("code",[t._v("cfg")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("target")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("prop")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("to?")]),t._v(": "),a("em",[t._v("unknown")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/animation.html"}},[a("em",[t._v("Animation")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("target")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("prop")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("to?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/animation.html"}},[a("em",[t._v("Animation")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("active")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"cancel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cancel"}},[t._v("#")]),t._v(" cancel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("cancel")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L8",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:8"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tick"}},[t._v("#")]),t._v(" tick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tick")]),t._v("("),a("code",[t._v("date")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("date")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("cfg")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("to")]),t._v(": "),a("em",[t._v("unknown")]),t._v(", "),a("code",[t._v("date")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("to")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("date")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:7"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/100.db5329c4.js b/docs/latest/assets/js/100.db5329c4.js deleted file mode 100644 index 363b4a0291..0000000000 --- a/docs/latest/assets/js/100.db5329c4.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[100],{427:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-registry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-registry"}},[t._v("#")]),t._v(" Interface: Registry")]),t._v(" "),a("p",[t._v("Please use the module's default export which provides a singleton instance\nNote: class is exported for typedoc")]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"controllers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#controllers"}},[t._v("#")]),t._v(" controllers")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("controllers")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/typedregistry.html"}},[a("em",[t._v("TypedRegistry")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData>>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1041",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1041"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"elements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#elements"}},[t._v("#")]),t._v(" elements")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/typedregistry.html"}},[a("em",[t._v("TypedRegistry")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1042",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1042"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"plugins"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#plugins"}},[t._v("#")]),t._v(" plugins")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("plugins")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/typedregistry.html"}},[a("em",[t._v("TypedRegistry")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", Record>>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1043",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1043"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scales"}},[t._v("#")]),t._v(" scales")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("scales")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/typedregistry.html"}},[a("em",[t._v("TypedRegistry")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1044",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1044"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"add"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#add"}},[t._v("#")]),t._v(" add")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("add")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1046",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1046"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addcontrollers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addcontrollers"}},[t._v("#")]),t._v(" addControllers")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addControllers")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1049",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1049"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addelements"}},[t._v("#")]),t._v(" addElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addElements")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1050",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1050"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addplugins"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addplugins"}},[t._v("#")]),t._v(" addPlugins")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addPlugins")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1051",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1051"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addscales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addscales"}},[t._v("#")]),t._v(" addScales")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addScales")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1052",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1052"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcontroller"}},[t._v("#")]),t._v(" getController")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getController")]),t._v("("),a("code",[t._v("id")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData>")],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("id")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1054",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1054"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getelement"}},[t._v("#")]),t._v(" getElement")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getElement")]),t._v("("),a("code",[t._v("id")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("id")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1055",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1055"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getplugin"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getplugin"}},[t._v("#")]),t._v(" getPlugin")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPlugin")]),t._v("("),a("code",[t._v("id")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", Record>")],1),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("id")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", Record>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1056",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1056"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getscale"}},[t._v("#")]),t._v(" getScale")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getScale")]),t._v("("),a("code",[t._v("id")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("id")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1057",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1057"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"remove"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#remove"}},[t._v("#")]),t._v(" remove")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("remove")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1047",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1047"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/100.eee663a2.js b/docs/latest/assets/js/100.eee663a2.js new file mode 100644 index 0000000000..a53a84c628 --- /dev/null +++ b/docs/latest/assets/js/100.eee663a2.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[100],{424:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-registry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-registry"}},[t._v("#")]),t._v(" Interface: Registry")]),t._v(" "),a("p",[t._v("Please use the module's default export which provides a singleton instance\nNote: class is exported for typedoc")]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"controllers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#controllers"}},[t._v("#")]),t._v(" controllers")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("controllers")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/typedregistry.html"}},[a("em",[t._v("TypedRegistry")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData>>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1041",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1041"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"elements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#elements"}},[t._v("#")]),t._v(" elements")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/typedregistry.html"}},[a("em",[t._v("TypedRegistry")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1042",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1042"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"plugins"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#plugins"}},[t._v("#")]),t._v(" plugins")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("plugins")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/typedregistry.html"}},[a("em",[t._v("TypedRegistry")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", Record>>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1043",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1043"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scales"}},[t._v("#")]),t._v(" scales")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("scales")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/typedregistry.html"}},[a("em",[t._v("TypedRegistry")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1044",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1044"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"add"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#add"}},[t._v("#")]),t._v(" add")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("add")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1046",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1046"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addcontrollers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addcontrollers"}},[t._v("#")]),t._v(" addControllers")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addControllers")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1049",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1049"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addelements"}},[t._v("#")]),t._v(" addElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addElements")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1050",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1050"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addplugins"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addplugins"}},[t._v("#")]),t._v(" addPlugins")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addPlugins")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1051",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1051"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addscales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addscales"}},[t._v("#")]),t._v(" addScales")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addScales")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1052",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1052"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcontroller"}},[t._v("#")]),t._v(" getController")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getController")]),t._v("("),a("code",[t._v("id")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData>")],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("id")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1054",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1054"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getelement"}},[t._v("#")]),t._v(" getElement")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getElement")]),t._v("("),a("code",[t._v("id")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("id")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1055",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1055"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getplugin"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getplugin"}},[t._v("#")]),t._v(" getPlugin")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPlugin")]),t._v("("),a("code",[t._v("id")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", Record>")],1),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("id")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", Record>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1056",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1056"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getscale"}},[t._v("#")]),t._v(" getScale")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getScale")]),t._v("("),a("code",[t._v("id")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("id")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1057",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1057"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"remove"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#remove"}},[t._v("#")]),t._v(" remove")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("remove")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1047",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1047"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/101.621bd17f.js b/docs/latest/assets/js/101.621bd17f.js deleted file mode 100644 index 213d5fece0..0000000000 --- a/docs/latest/assets/js/101.621bd17f.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[101],{428:function(t,e,a){"use strict";a.r(e);var r=a(7),i=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-scaletyperegistry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-scaletyperegistry"}},[t._v("#")]),t._v(" Interface: ScaleTypeRegistry")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[a("em",[t._v("CartesianScaleTypeRegistry")])])],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/radialscaletyperegistry.html"}},[a("em",[t._v("RadialScaleTypeRegistry")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("ScaleTypeRegistry")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"category"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#category"}},[t._v("#")]),t._v(" category")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("category")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#categoryscaleoptions"}},[a("em",[t._v("CategoryScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html#category"}},[t._v("category")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3186",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3186"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linear"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linear"}},[t._v("#")]),t._v(" linear")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("linear")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#linearscaleoptions"}},[a("em",[t._v("LinearScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html#linear"}},[t._v("linear")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3180",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3180"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"logarithmic"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#logarithmic"}},[t._v("#")]),t._v(" logarithmic")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("logarithmic")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-3"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#logarithmicscaleoptions"}},[a("em",[t._v("LogarithmicScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html#logarithmic"}},[t._v("logarithmic")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3183",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3183"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radiallinear"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radiallinear"}},[t._v("#")]),t._v(" radialLinear")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("radialLinear")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-4"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#radiallinearscaleoptions"}},[a("em",[t._v("RadialLinearScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/radialscaletyperegistry.html"}},[t._v("RadialScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/radialscaletyperegistry.html#radiallinear"}},[t._v("radialLinear")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3198",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3198"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"time"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#time"}},[t._v("#")]),t._v(" time")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("time")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-5"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html#time"}},[t._v("time")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3189",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3189"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timeseries"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timeseries"}},[t._v("#")]),t._v(" timeseries")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("timeseries")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-6"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html#timeseries"}},[t._v("timeseries")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3192",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3192"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/101.cf578cbb.js b/docs/latest/assets/js/101.cf578cbb.js new file mode 100644 index 0000000000..d8f8412598 --- /dev/null +++ b/docs/latest/assets/js/101.cf578cbb.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[101],{425:function(t,e,a){"use strict";a.r(e);var r=a(7),i=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-scaletyperegistry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-scaletyperegistry"}},[t._v("#")]),t._v(" Interface: ScaleTypeRegistry")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[a("em",[t._v("CartesianScaleTypeRegistry")])])],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/radialscaletyperegistry.html"}},[a("em",[t._v("RadialScaleTypeRegistry")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("ScaleTypeRegistry")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"category"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#category"}},[t._v("#")]),t._v(" category")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("category")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#categoryscaleoptions"}},[a("em",[t._v("CategoryScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html#category"}},[t._v("category")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3186",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3186"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linear"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linear"}},[t._v("#")]),t._v(" linear")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("linear")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#linearscaleoptions"}},[a("em",[t._v("LinearScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html#linear"}},[t._v("linear")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3180",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3180"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"logarithmic"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#logarithmic"}},[t._v("#")]),t._v(" logarithmic")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("logarithmic")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-3"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#logarithmicscaleoptions"}},[a("em",[t._v("LogarithmicScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html#logarithmic"}},[t._v("logarithmic")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3183",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3183"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radiallinear"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radiallinear"}},[t._v("#")]),t._v(" radialLinear")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("radialLinear")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-4"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#radiallinearscaleoptions"}},[a("em",[t._v("RadialLinearScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/radialscaletyperegistry.html"}},[t._v("RadialScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/radialscaletyperegistry.html#radiallinear"}},[t._v("radialLinear")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3198",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3198"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"time"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#time"}},[t._v("#")]),t._v(" time")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("time")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-5"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html#time"}},[t._v("time")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3189",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3189"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timeseries"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timeseries"}},[t._v("#")]),t._v(" timeseries")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("timeseries")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-6"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html#timeseries"}},[t._v("timeseries")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3192",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3192"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/102.abc6d5a8.js b/docs/latest/assets/js/102.ab8ab92b.js similarity index 50% rename from docs/latest/assets/js/102.abc6d5a8.js rename to docs/latest/assets/js/102.ab8ab92b.js index 815da8ea0e..c9f2cd9c09 100644 --- a/docs/latest/assets/js/102.abc6d5a8.js +++ b/docs/latest/assets/js/102.ab8ab92b.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[102],{429:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-scatterdatapoint"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-scatterdatapoint"}},[t._v("#")]),t._v(" Interface: ScatterDataPoint")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("x")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L220",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:220"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("y")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L221",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:221"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[102],{427:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-scatterdatapoint"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-scatterdatapoint"}},[t._v("#")]),t._v(" Interface: ScatterDataPoint")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("x")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L220",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:220"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("y")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L221",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:221"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/103.7e714d58.js b/docs/latest/assets/js/103.7e714d58.js new file mode 100644 index 0000000000..cb89e055cb --- /dev/null +++ b/docs/latest/assets/js/103.7e714d58.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[103],{426:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-scriptablecontext-ttype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-scriptablecontext-ttype"}},[t._v("#")]),t._v(" Interface: ScriptableContext")]),t._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("TType")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#charttype"}},[r("em",[t._v("ChartType")])])],1)])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"active"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("active")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L19",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:19"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"chart"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("chart")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L20",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:20"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"dataindex"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#dataindex"}},[t._v("#")]),t._v(" dataIndex")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("dataIndex")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:21"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"dataset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[t._v("#")]),t._v(" dataset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("dataset")]),t._v(": "),r("em",[t._v("UnionToIntersection")]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#chartdataset"}},[r("em",[t._v("ChartDataset")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L22",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:22"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"datasetindex"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[t._v("#")]),t._v(" datasetIndex")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("datasetIndex")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L23",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:23"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsed"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsed"}},[t._v("#")]),t._v(" parsed")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsed")]),t._v(": "),r("em",[t._v("UnionToIntersection")]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#parseddatatype"}},[r("em",[t._v("ParsedDataType")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L24",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:24"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"raw"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#raw"}},[t._v("#")]),t._v(" raw")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("raw")]),t._v(": "),r("em",[t._v("unknown")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:25"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/103.824c664b.js b/docs/latest/assets/js/103.824c664b.js deleted file mode 100644 index fd6d669d75..0000000000 --- a/docs/latest/assets/js/103.824c664b.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[103],{430:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-scriptablecontext-ttype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-scriptablecontext-ttype"}},[t._v("#")]),t._v(" Interface: ScriptableContext")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L19",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:19"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L20",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:20"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"dataindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataindex"}},[t._v("#")]),t._v(" dataIndex")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("dataIndex")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"dataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[t._v("#")]),t._v(" dataset")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("dataset")]),t._v(": "),a("em",[t._v("UnionToIntersection")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L22",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:22"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"datasetindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[t._v("#")]),t._v(" datasetIndex")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L23",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:23"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsed"}},[t._v("#")]),t._v(" parsed")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("parsed")]),t._v(": "),a("em",[t._v("UnionToIntersection")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#parseddatatype"}},[a("em",[t._v("ParsedDataType")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L24",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:24"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"raw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#raw"}},[t._v("#")]),t._v(" raw")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("raw")]),t._v(": "),a("em",[t._v("unknown")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:25"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/104.5c7d8858.js b/docs/latest/assets/js/104.5c7d8858.js new file mode 100644 index 0000000000..2674f3682d --- /dev/null +++ b/docs/latest/assets/js/104.5c7d8858.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[104],{428:function(t,e,r){"use strict";r.r(e);var n=r(7),s=Object(n.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-scriptablelinesegmentcontext"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-scriptablelinesegmentcontext"}},[t._v("#")]),t._v(" Interface: ScriptableLineSegmentContext")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"p0"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#p0"}},[t._v("#")]),t._v(" p0")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("p0")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointelement"}},[r("em",[t._v("PointElement")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[r("em",[t._v("PointProps")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[r("em",[t._v("PointOptions")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L30",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:30"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"p1"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#p1"}},[t._v("#")]),t._v(" p1")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("p1")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointelement"}},[r("em",[t._v("PointElement")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[r("em",[t._v("PointProps")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[r("em",[t._v("PointOptions")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L31",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:31"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"type"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("type")]),t._v(": "),r("em",[t._v("segment")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:29"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/104.fd32bc9e.js b/docs/latest/assets/js/104.fd32bc9e.js deleted file mode 100644 index 67464f9f84..0000000000 --- a/docs/latest/assets/js/104.fd32bc9e.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[104],{431:function(t,e,r){"use strict";r.r(e);var n=r(7),s=Object(n.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-scriptablelinesegmentcontext"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-scriptablelinesegmentcontext"}},[t._v("#")]),t._v(" Interface: ScriptableLineSegmentContext")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"p0"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#p0"}},[t._v("#")]),t._v(" p0")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("p0")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointelement"}},[r("em",[t._v("PointElement")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[r("em",[t._v("PointProps")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[r("em",[t._v("PointOptions")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L30",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:30"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"p1"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#p1"}},[t._v("#")]),t._v(" p1")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("p1")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointelement"}},[r("em",[t._v("PointElement")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[r("em",[t._v("PointProps")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[r("em",[t._v("PointOptions")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L31",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:31"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"type"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("type")]),t._v(": "),r("em",[t._v("segment")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:29"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/105.1d68e09a.js b/docs/latest/assets/js/105.1d68e09a.js new file mode 100644 index 0000000000..7bd38a17e1 --- /dev/null +++ b/docs/latest/assets/js/105.1d68e09a.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[105],{429:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-scriptablescalecontext"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-scriptablescalecontext"}},[t._v("#")]),t._v(" Interface: ScriptableScaleContext")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"chart"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("chart")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1262",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1262"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"index"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("index")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1264",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1264"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"scale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#scale"}},[t._v("#")]),t._v(" scale")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("scale")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[t._v("Scale")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1263",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1263"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tick"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tick"}},[t._v("#")]),t._v(" tick")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tick")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[r("em",[t._v("Tick")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1265",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1265"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/105.a8fce9cc.js b/docs/latest/assets/js/105.a8fce9cc.js deleted file mode 100644 index 2496ec5f92..0000000000 --- a/docs/latest/assets/js/105.a8fce9cc.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[105],{432:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-scriptablescalecontext"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-scriptablescalecontext"}},[t._v("#")]),t._v(" Interface: ScriptableScaleContext")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"chart"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("chart")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1262",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1262"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"index"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("index")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1264",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1264"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"scale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#scale"}},[t._v("#")]),t._v(" scale")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("scale")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[t._v("Scale")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1263",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1263"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tick"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tick"}},[t._v("#")]),t._v(" tick")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tick")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[r("em",[t._v("Tick")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1265",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1265"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/106.6adbb026.js b/docs/latest/assets/js/106.92da18bd.js similarity index 53% rename from docs/latest/assets/js/106.6adbb026.js rename to docs/latest/assets/js/106.92da18bd.js index aaa7a58cac..59c0b4c138 100644 --- a/docs/latest/assets/js/106.6adbb026.js +++ b/docs/latest/assets/js/106.92da18bd.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[106],{433:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-scriptabletooltipcontext-ttype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-scriptabletooltipcontext-ttype"}},[t._v("#")]),t._v(" Interface: ScriptableTooltipContext")]),t._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("TType")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#charttype"}},[r("em",[t._v("ChartType")])])],1)])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"chart"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("chart")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2392",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2392"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tooltip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tooltip"}},[t._v("#")]),t._v(" tooltip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tooltip")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[r("em",[t._v("TooltipModel")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2393",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2393"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tooltipitems"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tooltipitems"}},[t._v("#")]),t._v(" tooltipItems")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tooltipItems")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("[]")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2394",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2394"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[106],{430:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-scriptabletooltipcontext-ttype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-scriptabletooltipcontext-ttype"}},[t._v("#")]),t._v(" Interface: ScriptableTooltipContext")]),t._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("TType")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#charttype"}},[r("em",[t._v("ChartType")])])],1)])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"chart"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("chart")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2392",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2392"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tooltip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tooltip"}},[t._v("#")]),t._v(" tooltip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tooltip")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[r("em",[t._v("TooltipModel")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2393",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2393"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tooltipitems"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tooltipitems"}},[t._v("#")]),t._v(" tooltipItems")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tooltipItems")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("[]")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2394",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2394"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/107.08c9cd6f.js b/docs/latest/assets/js/107.08c9cd6f.js deleted file mode 100644 index bfd4fa5175..0000000000 --- a/docs/latest/assets/js/107.08c9cd6f.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[107],{434:function(t,e,r){"use strict";r.r(e);var s=r(7),a=Object(s.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-segment"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-segment"}},[t._v("#")]),t._v(" Interface: Segment")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"end"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#end"}},[t._v("#")]),t._v(" end")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("end")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1599",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1599"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"loop"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#loop"}},[t._v("#")]),t._v(" loop")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("loop")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1600",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1600"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"start"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#start"}},[t._v("#")]),t._v(" start")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("start")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1598",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1598"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/107.6f10ac74.js b/docs/latest/assets/js/107.6f10ac74.js new file mode 100644 index 0000000000..764a98e024 --- /dev/null +++ b/docs/latest/assets/js/107.6f10ac74.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[107],{431:function(e,t,r){"use strict";r.r(t);var s=r(7),a=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-segment"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-segment"}},[e._v("#")]),e._v(" Interface: Segment")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"end"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#end"}},[e._v("#")]),e._v(" end")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("end")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1599",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1599"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"loop"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#loop"}},[e._v("#")]),e._v(" loop")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("loop")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1600",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1600"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"start"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#start"}},[e._v("#")]),e._v(" start")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("start")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1598",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1598"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/108.1e45abeb.js b/docs/latest/assets/js/108.1e45abeb.js new file mode 100644 index 0000000000..56b9883642 --- /dev/null +++ b/docs/latest/assets/js/108.1e45abeb.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[108],{432:function(e,t,r){"use strict";r.r(t);var a=r(7),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-tick"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-tick"}},[e._v("#")]),e._v(" Interface: Tick")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[e._v("#")]),e._v(" label")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("label")]),e._v(": "),r("em",[e._v("string")]),e._v(" | "),r("em",[e._v("string")]),e._v("[]")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1064",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1064"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"major"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#major"}},[e._v("#")]),e._v(" major")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("major")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1065",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1065"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"value"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#value"}},[e._v("#")]),e._v(" value")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("value")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1063",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1063"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/108.4f283413.js b/docs/latest/assets/js/108.4f283413.js deleted file mode 100644 index e67b8ec48b..0000000000 --- a/docs/latest/assets/js/108.4f283413.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[108],{435:function(e,t,r){"use strict";r.r(t);var a=r(7),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-tick"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-tick"}},[e._v("#")]),e._v(" Interface: Tick")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[e._v("#")]),e._v(" label")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("label")]),e._v(": "),r("em",[e._v("string")]),e._v(" | "),r("em",[e._v("string")]),e._v("[]")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1064",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1064"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"major"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#major"}},[e._v("#")]),e._v(" major")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("major")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1065",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1065"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"value"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#value"}},[e._v("#")]),e._v(" value")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("value")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1063",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1063"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/109.a738a660.js b/docs/latest/assets/js/109.a738a660.js new file mode 100644 index 0000000000..cececb8c34 --- /dev/null +++ b/docs/latest/assets/js/109.a738a660.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[109],{433:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-tickoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-tickoptions"}},[t._v("#")]),t._v(" Interface: TickOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"callback"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#callback"}},[t._v("#")]),t._v(" callback")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("callback")]),t._v(": ("),r("code",[t._v("tickValue")]),t._v(": "),r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("index")]),t._v(": "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("ticks")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[r("em",[t._v("Tick")])]),t._v("[]) => "),r("em",[t._v("string")])],1),t._v(" "),r("p",[t._v("Returns the string representation of the tick value as it should be displayed on the chart. See callback.")]),t._v(" "),r("h4",{attrs:{id:"type-declaration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("p",[t._v("▸ ("),r("code",[t._v("tickValue")]),t._v(": "),r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("index")]),t._v(": "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("ticks")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[r("em",[t._v("Tick")])]),t._v("[]): "),r("em",[t._v("string")])],1),t._v(" "),r("h4",{attrs:{id:"parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("tickValue")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("number")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("index")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("number")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("ticks")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[r("em",[t._v("Tick")])]),t._v("[]")],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2699",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2699"),r("OutboundLink")],1)]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2699",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2699"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"color"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[t._v("#")]),t._v(" color")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("color")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[t._v("ScriptableScaleContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color of tick")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("see")])]),t._v(" Defaults.color")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2709",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2709"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"display"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[t._v("#")]),t._v(" display")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("display")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("If true, show tick labels.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2704",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2704"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"font"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#font"}},[t._v("#")]),t._v(" font")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("font")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[r("em",[t._v("FontSpec")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[t._v("ScriptableScaleContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("see Fonts")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2713",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2713"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"major"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#major"}},[t._v("#")]),t._v(" major")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("major")]),t._v(": "),r("em",[t._v("object")])]),t._v(" "),r("h4",{attrs:{id:"type-declaration-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("enabled")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[t._v("If true, major ticks are generated. A major tick will affect autoskipping and major will be defined on ticks in the scriptable options context. "),r("strong",[r("code",[t._v("default")])]),t._v(" false")])])])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2734",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2734"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"padding"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#padding"}},[t._v("#")]),t._v(" padding")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("padding")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Sets the offset of the tick labels from the axis")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2717",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2717"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"textstrokecolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#textstrokecolor"}},[t._v("#")]),t._v(" textStrokeColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("textStrokeColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[t._v("ScriptableScaleContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The color of the stroke around the text.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" undefined")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2722",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2722"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"textstrokewidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#textstrokewidth"}},[t._v("#")]),t._v(" textStrokeWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("textStrokeWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1),t._v(" "),r("p",[t._v("Stroke width around the text.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2727",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2727"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"z"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#z"}},[t._v("#")]),t._v(" z")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("z")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2732",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2732"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/109.b3b6f582.js b/docs/latest/assets/js/109.b3b6f582.js deleted file mode 100644 index 86dca57df9..0000000000 --- a/docs/latest/assets/js/109.b3b6f582.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[109],{436:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-tickoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-tickoptions"}},[t._v("#")]),t._v(" Interface: TickOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"callback"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#callback"}},[t._v("#")]),t._v(" callback")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("callback")]),t._v(": ("),r("code",[t._v("tickValue")]),t._v(": "),r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("index")]),t._v(": "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("ticks")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[r("em",[t._v("Tick")])]),t._v("[]) => "),r("em",[t._v("string")])],1),t._v(" "),r("p",[t._v("Returns the string representation of the tick value as it should be displayed on the chart. See callback.")]),t._v(" "),r("h4",{attrs:{id:"type-declaration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("p",[t._v("▸ ("),r("code",[t._v("tickValue")]),t._v(": "),r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("index")]),t._v(": "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("ticks")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[r("em",[t._v("Tick")])]),t._v("[]): "),r("em",[t._v("string")])],1),t._v(" "),r("h4",{attrs:{id:"parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("tickValue")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("number")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("index")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("number")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("ticks")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[r("em",[t._v("Tick")])]),t._v("[]")],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2699",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2699"),r("OutboundLink")],1)]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2699",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2699"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"color"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[t._v("#")]),t._v(" color")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("color")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[t._v("ScriptableScaleContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color of tick")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("see")])]),t._v(" Defaults.color")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2709",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2709"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"display"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[t._v("#")]),t._v(" display")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("display")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("If true, show tick labels.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2704",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2704"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"font"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#font"}},[t._v("#")]),t._v(" font")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("font")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[r("em",[t._v("FontSpec")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[t._v("ScriptableScaleContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("see Fonts")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2713",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2713"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"major"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#major"}},[t._v("#")]),t._v(" major")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("major")]),t._v(": "),r("em",[t._v("object")])]),t._v(" "),r("h4",{attrs:{id:"type-declaration-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("enabled")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[t._v("If true, major ticks are generated. A major tick will affect autoskipping and major will be defined on ticks in the scriptable options context. "),r("strong",[r("code",[t._v("default")])]),t._v(" false")])])])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2734",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2734"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"padding"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#padding"}},[t._v("#")]),t._v(" padding")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("padding")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Sets the offset of the tick labels from the axis")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2717",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2717"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"textstrokecolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#textstrokecolor"}},[t._v("#")]),t._v(" textStrokeColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("textStrokeColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[t._v("ScriptableScaleContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The color of the stroke around the text.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" undefined")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2722",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2722"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"textstrokewidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#textstrokewidth"}},[t._v("#")]),t._v(" textStrokeWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("textStrokeWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1),t._v(" "),r("p",[t._v("Stroke width around the text.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2727",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2727"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"z"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#z"}},[t._v("#")]),t._v(" z")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("z")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2732",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2732"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/11.7f81d7b8.js b/docs/latest/assets/js/11.63cb17e1.js similarity index 52% rename from docs/latest/assets/js/11.7f81d7b8.js rename to docs/latest/assets/js/11.63cb17e1.js index 689cfb85d7..ad311e7980 100644 --- a/docs/latest/assets/js/11.7f81d7b8.js +++ b/docs/latest/assets/js/11.63cb17e1.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{338:function(t,e,a){"use strict";a.r(e);var r=a(7),n=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-animations"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-animations"}},[t._v("#")]),t._v(" Class: Animations")]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new Animations")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("animations")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/animations.html"}},[a("em",[t._v("Animations")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animations")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/animations.html"}},[a("em",[t._v("Animations")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L28",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:28"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("("),a("code",[t._v("animations")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animations")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L30",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:30"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("target")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("values")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("target")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("values")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L31",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:31"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{338:function(t,e,a){"use strict";a.r(e);var r=a(7),n=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-animations"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-animations"}},[t._v("#")]),t._v(" Class: Animations")]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new Animations")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("animations")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/animations.html"}},[a("em",[t._v("Animations")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animations")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/animations.html"}},[a("em",[t._v("Animations")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L28",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:28"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("("),a("code",[t._v("animations")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animations")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L30",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:30"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("target")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("values")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("target")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("values")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L31",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:31"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/110.e0faa63f.js b/docs/latest/assets/js/110.e0faa63f.js new file mode 100644 index 0000000000..b727aa9b24 --- /dev/null +++ b/docs/latest/assets/js/110.e0faa63f.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[110],{434:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-timescale-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-timescale-o"}},[t._v("#")]),t._v(" Interface: TimeScale")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("TimeScale")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#active"}},[t._v("active")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"axis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("axis")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#axis"}},[t._v("axis")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1160",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1160"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Bottom edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#bottom"}},[t._v("bottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L41",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:41"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#chart"}},[t._v("chart")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1150",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1150"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ctx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ctx"}},[t._v("#")]),t._v(" ctx")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("ctx")]),t._v(": CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#ctx"}},[t._v("ctx")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1149",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1149"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("fullSize")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("if true, and the item is horizontal, then push vertical boxes down")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#fullsize"}},[t._v("fullSize")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"height"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("height")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Height of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#height"}},[t._v("height")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"id"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("id")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#id"}},[t._v("id")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1147",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1147"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labelrotation"}},[t._v("#")]),t._v(" labelRotation")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("labelRotation")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#labelrotation"}},[t._v("labelRotation")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1161",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1161"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"left"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("left")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Left edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#left"}},[t._v("left")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:29"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"max"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#max"}},[t._v("#")]),t._v(" max")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("max")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#max"}},[t._v("max")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1163",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1163"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxheight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxheight"}},[t._v("#")]),t._v(" maxHeight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxHeight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#maxheight"}},[t._v("maxHeight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1153",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1153"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxwidth"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxwidth"}},[t._v("#")]),t._v(" maxWidth")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxWidth")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#maxwidth"}},[t._v("maxWidth")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1152",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1152"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"min"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#min"}},[t._v("#")]),t._v(" min")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("min")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#min"}},[t._v("min")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1162",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1162"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#options"}},[t._v("options")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingbottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingbottom"}},[t._v("#")]),t._v(" paddingBottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingBottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingbottom"}},[t._v("paddingBottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1156",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1156"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingleft"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingleft"}},[t._v("#")]),t._v(" paddingLeft")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingLeft")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingleft"}},[t._v("paddingLeft")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1157",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1157"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingright"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingright"}},[t._v("#")]),t._v(" paddingRight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingRight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingright"}},[t._v("paddingRight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1158",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1158"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingtop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingtop"}},[t._v("#")]),t._v(" paddingTop")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingTop")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingtop"}},[t._v("paddingTop")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1155",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1155"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])])],1),t._v(" "),a("p",[t._v("The position of the item in the chart layout. Possible values are")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#position"}},[t._v("position")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"right"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("right")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Right edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#right"}},[t._v("right")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:37"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[t._v("#")]),t._v(" ticks")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#ticks"}},[t._v("ticks")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1164",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1164"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"top"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("top")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Top edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#top"}},[t._v("top")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:33"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("type")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#type"}},[t._v("type")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1148",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1148"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the item. Higher weights are further away from the chart area")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#weight"}},[t._v("weight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"width"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("width")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Width of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#width"}},[t._v("width")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#x"}},[t._v("x")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#y"}},[t._v("y")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1244",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1244"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftercalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftercalculatelabelrotation"}},[t._v("#")]),t._v(" afterCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1250",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1250"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1241",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1241"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfit"}},[t._v("#")]),t._v(" afterFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1253",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1253"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftersetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftersetdimensions"}},[t._v("#")]),t._v(" afterSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1238",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1238"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterticktolabelconversion"}},[t._v("#")]),t._v(" afterTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1247",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1247"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1235",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1235"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1242",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1242"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforecalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforecalculatelabelrotation"}},[t._v("#")]),t._v(" beforeCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1248",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1248"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1239",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1239"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefit"}},[t._v("#")]),t._v(" beforeFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1251",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1251"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforelayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeLayout")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Called before the layout process starts")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L46",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:46"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforesetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforesetdimensions"}},[t._v("#")]),t._v(" beforeSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1236",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1236"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeticktolabelconversion"}},[t._v("#")]),t._v(" beforeTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1245",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1245"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1233",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1233"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildticks"}},[t._v("#")]),t._v(" buildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1243",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1243"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatelabelrotation"}},[t._v("#")]),t._v(" calculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1249",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1249"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1234",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1234"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"determinedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#determinedatalimits"}},[t._v("#")]),t._v(" determineDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("determineDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1240",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1240"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Draws the element")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L50",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:50"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawgrid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawgrid"}},[t._v("#")]),t._v(" drawGrid")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawGrid")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1169",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1169"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawlabels"}},[t._v("#")]),t._v(" drawLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawLabels")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1168",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1168"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawtitle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawtitle"}},[t._v("#")]),t._v(" drawTitle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawTitle")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1167",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1167"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fit"}},[t._v("#")]),t._v(" fit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("fit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1252",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1252"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"generateticklabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#generateticklabels"}},[t._v("#")]),t._v(" generateTickLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("generateTickLabels")]),t._v("("),a("code",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ticks")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1246",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1246"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasepixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasepixel"}},[t._v("#")]),t._v(" getBasePixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBasePixel")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the pixel for the minimum chart value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1225",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1225"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasevalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasevalue"}},[t._v("#")]),t._v(" getBaseValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBaseValue")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1219",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1219"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdatatimestamps"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdatatimestamps"}},[t._v("#")]),t._v(" getDataTimestamps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDataTimestamps")]),t._v("(): "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3013",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3013"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdecimalforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdecimalforpixel"}},[t._v("#")]),t._v(" getDecimalForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDecimalForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1175",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1175"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelforvalue"}},[t._v("#")]),t._v(" getLabelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Used to get the label to display in the tooltip for the given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1195",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1195"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabeltimestamps"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabeltimestamps"}},[t._v("#")]),t._v(" getLabelTimestamps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabelTimestamps")]),t._v("(): "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3014",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3014"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabels"}},[t._v("#")]),t._v(" getLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabels")]),t._v("(): "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1232",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1232"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlinewidthforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlinewidthforvalue"}},[t._v("#")]),t._v(" getLineWidthForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLineWidthForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the grid line width at given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1200",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1200"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmatchingvisiblemetas"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmatchingvisiblemetas"}},[t._v("#")]),t._v(" getMatchingVisibleMetas")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMatchingVisibleMetas")]),t._v("("),a("code",[t._v("type?")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1165",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1165"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("canStack")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1230",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1230"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpadding"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpadding"}},[t._v("#")]),t._v(" getPadding")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getPadding")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Returns an object with padding on the edges")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L54",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:54"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfordecimal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfordecimal"}},[t._v("#")]),t._v(" getPixelForDecimal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForDecimal")]),t._v("("),a("code",[t._v("decimal")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Utility for getting the pixel location of a percentage of scale\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("decimal")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1182",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1182"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfortick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfortick"}},[t._v("#")]),t._v(" getPixelForTick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForTick")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the tick at the given index\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1189",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1189"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelforvalue"}},[t._v("#")]),t._v(" getPixelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the given data point. Value can either be an index or a numerical value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1209",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1209"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": "),a("em",[t._v("never")]),t._v("[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getticks"}},[t._v("#")]),t._v(" getTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1231",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1231"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getuserbounds"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getuserbounds"}},[t._v("#")]),t._v(" getUserBounds")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getUserBounds")]),t._v("(): "),a("em",[t._v("object")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("maxDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("minDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1229",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1229"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getvalueforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getvalueforpixel"}},[t._v("#")]),t._v(" getValueForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getValueForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Used to get the data value from a given pixel. This is the inverse of getPixelForValue\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1217",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1217"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"init"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#init"}},[t._v("#")]),t._v(" init")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("init")]),t._v("("),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1227",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1227"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isfullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isfullsize"}},[t._v("#")]),t._v(" isFullSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isFullSize")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1255",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1255"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ishorizontal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ishorizontal"}},[t._v("#")]),t._v(" isHorizontal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isHorizontal")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("returns true if the layout item is horizontal (ie. top or bottom)")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"normalize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#normalize"}},[t._v("#")]),t._v(" normalize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("normalize")]),t._v("("),a("code",[t._v("values")]),t._v(": "),a("em",[t._v("number")]),t._v("[]): "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("values")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")]),t._v("[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3015",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3015"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("raw")]),t._v(": "),a("em",[t._v("unknown")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("unknown")])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("raw")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("unknown")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1228",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1228"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setdimensions"}},[t._v("#")]),t._v(" setDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1237",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1237"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("margins?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Takes two parameters: width and height.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("margins?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:64"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/110.f24db9f1.js b/docs/latest/assets/js/110.f24db9f1.js deleted file mode 100644 index 75176debfe..0000000000 --- a/docs/latest/assets/js/110.f24db9f1.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[110],{437:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-timescale-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-timescale-o"}},[t._v("#")]),t._v(" Interface: TimeScale")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("TimeScale")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#active"}},[t._v("active")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"axis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("axis")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#axis"}},[t._v("axis")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1160",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1160"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Bottom edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#bottom"}},[t._v("bottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L41",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:41"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#chart"}},[t._v("chart")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1150",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1150"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ctx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ctx"}},[t._v("#")]),t._v(" ctx")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("ctx")]),t._v(": CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#ctx"}},[t._v("ctx")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1149",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1149"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("fullSize")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("if true, and the item is horizontal, then push vertical boxes down")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#fullsize"}},[t._v("fullSize")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"height"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("height")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Height of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#height"}},[t._v("height")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"id"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("id")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#id"}},[t._v("id")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1147",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1147"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labelrotation"}},[t._v("#")]),t._v(" labelRotation")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("labelRotation")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#labelrotation"}},[t._v("labelRotation")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1161",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1161"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"left"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("left")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Left edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#left"}},[t._v("left")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:29"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"max"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#max"}},[t._v("#")]),t._v(" max")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("max")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#max"}},[t._v("max")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1163",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1163"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxheight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxheight"}},[t._v("#")]),t._v(" maxHeight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxHeight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#maxheight"}},[t._v("maxHeight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1153",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1153"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxwidth"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxwidth"}},[t._v("#")]),t._v(" maxWidth")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxWidth")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#maxwidth"}},[t._v("maxWidth")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1152",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1152"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"min"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#min"}},[t._v("#")]),t._v(" min")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("min")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#min"}},[t._v("min")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1162",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1162"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#options"}},[t._v("options")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingbottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingbottom"}},[t._v("#")]),t._v(" paddingBottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingBottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingbottom"}},[t._v("paddingBottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1156",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1156"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingleft"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingleft"}},[t._v("#")]),t._v(" paddingLeft")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingLeft")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingleft"}},[t._v("paddingLeft")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1157",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1157"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingright"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingright"}},[t._v("#")]),t._v(" paddingRight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingRight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingright"}},[t._v("paddingRight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1158",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1158"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingtop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingtop"}},[t._v("#")]),t._v(" paddingTop")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingTop")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingtop"}},[t._v("paddingTop")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1155",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1155"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])])],1),t._v(" "),a("p",[t._v("The position of the item in the chart layout. Possible values are")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#position"}},[t._v("position")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"right"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("right")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Right edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#right"}},[t._v("right")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:37"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[t._v("#")]),t._v(" ticks")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#ticks"}},[t._v("ticks")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1164",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1164"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"top"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("top")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Top edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#top"}},[t._v("top")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:33"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("type")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#type"}},[t._v("type")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1148",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1148"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the item. Higher weights are further away from the chart area")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#weight"}},[t._v("weight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"width"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("width")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Width of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#width"}},[t._v("width")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#x"}},[t._v("x")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#y"}},[t._v("y")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1244",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1244"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftercalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftercalculatelabelrotation"}},[t._v("#")]),t._v(" afterCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1250",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1250"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1241",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1241"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfit"}},[t._v("#")]),t._v(" afterFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1253",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1253"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftersetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftersetdimensions"}},[t._v("#")]),t._v(" afterSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1238",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1238"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterticktolabelconversion"}},[t._v("#")]),t._v(" afterTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1247",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1247"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1235",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1235"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1242",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1242"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforecalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforecalculatelabelrotation"}},[t._v("#")]),t._v(" beforeCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1248",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1248"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1239",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1239"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefit"}},[t._v("#")]),t._v(" beforeFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1251",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1251"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforelayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeLayout")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Called before the layout process starts")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L46",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:46"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforesetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforesetdimensions"}},[t._v("#")]),t._v(" beforeSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1236",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1236"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeticktolabelconversion"}},[t._v("#")]),t._v(" beforeTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1245",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1245"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1233",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1233"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildticks"}},[t._v("#")]),t._v(" buildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1243",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1243"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatelabelrotation"}},[t._v("#")]),t._v(" calculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1249",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1249"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1234",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1234"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"determinedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#determinedatalimits"}},[t._v("#")]),t._v(" determineDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("determineDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1240",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1240"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Draws the element")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L50",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:50"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawgrid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawgrid"}},[t._v("#")]),t._v(" drawGrid")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawGrid")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1169",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1169"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawlabels"}},[t._v("#")]),t._v(" drawLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawLabels")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1168",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1168"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawtitle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawtitle"}},[t._v("#")]),t._v(" drawTitle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawTitle")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1167",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1167"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fit"}},[t._v("#")]),t._v(" fit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("fit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1252",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1252"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"generateticklabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#generateticklabels"}},[t._v("#")]),t._v(" generateTickLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("generateTickLabels")]),t._v("("),a("code",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ticks")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1246",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1246"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasepixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasepixel"}},[t._v("#")]),t._v(" getBasePixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBasePixel")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the pixel for the minimum chart value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1225",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1225"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasevalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasevalue"}},[t._v("#")]),t._v(" getBaseValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBaseValue")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1219",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1219"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdatatimestamps"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdatatimestamps"}},[t._v("#")]),t._v(" getDataTimestamps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDataTimestamps")]),t._v("(): "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3013",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3013"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdecimalforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdecimalforpixel"}},[t._v("#")]),t._v(" getDecimalForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDecimalForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1175",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1175"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelforvalue"}},[t._v("#")]),t._v(" getLabelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Used to get the label to display in the tooltip for the given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1195",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1195"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabeltimestamps"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabeltimestamps"}},[t._v("#")]),t._v(" getLabelTimestamps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabelTimestamps")]),t._v("(): "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3014",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3014"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabels"}},[t._v("#")]),t._v(" getLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabels")]),t._v("(): "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1232",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1232"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlinewidthforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlinewidthforvalue"}},[t._v("#")]),t._v(" getLineWidthForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLineWidthForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the grid line width at given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1200",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1200"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmatchingvisiblemetas"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmatchingvisiblemetas"}},[t._v("#")]),t._v(" getMatchingVisibleMetas")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMatchingVisibleMetas")]),t._v("("),a("code",[t._v("type?")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1165",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1165"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("canStack")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1230",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1230"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpadding"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpadding"}},[t._v("#")]),t._v(" getPadding")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getPadding")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Returns an object with padding on the edges")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L54",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:54"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfordecimal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfordecimal"}},[t._v("#")]),t._v(" getPixelForDecimal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForDecimal")]),t._v("("),a("code",[t._v("decimal")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Utility for getting the pixel location of a percentage of scale\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("decimal")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1182",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1182"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfortick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfortick"}},[t._v("#")]),t._v(" getPixelForTick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForTick")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the tick at the given index\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1189",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1189"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelforvalue"}},[t._v("#")]),t._v(" getPixelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the given data point. Value can either be an index or a numerical value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1209",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1209"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": "),a("em",[t._v("never")]),t._v("[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getticks"}},[t._v("#")]),t._v(" getTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1231",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1231"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getuserbounds"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getuserbounds"}},[t._v("#")]),t._v(" getUserBounds")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getUserBounds")]),t._v("(): "),a("em",[t._v("object")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("maxDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("minDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1229",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1229"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getvalueforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getvalueforpixel"}},[t._v("#")]),t._v(" getValueForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getValueForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Used to get the data value from a given pixel. This is the inverse of getPixelForValue\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1217",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1217"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"init"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#init"}},[t._v("#")]),t._v(" init")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("init")]),t._v("("),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1227",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1227"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isfullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isfullsize"}},[t._v("#")]),t._v(" isFullSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isFullSize")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1255",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1255"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ishorizontal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ishorizontal"}},[t._v("#")]),t._v(" isHorizontal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isHorizontal")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("returns true if the layout item is horizontal (ie. top or bottom)")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"normalize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#normalize"}},[t._v("#")]),t._v(" normalize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("normalize")]),t._v("("),a("code",[t._v("values")]),t._v(": "),a("em",[t._v("number")]),t._v("[]): "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("values")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")]),t._v("[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3015",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3015"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("raw")]),t._v(": "),a("em",[t._v("unknown")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("unknown")])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("raw")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("unknown")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1228",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1228"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setdimensions"}},[t._v("#")]),t._v(" setDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1237",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1237"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("margins?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Takes two parameters: width and height.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("margins?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:64"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/111.74466325.js b/docs/latest/assets/js/111.74466325.js new file mode 100644 index 0000000000..89aa8cab28 --- /dev/null +++ b/docs/latest/assets/js/111.74466325.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[111],{435:function(e,t,r){"use strict";r.r(t);var s=r(7),a=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-titleoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-titleoptions"}},[e._v("#")]),e._v(" Interface: TitleOptions")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"align"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#align"}},[e._v("#")]),e._v(" align")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("align")]),e._v(": "),r("em",[e._v("start")]),e._v(" | "),r("em",[e._v("end")]),e._v(" | "),r("em",[e._v("center")])]),e._v(" "),r("p",[e._v("Alignment of the title.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 'center'")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2219",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2219"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"color"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[e._v("#")]),e._v(" color")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("color")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Color of text")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("see")])]),e._v(" Defaults.color")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2234",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2234"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"display"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[e._v("#")]),e._v(" display")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("display")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Is the title shown?")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" false")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2224",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2224"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"font"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#font"}},[e._v("#")]),e._v(" font")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("font")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[r("em",[e._v("FontSpec")])])],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2235",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2235"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"fullsize"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[e._v("#")]),e._v(" fullSize")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("fullSize")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Marks that this box should take the full width/height of the canvas (moving other boxes). If set to "),r("code",[e._v("false")]),e._v(", places the box above/beside the\nchart area")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" true")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2242",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2242"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"padding"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#padding"}},[e._v("#")]),e._v(" padding")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("padding")]),e._v(": "),r("em",[e._v("number")]),e._v(" | { "),r("code",[e._v("bottom")]),e._v(": "),r("em",[e._v("number")]),e._v(" ; "),r("code",[e._v("top")]),e._v(": "),r("em",[e._v("number")]),e._v(" }")]),e._v(" "),r("p",[e._v("Adds padding above and below the title text if a single number is specified. It is also possible to change top and bottom padding separately.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2246",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2246"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"position"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[e._v("#")]),e._v(" position")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("position")]),e._v(": "),r("em",[e._v("left")]),e._v(" | "),r("em",[e._v("right")]),e._v(" | "),r("em",[e._v("bottom")]),e._v(" | "),r("em",[e._v("top")])]),e._v(" "),r("p",[e._v("Position of title")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 'top'")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2229",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2229"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"text"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#text"}},[e._v("#")]),e._v(" text")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("text")]),e._v(": "),r("em",[e._v("string")]),e._v(" | "),r("em",[e._v("string")]),e._v("[]")]),e._v(" "),r("p",[e._v("Title text to display. If specified as an array, text is rendered on multiple lines.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2250",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2250"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/111.8b3cbf74.js b/docs/latest/assets/js/111.8b3cbf74.js deleted file mode 100644 index 1df1cd842c..0000000000 --- a/docs/latest/assets/js/111.8b3cbf74.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[111],{438:function(t,e,r){"use strict";r.r(e);var s=r(7),a=Object(s.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-titleoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-titleoptions"}},[t._v("#")]),t._v(" Interface: TitleOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"align"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#align"}},[t._v("#")]),t._v(" align")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("align")]),t._v(": "),r("em",[t._v("start")]),t._v(" | "),r("em",[t._v("end")]),t._v(" | "),r("em",[t._v("center")])]),t._v(" "),r("p",[t._v("Alignment of the title.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'center'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2219",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2219"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"color"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[t._v("#")]),t._v(" color")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("color")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("Color of text")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("see")])]),t._v(" Defaults.color")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2234",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2234"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"display"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[t._v("#")]),t._v(" display")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("display")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Is the title shown?")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2224",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2224"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"font"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#font"}},[t._v("#")]),t._v(" font")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("font")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[r("em",[t._v("FontSpec")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2235",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2235"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"fullsize"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("fullSize")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Marks that this box should take the full width/height of the canvas (moving other boxes). If set to "),r("code",[t._v("false")]),t._v(", places the box above/beside the\nchart area")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2242",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2242"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"padding"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#padding"}},[t._v("#")]),t._v(" padding")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("padding")]),t._v(": "),r("em",[t._v("number")]),t._v(" | { "),r("code",[t._v("bottom")]),t._v(": "),r("em",[t._v("number")]),t._v(" ; "),r("code",[t._v("top")]),t._v(": "),r("em",[t._v("number")]),t._v(" }")]),t._v(" "),r("p",[t._v("Adds padding above and below the title text if a single number is specified. It is also possible to change top and bottom padding separately.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2246",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2246"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"position"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("position")]),t._v(": "),r("em",[t._v("left")]),t._v(" | "),r("em",[t._v("right")]),t._v(" | "),r("em",[t._v("bottom")]),t._v(" | "),r("em",[t._v("top")])]),t._v(" "),r("p",[t._v("Position of title")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'top'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2229",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2229"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"text"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#text"}},[t._v("#")]),t._v(" text")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("text")]),t._v(": "),r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("string")]),t._v("[]")]),t._v(" "),r("p",[t._v("Title text to display. If specified as an array, text is rendered on multiple lines.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2250",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2250"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/112.00e3774d.js b/docs/latest/assets/js/112.00e3774d.js deleted file mode 100644 index e471611f85..0000000000 --- a/docs/latest/assets/js/112.00e3774d.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[112],{439:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-tooltipcallbacks-ttype-model-item"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-tooltipcallbacks-ttype-model-item"}},[t._v("#")]),t._v(" Interface: TooltipCallbacks")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Model")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Item")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[a("em",[t._v("TooltipItem")])]),t._v("")],1)])])]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbody"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbody"}},[t._v("#")]),t._v(" afterBody")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBody")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2351",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2351"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfooter"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfooter"}},[t._v("#")]),t._v(" afterFooter")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFooter")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2363",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2363"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterlabel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterlabel"}},[t._v("#")]),t._v(" afterLabel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterLabel")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2355",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2355"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftertitle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftertitle"}},[t._v("#")]),t._v(" afterTitle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTitle")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2348",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2348"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebody"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebody"}},[t._v("#")]),t._v(" beforeBody")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBody")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2350",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2350"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefooter"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefooter"}},[t._v("#")]),t._v(" beforeFooter")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFooter")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2361",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2361"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforelabel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelabel"}},[t._v("#")]),t._v(" beforeLabel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeLabel")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2353",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2353"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforetitle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforetitle"}},[t._v("#")]),t._v(" beforeTitle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTitle")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2346",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2346"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"footer"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#footer"}},[t._v("#")]),t._v(" footer")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("footer")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2362",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2362"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"label"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("label")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2354",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2354"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labelcolor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labelcolor"}},[t._v("#")]),t._v(" labelColor")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("labelColor")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("RouterLink",{attrs:{to:"/api/interfaces/tooltiplabelstyle.html"}},[a("em",[t._v("TooltipLabelStyle")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tooltiplabelstyle.html"}},[a("em",[t._v("TooltipLabelStyle")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2357",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2357"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labelpointstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labelpointstyle"}},[t._v("#")]),t._v(" labelPointStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("labelPointStyle")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#pointstyle"}},[a("em",[t._v("PointStyle")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("rotation")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2359",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2359"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labeltextcolor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labeltextcolor"}},[t._v("#")]),t._v(" labelTextColor")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("labelTextColor")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2358",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2358"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"title"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" title")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("title")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2347",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2347"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/112.8296e19b.js b/docs/latest/assets/js/112.8296e19b.js new file mode 100644 index 0000000000..1934455022 --- /dev/null +++ b/docs/latest/assets/js/112.8296e19b.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[112],{437:function(t,e,a){"use strict";a.r(e);var r=a(7),_=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-tooltipcallbacks-ttype-model-item"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-tooltipcallbacks-ttype-model-item"}},[t._v("#")]),t._v(" Interface: TooltipCallbacks")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Model")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Item")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[a("em",[t._v("TooltipItem")])]),t._v("")],1)])])]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbody"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbody"}},[t._v("#")]),t._v(" afterBody")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBody")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2351",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2351"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfooter"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfooter"}},[t._v("#")]),t._v(" afterFooter")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFooter")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2363",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2363"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterlabel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterlabel"}},[t._v("#")]),t._v(" afterLabel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterLabel")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2355",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2355"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftertitle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftertitle"}},[t._v("#")]),t._v(" afterTitle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTitle")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2348",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2348"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebody"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebody"}},[t._v("#")]),t._v(" beforeBody")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBody")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2350",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2350"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefooter"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefooter"}},[t._v("#")]),t._v(" beforeFooter")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFooter")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2361",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2361"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforelabel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelabel"}},[t._v("#")]),t._v(" beforeLabel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeLabel")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2353",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2353"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforetitle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforetitle"}},[t._v("#")]),t._v(" beforeTitle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTitle")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2346",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2346"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"footer"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#footer"}},[t._v("#")]),t._v(" footer")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("footer")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2362",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2362"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"label"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("label")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2354",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2354"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labelcolor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labelcolor"}},[t._v("#")]),t._v(" labelColor")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("labelColor")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("RouterLink",{attrs:{to:"/api/interfaces/tooltiplabelstyle.html"}},[a("em",[t._v("TooltipLabelStyle")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tooltiplabelstyle.html"}},[a("em",[t._v("TooltipLabelStyle")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2357",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2357"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labelpointstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labelpointstyle"}},[t._v("#")]),t._v(" labelPointStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("labelPointStyle")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#pointstyle"}},[a("em",[t._v("PointStyle")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("rotation")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2359",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2359"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labeltextcolor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labeltextcolor"}},[t._v("#")]),t._v(" labelTextColor")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("labelTextColor")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2358",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2358"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"title"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" title")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("title")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2347",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2347"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/113.3ec77bb7.js b/docs/latest/assets/js/113.3ec77bb7.js deleted file mode 100644 index 6823547638..0000000000 --- a/docs/latest/assets/js/113.3ec77bb7.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[113],{440:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-tooltipitem-ttype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-tooltipitem-ttype"}},[t._v("#")]),t._v(" Interface: TooltipItem")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("The chart the tooltip is being shown on")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2575",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2575"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"dataindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataindex"}},[t._v("#")]),t._v(" dataIndex")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("dataIndex")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Index of this data item in the dataset")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2610",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2610"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"dataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[t._v("#")]),t._v(" dataset")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("dataset")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[t._v("The dataset the item comes from")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2600",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2600"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"datasetindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[t._v("#")]),t._v(" datasetIndex")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Index of the dataset the item comes from")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2605",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2605"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"element"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#element"}},[t._v("#")]),t._v(" element")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1),t._v(" "),a("p",[t._v("The chart element (point, arc, bar, etc.) for this tooltip item")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2615",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2615"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"formattedvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#formattedvalue"}},[t._v("#")]),t._v(" formattedValue")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("formattedValue")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Formatted value for the tooltip")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2595",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2595"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"label"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("label")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Label for the tooltip")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2580"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsed"}},[t._v("#")]),t._v(" parsed")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("parsed")]),t._v(": "),a("em",[t._v("UnionToIntersection")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#parseddatatype"}},[a("em",[t._v("ParsedDataType")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Parsed data values for the given "),a("code",[t._v("dataIndex")]),t._v(" and "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2585",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2585"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"raw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#raw"}},[t._v("#")]),t._v(" raw")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("raw")]),t._v(": "),a("em",[t._v("unknown")])]),t._v(" "),a("p",[t._v("Raw data values for the given "),a("code",[t._v("dataIndex")]),t._v(" and "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2590",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2590"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/113.fc13e57a.js b/docs/latest/assets/js/113.fc13e57a.js new file mode 100644 index 0000000000..8c28c75537 --- /dev/null +++ b/docs/latest/assets/js/113.fc13e57a.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[113],{436:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-tooltipitem-ttype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-tooltipitem-ttype"}},[t._v("#")]),t._v(" Interface: TooltipItem")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("The chart the tooltip is being shown on")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2575",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2575"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"dataindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataindex"}},[t._v("#")]),t._v(" dataIndex")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("dataIndex")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Index of this data item in the dataset")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2610",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2610"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"dataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[t._v("#")]),t._v(" dataset")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("dataset")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[t._v("The dataset the item comes from")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2600",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2600"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"datasetindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[t._v("#")]),t._v(" datasetIndex")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Index of the dataset the item comes from")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2605",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2605"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"element"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#element"}},[t._v("#")]),t._v(" element")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1),t._v(" "),a("p",[t._v("The chart element (point, arc, bar, etc.) for this tooltip item")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2615",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2615"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"formattedvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#formattedvalue"}},[t._v("#")]),t._v(" formattedValue")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("formattedValue")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Formatted value for the tooltip")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2595",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2595"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"label"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("label")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Label for the tooltip")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2580"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsed"}},[t._v("#")]),t._v(" parsed")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("parsed")]),t._v(": "),a("em",[t._v("UnionToIntersection")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#parseddatatype"}},[a("em",[t._v("ParsedDataType")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Parsed data values for the given "),a("code",[t._v("dataIndex")]),t._v(" and "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2585",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2585"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"raw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#raw"}},[t._v("#")]),t._v(" raw")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("raw")]),t._v(": "),a("em",[t._v("unknown")])]),t._v(" "),a("p",[t._v("Raw data values for the given "),a("code",[t._v("dataIndex")]),t._v(" and "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2590",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2590"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/114.3a9c0bc2.js b/docs/latest/assets/js/114.3a9c0bc2.js new file mode 100644 index 0000000000..993feeae73 --- /dev/null +++ b/docs/latest/assets/js/114.3a9c0bc2.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[114],{438:function(e,r,t){"use strict";t.r(r);var o=t(7),s=Object(o.a)({},(function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"interface-tooltiplabelstyle"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interface-tooltiplabelstyle"}},[e._v("#")]),e._v(" Interface: TooltipLabelStyle")]),e._v(" "),t("h2",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),t("h3",{attrs:{id:"backgroundcolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[e._v("#")]),e._v(" backgroundColor")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("backgroundColor")]),e._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[e._v("Color")])])],1),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2257",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2257"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"bordercolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[e._v("#")]),e._v(" borderColor")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("borderColor")]),e._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[e._v("Color")])])],1),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2256",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2256"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"borderdash"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#borderdash"}},[e._v("#")]),e._v(" borderDash")]),e._v(" "),t("p",[e._v("• "),t("code",[e._v("Optional")]),e._v(" "),t("strong",[e._v("borderDash")]),e._v(": ["),t("em",[e._v("number")]),e._v(", "),t("em",[e._v("number")]),e._v("]")]),e._v(" "),t("p",[e._v("Border dash")]),e._v(" "),t("p",[t("strong",[t("code",[e._v("since")])]),e._v(" 3.1.0")]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2269",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2269"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"borderdashoffset"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#borderdashoffset"}},[e._v("#")]),e._v(" borderDashOffset")]),e._v(" "),t("p",[e._v("• "),t("code",[e._v("Optional")]),e._v(" "),t("strong",[e._v("borderDashOffset")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Border dash offset")]),e._v(" "),t("p",[t("strong",[t("code",[e._v("since")])]),e._v(" 3.1.0")]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2275",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2275"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"borderradius"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[e._v("#")]),e._v(" borderRadius")]),e._v(" "),t("p",[e._v("• "),t("code",[e._v("Optional")]),e._v(" "),t("strong",[e._v("borderRadius")]),e._v(": "),t("em",[e._v("number")]),e._v(" | "),t("RouterLink",{attrs:{to:"/api/interfaces/borderradius.html"}},[t("em",[e._v("BorderRadius")])])],1),e._v(" "),t("p",[e._v("borderRadius")]),e._v(" "),t("p",[t("strong",[t("code",[e._v("since")])]),e._v(" 3.1.0")]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2281",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2281"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"borderwidth"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[e._v("#")]),e._v(" borderWidth")]),e._v(" "),t("p",[e._v("• "),t("code",[e._v("Optional")]),e._v(" "),t("strong",[e._v("borderWidth")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Width of border line")]),e._v(" "),t("p",[t("strong",[t("code",[e._v("since")])]),e._v(" 3.1.0")]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2263",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2263"),t("OutboundLink")],1)])])}),[],!1,null,null,null);r.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/114.62f8796a.js b/docs/latest/assets/js/114.62f8796a.js deleted file mode 100644 index 76210e2227..0000000000 --- a/docs/latest/assets/js/114.62f8796a.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[114],{441:function(r,e,t){"use strict";t.r(e);var s=t(7),o=Object(s.a)({},(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[t("h1",{attrs:{id:"interface-tooltiplabelstyle"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interface-tooltiplabelstyle"}},[r._v("#")]),r._v(" Interface: TooltipLabelStyle")]),r._v(" "),t("h2",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),t("h3",{attrs:{id:"backgroundcolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[r._v("#")]),r._v(" backgroundColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("backgroundColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2257",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:2257"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"bordercolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[r._v("#")]),r._v(" borderColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("borderColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2256",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:2256"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"borderdash"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#borderdash"}},[r._v("#")]),r._v(" borderDash")]),r._v(" "),t("p",[r._v("• "),t("code",[r._v("Optional")]),r._v(" "),t("strong",[r._v("borderDash")]),r._v(": ["),t("em",[r._v("number")]),r._v(", "),t("em",[r._v("number")]),r._v("]")]),r._v(" "),t("p",[r._v("Border dash")]),r._v(" "),t("p",[t("strong",[t("code",[r._v("since")])]),r._v(" 3.1.0")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2269",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:2269"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"borderdashoffset"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#borderdashoffset"}},[r._v("#")]),r._v(" borderDashOffset")]),r._v(" "),t("p",[r._v("• "),t("code",[r._v("Optional")]),r._v(" "),t("strong",[r._v("borderDashOffset")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("Border dash offset")]),r._v(" "),t("p",[t("strong",[t("code",[r._v("since")])]),r._v(" 3.1.0")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2275",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:2275"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"borderradius"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[r._v("#")]),r._v(" borderRadius")]),r._v(" "),t("p",[r._v("• "),t("code",[r._v("Optional")]),r._v(" "),t("strong",[r._v("borderRadius")]),r._v(": "),t("em",[r._v("number")]),r._v(" | "),t("RouterLink",{attrs:{to:"/api/interfaces/borderradius.html"}},[t("em",[r._v("BorderRadius")])])],1),r._v(" "),t("p",[r._v("borderRadius")]),r._v(" "),t("p",[t("strong",[t("code",[r._v("since")])]),r._v(" 3.1.0")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2281",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:2281"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"borderwidth"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[r._v("#")]),r._v(" borderWidth")]),r._v(" "),t("p",[r._v("• "),t("code",[r._v("Optional")]),r._v(" "),t("strong",[r._v("borderWidth")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("Width of border line")]),r._v(" "),t("p",[t("strong",[t("code",[r._v("since")])]),r._v(" 3.1.0")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2263",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:2263"),t("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/115.10b47ecd.js b/docs/latest/assets/js/115.10b47ecd.js new file mode 100644 index 0000000000..9bf47263e0 --- /dev/null +++ b/docs/latest/assets/js/115.10b47ecd.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[115],{439:function(t,e,r){"use strict";r.r(e);var s=r(7),a=Object(s.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-tooltipmodel-ttype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-tooltipmodel-ttype"}},[t._v("#")]),t._v(" Interface: TooltipModel")]),t._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("TType")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#charttype"}},[r("em",[t._v("ChartType")])])],1)])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"afterbody"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#afterbody"}},[t._v("#")]),t._v(" afterBody")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("afterBody")]),t._v(": "),r("em",[t._v("string")]),t._v("[]")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2310",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2310"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"beforebody"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#beforebody"}},[t._v("#")]),t._v(" beforeBody")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("beforeBody")]),t._v(": "),r("em",[t._v("string")]),t._v("[]")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2308",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2308"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"body"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#body"}},[t._v("#")]),t._v(" body")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("body")]),t._v(": { "),r("code",[t._v("after")]),t._v(": "),r("em",[t._v("string")]),t._v("[] ; "),r("code",[t._v("before")]),t._v(": "),r("em",[t._v("string")]),t._v("[] ; "),r("code",[t._v("lines")]),t._v(": "),r("em",[t._v("string")]),t._v("[] }[]")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2306",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2306"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"caretx"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#caretx"}},[t._v("#")]),t._v(" caretX")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("caretX")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2297",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2297"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"carety"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#carety"}},[t._v("#")]),t._v(" caretY")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("caretY")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2298",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2298"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"datapoints"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#datapoints"}},[t._v("#")]),t._v(" dataPoints")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("dataPoints")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("[]")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2285",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2285"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footer"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footer"}},[t._v("#")]),t._v(" footer")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footer")]),t._v(": "),r("em",[t._v("string")]),t._v("[]")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2318",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2318"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"height"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("height")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2295",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2295"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"labelcolors"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#labelcolors"}},[t._v("#")]),t._v(" labelColors")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("labelColors")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltiplabelstyle.html"}},[r("em",[t._v("TooltipLabelStyle")])]),t._v("[]")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2321",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2321"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"labelpointstyles"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#labelpointstyles"}},[t._v("#")]),t._v(" labelPointStyles")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("labelPointStyles")]),t._v(": { "),r("code",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])]),t._v(" ; "),r("code",[t._v("rotation")]),t._v(": "),r("em",[t._v("number")]),t._v(" }[]")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2323",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2323"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"labeltextcolors"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#labeltextcolors"}},[t._v("#")]),t._v(" labelTextColors")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("labelTextColors")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v("[]")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2322",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2322"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"opacity"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#opacity"}},[t._v("#")]),t._v(" opacity")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("opacity")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2326",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2326"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"options"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("options")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipoptions.html"}},[r("em",[t._v("TooltipOptions")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2329",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2329"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"title"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" title")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("title")]),t._v(": "),r("em",[t._v("string")]),t._v("[]")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2314",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2314"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"width"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("width")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2294",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2294"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("x")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2292",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2292"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"xalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xalign"}},[t._v("#")]),t._v(" xAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("xAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[t._v("TextAlign")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2288",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2288"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("y")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2293",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2293"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"yalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yalign"}},[t._v("#")]),t._v(" yAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("yAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#tooltipyalignment"}},[r("em",[t._v("TooltipYAlignment")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2289",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2289"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/115.278437a3.js b/docs/latest/assets/js/115.278437a3.js deleted file mode 100644 index c71e8c01e4..0000000000 --- a/docs/latest/assets/js/115.278437a3.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[115],{442:function(t,e,r){"use strict";r.r(e);var s=r(7),a=Object(s.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-tooltipmodel-ttype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-tooltipmodel-ttype"}},[t._v("#")]),t._v(" Interface: TooltipModel")]),t._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("TType")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#charttype"}},[r("em",[t._v("ChartType")])])],1)])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"afterbody"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#afterbody"}},[t._v("#")]),t._v(" afterBody")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("afterBody")]),t._v(": "),r("em",[t._v("string")]),t._v("[]")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2310",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2310"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"beforebody"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#beforebody"}},[t._v("#")]),t._v(" beforeBody")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("beforeBody")]),t._v(": "),r("em",[t._v("string")]),t._v("[]")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2308",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2308"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"body"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#body"}},[t._v("#")]),t._v(" body")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("body")]),t._v(": { "),r("code",[t._v("after")]),t._v(": "),r("em",[t._v("string")]),t._v("[] ; "),r("code",[t._v("before")]),t._v(": "),r("em",[t._v("string")]),t._v("[] ; "),r("code",[t._v("lines")]),t._v(": "),r("em",[t._v("string")]),t._v("[] }[]")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2306",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2306"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"caretx"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#caretx"}},[t._v("#")]),t._v(" caretX")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("caretX")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2297",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2297"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"carety"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#carety"}},[t._v("#")]),t._v(" caretY")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("caretY")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2298",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2298"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"datapoints"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#datapoints"}},[t._v("#")]),t._v(" dataPoints")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("dataPoints")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("[]")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2285",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2285"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footer"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footer"}},[t._v("#")]),t._v(" footer")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footer")]),t._v(": "),r("em",[t._v("string")]),t._v("[]")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2318",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2318"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"height"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("height")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2295",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2295"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"labelcolors"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#labelcolors"}},[t._v("#")]),t._v(" labelColors")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("labelColors")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltiplabelstyle.html"}},[r("em",[t._v("TooltipLabelStyle")])]),t._v("[]")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2321",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2321"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"labelpointstyles"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#labelpointstyles"}},[t._v("#")]),t._v(" labelPointStyles")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("labelPointStyles")]),t._v(": { "),r("code",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])]),t._v(" ; "),r("code",[t._v("rotation")]),t._v(": "),r("em",[t._v("number")]),t._v(" }[]")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2323",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2323"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"labeltextcolors"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#labeltextcolors"}},[t._v("#")]),t._v(" labelTextColors")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("labelTextColors")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v("[]")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2322",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2322"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"opacity"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#opacity"}},[t._v("#")]),t._v(" opacity")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("opacity")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2326",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2326"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"options"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("options")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipoptions.html"}},[r("em",[t._v("TooltipOptions")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2329",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2329"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"title"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" title")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("title")]),t._v(": "),r("em",[t._v("string")]),t._v("[]")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2314",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2314"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"width"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("width")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2294",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2294"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("x")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2292",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2292"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"xalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xalign"}},[t._v("#")]),t._v(" xAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("xAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[t._v("TextAlign")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2288",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2288"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("y")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2293",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2293"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"yalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yalign"}},[t._v("#")]),t._v(" yAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("yAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#tooltipyalignment"}},[r("em",[t._v("TooltipYAlignment")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2289",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2289"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/116.525d2455.js b/docs/latest/assets/js/116.525d2455.js new file mode 100644 index 0000000000..e0d4c9d44a --- /dev/null +++ b/docs/latest/assets/js/116.525d2455.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[116],{440:function(t,e,r){"use strict";r.r(e);var a=r(7),o=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-tooltipoptions-ttype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-tooltipoptions-ttype"}},[t._v("#")]),t._v(" Interface: TooltipOptions")]),t._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("TType")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#charttype"}},[r("em",[t._v("ChartType")])])],1)])])]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[r("em",[t._v("CoreInteractionOptions")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("TooltipOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2566",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2566"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2567",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2567"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"axis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("axis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")]),t._v(" | "),r("em",[t._v("xy")])]),t._v(" "),r("p",[t._v("Can be set to 'x', 'y', or 'xy' to define which directions are used in calculating distances. Defaults to 'x' for 'index' mode and 'xy' in dataset and 'nearest' modes.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[t._v("CoreInteractionOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html#axis"}},[t._v("axis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1349",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1349"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Background color of the tooltip.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'rgba(0, 0, 0, 0.8)'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2429",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2429"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bodyalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bodyalign"}},[t._v("#")]),t._v(" bodyAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bodyAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[t._v("TextAlign")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Horizontal alignment of the body text lines.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'left'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2474",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2474"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bodycolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bodycolor"}},[t._v("#")]),t._v(" bodyColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bodyColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color of body")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" '#fff'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2464",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2464"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bodyfont"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bodyfont"}},[t._v("#")]),t._v(" bodyFont")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bodyFont")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[r("em",[t._v("FontSpec")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("See Fonts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" {}")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2469",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2469"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bodyspacing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bodyspacing"}},[t._v("#")]),t._v(" bodySpacing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bodySpacing")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Spacing to add to top and bottom of each tooltip item.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2459",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2459"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color of the border.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'rgba(0, 0, 0, 0)'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2549",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2549"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Size of the border.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2554",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2554"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"boxheight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#boxheight"}},[t._v("#")]),t._v(" boxHeight")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("boxHeight")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Height of the color box if displayColors is true.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" bodyFont.size")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2539",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2539"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"boxwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#boxwidth"}},[t._v("#")]),t._v(" boxWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("boxWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Width of the color box if displayColors is true.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" bodyFont.size")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2534",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2534"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"callbacks"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#callbacks"}},[t._v("#")]),t._v(" callbacks")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("callbacks")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipcallbacks.html"}},[r("em",[t._v("TooltipCallbacks")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2568",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2568"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"caretpadding"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#caretpadding"}},[t._v("#")]),t._v(" caretPadding")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("caretPadding")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Extra distance to move the end of the tooltip arrow away from the tooltip point.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2509",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2509"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"caretsize"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#caretsize"}},[t._v("#")]),t._v(" caretSize")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("caretSize")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Size, in px, of the tooltip arrow.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 5")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2514",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2514"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"cornerradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#cornerradius"}},[t._v("#")]),t._v(" cornerRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("cornerRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Radius of tooltip corner curves.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 6")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2519",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2519"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"displaycolors"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#displaycolors"}},[t._v("#")]),t._v(" displayColors")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("displayColors")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("If true, color boxes are shown in the tooltip.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2529",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2529"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"enabled"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#enabled"}},[t._v("#")]),t._v(" enabled")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("enabled")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Are on-canvas tooltips enabled?")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2402",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2402"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"filter"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#filter"}},[t._v("#")]),t._v(" filter")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("filter")]),t._v(": ("),r("code",[t._v("e")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("index")]),t._v(": "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("array")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">[], "),r("code",[t._v("data")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>) => "),r("em",[t._v("boolean")])],1),t._v(" "),r("h4",{attrs:{id:"type-declaration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("p",[t._v("▸ ("),r("code",[t._v("e")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("index")]),t._v(": "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("array")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">[], "),r("code",[t._v("data")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),r("em",[t._v("boolean")])],1),t._v(" "),r("h4",{attrs:{id:"parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("e")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("index")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("number")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("array")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">[]")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("data")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2423",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2423"),r("OutboundLink")],1)]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2423",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2423"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footeralign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footeralign"}},[t._v("#")]),t._v(" footerAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footerAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[t._v("TextAlign")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Horizontal alignment of the footer text lines.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'left'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2499",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2499"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footercolor"}},[t._v("#")]),t._v(" footerColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footerColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color of footer")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" '#fff'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2489",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2489"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footerfont"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footerfont"}},[t._v("#")]),t._v(" footerFont")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footerFont")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[r("em",[t._v("FontSpec")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("See Fonts")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" {weight: 'bold'}")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2494",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2494"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footermargintop"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footermargintop"}},[t._v("#")]),t._v(" footerMarginTop")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footerMarginTop")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Margin to add before drawing the footer.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 6")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2484",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2484"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footerspacing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footerspacing"}},[t._v("#")]),t._v(" footerSpacing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footerSpacing")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Spacing to add to top and bottom of each footer line.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2479",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2479"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"intersect"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#intersect"}},[t._v("#")]),t._v(" intersect")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("intersect")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("if true, the hover mode only applies when the mouse position intersects an item on the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[t._v("CoreInteractionOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html#intersect"}},[t._v("intersect")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1344",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1344"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"itemsort"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#itemsort"}},[t._v("#")]),t._v(" itemSort")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("itemSort")]),t._v(": ("),r("code",[t._v("a")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("b")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("data")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>) => "),r("em",[t._v("number")])],1),t._v(" "),r("p",[t._v("Sort tooltip items.")]),t._v(" "),r("h4",{attrs:{id:"type-declaration-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("p",[t._v("▸ ("),r("code",[t._v("a")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("b")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("data")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),r("em",[t._v("number")])],1),t._v(" "),r("h4",{attrs:{id:"parameters-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("a")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("b")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("data")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2421",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2421"),r("OutboundLink")],1)]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2421",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2421"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"mode"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#mode"}},[t._v("#")]),t._v(" mode")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("mode")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")]),t._v(" | "),r("em",[t._v("dataset")]),t._v(" | "),r("em",[t._v("index")]),t._v(" | "),r("em",[t._v("point")]),t._v(" | "),r("em",[t._v("nearest")])]),t._v(" "),r("p",[t._v("Sets which elements appear in the tooltip. See Interaction Modes for details.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'nearest'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[t._v("CoreInteractionOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html#mode"}},[t._v("mode")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1339",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1339"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"multikeybackground"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#multikeybackground"}},[t._v("#")]),t._v(" multiKeyBackground")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("multiKeyBackground")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color to draw behind the colored boxes when multiple items are in the tooltip.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" '#fff'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2524",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2524"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"padding"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#padding"}},[t._v("#")]),t._v(" padding")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("padding")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Padding to add to the tooltip")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 6")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2504",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2504"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"position"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("position")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("em",[t._v("nearest")]),t._v(" | "),r("em",[t._v("average")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The mode for positioning the tooltip")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2410",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2410"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rtl"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rtl"}},[t._v("#")]),t._v(" rtl")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rtl")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("true for rendering the legends from right to left.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2558",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2558"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"textdirection"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#textdirection"}},[t._v("#")]),t._v(" textDirection")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("textDirection")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("This will force the text direction 'rtl' or 'ltr on the canvas for rendering the tooltips, regardless of the css specified on the canvas")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" canvas's default")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2564",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2564"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"titlealign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#titlealign"}},[t._v("#")]),t._v(" titleAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("titleAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[t._v("TextAlign")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Horizontal alignment of the title text lines.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'left'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2454",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2454"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"titlecolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#titlecolor"}},[t._v("#")]),t._v(" titleColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("titleColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color of title")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" '#fff'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2434",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2434"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"titlefont"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#titlefont"}},[t._v("#")]),t._v(" titleFont")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("titleFont")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[r("em",[t._v("FontSpec")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("See Fonts")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" {weight: 'bold'}")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2439",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2439"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"titlemarginbottom"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#titlemarginbottom"}},[t._v("#")]),t._v(" titleMarginBottom")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("titleMarginBottom")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Margin to add on bottom of title section.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 6")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2449",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2449"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"titlespacing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#titlespacing"}},[t._v("#")]),t._v(" titleSpacing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("titleSpacing")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Spacing to add to top and bottom of each title line.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2444",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2444"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"usepointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#usepointstyle"}},[t._v("#")]),t._v(" usePointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("usePointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Use the corresponding point style (from dataset options) instead of color boxes, ex: star, triangle etc. (size is based on the minimum value between boxWidth and boxHeight)")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"xalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xalign"}},[t._v("#")]),t._v(" xAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("xAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[t._v("TextAlign")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Override the tooltip alignment calculations")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2415",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2415"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"yalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yalign"}},[t._v("#")]),t._v(" yAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("yAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#tooltipyalignment"}},[r("em",[t._v("TooltipYAlignment")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2416",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2416"),r("OutboundLink")],1)]),t._v(" "),r("h2",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("h3",{attrs:{id:"external"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#external"}},[t._v("#")]),t._v(" external")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("external")]),t._v("("),r("code",[t._v("args")]),t._v(": { "),r("code",[t._v("chart")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown> ; "),r("code",[t._v("tooltip")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[r("em",[t._v("TooltipModel")])]),t._v(" }): "),r("em",[t._v("void")])],1),t._v(" "),r("p",[t._v("See external tooltip section.")]),t._v(" "),r("h4",{attrs:{id:"parameters-3"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("args")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("object")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("args.chart")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("args.tooltip")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[r("em",[t._v("TooltipModel")])]),t._v("")],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2406",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2406"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/116.e1fcc1d0.js b/docs/latest/assets/js/116.e1fcc1d0.js deleted file mode 100644 index b31c22dca8..0000000000 --- a/docs/latest/assets/js/116.e1fcc1d0.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[116],{570:function(t,e,r){"use strict";r.r(e);var a=r(7),o=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-tooltipoptions-ttype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-tooltipoptions-ttype"}},[t._v("#")]),t._v(" Interface: TooltipOptions")]),t._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("TType")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#charttype"}},[r("em",[t._v("ChartType")])])],1)])])]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[r("em",[t._v("CoreInteractionOptions")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("TooltipOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2566",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2566"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2567",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2567"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"axis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("axis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")]),t._v(" | "),r("em",[t._v("xy")])]),t._v(" "),r("p",[t._v("Can be set to 'x', 'y', or 'xy' to define which directions are used in calculating distances. Defaults to 'x' for 'index' mode and 'xy' in dataset and 'nearest' modes.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[t._v("CoreInteractionOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html#axis"}},[t._v("axis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1349",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1349"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Background color of the tooltip.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'rgba(0, 0, 0, 0.8)'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2429",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2429"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bodyalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bodyalign"}},[t._v("#")]),t._v(" bodyAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bodyAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[t._v("TextAlign")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Horizontal alignment of the body text lines.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'left'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2474",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2474"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bodycolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bodycolor"}},[t._v("#")]),t._v(" bodyColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bodyColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color of body")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" '#fff'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2464",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2464"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bodyfont"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bodyfont"}},[t._v("#")]),t._v(" bodyFont")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bodyFont")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[r("em",[t._v("FontSpec")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("See Fonts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" {}")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2469",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2469"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bodyspacing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bodyspacing"}},[t._v("#")]),t._v(" bodySpacing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bodySpacing")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Spacing to add to top and bottom of each tooltip item.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2459",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2459"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color of the border.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'rgba(0, 0, 0, 0)'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2549",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2549"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Size of the border.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2554",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2554"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"boxheight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#boxheight"}},[t._v("#")]),t._v(" boxHeight")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("boxHeight")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Height of the color box if displayColors is true.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" bodyFont.size")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2539",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2539"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"boxwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#boxwidth"}},[t._v("#")]),t._v(" boxWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("boxWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Width of the color box if displayColors is true.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" bodyFont.size")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2534",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2534"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"callbacks"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#callbacks"}},[t._v("#")]),t._v(" callbacks")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("callbacks")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipcallbacks.html"}},[r("em",[t._v("TooltipCallbacks")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2568",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2568"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"caretpadding"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#caretpadding"}},[t._v("#")]),t._v(" caretPadding")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("caretPadding")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Extra distance to move the end of the tooltip arrow away from the tooltip point.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2509",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2509"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"caretsize"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#caretsize"}},[t._v("#")]),t._v(" caretSize")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("caretSize")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Size, in px, of the tooltip arrow.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 5")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2514",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2514"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"cornerradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#cornerradius"}},[t._v("#")]),t._v(" cornerRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("cornerRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Radius of tooltip corner curves.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 6")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2519",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2519"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"displaycolors"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#displaycolors"}},[t._v("#")]),t._v(" displayColors")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("displayColors")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("If true, color boxes are shown in the tooltip.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2529",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2529"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"enabled"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#enabled"}},[t._v("#")]),t._v(" enabled")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("enabled")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Are on-canvas tooltips enabled?")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2402",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2402"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"filter"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#filter"}},[t._v("#")]),t._v(" filter")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("filter")]),t._v(": ("),r("code",[t._v("e")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("index")]),t._v(": "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("array")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">[], "),r("code",[t._v("data")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>) => "),r("em",[t._v("boolean")])],1),t._v(" "),r("h4",{attrs:{id:"type-declaration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("p",[t._v("▸ ("),r("code",[t._v("e")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("index")]),t._v(": "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("array")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">[], "),r("code",[t._v("data")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),r("em",[t._v("boolean")])],1),t._v(" "),r("h4",{attrs:{id:"parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("e")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("index")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("number")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("array")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">[]")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("data")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2423",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2423"),r("OutboundLink")],1)]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2423",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2423"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footeralign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footeralign"}},[t._v("#")]),t._v(" footerAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footerAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[t._v("TextAlign")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Horizontal alignment of the footer text lines.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'left'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2499",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2499"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footercolor"}},[t._v("#")]),t._v(" footerColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footerColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color of footer")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" '#fff'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2489",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2489"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footerfont"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footerfont"}},[t._v("#")]),t._v(" footerFont")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footerFont")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[r("em",[t._v("FontSpec")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("See Fonts")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" {weight: 'bold'}")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2494",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2494"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footermargintop"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footermargintop"}},[t._v("#")]),t._v(" footerMarginTop")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footerMarginTop")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Margin to add before drawing the footer.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 6")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2484",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2484"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footerspacing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footerspacing"}},[t._v("#")]),t._v(" footerSpacing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footerSpacing")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Spacing to add to top and bottom of each footer line.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2479",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2479"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"intersect"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#intersect"}},[t._v("#")]),t._v(" intersect")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("intersect")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("if true, the hover mode only applies when the mouse position intersects an item on the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[t._v("CoreInteractionOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html#intersect"}},[t._v("intersect")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1344",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1344"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"itemsort"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#itemsort"}},[t._v("#")]),t._v(" itemSort")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("itemSort")]),t._v(": ("),r("code",[t._v("a")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("b")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("data")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>) => "),r("em",[t._v("number")])],1),t._v(" "),r("p",[t._v("Sort tooltip items.")]),t._v(" "),r("h4",{attrs:{id:"type-declaration-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("p",[t._v("▸ ("),r("code",[t._v("a")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("b")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("data")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),r("em",[t._v("number")])],1),t._v(" "),r("h4",{attrs:{id:"parameters-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("a")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("b")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("data")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2421",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2421"),r("OutboundLink")],1)]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2421",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2421"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"mode"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#mode"}},[t._v("#")]),t._v(" mode")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("mode")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")]),t._v(" | "),r("em",[t._v("dataset")]),t._v(" | "),r("em",[t._v("index")]),t._v(" | "),r("em",[t._v("point")]),t._v(" | "),r("em",[t._v("nearest")])]),t._v(" "),r("p",[t._v("Sets which elements appear in the tooltip. See Interaction Modes for details.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'nearest'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[t._v("CoreInteractionOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html#mode"}},[t._v("mode")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1339",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1339"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"multikeybackground"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#multikeybackground"}},[t._v("#")]),t._v(" multiKeyBackground")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("multiKeyBackground")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color to draw behind the colored boxes when multiple items are in the tooltip.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" '#fff'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2524",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2524"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"padding"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#padding"}},[t._v("#")]),t._v(" padding")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("padding")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Padding to add to the tooltip")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 6")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2504",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2504"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"position"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("position")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("em",[t._v("nearest")]),t._v(" | "),r("em",[t._v("average")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The mode for positioning the tooltip")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2410",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2410"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rtl"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rtl"}},[t._v("#")]),t._v(" rtl")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rtl")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("true for rendering the legends from right to left.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2558",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2558"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"textdirection"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#textdirection"}},[t._v("#")]),t._v(" textDirection")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("textDirection")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("This will force the text direction 'rtl' or 'ltr on the canvas for rendering the tooltips, regardless of the css specified on the canvas")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" canvas's default")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2564",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2564"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"titlealign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#titlealign"}},[t._v("#")]),t._v(" titleAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("titleAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[t._v("TextAlign")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Horizontal alignment of the title text lines.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'left'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2454",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2454"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"titlecolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#titlecolor"}},[t._v("#")]),t._v(" titleColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("titleColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color of title")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" '#fff'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2434",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2434"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"titlefont"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#titlefont"}},[t._v("#")]),t._v(" titleFont")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("titleFont")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[r("em",[t._v("FontSpec")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("See Fonts")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" {weight: 'bold'}")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2439",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2439"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"titlemarginbottom"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#titlemarginbottom"}},[t._v("#")]),t._v(" titleMarginBottom")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("titleMarginBottom")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Margin to add on bottom of title section.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 6")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2449",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2449"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"titlespacing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#titlespacing"}},[t._v("#")]),t._v(" titleSpacing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("titleSpacing")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Spacing to add to top and bottom of each title line.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2444",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2444"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"usepointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#usepointstyle"}},[t._v("#")]),t._v(" usePointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("usePointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Use the corresponding point style (from dataset options) instead of color boxes, ex: star, triangle etc. (size is based on the minimum value between boxWidth and boxHeight)")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"xalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xalign"}},[t._v("#")]),t._v(" xAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("xAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[t._v("TextAlign")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Override the tooltip alignment calculations")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2415",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2415"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"yalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yalign"}},[t._v("#")]),t._v(" yAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("yAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#tooltipyalignment"}},[r("em",[t._v("TooltipYAlignment")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2416",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2416"),r("OutboundLink")],1)]),t._v(" "),r("h2",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("h3",{attrs:{id:"external"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#external"}},[t._v("#")]),t._v(" external")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("external")]),t._v("("),r("code",[t._v("args")]),t._v(": { "),r("code",[t._v("chart")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown> ; "),r("code",[t._v("tooltip")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[r("em",[t._v("TooltipModel")])]),t._v(" }): "),r("em",[t._v("void")])],1),t._v(" "),r("p",[t._v("See external tooltip section.")]),t._v(" "),r("h4",{attrs:{id:"parameters-3"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("args")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("object")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("args.chart")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("args.tooltip")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[r("em",[t._v("TooltipModel")])]),t._v("")],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2406",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2406"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/117.17252f25.js b/docs/latest/assets/js/117.17252f25.js new file mode 100644 index 0000000000..cf4e2d1be9 --- /dev/null +++ b/docs/latest/assets/js/117.17252f25.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[117],{441:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-typedregistry-t"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-typedregistry-t"}},[t._v("#")]),t._v(" Interface: TypedRegistry")]),t._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("T")])])])])]),t._v(" "),r("h2",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("h3",{attrs:{id:"get"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#get"}},[t._v("#")]),t._v(" get")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("get")]),t._v("("),r("code",[t._v("id")]),t._v(": "),r("em",[t._v("string")]),t._v("): T")]),t._v(" "),r("h4",{attrs:{id:"parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("id")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")])])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1301",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1301"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"register"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#register"}},[t._v("#")]),t._v(" register")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("register")]),t._v("("),r("code",[t._v("item")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[r("em",[t._v("ChartComponent")])]),t._v("): "),r("em",[t._v("string")])],1),t._v(" "),r("h4",{attrs:{id:"parameters-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("item")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[r("em",[t._v("ChartComponent")])])],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The scope where items defaults were registered to.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1300",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1300"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"unregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#unregister"}},[t._v("#")]),t._v(" unregister")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("unregister")]),t._v("("),r("code",[t._v("item")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[r("em",[t._v("ChartComponent")])]),t._v("): "),r("em",[t._v("void")])],1),t._v(" "),r("h4",{attrs:{id:"parameters-3"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("item")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[r("em",[t._v("ChartComponent")])])],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1302",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1302"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/117.88e91eeb.js b/docs/latest/assets/js/117.88e91eeb.js deleted file mode 100644 index a8257dd66a..0000000000 --- a/docs/latest/assets/js/117.88e91eeb.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[117],{569:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-typedregistry-t"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-typedregistry-t"}},[t._v("#")]),t._v(" Interface: TypedRegistry")]),t._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("T")])])])])]),t._v(" "),r("h2",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("h3",{attrs:{id:"get"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#get"}},[t._v("#")]),t._v(" get")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("get")]),t._v("("),r("code",[t._v("id")]),t._v(": "),r("em",[t._v("string")]),t._v("): T")]),t._v(" "),r("h4",{attrs:{id:"parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("id")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")])])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1301",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1301"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"register"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#register"}},[t._v("#")]),t._v(" register")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("register")]),t._v("("),r("code",[t._v("item")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[r("em",[t._v("ChartComponent")])]),t._v("): "),r("em",[t._v("string")])],1),t._v(" "),r("h4",{attrs:{id:"parameters-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("item")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[r("em",[t._v("ChartComponent")])])],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The scope where items defaults were registered to.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1300",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1300"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"unregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#unregister"}},[t._v("#")]),t._v(" unregister")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("unregister")]),t._v("("),r("code",[t._v("item")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[r("em",[t._v("ChartComponent")])]),t._v("): "),r("em",[t._v("void")])],1),t._v(" "),r("h4",{attrs:{id:"parameters-3"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("item")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[r("em",[t._v("ChartComponent")])])],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1302",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1302"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/118.3ac82c27.js b/docs/latest/assets/js/118.3ac82c27.js new file mode 100644 index 0000000000..7ac1716919 --- /dev/null +++ b/docs/latest/assets/js/118.3ac82c27.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[118],{442:function(t,e,a){"use strict";a.r(e);var r=a(7),n=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-visualelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-visualelement"}},[t._v("#")]),t._v(" Interface: VisualElement")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("VisualElement")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/arcelement.html"}},[a("em",[t._v("ArcElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/lineelement.html"}},[a("em",[t._v("LineElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/pointelement.html"}},[a("em",[t._v("PointElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/barelement.html"}},[a("em",[t._v("BarElement")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1577",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1577"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcenterpoint"}},[t._v("#")]),t._v(" getCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getCenterPoint")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1581"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getrange"}},[t._v("#")]),t._v(" getRange")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getRange")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inrange"}},[t._v("#")]),t._v(" inRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1578",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1578"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inxrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inxrange"}},[t._v("#")]),t._v(" inXRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inXRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1579",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1579"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inyrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inyrange"}},[t._v("#")]),t._v(" inYRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inYRange")]),t._v("("),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1580"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/118.b2d62199.js b/docs/latest/assets/js/118.b2d62199.js deleted file mode 100644 index 0db7d93dbc..0000000000 --- a/docs/latest/assets/js/118.b2d62199.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[118],{454:function(t,e,a){"use strict";a.r(e);var r=a(7),n=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-visualelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-visualelement"}},[t._v("#")]),t._v(" Interface: VisualElement")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("VisualElement")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/arcelement.html"}},[a("em",[t._v("ArcElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/lineelement.html"}},[a("em",[t._v("LineElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/pointelement.html"}},[a("em",[t._v("PointElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/barelement.html"}},[a("em",[t._v("BarElement")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1577",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1577"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcenterpoint"}},[t._v("#")]),t._v(" getCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getCenterPoint")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1581"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getrange"}},[t._v("#")]),t._v(" getRange")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getRange")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inrange"}},[t._v("#")]),t._v(" inRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1578",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1578"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inxrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inxrange"}},[t._v("#")]),t._v(" inXRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inXRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1579",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1579"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inyrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inyrange"}},[t._v("#")]),t._v(" inYRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inYRange")]),t._v("("),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1580"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/119.c2113dc8.js b/docs/latest/assets/js/119.6e319f1e.js similarity index 98% rename from docs/latest/assets/js/119.c2113dc8.js rename to docs/latest/assets/js/119.6e319f1e.js index 6a15efe319..c0467878fb 100644 --- a/docs/latest/assets/js/119.c2113dc8.js +++ b/docs/latest/assets/js/119.6e319f1e.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[119],{444:function(t,e,o){"use strict";o.r(e);var v=o(7),d=Object(v.a)({},(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[o("h3",{attrs:{id:"common-options-to-all-axes"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-axes"}},[t._v("#")]),t._v(" Common options to all axes")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.scales[scaleId]")])]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("type")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Type of scale being employed. Custom scales can be created and registered with a string key. This allows changing the type of an axis for a chart.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("alignToPixels")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Align pixel values to device pixels.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("backgroundColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Background color of the scale area.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("display")])]),t._v(" "),o("td",[o("code",[t._v("boolean")]),t._v("|"),o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[t._v("Controls the axis global visibility (visible when "),o("code",[t._v("true")]),t._v(", hidden when "),o("code",[t._v("false")]),t._v("). When "),o("code",[t._v("display: 'auto'")]),t._v(", the axis is visible only if at least one associated dataset is visible.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("grid")])]),t._v(" "),o("td",[o("code",[t._v("object")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Grid line configuration. "),o("RouterLink",{attrs:{to:"/axes/styling.html#grid-line-configuration"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("min")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("User defined minimum number for the scale, overrides minimum value from data. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("max")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("User defined maximum number for the scale, overrides maximum value from data. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("reverse")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Reverse the scale.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("stacked")])]),t._v(" "),o("td",[o("code",[t._v("boolean")]),t._v("|"),o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Should the data be stacked. "),o("RouterLink",{attrs:{to:"/axes/#stacking"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("suggestedMax")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Adjustment used when calculating the maximum data value. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("suggestedMin")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Adjustment used when calculating the minimum data value. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("ticks")])]),t._v(" "),o("td",[o("code",[t._v("object")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Tick configuration. "),o("RouterLink",{attrs:{to:"/axes/#tick-configuration"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("weight")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")])])])])])}),[],!1,null,null,null);e.default=d.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[119],{443:function(t,e,o){"use strict";o.r(e);var v=o(7),d=Object(v.a)({},(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[o("h3",{attrs:{id:"common-options-to-all-axes"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-axes"}},[t._v("#")]),t._v(" Common options to all axes")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.scales[scaleId]")])]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("type")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Type of scale being employed. Custom scales can be created and registered with a string key. This allows changing the type of an axis for a chart.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("alignToPixels")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Align pixel values to device pixels.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("backgroundColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Background color of the scale area.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("display")])]),t._v(" "),o("td",[o("code",[t._v("boolean")]),t._v("|"),o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[t._v("Controls the axis global visibility (visible when "),o("code",[t._v("true")]),t._v(", hidden when "),o("code",[t._v("false")]),t._v("). When "),o("code",[t._v("display: 'auto'")]),t._v(", the axis is visible only if at least one associated dataset is visible.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("grid")])]),t._v(" "),o("td",[o("code",[t._v("object")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Grid line configuration. "),o("RouterLink",{attrs:{to:"/axes/styling.html#grid-line-configuration"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("min")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("User defined minimum number for the scale, overrides minimum value from data. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("max")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("User defined maximum number for the scale, overrides maximum value from data. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("reverse")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Reverse the scale.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("stacked")])]),t._v(" "),o("td",[o("code",[t._v("boolean")]),t._v("|"),o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Should the data be stacked. "),o("RouterLink",{attrs:{to:"/axes/#stacking"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("suggestedMax")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Adjustment used when calculating the maximum data value. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("suggestedMin")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Adjustment used when calculating the minimum data value. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("ticks")])]),t._v(" "),o("td",[o("code",[t._v("object")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Tick configuration. "),o("RouterLink",{attrs:{to:"/axes/#tick-configuration"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("weight")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")])])])])])}),[],!1,null,null,null);e.default=d.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/12.af3ff68d.js b/docs/latest/assets/js/12.af3ff68d.js new file mode 100644 index 0000000000..ffcd13f29f --- /dev/null +++ b/docs/latest/assets/js/12.af3ff68d.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{339:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-animator"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-animator"}},[t._v("#")]),t._v(" Class: Animator")]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new Animator")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/animator.html"}},[a("em",[t._v("Animator")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/animator.html"}},[a("em",[t._v("Animator")])])],1),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"add"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#add"}},[t._v("#")]),t._v(" add")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("add")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("items")]),t._v(": readonly "),a("RouterLink",{attrs:{to:"/api/classes/animation.html"}},[a("em",[t._v("Animation")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("items")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("readonly "),a("RouterLink",{attrs:{to:"/api/classes/animation.html"}},[a("em",[t._v("Animation")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L20",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:20"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"has"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#has"}},[t._v("#")]),t._v(" has")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("has")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("boolean")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"listen"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#listen"}},[t._v("#")]),t._v(" listen")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("listen")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("event")]),t._v(": "),a("em",[t._v("complete")]),t._v(" | "),a("em",[t._v("progress")]),t._v(", "),a("code",[t._v("cb")]),t._v(": ("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("complete")]),t._v(" | "),a("em",[t._v("progress")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cb")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L19",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:19"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"remove"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#remove"}},[t._v("#")]),t._v(" remove")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("remove")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("boolean")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"running"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#running"}},[t._v("#")]),t._v(" running")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("running")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("boolean")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L23",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:23"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"start"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#start"}},[t._v("#")]),t._v(" start")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("start")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L22",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:22"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"stop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stop"}},[t._v("#")]),t._v(" stop")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("stop")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L24",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:24"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/12.cbb7d1e1.js b/docs/latest/assets/js/12.cbb7d1e1.js deleted file mode 100644 index bdd736872e..0000000000 --- a/docs/latest/assets/js/12.cbb7d1e1.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{339:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-animator"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-animator"}},[t._v("#")]),t._v(" Class: Animator")]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new Animator")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/animator.html"}},[a("em",[t._v("Animator")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/animator.html"}},[a("em",[t._v("Animator")])])],1),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"add"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#add"}},[t._v("#")]),t._v(" add")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("add")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("items")]),t._v(": readonly "),a("RouterLink",{attrs:{to:"/api/classes/animation.html"}},[a("em",[t._v("Animation")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("items")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("readonly "),a("RouterLink",{attrs:{to:"/api/classes/animation.html"}},[a("em",[t._v("Animation")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L20",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:20"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"has"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#has"}},[t._v("#")]),t._v(" has")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("has")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("boolean")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"listen"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#listen"}},[t._v("#")]),t._v(" listen")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("listen")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("event")]),t._v(": "),a("em",[t._v("complete")]),t._v(" | "),a("em",[t._v("progress")]),t._v(", "),a("code",[t._v("cb")]),t._v(": ("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("complete")]),t._v(" | "),a("em",[t._v("progress")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cb")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L19",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:19"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"remove"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#remove"}},[t._v("#")]),t._v(" remove")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("remove")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("boolean")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"running"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#running"}},[t._v("#")]),t._v(" running")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("running")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("boolean")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L23",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:23"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"start"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#start"}},[t._v("#")]),t._v(" start")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("start")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L22",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:22"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"stop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stop"}},[t._v("#")]),t._v(" stop")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("stop")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L24",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:24"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/120.ece0dd2f.js b/docs/latest/assets/js/120.0e595569.js similarity index 98% rename from docs/latest/assets/js/120.ece0dd2f.js rename to docs/latest/assets/js/120.0e595569.js index a71cea113b..c956b73941 100644 --- a/docs/latest/assets/js/120.ece0dd2f.js +++ b/docs/latest/assets/js/120.0e595569.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[120],{443:function(t,e,o){"use strict";o.r(e);var v=o(7),_=Object(v.a)({},(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[o("h3",{attrs:{id:"common-tick-options-to-all-axes"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-axes"}},[t._v("#")]),t._v(" Common tick options to all axes")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",{staticStyle:{"text-align":"center"}},[t._v("Scriptable")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("callback")])]),t._v(" "),o("td",[o("code",[t._v("function")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}}),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Returns the string representation of the tick value as it should be displayed on the chart. See "),o("RouterLink",{attrs:{to:"/axes/labelling.html#creating-custom-tick-formats"}},[t._v("callback")]),t._v(".")],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("display")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}}),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[t._v("If true, show tick labels.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("color")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.color")])]),t._v(" "),o("td",[t._v("Color of ticks.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("font")])]),t._v(" "),o("td",[o("code",[t._v("Font")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.font")])]),t._v(" "),o("td",[t._v("See "),o("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("major")])]),t._v(" "),o("td",[o("code",[t._v("object")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}}),t._v(" "),o("td",[o("code",[t._v("{}")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/axes/styling.html#major-tick-configuration"}},[t._v("Major ticks configuration")]),t._v(".")],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("padding")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}}),t._v(" "),o("td",[o("code",[t._v("3")])]),t._v(" "),o("td",[t._v("Sets the offset of the tick labels from the axis")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("textStrokeColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),o("td",[t._v("``")]),t._v(" "),o("td",[t._v("The color of the stroke around the text.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("textStrokeWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("Stroke width around the text.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("z")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}}),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.")])])])])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[120],{444:function(t,e,o){"use strict";o.r(e);var v=o(7),_=Object(v.a)({},(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[o("h3",{attrs:{id:"common-tick-options-to-all-axes"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-axes"}},[t._v("#")]),t._v(" Common tick options to all axes")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",{staticStyle:{"text-align":"center"}},[t._v("Scriptable")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("callback")])]),t._v(" "),o("td",[o("code",[t._v("function")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}}),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Returns the string representation of the tick value as it should be displayed on the chart. See "),o("RouterLink",{attrs:{to:"/axes/labelling.html#creating-custom-tick-formats"}},[t._v("callback")]),t._v(".")],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("display")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}}),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[t._v("If true, show tick labels.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("color")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.color")])]),t._v(" "),o("td",[t._v("Color of ticks.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("font")])]),t._v(" "),o("td",[o("code",[t._v("Font")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.font")])]),t._v(" "),o("td",[t._v("See "),o("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("major")])]),t._v(" "),o("td",[o("code",[t._v("object")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}}),t._v(" "),o("td",[o("code",[t._v("{}")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/axes/styling.html#major-tick-configuration"}},[t._v("Major ticks configuration")]),t._v(".")],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("padding")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}}),t._v(" "),o("td",[o("code",[t._v("3")])]),t._v(" "),o("td",[t._v("Sets the offset of the tick labels from the axis")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("textStrokeColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),o("td",[t._v("``")]),t._v(" "),o("td",[t._v("The color of the stroke around the text.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("textStrokeWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("Stroke width around the text.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("z")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}}),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.")])])])])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/121.45e7fb0f.js b/docs/latest/assets/js/121.6d998ffd.js similarity index 100% rename from docs/latest/assets/js/121.45e7fb0f.js rename to docs/latest/assets/js/121.6d998ffd.js diff --git a/docs/latest/assets/js/122.677ea225.js b/docs/latest/assets/js/122.afa8bfe7.js similarity index 100% rename from docs/latest/assets/js/122.677ea225.js rename to docs/latest/assets/js/122.afa8bfe7.js diff --git a/docs/latest/assets/js/123.80c81bf2.js b/docs/latest/assets/js/123.779d36cf.js similarity index 100% rename from docs/latest/assets/js/123.80c81bf2.js rename to docs/latest/assets/js/123.779d36cf.js diff --git a/docs/latest/assets/js/124.56d0cc19.js b/docs/latest/assets/js/124.aadfcb51.js similarity index 100% rename from docs/latest/assets/js/124.56d0cc19.js rename to docs/latest/assets/js/124.aadfcb51.js diff --git a/docs/latest/assets/js/125.f204c7e7.js b/docs/latest/assets/js/125.066257ca.js similarity index 100% rename from docs/latest/assets/js/125.f204c7e7.js rename to docs/latest/assets/js/125.066257ca.js diff --git a/docs/latest/assets/js/126.ec98f0df.js b/docs/latest/assets/js/126.c18239be.js similarity index 100% rename from docs/latest/assets/js/126.ec98f0df.js rename to docs/latest/assets/js/126.c18239be.js diff --git a/docs/latest/assets/js/127.4bda8260.js b/docs/latest/assets/js/127.787b00cf.js similarity index 100% rename from docs/latest/assets/js/127.4bda8260.js rename to docs/latest/assets/js/127.787b00cf.js diff --git a/docs/latest/assets/js/128.850b138f.js b/docs/latest/assets/js/128.e9a4c541.js similarity index 100% rename from docs/latest/assets/js/128.850b138f.js rename to docs/latest/assets/js/128.e9a4c541.js diff --git a/docs/latest/assets/js/129.b4cfa86e.js b/docs/latest/assets/js/129.c797a431.js similarity index 99% rename from docs/latest/assets/js/129.b4cfa86e.js rename to docs/latest/assets/js/129.c797a431.js index 32a95f2b2d..d1993a149a 100644 --- a/docs/latest/assets/js/129.b4cfa86e.js +++ b/docs/latest/assets/js/129.c797a431.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[129],{453:function(t,e,a){"use strict";a.r(e);var s=a(7),n=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axes"}},[t._v("#")]),t._v(" Axes")]),t._v(" "),a("p",[t._v("Axes are an integral part of a chart. They are used to determine how data maps to a pixel value on the chart. In a cartesian chart, there is 1 or more X-axis and 1 or more Y-axis to map points onto the 2-dimensional canvas. These axes are known as "),a("a",{attrs:{href:"./cartesian/index#cartesian-axes"}},[t._v("'cartesian axes'")]),t._v(".")]),t._v(" "),a("p",[t._v("In a radial chart, such as a radar chart or a polar area chart, there is a single axis that maps points in the angular and radial directions. These are known as "),a("a",{attrs:{href:"./radial/index#radial-axes"}},[t._v("'radial axes'")]),t._v(".")]),t._v(" "),a("p",[t._v("Scales in Chart.js >v2.0 are significantly more powerful, but also different than those of v1.0.")]),t._v(" "),a("ul",[a("li",[t._v("Multiple X & Y axes are supported.")]),t._v(" "),a("li",[t._v("A built-in label auto-skip feature detects would-be overlapping ticks and labels and removes every nth label to keep things displaying normally.")]),t._v(" "),a("li",[t._v("Scale titles are supported.")]),t._v(" "),a("li",[t._v("New scale types can be extended without writing an entirely new chart type.")])]),t._v(" "),a("h2",{attrs:{id:"common-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-configuration"}},[t._v("#")]),t._v(" Common Configuration")]),t._v(" "),a("h3",{attrs:{id:"common-options-to-all-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-axes"}},[t._v("#")]),t._v(" Common options to all axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("type")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Type of scale being employed. Custom scales can be created and registered with a string key. This allows changing the type of an axis for a chart.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("alignToPixels")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Align pixel values to device pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Background color of the scale area.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("Controls the axis global visibility (visible when "),a("code",[t._v("true")]),t._v(", hidden when "),a("code",[t._v("false")]),t._v("). When "),a("code",[t._v("display: 'auto'")]),t._v(", the axis is visible only if at least one associated dataset is visible.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("grid")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Grid line configuration. "),a("RouterLink",{attrs:{to:"/axes/styling.html#grid-line-configuration"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("min")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("User defined minimum number for the scale, overrides minimum value from data. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("max")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("User defined maximum number for the scale, overrides maximum value from data. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("reverse")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Reverse the scale.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("stacked")])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Should the data be stacked. "),a("RouterLink",{attrs:{to:"/axes/#stacking"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("suggestedMax")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Adjustment used when calculating the maximum data value. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("suggestedMin")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Adjustment used when calculating the minimum data value. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("ticks")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Tick configuration. "),a("RouterLink",{attrs:{to:"/axes/#tick-configuration"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("weight")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")])])])]),t._v(" "),a("h2",{attrs:{id:"tick-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tick-configuration"}},[t._v("#")]),t._v(" Tick Configuration")]),t._v(" "),a("h3",{attrs:{id:"common-tick-options-to-all-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-axes"}},[t._v("#")]),t._v(" Common tick options to all axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[t._v("Scriptable")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("callback")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Returns the string representation of the tick value as it should be displayed on the chart. See "),a("RouterLink",{attrs:{to:"/axes/labelling.html#creating-custom-tick-formats"}},[t._v("callback")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, show tick labels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("color")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.color")])]),t._v(" "),a("td",[t._v("Color of ticks.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("font")])]),t._v(" "),a("td",[a("code",[t._v("Font")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.font")])]),t._v(" "),a("td",[t._v("See "),a("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("major")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("{}")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/axes/styling.html#major-tick-configuration"}},[t._v("Major ticks configuration")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("3")])]),t._v(" "),a("td",[t._v("Sets the offset of the tick labels from the axis")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textStrokeColor")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[t._v("``")]),t._v(" "),a("td",[t._v("The color of the stroke around the text.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textStrokeWidth")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Stroke width around the text.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("z")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.")])])])]),t._v(" "),a("h2",{attrs:{id:"axis-range-settings"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis-range-settings"}},[t._v("#")]),t._v(" Axis Range Settings")]),t._v(" "),a("p",[t._v("Given the number of axis range settings, it is important to understand how they all interact with each other.")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("suggestedMax")]),t._v(" and "),a("code",[t._v("suggestedMin")]),t._v(" settings only change the data values that are used to scale the axis. These are useful for extending the range of the axis while maintaining the auto fit behaviour.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" minDataValue "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("min")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("mostNegativeValue"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("suggestedMin"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" maxDataValue "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("max")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("mostPositiveValue"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("suggestedMax"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("p",[t._v("In this example, the largest positive value is 50, but the data maximum is expanded out to 100. However, because the lowest data value is below the "),a("code",[t._v("suggestedMin")]),t._v(" setting, it is ignored.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'First dataset'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("40")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labels"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'January'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'February'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'March'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'April'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n y"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n suggestedMin"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n suggestedMax"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("100")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("p",[t._v("In contrast to the "),a("code",[t._v("suggested*")]),t._v(" settings, the "),a("code",[t._v("min")]),t._v(" and "),a("code",[t._v("max")]),t._v(" settings set explicit ends to the axes. When these are set, some data points may not be visible.")]),t._v(" "),a("h2",{attrs:{id:"stacking"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stacking"}},[t._v("#")]),t._v(" Stacking")]),t._v(" "),a("p",[t._v("By default data is not stacked. If the "),a("code",[t._v("stacked")]),t._v(" option of the value scale (y-axis on horizontal chart) is "),a("code",[t._v("true")]),t._v(", positive and negative values are stacked separately. Additionally a "),a("code",[t._v("stack")]),t._v(" option can be defined per dataset to further divide into stack groups "),a("RouterLink",{attrs:{to:"/general/data-structures/#dataset-configuration"}},[t._v("more...")]),t._v(".\nFor some charts, you might want to stack positive and negative values together. That can be achieved by specifying "),a("code",[t._v("stacked: 'single'")]),t._v(".")],1),t._v(" "),a("h2",{attrs:{id:"callbacks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#callbacks"}},[t._v("#")]),t._v(" Callbacks")]),t._v(" "),a("p",[t._v("There are a number of config callbacks that can be used to change parameters in the scale at different points in the update process. The options are supplied at the top level of the axis options.")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Arguments")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("beforeUpdate")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback called before the update process starts.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeSetDimensions")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before dimensions are set.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterSetDimensions")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after dimensions are set.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeDataLimits")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before data limits are determined.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterDataLimits")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after data limits are determined.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeBuildTicks")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before ticks are created.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterBuildTicks")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after ticks are created. Useful for filtering ticks.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeTickToLabelConversion")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before ticks are converted into strings.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterTickToLabelConversion")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after ticks are converted into strings.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeCalculateTickRotation")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before tick rotation is determined.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterCalculateTickRotation")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after tick rotation is determined.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeFit")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before the scale fits to the canvas.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterFit")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after the scale fits to the canvas.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterUpdate")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs at the end of the update process.")])])])]),t._v(" "),a("h3",{attrs:{id:"updating-axis-defaults"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updating-axis-defaults"}},[t._v("#")]),t._v(" Updating Axis Defaults")]),t._v(" "),a("p",[t._v("The default configuration for a scale can be easily changed. All you need to do is set the new options to "),a("code",[t._v("Chart.defaults.scales[type]")]),t._v(".")]),t._v(" "),a("p",[t._v("For example, to set the minimum value of 0 for all linear scales, you would do the following. Any linear scales created after this time would now have a minimum of 0.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("linear"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"creating-new-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#creating-new-axes"}},[t._v("#")]),t._v(" Creating New Axes")]),t._v(" "),a("p",[t._v("To create a new axis, see the "),a("RouterLink",{attrs:{to:"/developers/axes.html"}},[t._v("developer docs")]),t._v(".")],1)])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[129],{455:function(t,e,a){"use strict";a.r(e);var s=a(7),n=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axes"}},[t._v("#")]),t._v(" Axes")]),t._v(" "),a("p",[t._v("Axes are an integral part of a chart. They are used to determine how data maps to a pixel value on the chart. In a cartesian chart, there is 1 or more X-axis and 1 or more Y-axis to map points onto the 2-dimensional canvas. These axes are known as "),a("a",{attrs:{href:"./cartesian/index#cartesian-axes"}},[t._v("'cartesian axes'")]),t._v(".")]),t._v(" "),a("p",[t._v("In a radial chart, such as a radar chart or a polar area chart, there is a single axis that maps points in the angular and radial directions. These are known as "),a("a",{attrs:{href:"./radial/index#radial-axes"}},[t._v("'radial axes'")]),t._v(".")]),t._v(" "),a("p",[t._v("Scales in Chart.js >v2.0 are significantly more powerful, but also different than those of v1.0.")]),t._v(" "),a("ul",[a("li",[t._v("Multiple X & Y axes are supported.")]),t._v(" "),a("li",[t._v("A built-in label auto-skip feature detects would-be overlapping ticks and labels and removes every nth label to keep things displaying normally.")]),t._v(" "),a("li",[t._v("Scale titles are supported.")]),t._v(" "),a("li",[t._v("New scale types can be extended without writing an entirely new chart type.")])]),t._v(" "),a("h2",{attrs:{id:"common-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-configuration"}},[t._v("#")]),t._v(" Common Configuration")]),t._v(" "),a("h3",{attrs:{id:"common-options-to-all-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-axes"}},[t._v("#")]),t._v(" Common options to all axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("type")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Type of scale being employed. Custom scales can be created and registered with a string key. This allows changing the type of an axis for a chart.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("alignToPixels")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Align pixel values to device pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Background color of the scale area.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("Controls the axis global visibility (visible when "),a("code",[t._v("true")]),t._v(", hidden when "),a("code",[t._v("false")]),t._v("). When "),a("code",[t._v("display: 'auto'")]),t._v(", the axis is visible only if at least one associated dataset is visible.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("grid")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Grid line configuration. "),a("RouterLink",{attrs:{to:"/axes/styling.html#grid-line-configuration"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("min")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("User defined minimum number for the scale, overrides minimum value from data. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("max")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("User defined maximum number for the scale, overrides maximum value from data. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("reverse")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Reverse the scale.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("stacked")])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Should the data be stacked. "),a("RouterLink",{attrs:{to:"/axes/#stacking"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("suggestedMax")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Adjustment used when calculating the maximum data value. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("suggestedMin")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Adjustment used when calculating the minimum data value. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("ticks")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Tick configuration. "),a("RouterLink",{attrs:{to:"/axes/#tick-configuration"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("weight")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")])])])]),t._v(" "),a("h2",{attrs:{id:"tick-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tick-configuration"}},[t._v("#")]),t._v(" Tick Configuration")]),t._v(" "),a("h3",{attrs:{id:"common-tick-options-to-all-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-axes"}},[t._v("#")]),t._v(" Common tick options to all axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[t._v("Scriptable")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("callback")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Returns the string representation of the tick value as it should be displayed on the chart. See "),a("RouterLink",{attrs:{to:"/axes/labelling.html#creating-custom-tick-formats"}},[t._v("callback")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, show tick labels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("color")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.color")])]),t._v(" "),a("td",[t._v("Color of ticks.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("font")])]),t._v(" "),a("td",[a("code",[t._v("Font")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.font")])]),t._v(" "),a("td",[t._v("See "),a("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("major")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("{}")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/axes/styling.html#major-tick-configuration"}},[t._v("Major ticks configuration")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("3")])]),t._v(" "),a("td",[t._v("Sets the offset of the tick labels from the axis")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textStrokeColor")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[t._v("``")]),t._v(" "),a("td",[t._v("The color of the stroke around the text.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textStrokeWidth")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Stroke width around the text.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("z")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.")])])])]),t._v(" "),a("h2",{attrs:{id:"axis-range-settings"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis-range-settings"}},[t._v("#")]),t._v(" Axis Range Settings")]),t._v(" "),a("p",[t._v("Given the number of axis range settings, it is important to understand how they all interact with each other.")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("suggestedMax")]),t._v(" and "),a("code",[t._v("suggestedMin")]),t._v(" settings only change the data values that are used to scale the axis. These are useful for extending the range of the axis while maintaining the auto fit behaviour.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" minDataValue "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("min")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("mostNegativeValue"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("suggestedMin"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" maxDataValue "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("max")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("mostPositiveValue"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("suggestedMax"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("p",[t._v("In this example, the largest positive value is 50, but the data maximum is expanded out to 100. However, because the lowest data value is below the "),a("code",[t._v("suggestedMin")]),t._v(" setting, it is ignored.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'First dataset'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("40")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labels"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'January'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'February'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'March'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'April'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n y"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n suggestedMin"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n suggestedMax"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("100")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("p",[t._v("In contrast to the "),a("code",[t._v("suggested*")]),t._v(" settings, the "),a("code",[t._v("min")]),t._v(" and "),a("code",[t._v("max")]),t._v(" settings set explicit ends to the axes. When these are set, some data points may not be visible.")]),t._v(" "),a("h2",{attrs:{id:"stacking"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stacking"}},[t._v("#")]),t._v(" Stacking")]),t._v(" "),a("p",[t._v("By default data is not stacked. If the "),a("code",[t._v("stacked")]),t._v(" option of the value scale (y-axis on horizontal chart) is "),a("code",[t._v("true")]),t._v(", positive and negative values are stacked separately. Additionally a "),a("code",[t._v("stack")]),t._v(" option can be defined per dataset to further divide into stack groups "),a("RouterLink",{attrs:{to:"/general/data-structures/#dataset-configuration"}},[t._v("more...")]),t._v(".\nFor some charts, you might want to stack positive and negative values together. That can be achieved by specifying "),a("code",[t._v("stacked: 'single'")]),t._v(".")],1),t._v(" "),a("h2",{attrs:{id:"callbacks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#callbacks"}},[t._v("#")]),t._v(" Callbacks")]),t._v(" "),a("p",[t._v("There are a number of config callbacks that can be used to change parameters in the scale at different points in the update process. The options are supplied at the top level of the axis options.")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Arguments")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("beforeUpdate")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback called before the update process starts.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeSetDimensions")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before dimensions are set.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterSetDimensions")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after dimensions are set.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeDataLimits")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before data limits are determined.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterDataLimits")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after data limits are determined.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeBuildTicks")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before ticks are created.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterBuildTicks")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after ticks are created. Useful for filtering ticks.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeTickToLabelConversion")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before ticks are converted into strings.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterTickToLabelConversion")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after ticks are converted into strings.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeCalculateTickRotation")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before tick rotation is determined.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterCalculateTickRotation")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after tick rotation is determined.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeFit")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before the scale fits to the canvas.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterFit")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after the scale fits to the canvas.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterUpdate")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs at the end of the update process.")])])])]),t._v(" "),a("h3",{attrs:{id:"updating-axis-defaults"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updating-axis-defaults"}},[t._v("#")]),t._v(" Updating Axis Defaults")]),t._v(" "),a("p",[t._v("The default configuration for a scale can be easily changed. All you need to do is set the new options to "),a("code",[t._v("Chart.defaults.scales[type]")]),t._v(".")]),t._v(" "),a("p",[t._v("For example, to set the minimum value of 0 for all linear scales, you would do the following. Any linear scales created after this time would now have a minimum of 0.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("linear"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"creating-new-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#creating-new-axes"}},[t._v("#")]),t._v(" Creating New Axes")]),t._v(" "),a("p",[t._v("To create a new axis, see the "),a("RouterLink",{attrs:{to:"/developers/axes.html"}},[t._v("developer docs")]),t._v(".")],1)])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/13.b7e97a24.js b/docs/latest/assets/js/13.b7e97a24.js deleted file mode 100644 index d9b65e9d16..0000000000 --- a/docs/latest/assets/js/13.b7e97a24.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{340:function(t,e,a){"use strict";a.r(e);var v=a(7),r=Object(v.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-baseplatform"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-baseplatform"}},[t._v("#")]),t._v(" Class: BasePlatform")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("BasePlatform")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/classes/basicplatform.html"}},[a("em",[t._v("BasicPlatform")])])],1),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/classes/domplatform.html"}},[a("em",[t._v("DomPlatform")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new BasePlatform")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[a("em",[t._v("BasePlatform")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[a("em",[t._v("BasePlatform")])])],1),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"acquirecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#acquirecontext"}},[t._v("#")]),t._v(" acquireContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("acquireContext")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("options?")]),t._v(": CanvasRenderingContext2DSettings): CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Called at chart construction time, returns a context2d instance implementing\nthe "),a("a",{attrs:{href:"https://www.w3.org/TR/2dcontext/",target:"_blank",rel:"noopener noreferrer"}},[t._v("W3C Canvas 2D Context API standard"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas from which to acquire context (platform specific)")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2DSettings")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart options")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1907",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1907"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addeventlistener"}},[t._v("#")]),t._v(" addEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Registers the specified listener on the given chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to listen for event")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to listen for")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Receives a notification (an object that implements the "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(" interface) when an event of the specified type occurs.")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1925",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1925"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdevicepixelratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdevicepixelratio"}},[t._v("#")]),t._v(" getDevicePixelRatio")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDevicePixelRatio")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("the current devicePixelRatio of the device this platform is connected to.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1936",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1936"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaximumsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaximumsize"}},[t._v("#")]),t._v(" getMaximumSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMaximumSize")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("width?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("aspectRatio?")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas for which to calculate the maximum size")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("aspectRatio?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("the maximum size available.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1944",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1944"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isattached"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isattached"}},[t._v("#")]),t._v(" isAttached")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isAttached")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the canvas is attached to the platform, false if not.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1949",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1949"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"releasecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#releasecontext"}},[t._v("#")]),t._v(" releaseContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("releaseContext")]),t._v("("),a("code",[t._v("context")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Called at chart destruction time, releases any resources associated to the context\npreviously returned by the acquireContext() method.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("context")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The context2d instance")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the method succeeded, else false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1917",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1917"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removeeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removeeventlistener"}},[t._v("#")]),t._v(" removeEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Removes the specified listener previously registered with addEventListener.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to remove the listener")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to remove")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The listener function to remove from the event target.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1932",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1932"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/13.d939100c.js b/docs/latest/assets/js/13.d939100c.js new file mode 100644 index 0000000000..46914fec9b --- /dev/null +++ b/docs/latest/assets/js/13.d939100c.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{340:function(t,e,a){"use strict";a.r(e);var v=a(7),r=Object(v.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-baseplatform"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-baseplatform"}},[t._v("#")]),t._v(" Class: BasePlatform")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("BasePlatform")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/classes/basicplatform.html"}},[a("em",[t._v("BasicPlatform")])])],1),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/classes/domplatform.html"}},[a("em",[t._v("DomPlatform")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new BasePlatform")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[a("em",[t._v("BasePlatform")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[a("em",[t._v("BasePlatform")])])],1),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"acquirecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#acquirecontext"}},[t._v("#")]),t._v(" acquireContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("acquireContext")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("options?")]),t._v(": CanvasRenderingContext2DSettings): CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Called at chart construction time, returns a context2d instance implementing\nthe "),a("a",{attrs:{href:"https://www.w3.org/TR/2dcontext/",target:"_blank",rel:"noopener noreferrer"}},[t._v("W3C Canvas 2D Context API standard"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas from which to acquire context (platform specific)")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2DSettings")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart options")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1907",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1907"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addeventlistener"}},[t._v("#")]),t._v(" addEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Registers the specified listener on the given chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to listen for event")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to listen for")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Receives a notification (an object that implements the "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(" interface) when an event of the specified type occurs.")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1925",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1925"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdevicepixelratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdevicepixelratio"}},[t._v("#")]),t._v(" getDevicePixelRatio")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDevicePixelRatio")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("the current devicePixelRatio of the device this platform is connected to.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1936",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1936"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaximumsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaximumsize"}},[t._v("#")]),t._v(" getMaximumSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMaximumSize")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("width?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("aspectRatio?")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas for which to calculate the maximum size")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("aspectRatio?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("the maximum size available.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1944",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1944"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isattached"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isattached"}},[t._v("#")]),t._v(" isAttached")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isAttached")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the canvas is attached to the platform, false if not.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1949",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1949"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"releasecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#releasecontext"}},[t._v("#")]),t._v(" releaseContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("releaseContext")]),t._v("("),a("code",[t._v("context")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Called at chart destruction time, releases any resources associated to the context\npreviously returned by the acquireContext() method.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("context")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The context2d instance")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the method succeeded, else false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1917",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1917"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removeeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removeeventlistener"}},[t._v("#")]),t._v(" removeEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Removes the specified listener previously registered with addEventListener.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to remove the listener")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to remove")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The listener function to remove from the event target.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1932",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1932"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/130.fbd01665.js b/docs/latest/assets/js/130.180c552d.js similarity index 99% rename from docs/latest/assets/js/130.fbd01665.js rename to docs/latest/assets/js/130.180c552d.js index 1617db286d..fdb74c3b87 100644 --- a/docs/latest/assets/js/130.fbd01665.js +++ b/docs/latest/assets/js/130.180c552d.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[130],{455:function(t,a,e){"use strict";e.r(a);var s=e(7),n=Object(s.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"labeling-axes"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#labeling-axes"}},[t._v("#")]),t._v(" Labeling Axes")]),t._v(" "),e("p",[t._v("When creating a chart, you want to tell the viewer what data they are viewing. To do this, you need to label the axis.")]),t._v(" "),e("h2",{attrs:{id:"scale-title-configuration"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#scale-title-configuration"}},[t._v("#")]),t._v(" Scale Title Configuration")]),t._v(" "),e("p",[t._v("Namespace: "),e("code",[t._v("options.scales[scaleId].title")]),t._v(", it defines options for the scale title. Note that this only applies to cartesian axes.")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Default")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[e("code",[t._v("display")])]),t._v(" "),e("td",[e("code",[t._v("boolean")])]),t._v(" "),e("td",[e("code",[t._v("false")])]),t._v(" "),e("td",[t._v("If true, display the axis title.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("align")])]),t._v(" "),e("td",[e("code",[t._v("string")])]),t._v(" "),e("td",[e("code",[t._v("'center'")])]),t._v(" "),e("td",[t._v("Alignment of the axis title. Possible options are "),e("code",[t._v("'start'")]),t._v(", "),e("code",[t._v("'center'")]),t._v(" and "),e("code",[t._v("'end'")])])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("text")])]),t._v(" "),e("td",[e("code",[t._v("string")]),t._v("|"),e("code",[t._v("string[]")])]),t._v(" "),e("td",[e("code",[t._v("''")])]),t._v(" "),e("td",[t._v('The text for the title. (i.e. "# of People" or "Response Choices").')])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("color")])]),t._v(" "),e("td",[e("RouterLink",{attrs:{to:"/general/colors.html"}},[e("code",[t._v("Color")])])],1),t._v(" "),e("td",[e("code",[t._v("Chart.defaults.color")])]),t._v(" "),e("td",[t._v("Color of label.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("font")])]),t._v(" "),e("td",[e("code",[t._v("Font")])]),t._v(" "),e("td",[e("code",[t._v("Chart.defaults.font")])]),t._v(" "),e("td",[t._v("See "),e("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),e("tr",[e("td",[e("code",[t._v("padding")])]),t._v(" "),e("td",[e("RouterLink",{attrs:{to:"/general/padding.html"}},[e("code",[t._v("Padding")])])],1),t._v(" "),e("td",[e("code",[t._v("4")])]),t._v(" "),e("td",[t._v("Padding to apply around scale labels. Only "),e("code",[t._v("top")]),t._v(" and "),e("code",[t._v("bottom")]),t._v(" are implemented.")])])])]),t._v(" "),e("h2",{attrs:{id:"creating-custom-tick-formats"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#creating-custom-tick-formats"}},[t._v("#")]),t._v(" Creating Custom Tick Formats")]),t._v(" "),e("p",[t._v("It is also common to want to change the tick marks to include information about the data type. For example, adding a dollar sign ('$').\nTo do this, you need to override the "),e("code",[t._v("ticks.callback")]),t._v(" method in the axis configuration.")]),t._v(" "),e("p",[t._v("The method receiver 3 arguments:")]),t._v(" "),e("ul",[e("li",[e("code",[t._v("value")]),t._v(" - the tick value in the "),e("strong",[t._v("internal data format")]),t._v(" of the associated scale.")]),t._v(" "),e("li",[e("code",[t._v("index")]),t._v(" - the tick index in the ticks array.")]),t._v(" "),e("li",[e("code",[t._v("ticks")]),t._v(" - the array containing all of the "),e("a",{attrs:{href:"../api/interfaces/tick"}},[t._v("tick objects")]),t._v(".")])]),t._v(" "),e("p",[t._v("The call to the method is scoped to the scale. "),e("code",[t._v("this")]),t._v(" inside the method is the scale object.")]),t._v(" "),e("p",[t._v("If the callback returns "),e("code",[t._v("null")]),t._v(" or "),e("code",[t._v("undefined")]),t._v(" the associated grid line will be hidden.")]),t._v(" "),e("div",{staticClass:"custom-block tip"},[e("p",{staticClass:"custom-block-title"},[t._v("TIP")]),t._v(" "),e("p",[t._v("The "),e("a",{attrs:{href:"../axes/cartesian/category"}},[t._v("category axis")]),t._v(", which is the default x-axis for line and bar charts, uses the "),e("code",[t._v("index")]),t._v(" as internal data format. For accessing the label, use "),e("code",[t._v("this.getLabelForValue(value)")]),t._v(". "),e("RouterLink",{attrs:{to:"/api/classes/scale.html#getlabelforvalue"}},[t._v("API: getLabelForValue")])],1)]),t._v(" "),e("p",[t._v("In the following example, every label of the Y-axis would be displayed with a dollar sign at the front.")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n y"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n ticks"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Include a dollar sign in the ticks")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("callback")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("value"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" index"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" values")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'$'")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" value"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[t._v("Related samples:")]),t._v(" "),e("ul",[e("li",[e("a",{attrs:{href:"../samples/scale-options/ticks"}},[t._v("Tick configuration sample")])])])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[130],{453:function(t,a,e){"use strict";e.r(a);var s=e(7),n=Object(s.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"labeling-axes"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#labeling-axes"}},[t._v("#")]),t._v(" Labeling Axes")]),t._v(" "),e("p",[t._v("When creating a chart, you want to tell the viewer what data they are viewing. To do this, you need to label the axis.")]),t._v(" "),e("h2",{attrs:{id:"scale-title-configuration"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#scale-title-configuration"}},[t._v("#")]),t._v(" Scale Title Configuration")]),t._v(" "),e("p",[t._v("Namespace: "),e("code",[t._v("options.scales[scaleId].title")]),t._v(", it defines options for the scale title. Note that this only applies to cartesian axes.")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Default")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[e("code",[t._v("display")])]),t._v(" "),e("td",[e("code",[t._v("boolean")])]),t._v(" "),e("td",[e("code",[t._v("false")])]),t._v(" "),e("td",[t._v("If true, display the axis title.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("align")])]),t._v(" "),e("td",[e("code",[t._v("string")])]),t._v(" "),e("td",[e("code",[t._v("'center'")])]),t._v(" "),e("td",[t._v("Alignment of the axis title. Possible options are "),e("code",[t._v("'start'")]),t._v(", "),e("code",[t._v("'center'")]),t._v(" and "),e("code",[t._v("'end'")])])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("text")])]),t._v(" "),e("td",[e("code",[t._v("string")]),t._v("|"),e("code",[t._v("string[]")])]),t._v(" "),e("td",[e("code",[t._v("''")])]),t._v(" "),e("td",[t._v('The text for the title. (i.e. "# of People" or "Response Choices").')])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("color")])]),t._v(" "),e("td",[e("RouterLink",{attrs:{to:"/general/colors.html"}},[e("code",[t._v("Color")])])],1),t._v(" "),e("td",[e("code",[t._v("Chart.defaults.color")])]),t._v(" "),e("td",[t._v("Color of label.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("font")])]),t._v(" "),e("td",[e("code",[t._v("Font")])]),t._v(" "),e("td",[e("code",[t._v("Chart.defaults.font")])]),t._v(" "),e("td",[t._v("See "),e("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),e("tr",[e("td",[e("code",[t._v("padding")])]),t._v(" "),e("td",[e("RouterLink",{attrs:{to:"/general/padding.html"}},[e("code",[t._v("Padding")])])],1),t._v(" "),e("td",[e("code",[t._v("4")])]),t._v(" "),e("td",[t._v("Padding to apply around scale labels. Only "),e("code",[t._v("top")]),t._v(" and "),e("code",[t._v("bottom")]),t._v(" are implemented.")])])])]),t._v(" "),e("h2",{attrs:{id:"creating-custom-tick-formats"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#creating-custom-tick-formats"}},[t._v("#")]),t._v(" Creating Custom Tick Formats")]),t._v(" "),e("p",[t._v("It is also common to want to change the tick marks to include information about the data type. For example, adding a dollar sign ('$').\nTo do this, you need to override the "),e("code",[t._v("ticks.callback")]),t._v(" method in the axis configuration.")]),t._v(" "),e("p",[t._v("The method receiver 3 arguments:")]),t._v(" "),e("ul",[e("li",[e("code",[t._v("value")]),t._v(" - the tick value in the "),e("strong",[t._v("internal data format")]),t._v(" of the associated scale.")]),t._v(" "),e("li",[e("code",[t._v("index")]),t._v(" - the tick index in the ticks array.")]),t._v(" "),e("li",[e("code",[t._v("ticks")]),t._v(" - the array containing all of the "),e("a",{attrs:{href:"../api/interfaces/tick"}},[t._v("tick objects")]),t._v(".")])]),t._v(" "),e("p",[t._v("The call to the method is scoped to the scale. "),e("code",[t._v("this")]),t._v(" inside the method is the scale object.")]),t._v(" "),e("p",[t._v("If the callback returns "),e("code",[t._v("null")]),t._v(" or "),e("code",[t._v("undefined")]),t._v(" the associated grid line will be hidden.")]),t._v(" "),e("div",{staticClass:"custom-block tip"},[e("p",{staticClass:"custom-block-title"},[t._v("TIP")]),t._v(" "),e("p",[t._v("The "),e("a",{attrs:{href:"../axes/cartesian/category"}},[t._v("category axis")]),t._v(", which is the default x-axis for line and bar charts, uses the "),e("code",[t._v("index")]),t._v(" as internal data format. For accessing the label, use "),e("code",[t._v("this.getLabelForValue(value)")]),t._v(". "),e("RouterLink",{attrs:{to:"/api/classes/scale.html#getlabelforvalue"}},[t._v("API: getLabelForValue")])],1)]),t._v(" "),e("p",[t._v("In the following example, every label of the Y-axis would be displayed with a dollar sign at the front.")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n y"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n ticks"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Include a dollar sign in the ticks")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("callback")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("value"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" index"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" values")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'$'")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" value"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[t._v("Related samples:")]),t._v(" "),e("ul",[e("li",[e("a",{attrs:{href:"../samples/scale-options/ticks"}},[t._v("Tick configuration sample")])])])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/131.852c4129.js b/docs/latest/assets/js/131.22f0af24.js similarity index 98% rename from docs/latest/assets/js/131.852c4129.js rename to docs/latest/assets/js/131.22f0af24.js index 40db3a5f2b..c51a435180 100644 --- a/docs/latest/assets/js/131.852c4129.js +++ b/docs/latest/assets/js/131.22f0af24.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[131],{457:function(n,a,e){"use strict";e.r(a);var t=e(7),s=Object(t.a)({},(function(){var n=this,a=n.$createElement,e=n._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":n.$parent.slotKey}},[e("h1",{attrs:{id:"radial-axes"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#radial-axes"}},[n._v("#")]),n._v(" Radial Axes")]),n._v(" "),e("p",[n._v("Radial axes are used specifically for the radar and polar area chart types. These axes overlay the chart area, rather than being positioned on one of the edges. One radial axis is included by default in Chart.js.")]),n._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/axes/radial/linear.html"}},[n._v("radialLinear")])],1)]),n._v(" "),e("h2",{attrs:{id:"visual-components"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#visual-components"}},[n._v("#")]),n._v(" Visual Components")]),n._v(" "),e("p",[n._v("A radial axis is composed of visual components that can be individually configured. These components are:")]),n._v(" "),e("ul",[e("li",[e("a",{attrs:{href:"#angle-lines"}},[n._v("angle lines")])]),n._v(" "),e("li",[e("a",{attrs:{href:"#grid-lines"}},[n._v("grid lines")])]),n._v(" "),e("li",[e("a",{attrs:{href:"#point-labels"}},[n._v("point labels")])]),n._v(" "),e("li",[e("a",{attrs:{href:"#ticks"}},[n._v("ticks")])])]),n._v(" "),e("h3",{attrs:{id:"angle-lines"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#angle-lines"}},[n._v("#")]),n._v(" Angle Lines")]),n._v(" "),e("p",[n._v("The grid lines for an axis are drawn on the chart area. They stretch out from the center towards the edge of the canvas. In the example below, they are red.")]),n._v(" "),e("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data,\n options: {\n scales: {\n r: {\n angleLines: {\n color: 'red'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),e("h3",{attrs:{id:"grid-lines"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#grid-lines"}},[n._v("#")]),n._v(" Grid Lines")]),n._v(" "),e("p",[n._v("The grid lines for an axis are drawn on the chart area. In the example below, they are red.")]),n._v(" "),e("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data,\n options: {\n scales: {\n r: {\n grid: {\n color: 'red'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),e("h3",{attrs:{id:"point-labels"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#point-labels"}},[n._v("#")]),n._v(" Point Labels")]),n._v(" "),e("p",[n._v("The point labels indicate the value for each angle line. In the example below, they are red.")]),n._v(" "),e("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data,\n options: {\n scales: {\n r: {\n pointLabels: {\n color: 'red'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),e("h3",{attrs:{id:"ticks"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[n._v("#")]),n._v(" Ticks")]),n._v(" "),e("p",[n._v("The ticks are used to label values based on how far they are from the center of the axis. In the example below, they are red.")]),n._v(" "),e("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data,\n options: {\n scales: {\n r: {\n ticks: {\n color: 'red'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);a.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[131],{454:function(n,a,e){"use strict";e.r(a);var t=e(7),s=Object(t.a)({},(function(){var n=this,a=n.$createElement,e=n._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":n.$parent.slotKey}},[e("h1",{attrs:{id:"radial-axes"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#radial-axes"}},[n._v("#")]),n._v(" Radial Axes")]),n._v(" "),e("p",[n._v("Radial axes are used specifically for the radar and polar area chart types. These axes overlay the chart area, rather than being positioned on one of the edges. One radial axis is included by default in Chart.js.")]),n._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/axes/radial/linear.html"}},[n._v("radialLinear")])],1)]),n._v(" "),e("h2",{attrs:{id:"visual-components"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#visual-components"}},[n._v("#")]),n._v(" Visual Components")]),n._v(" "),e("p",[n._v("A radial axis is composed of visual components that can be individually configured. These components are:")]),n._v(" "),e("ul",[e("li",[e("a",{attrs:{href:"#angle-lines"}},[n._v("angle lines")])]),n._v(" "),e("li",[e("a",{attrs:{href:"#grid-lines"}},[n._v("grid lines")])]),n._v(" "),e("li",[e("a",{attrs:{href:"#point-labels"}},[n._v("point labels")])]),n._v(" "),e("li",[e("a",{attrs:{href:"#ticks"}},[n._v("ticks")])])]),n._v(" "),e("h3",{attrs:{id:"angle-lines"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#angle-lines"}},[n._v("#")]),n._v(" Angle Lines")]),n._v(" "),e("p",[n._v("The grid lines for an axis are drawn on the chart area. They stretch out from the center towards the edge of the canvas. In the example below, they are red.")]),n._v(" "),e("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data,\n options: {\n scales: {\n r: {\n angleLines: {\n color: 'red'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),e("h3",{attrs:{id:"grid-lines"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#grid-lines"}},[n._v("#")]),n._v(" Grid Lines")]),n._v(" "),e("p",[n._v("The grid lines for an axis are drawn on the chart area. In the example below, they are red.")]),n._v(" "),e("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data,\n options: {\n scales: {\n r: {\n grid: {\n color: 'red'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),e("h3",{attrs:{id:"point-labels"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#point-labels"}},[n._v("#")]),n._v(" Point Labels")]),n._v(" "),e("p",[n._v("The point labels indicate the value for each angle line. In the example below, they are red.")]),n._v(" "),e("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data,\n options: {\n scales: {\n r: {\n pointLabels: {\n color: 'red'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),e("h3",{attrs:{id:"ticks"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[n._v("#")]),n._v(" Ticks")]),n._v(" "),e("p",[n._v("The ticks are used to label values based on how far they are from the center of the axis. In the example below, they are red.")]),n._v(" "),e("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data,\n options: {\n scales: {\n r: {\n ticks: {\n color: 'red'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);a.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/132.ec42af3f.js b/docs/latest/assets/js/132.49826028.js similarity index 100% rename from docs/latest/assets/js/132.ec42af3f.js rename to docs/latest/assets/js/132.49826028.js diff --git a/docs/latest/assets/js/133.135d54b9.js b/docs/latest/assets/js/133.72bd9953.js similarity index 99% rename from docs/latest/assets/js/133.135d54b9.js rename to docs/latest/assets/js/133.72bd9953.js index 0cd22a2865..1ea17e14f5 100644 --- a/docs/latest/assets/js/133.135d54b9.js +++ b/docs/latest/assets/js/133.72bd9953.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[133],{458:function(t,e,r){"use strict";r.r(e);var a=r(7),d=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"styling"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#styling"}},[t._v("#")]),t._v(" Styling")]),t._v(" "),r("p",[t._v("There are a number of options to allow styling an axis. There are settings to control "),r("a",{attrs:{href:"#grid-line-configuration"}},[t._v("grid lines")]),t._v(" and "),r("a",{attrs:{href:"#tick-configuration"}},[t._v("ticks")]),t._v(".")]),t._v(" "),r("h2",{attrs:{id:"grid-line-configuration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#grid-line-configuration"}},[t._v("#")]),t._v(" Grid Line Configuration")]),t._v(" "),r("p",[t._v("Namespace: "),r("code",[t._v("options.scales[scaleId].grid")]),t._v(", it defines options for the grid lines that run perpendicular to the axis.")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",[t._v("Name")]),t._v(" "),r("th",[t._v("Type")]),t._v(" "),r("th",{staticStyle:{"text-align":"center"}},[t._v("Scriptable")]),t._v(" "),r("th",{staticStyle:{"text-align":"center"}},[t._v("Indexable")]),t._v(" "),r("th",[t._v("Default")]),t._v(" "),r("th",[t._v("Description")])])]),t._v(" "),r("tbody",[r("tr",[r("td",[r("code",[t._v("borderColor")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/general/colors.html"}},[r("code",[t._v("Color")])])],1),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("Chart.defaults.borderColor")])]),t._v(" "),r("td",[t._v("The color of the border line.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("borderWidth")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("1")])]),t._v(" "),r("td",[t._v("The width of the border line.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("borderDash")])]),t._v(" "),r("td",[r("code",[t._v("number[]")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("[]")])]),t._v(" "),r("td",[t._v("Length and spacing of dashes on grid lines. See "),r("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),r("OutboundLink")],1),t._v(".")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("borderDashOffset")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("0.0")])]),t._v(" "),r("td",[t._v("Offset for line dashes. See "),r("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),r("OutboundLink")],1),t._v(".")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("circular")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("false")])]),t._v(" "),r("td",[t._v("If true, gridlines are circular (on radar chart only).")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("color")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/general/colors.html"}},[r("code",[t._v("Color")])])],1),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[r("code",[t._v("Chart.defaults.borderColor")])]),t._v(" "),r("td",[t._v("The color of the grid lines. If specified as an array, the first color applies to the first grid line, the second to the second grid line, and so on.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("display")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("true")])]),t._v(" "),r("td",[t._v("If false, do not display grid lines for this axis.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("drawBorder")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("true")])]),t._v(" "),r("td",[t._v("If true, draw a border at the edge between the axis and the chart area.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("drawOnChartArea")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("true")])]),t._v(" "),r("td",[t._v("If true, draw lines on the chart area inside the axis lines. This is useful when there are multiple axes and you need to control which grid lines are drawn.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("drawTicks")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("true")])]),t._v(" "),r("td",[t._v("If true, draw lines beside the ticks in the axis area beside the chart.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("lineWidth")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[r("code",[t._v("1")])]),t._v(" "),r("td",[t._v("Stroke width of grid lines.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("offset")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("false")])]),t._v(" "),r("td",[t._v("If true, grid lines will be shifted to be between labels. This is set to "),r("code",[t._v("true")]),t._v(" for a bar chart by default.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("tickBorderDash")])]),t._v(" "),r("td",[r("code",[t._v("number[]")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td"),t._v(" "),r("td",[t._v("Length and spacing of the tick mark line. If not set, defaults to the grid line "),r("code",[t._v("borderDash")]),t._v(" value.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("tickBorderDashOffset")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td"),t._v(" "),r("td",[t._v("Offset for the line dash of the tick mark. If unset, defaults to the grid line "),r("code",[t._v("borderDashOffset")]),t._v(" value")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("tickColor")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/general/colors.html"}},[r("code",[t._v("Color")])])],1),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td"),t._v(" "),r("td",[t._v("Color of the tick line. If unset, defaults to the grid line color.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("tickLength")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("8")])]),t._v(" "),r("td",[t._v("Length in pixels that the grid lines will draw into the axis area.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("tickWidth")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td"),t._v(" "),r("td",[t._v("Width of the tick mark in pixels. If unset, defaults to the grid line width.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("z")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("0")])]),t._v(" "),r("td",[t._v("z-index of gridline layer. Values <= 0 are drawn under datasets, > 0 on top.")])])])]),t._v(" "),r("p",[t._v("The scriptable context is described in "),r("RouterLink",{attrs:{to:"/general/options.html#tick"}},[t._v("Options")]),t._v(" section.")],1),t._v(" "),r("h2",{attrs:{id:"tick-configuration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tick-configuration"}},[t._v("#")]),t._v(" Tick Configuration")]),t._v(" "),r("h3",{attrs:{id:"common-tick-options-to-all-axes"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-axes"}},[t._v("#")]),t._v(" Common tick options to all axes")]),t._v(" "),r("p",[t._v("Namespace: "),r("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",[t._v("Name")]),t._v(" "),r("th",[t._v("Type")]),t._v(" "),r("th",{staticStyle:{"text-align":"center"}},[t._v("Scriptable")]),t._v(" "),r("th",[t._v("Default")]),t._v(" "),r("th",[t._v("Description")])])]),t._v(" "),r("tbody",[r("tr",[r("td",[r("code",[t._v("callback")])]),t._v(" "),r("td",[r("code",[t._v("function")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td"),t._v(" "),r("td",[t._v("Returns the string representation of the tick value as it should be displayed on the chart. See "),r("RouterLink",{attrs:{to:"/axes/labelling.html#creating-custom-tick-formats"}},[t._v("callback")]),t._v(".")],1)]),t._v(" "),r("tr",[r("td",[r("code",[t._v("display")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("true")])]),t._v(" "),r("td",[t._v("If true, show tick labels.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("color")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/general/colors.html"}},[r("code",[t._v("Color")])])],1),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[r("code",[t._v("Chart.defaults.color")])]),t._v(" "),r("td",[t._v("Color of ticks.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("font")])]),t._v(" "),r("td",[r("code",[t._v("Font")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[r("code",[t._v("Chart.defaults.font")])]),t._v(" "),r("td",[t._v("See "),r("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),r("tr",[r("td",[r("code",[t._v("major")])]),t._v(" "),r("td",[r("code",[t._v("object")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("{}")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/axes/styling.html#major-tick-configuration"}},[t._v("Major ticks configuration")]),t._v(".")],1)]),t._v(" "),r("tr",[r("td",[r("code",[t._v("padding")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("3")])]),t._v(" "),r("td",[t._v("Sets the offset of the tick labels from the axis")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("textStrokeColor")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/general/colors.html"}},[r("code",[t._v("Color")])])],1),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[t._v("``")]),t._v(" "),r("td",[t._v("The color of the stroke around the text.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("textStrokeWidth")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[r("code",[t._v("0")])]),t._v(" "),r("td",[t._v("Stroke width around the text.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("z")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("0")])]),t._v(" "),r("td",[t._v("z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.")])])])]),t._v(" "),r("p",[t._v("The scriptable context is described in "),r("RouterLink",{attrs:{to:"/general/options.html#tick"}},[t._v("Options")]),t._v(" section.")],1),t._v(" "),r("h2",{attrs:{id:"major-tick-configuration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#major-tick-configuration"}},[t._v("#")]),t._v(" Major Tick Configuration")]),t._v(" "),r("p",[t._v("Namespace: "),r("code",[t._v("options.scales[scaleId].ticks.major")]),t._v(", it defines options for the major tick marks that are generated by the axis.")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",[t._v("Name")]),t._v(" "),r("th",[t._v("Type")]),t._v(" "),r("th",[t._v("Default")]),t._v(" "),r("th",[t._v("Description")])])]),t._v(" "),r("tbody",[r("tr",[r("td",[r("code",[t._v("enabled")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",[r("code",[t._v("false")])]),t._v(" "),r("td",[t._v("If true, major ticks are generated. A major tick will affect autoskipping and "),r("code",[t._v("major")]),t._v(" will be defined on ticks in the scriptable options context.")])])])])])}),[],!1,null,null,null);e.default=d.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[133],{457:function(t,e,r){"use strict";r.r(e);var a=r(7),d=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"styling"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#styling"}},[t._v("#")]),t._v(" Styling")]),t._v(" "),r("p",[t._v("There are a number of options to allow styling an axis. There are settings to control "),r("a",{attrs:{href:"#grid-line-configuration"}},[t._v("grid lines")]),t._v(" and "),r("a",{attrs:{href:"#tick-configuration"}},[t._v("ticks")]),t._v(".")]),t._v(" "),r("h2",{attrs:{id:"grid-line-configuration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#grid-line-configuration"}},[t._v("#")]),t._v(" Grid Line Configuration")]),t._v(" "),r("p",[t._v("Namespace: "),r("code",[t._v("options.scales[scaleId].grid")]),t._v(", it defines options for the grid lines that run perpendicular to the axis.")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",[t._v("Name")]),t._v(" "),r("th",[t._v("Type")]),t._v(" "),r("th",{staticStyle:{"text-align":"center"}},[t._v("Scriptable")]),t._v(" "),r("th",{staticStyle:{"text-align":"center"}},[t._v("Indexable")]),t._v(" "),r("th",[t._v("Default")]),t._v(" "),r("th",[t._v("Description")])])]),t._v(" "),r("tbody",[r("tr",[r("td",[r("code",[t._v("borderColor")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/general/colors.html"}},[r("code",[t._v("Color")])])],1),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("Chart.defaults.borderColor")])]),t._v(" "),r("td",[t._v("The color of the border line.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("borderWidth")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("1")])]),t._v(" "),r("td",[t._v("The width of the border line.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("borderDash")])]),t._v(" "),r("td",[r("code",[t._v("number[]")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("[]")])]),t._v(" "),r("td",[t._v("Length and spacing of dashes on grid lines. See "),r("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),r("OutboundLink")],1),t._v(".")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("borderDashOffset")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("0.0")])]),t._v(" "),r("td",[t._v("Offset for line dashes. See "),r("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),r("OutboundLink")],1),t._v(".")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("circular")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("false")])]),t._v(" "),r("td",[t._v("If true, gridlines are circular (on radar chart only).")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("color")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/general/colors.html"}},[r("code",[t._v("Color")])])],1),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[r("code",[t._v("Chart.defaults.borderColor")])]),t._v(" "),r("td",[t._v("The color of the grid lines. If specified as an array, the first color applies to the first grid line, the second to the second grid line, and so on.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("display")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("true")])]),t._v(" "),r("td",[t._v("If false, do not display grid lines for this axis.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("drawBorder")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("true")])]),t._v(" "),r("td",[t._v("If true, draw a border at the edge between the axis and the chart area.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("drawOnChartArea")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("true")])]),t._v(" "),r("td",[t._v("If true, draw lines on the chart area inside the axis lines. This is useful when there are multiple axes and you need to control which grid lines are drawn.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("drawTicks")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("true")])]),t._v(" "),r("td",[t._v("If true, draw lines beside the ticks in the axis area beside the chart.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("lineWidth")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[r("code",[t._v("1")])]),t._v(" "),r("td",[t._v("Stroke width of grid lines.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("offset")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("false")])]),t._v(" "),r("td",[t._v("If true, grid lines will be shifted to be between labels. This is set to "),r("code",[t._v("true")]),t._v(" for a bar chart by default.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("tickBorderDash")])]),t._v(" "),r("td",[r("code",[t._v("number[]")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td"),t._v(" "),r("td",[t._v("Length and spacing of the tick mark line. If not set, defaults to the grid line "),r("code",[t._v("borderDash")]),t._v(" value.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("tickBorderDashOffset")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td"),t._v(" "),r("td",[t._v("Offset for the line dash of the tick mark. If unset, defaults to the grid line "),r("code",[t._v("borderDashOffset")]),t._v(" value")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("tickColor")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/general/colors.html"}},[r("code",[t._v("Color")])])],1),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td"),t._v(" "),r("td",[t._v("Color of the tick line. If unset, defaults to the grid line color.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("tickLength")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("8")])]),t._v(" "),r("td",[t._v("Length in pixels that the grid lines will draw into the axis area.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("tickWidth")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td"),t._v(" "),r("td",[t._v("Width of the tick mark in pixels. If unset, defaults to the grid line width.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("z")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("0")])]),t._v(" "),r("td",[t._v("z-index of gridline layer. Values <= 0 are drawn under datasets, > 0 on top.")])])])]),t._v(" "),r("p",[t._v("The scriptable context is described in "),r("RouterLink",{attrs:{to:"/general/options.html#tick"}},[t._v("Options")]),t._v(" section.")],1),t._v(" "),r("h2",{attrs:{id:"tick-configuration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tick-configuration"}},[t._v("#")]),t._v(" Tick Configuration")]),t._v(" "),r("h3",{attrs:{id:"common-tick-options-to-all-axes"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-axes"}},[t._v("#")]),t._v(" Common tick options to all axes")]),t._v(" "),r("p",[t._v("Namespace: "),r("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",[t._v("Name")]),t._v(" "),r("th",[t._v("Type")]),t._v(" "),r("th",{staticStyle:{"text-align":"center"}},[t._v("Scriptable")]),t._v(" "),r("th",[t._v("Default")]),t._v(" "),r("th",[t._v("Description")])])]),t._v(" "),r("tbody",[r("tr",[r("td",[r("code",[t._v("callback")])]),t._v(" "),r("td",[r("code",[t._v("function")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td"),t._v(" "),r("td",[t._v("Returns the string representation of the tick value as it should be displayed on the chart. See "),r("RouterLink",{attrs:{to:"/axes/labelling.html#creating-custom-tick-formats"}},[t._v("callback")]),t._v(".")],1)]),t._v(" "),r("tr",[r("td",[r("code",[t._v("display")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("true")])]),t._v(" "),r("td",[t._v("If true, show tick labels.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("color")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/general/colors.html"}},[r("code",[t._v("Color")])])],1),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[r("code",[t._v("Chart.defaults.color")])]),t._v(" "),r("td",[t._v("Color of ticks.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("font")])]),t._v(" "),r("td",[r("code",[t._v("Font")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[r("code",[t._v("Chart.defaults.font")])]),t._v(" "),r("td",[t._v("See "),r("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),r("tr",[r("td",[r("code",[t._v("major")])]),t._v(" "),r("td",[r("code",[t._v("object")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("{}")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/axes/styling.html#major-tick-configuration"}},[t._v("Major ticks configuration")]),t._v(".")],1)]),t._v(" "),r("tr",[r("td",[r("code",[t._v("padding")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("3")])]),t._v(" "),r("td",[t._v("Sets the offset of the tick labels from the axis")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("textStrokeColor")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/general/colors.html"}},[r("code",[t._v("Color")])])],1),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[t._v("``")]),t._v(" "),r("td",[t._v("The color of the stroke around the text.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("textStrokeWidth")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[r("code",[t._v("0")])]),t._v(" "),r("td",[t._v("Stroke width around the text.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("z")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("0")])]),t._v(" "),r("td",[t._v("z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.")])])])]),t._v(" "),r("p",[t._v("The scriptable context is described in "),r("RouterLink",{attrs:{to:"/general/options.html#tick"}},[t._v("Options")]),t._v(" section.")],1),t._v(" "),r("h2",{attrs:{id:"major-tick-configuration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#major-tick-configuration"}},[t._v("#")]),t._v(" Major Tick Configuration")]),t._v(" "),r("p",[t._v("Namespace: "),r("code",[t._v("options.scales[scaleId].ticks.major")]),t._v(", it defines options for the major tick marks that are generated by the axis.")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",[t._v("Name")]),t._v(" "),r("th",[t._v("Type")]),t._v(" "),r("th",[t._v("Default")]),t._v(" "),r("th",[t._v("Description")])])]),t._v(" "),r("tbody",[r("tr",[r("td",[r("code",[t._v("enabled")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",[r("code",[t._v("false")])]),t._v(" "),r("td",[t._v("If true, major ticks are generated. A major tick will affect autoskipping and "),r("code",[t._v("major")]),t._v(" will be defined on ticks in the scriptable options context.")])])])])])}),[],!1,null,null,null);e.default=d.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/134.5cc44131.js b/docs/latest/assets/js/134.83642d0d.js similarity index 99% rename from docs/latest/assets/js/134.5cc44131.js rename to docs/latest/assets/js/134.83642d0d.js index 79572ed03c..494d4ab1b6 100644 --- a/docs/latest/assets/js/134.5cc44131.js +++ b/docs/latest/assets/js/134.83642d0d.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[134],{459:function(t,a,e){"use strict";e.r(a);var s=e(7),n=Object(s.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"area-chart"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#area-chart"}},[t._v("#")]),t._v(" Area Chart")]),t._v(" "),e("p",[t._v("Both "),e("RouterLink",{attrs:{to:"/charts/line.html"}},[t._v("line")]),t._v(" and "),e("RouterLink",{attrs:{to:"/charts/radar.html"}},[t._v("radar")]),t._v(" charts support a "),e("code",[t._v("fill")]),t._v(" option on the dataset object which can be used to create space between two datasets or a dataset and a boundary, i.e. the scale "),e("code",[t._v("origin")]),t._v(", "),e("code",[t._v("start,")]),t._v(" or "),e("code",[t._v("end")]),t._v(" (see "),e("a",{attrs:{href:"#filling-modes"}},[t._v("filling modes")]),t._v(").")],1),t._v(" "),e("div",{staticClass:"custom-block tip"},[e("p",{staticClass:"custom-block-title"},[t._v("Note")]),t._v(" "),e("p",[t._v("This feature is implemented by the "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/master/src/plugins/plugin.filler.js",target:"_blank",rel:"noopener noreferrer"}},[e("code",[t._v("filler")]),t._v(" plugin"),e("OutboundLink")],1),t._v(".")])]),t._v(" "),e("h2",{attrs:{id:"filling-modes"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#filling-modes"}},[t._v("#")]),t._v(" Filling modes")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Mode")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Values")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("Absolute dataset index")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("number")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("1")]),t._v(", "),e("code",[t._v("2")]),t._v(", "),e("code",[t._v("3")]),t._v(", ...")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("Relative dataset index")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("string")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("'-1'")]),t._v(", "),e("code",[t._v("'-2'")]),t._v(", "),e("code",[t._v("'+1'")]),t._v(", ...")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("Boundary")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("string")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("'start'")]),t._v(", "),e("code",[t._v("'end'")]),t._v(", "),e("code",[t._v("'origin'")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("Disabled "),e("sup",[t._v("1")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("boolean")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("false")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("Stacked value below")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("string")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("'stack'")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("Axis value")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("object")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("{ value: number; }")])])])])]),t._v(" "),e("blockquote",[e("p",[e("sup",[t._v("1")]),t._v(" for backward compatibility, "),e("code",[t._v("fill: true")]),t._v(" is equivalent to "),e("code",[t._v("fill: 'origin'")]),e("br")])]),t._v(" "),e("h3",{attrs:{id:"example"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#example"}},[t._v("#")]),t._v(" Example")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'origin'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 0: fill to 'origin'")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'+2'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 1: fill to dataset 3")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 2: fill to dataset 1")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 3: no fill")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'-2'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 4: fill to dataset 2")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("value"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("25")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 5: fill to axis value 25")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[t._v("If you need to support multiple colors when filling from one dataset to another, you may specify an object with the following option :")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Param")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("target")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("number")]),t._v(", "),e("code",[t._v("string")]),t._v(", "),e("code",[t._v("boolean")]),t._v(", "),e("code",[t._v("object")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The accepted values are the same as the filling mode values, so you may use absolute and relative dataset indexes and/or boundaries.")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("above")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("Color")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("If no color is set, the default color will be the background color of the chart.")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("below")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("Color")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("Same as the above.")])])])]),t._v(" "),e("h3",{attrs:{id:"example-with-multiple-colors"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#example-with-multiple-colors"}},[t._v("#")]),t._v(" Example with multiple colors")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n target"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'origin'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n above"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgb(255, 0, 0)'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Area will be red above the origin")]),t._v("\n below"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgb(0, 0, 255)'")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// And blue below the origin")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("h2",{attrs:{id:"configuration"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#configuration"}},[t._v("#")]),t._v(" Configuration")]),t._v(" "),e("p",[t._v("Namespace: "),e("code",[t._v("options.plugins.filler")])]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Option")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Default")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("drawTime")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("string")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("beforeDatasetDraw")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("Filler draw time. Supported values: "),e("code",[t._v("'beforeDatasetDraw'")]),t._v(", "),e("code",[t._v("'beforeDatasetsDraw'")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("a",{attrs:{href:"#propagate"}},[e("code",[t._v("propagate")])])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("boolean")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("true")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("Fill propagation when target is hidden.")])])])]),t._v(" "),e("h3",{attrs:{id:"propagate"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#propagate"}},[t._v("#")]),t._v(" propagate")]),t._v(" "),e("p",[e("code",[t._v("propagate")]),t._v(" takes a "),e("code",[t._v("boolean")]),t._v(" value (default: "),e("code",[t._v("true")]),t._v(").")]),t._v(" "),e("p",[t._v("If "),e("code",[t._v("true")]),t._v(", the fill area will be recursively extended to the visible target defined by the "),e("code",[t._v("fill")]),t._v(" value of hidden dataset targets:")]),t._v(" "),e("h4",{attrs:{id:"example-using-propagate"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#example-using-propagate"}},[t._v("#")]),t._v(" Example using propagate")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'origin'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 0: fill to 'origin'")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'-1'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 1: fill to dataset 0")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 2: fill to dataset 1")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 3: no fill")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'-2'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 4: fill to dataset 2")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n filler"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n propagate"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[e("code",[t._v("propagate: true")]),t._v(":\n-if dataset 2 is hidden, dataset 4 will fill to dataset 1\n-if dataset 2 and 1 are hidden, dataset 4 will fill to "),e("code",[t._v("'origin'")])]),t._v(" "),e("p",[e("code",[t._v("propagate: false")]),t._v(":\n-if dataset 2 and/or 4 are hidden, dataset 4 will not be filled")])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[134],{458:function(t,a,e){"use strict";e.r(a);var s=e(7),n=Object(s.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"area-chart"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#area-chart"}},[t._v("#")]),t._v(" Area Chart")]),t._v(" "),e("p",[t._v("Both "),e("RouterLink",{attrs:{to:"/charts/line.html"}},[t._v("line")]),t._v(" and "),e("RouterLink",{attrs:{to:"/charts/radar.html"}},[t._v("radar")]),t._v(" charts support a "),e("code",[t._v("fill")]),t._v(" option on the dataset object which can be used to create space between two datasets or a dataset and a boundary, i.e. the scale "),e("code",[t._v("origin")]),t._v(", "),e("code",[t._v("start,")]),t._v(" or "),e("code",[t._v("end")]),t._v(" (see "),e("a",{attrs:{href:"#filling-modes"}},[t._v("filling modes")]),t._v(").")],1),t._v(" "),e("div",{staticClass:"custom-block tip"},[e("p",{staticClass:"custom-block-title"},[t._v("Note")]),t._v(" "),e("p",[t._v("This feature is implemented by the "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/master/src/plugins/plugin.filler.js",target:"_blank",rel:"noopener noreferrer"}},[e("code",[t._v("filler")]),t._v(" plugin"),e("OutboundLink")],1),t._v(".")])]),t._v(" "),e("h2",{attrs:{id:"filling-modes"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#filling-modes"}},[t._v("#")]),t._v(" Filling modes")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Mode")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Values")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("Absolute dataset index")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("number")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("1")]),t._v(", "),e("code",[t._v("2")]),t._v(", "),e("code",[t._v("3")]),t._v(", ...")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("Relative dataset index")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("string")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("'-1'")]),t._v(", "),e("code",[t._v("'-2'")]),t._v(", "),e("code",[t._v("'+1'")]),t._v(", ...")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("Boundary")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("string")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("'start'")]),t._v(", "),e("code",[t._v("'end'")]),t._v(", "),e("code",[t._v("'origin'")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("Disabled "),e("sup",[t._v("1")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("boolean")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("false")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("Stacked value below")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("string")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("'stack'")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[t._v("Axis value")]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("object")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("{ value: number; }")])])])])]),t._v(" "),e("blockquote",[e("p",[e("sup",[t._v("1")]),t._v(" for backward compatibility, "),e("code",[t._v("fill: true")]),t._v(" is equivalent to "),e("code",[t._v("fill: 'origin'")]),e("br")])]),t._v(" "),e("h3",{attrs:{id:"example"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#example"}},[t._v("#")]),t._v(" Example")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'origin'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 0: fill to 'origin'")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'+2'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 1: fill to dataset 3")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 2: fill to dataset 1")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 3: no fill")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'-2'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 4: fill to dataset 2")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("value"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("25")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 5: fill to axis value 25")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[t._v("If you need to support multiple colors when filling from one dataset to another, you may specify an object with the following option :")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Param")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("target")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("number")]),t._v(", "),e("code",[t._v("string")]),t._v(", "),e("code",[t._v("boolean")]),t._v(", "),e("code",[t._v("object")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("The accepted values are the same as the filling mode values, so you may use absolute and relative dataset indexes and/or boundaries.")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("above")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("Color")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("If no color is set, the default color will be the background color of the chart.")])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("below")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("Color")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("Same as the above.")])])])]),t._v(" "),e("h3",{attrs:{id:"example-with-multiple-colors"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#example-with-multiple-colors"}},[t._v("#")]),t._v(" Example with multiple colors")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n target"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'origin'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n above"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgb(255, 0, 0)'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Area will be red above the origin")]),t._v("\n below"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgb(0, 0, 255)'")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// And blue below the origin")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("h2",{attrs:{id:"configuration"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#configuration"}},[t._v("#")]),t._v(" Configuration")]),t._v(" "),e("p",[t._v("Namespace: "),e("code",[t._v("options.plugins.filler")])]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",{staticStyle:{"text-align":"left"}},[t._v("Option")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Default")]),t._v(" "),e("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("drawTime")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("string")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("beforeDatasetDraw")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("Filler draw time. Supported values: "),e("code",[t._v("'beforeDatasetDraw'")]),t._v(", "),e("code",[t._v("'beforeDatasetsDraw'")])])]),t._v(" "),e("tr",[e("td",{staticStyle:{"text-align":"left"}},[e("a",{attrs:{href:"#propagate"}},[e("code",[t._v("propagate")])])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("boolean")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[e("code",[t._v("true")])]),t._v(" "),e("td",{staticStyle:{"text-align":"left"}},[t._v("Fill propagation when target is hidden.")])])])]),t._v(" "),e("h3",{attrs:{id:"propagate"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#propagate"}},[t._v("#")]),t._v(" propagate")]),t._v(" "),e("p",[e("code",[t._v("propagate")]),t._v(" takes a "),e("code",[t._v("boolean")]),t._v(" value (default: "),e("code",[t._v("true")]),t._v(").")]),t._v(" "),e("p",[t._v("If "),e("code",[t._v("true")]),t._v(", the fill area will be recursively extended to the visible target defined by the "),e("code",[t._v("fill")]),t._v(" value of hidden dataset targets:")]),t._v(" "),e("h4",{attrs:{id:"example-using-propagate"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#example-using-propagate"}},[t._v("#")]),t._v(" Example using propagate")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'origin'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 0: fill to 'origin'")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'-1'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 1: fill to dataset 0")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 2: fill to dataset 1")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 3: no fill")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("fill"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'-2'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 4: fill to dataset 2")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n filler"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n propagate"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[e("code",[t._v("propagate: true")]),t._v(":\n-if dataset 2 is hidden, dataset 4 will fill to dataset 1\n-if dataset 2 and 1 are hidden, dataset 4 will fill to "),e("code",[t._v("'origin'")])]),t._v(" "),e("p",[e("code",[t._v("propagate: false")]),t._v(":\n-if dataset 2 and/or 4 are hidden, dataset 4 will not be filled")])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/135.c23857ac.js b/docs/latest/assets/js/135.6d317b72.js similarity index 99% rename from docs/latest/assets/js/135.c23857ac.js rename to docs/latest/assets/js/135.6d317b72.js index 0c4f432914..a120d75b3a 100644 --- a/docs/latest/assets/js/135.c23857ac.js +++ b/docs/latest/assets/js/135.6d317b72.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[135],{460:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"bar-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bar-chart"}},[t._v("#")]),t._v(" Bar Chart")]),t._v(" "),a("p",[t._v("A bar chart provides a way of showing data values represented as vertical bars. It is sometimes used to show trend data, and the comparison of multiple data sets side by side.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First Dataset',\n data: [65, 59, 80, 81, 56, 55, 40],\n backgroundColor: [\n 'rgba(255, 99, 132, 0.2)',\n 'rgba(255, 159, 64, 0.2)',\n 'rgba(255, 205, 86, 0.2)',\n 'rgba(75, 192, 192, 0.2)',\n 'rgba(54, 162, 235, 0.2)',\n 'rgba(153, 102, 255, 0.2)',\n 'rgba(201, 203, 207, 0.2)'\n ],\n borderColor: [\n 'rgb(255, 99, 132)',\n 'rgb(255, 159, 64)',\n 'rgb(255, 205, 86)',\n 'rgb(75, 192, 192)',\n 'rgb(54, 162, 235)',\n 'rgb(153, 102, 255)',\n 'rgb(201, 203, 207)'\n ],\n borderWidth: 1\n }]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n scales: {\n y: {\n beginAtZero: true\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.bar")]),t._v(" - options for all bar datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.bar")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#bar-configuration"}},[t._v("bar elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The bar chart allows a number of properties to be specified for each dataset.\nThese are used to set display properties for a specific dataset. For example,\nthe color of the bars is generally set this way.\nOnly the "),a("code",[t._v("data")]),t._v(" option needs to be specified in the dataset namespace.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("base")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#barpercentage"}},[a("code",[t._v("barPercentage")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0.9")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#barthickness"}},[a("code",[t._v("barThickness")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'start'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderwidth"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderradius"}},[a("code",[t._v("borderRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#categorypercentage"}},[a("code",[t._v("categoryPercentage")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0.8")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("object")]),t._v("|"),a("code",[t._v("object[]")]),t._v("| "),a("code",[t._v("number[]")]),t._v("|"),a("code",[t._v("string[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("grouped")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("true")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("indexAxis")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'x'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#maxbarthickness"}},[a("code",[t._v("maxBarThickness")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("minBarLength")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("label")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("''")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("order")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("RouterLink",{attrs:{to:"/configuration/elements.html#point-styles"}},[a("code",[t._v("pointStyle")])])],1),t._v(" "),a("td",[a("code",[t._v("string")]),t._v("|"),a("code",[t._v("Image")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'circle'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("skipNull")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("stack")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'bar'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("xAxisID")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[t._v("first x axis")])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("yAxisID")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[t._v("first y axis")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"example-dataset-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#example-dataset-configuration"}},[t._v("#")]),t._v(" Example dataset configuration")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n barPercentage"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0.5")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n barThickness"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("6")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n maxBarThickness"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("8")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n minBarLength"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("40")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("60")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("70")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("base")])]),t._v(" "),a("td",[t._v("Base value for the bar in data units along the value axis. If not set, defaults to the value axis base value.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("grouped")])]),t._v(" "),a("td",[t._v("Should the bars be grouped on index axis. When "),a("code",[t._v("true")]),t._v(", all the datasets at same index value will be placed next to each other centering on that index value. When "),a("code",[t._v("false")]),t._v(", each bar is placed on its actual index-axis value.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("indexAxis")])]),t._v(" "),a("td",[t._v("The base axis of the dataset. "),a("code",[t._v("'x'")]),t._v(" for vertical bars and "),a("code",[t._v("'y'")]),t._v(" for horizontal bars.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("label")])]),t._v(" "),a("td",[t._v("The label for the dataset which appears in the legend and tooltips.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("order")])]),t._v(" "),a("td",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip, and legend.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("skipNull")])]),t._v(" "),a("td",[t._v("If "),a("code",[t._v("true")]),t._v(", null or undefined values will not be used for spacing calculations when determining bar size.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("stack")])]),t._v(" "),a("td",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack). "),a("a",{attrs:{href:"#stacked-bar-charts"}},[t._v("more")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("xAxisID")])]),t._v(" "),a("td",[t._v("The ID of the x-axis to plot this dataset on.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("yAxisID")])]),t._v(" "),a("td",[t._v("The ID of the y-axis to plot this dataset on.")])])])]),t._v(" "),a("h3",{attrs:{id:"styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#styling"}},[t._v("#")]),t._v(" Styling")]),t._v(" "),a("p",[t._v("The style of each bar can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("The bar background color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("The bar border color.")])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])])]),t._v(" "),a("td",[t._v("The edge to skip when drawing bar.")])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderwidth"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[t._v("The bar border width (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderradius"}},[a("code",[t._v("borderRadius")])])]),t._v(" "),a("td",[t._v("The bar border radius (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("minBarLength")])]),t._v(" "),a("td",[t._v("Set this to ensure that bars have a minimum length in pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",[t._v("Style of the point for legend. "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-styles"}},[t._v("more...")])],1)])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#bar-configuration"}},[a("code",[t._v("elements.bar.*")])]),t._v(" options.")],1),t._v(" "),a("h4",{attrs:{id:"borderskipped"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#borderskipped"}},[t._v("#")]),t._v(" borderSkipped")]),t._v(" "),a("p",[t._v("This setting is used to avoid drawing the bar stroke at the base of the fill, or disable the border radius.\nIn general, this does not need to be changed except when creating chart types\nthat derive from a bar chart.")]),t._v(" "),a("div",{staticClass:"custom-block tip"},[a("p",{staticClass:"custom-block-title"},[t._v("Note")]),t._v(" "),a("p",[t._v("For negative bars in a vertical chart, "),a("code",[t._v("top")]),t._v(" and "),a("code",[t._v("bottom")]),t._v(" are flipped. Same goes for "),a("code",[t._v("left")]),t._v(" and "),a("code",[t._v("right")]),t._v(" in a horizontal chart.")])]),t._v(" "),a("p",[t._v("Options are:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'start'")])]),t._v(" "),a("li",[a("code",[t._v("'end'")])]),t._v(" "),a("li",[a("code",[t._v("'bottom'")])]),t._v(" "),a("li",[a("code",[t._v("'left'")])]),t._v(" "),a("li",[a("code",[t._v("'top'")])]),t._v(" "),a("li",[a("code",[t._v("'right'")])]),t._v(" "),a("li",[a("code",[t._v("false")])])]),t._v(" "),a("h4",{attrs:{id:"borderwidth"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),a("p",[t._v("If this value is a number, it is applied to all sides of the rectangle (left, top, right, bottom), except "),a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])]),t._v(". If this value is an object, the "),a("code",[t._v("left")]),t._v(" property defines the left border width. Similarly, the "),a("code",[t._v("right")]),t._v(", "),a("code",[t._v("top")]),t._v(", and "),a("code",[t._v("bottom")]),t._v(" properties can also be specified. Omitted borders and "),a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])]),t._v(" are skipped.")]),t._v(" "),a("h4",{attrs:{id:"borderradius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[t._v("#")]),t._v(" borderRadius")]),t._v(" "),a("p",[t._v("If this value is a number, it is applied to all corners of the rectangle (topLeft, topRight, bottomLeft, bottomRight), except corners touching the "),a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])]),t._v(". If this value is an object, the "),a("code",[t._v("topLeft")]),t._v(" property defines the top-left corners border radius. Similarly, the "),a("code",[t._v("topRight")]),t._v(", "),a("code",[t._v("bottomLeft")]),t._v(", and "),a("code",[t._v("bottomRight")]),t._v(" properties can also be specified. Omitted corners and those touching the "),a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])]),t._v(" are skipped. For example if the "),a("code",[t._v("top")]),t._v(" border is skipped, the border radius for the corners "),a("code",[t._v("topLeft")]),t._v(" and "),a("code",[t._v("topRight")]),t._v(" will be skipped as well.")]),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each bar can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("hoverBackgroundColor")])]),t._v(" "),a("td",[t._v("The bar background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderColor")])]),t._v(" "),a("td",[t._v("The bar border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderWidth")])]),t._v(" "),a("td",[t._v("The bar border width when hovered (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderRadius")])]),t._v(" "),a("td",[t._v("The bar border radius when hovered (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#bar-configuration"}},[a("code",[t._v("elements.bar.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"barpercentage"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barpercentage"}},[t._v("#")]),t._v(" barPercentage")]),t._v(" "),a("p",[t._v("Percent (0-1) of the available width each bar should be within the category width. 1.0 will take the whole category width and put the bars right next to each other. "),a("a",{attrs:{href:"#barpercentage-vs-categorypercentage"}},[t._v("more...")])]),t._v(" "),a("h3",{attrs:{id:"categorypercentage"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#categorypercentage"}},[t._v("#")]),t._v(" categoryPercentage")]),t._v(" "),a("p",[t._v("Percent (0-1) of the available width each category should be within the sample width. "),a("a",{attrs:{href:"#barpercentage-vs-categorypercentage"}},[t._v("more...")])]),t._v(" "),a("h3",{attrs:{id:"barthickness"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barthickness"}},[t._v("#")]),t._v(" barThickness")]),t._v(" "),a("p",[t._v("If this value is a number, it is applied to the width of each bar, in pixels. When this is enforced, "),a("code",[t._v("barPercentage")]),t._v(" and "),a("code",[t._v("categoryPercentage")]),t._v(" are ignored.")]),t._v(" "),a("p",[t._v("If set to "),a("code",[t._v("'flex'")]),t._v(", the base sample widths are calculated automatically based on the previous and following samples so that they take the full available widths without overlap. Then, bars are sized using "),a("code",[t._v("barPercentage")]),t._v(" and "),a("code",[t._v("categoryPercentage")]),t._v(". There is no gap when the percentage options are 1. This mode generates bars with different widths when data are not evenly spaced.")]),t._v(" "),a("p",[t._v("If not set (default), the base sample widths are calculated using the smallest interval that prevents bar overlapping, and bars are sized using "),a("code",[t._v("barPercentage")]),t._v(" and "),a("code",[t._v("categoryPercentage")]),t._v(". This mode always generates bars equally sized.")]),t._v(" "),a("h3",{attrs:{id:"maxbarthickness"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxbarthickness"}},[t._v("#")]),t._v(" maxBarThickness")]),t._v(" "),a("p",[t._v("Set this to ensure that bars are not sized thicker than this.")]),t._v(" "),a("h2",{attrs:{id:"scale-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scale-configuration"}},[t._v("#")]),t._v(" Scale Configuration")]),t._v(" "),a("p",[t._v("The bar chart sets unique default values for the following configuration from the associated "),a("code",[t._v("scale")]),t._v(" options:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("offset")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, extra space is added to both edges and the axis is scaled to fit into the chart area.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("grid.offset")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, the bars for a particular data point fall between the grid lines. The grid line will move to the left by one half of the tick interval. If false, the grid line will go right down the middle of the bars. "),a("a",{attrs:{href:"#offsetgridlines"}},[t._v("more...")])])])])]),t._v(" "),a("h3",{attrs:{id:"example-scale-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#example-scale-configuration"}},[t._v("#")]),t._v(" Example scale configuration")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("options "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n grid"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n offset"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h3",{attrs:{id:"offset-grid-lines"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offset-grid-lines"}},[t._v("#")]),t._v(" Offset Grid Lines")]),t._v(" "),a("p",[t._v("If true, the bars for a particular data point fall between the grid lines. The grid line will move to the left by one half of the tick interval, which is the space between the grid lines. If false, the grid line will go right down the middle of the bars. This is set to true for a category scale in a bar chart while false for other scales or chart types by default.")]),t._v(" "),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("It is common to want to apply a configuration setting to all created bar charts. The global bar chart settings are stored in "),a("code",[t._v("Chart.overrides.bar")]),t._v(". Changing the global options only affects charts created after the change. Existing charts are not changed.")]),t._v(" "),a("h2",{attrs:{id:"barpercentage-vs-categorypercentage"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barpercentage-vs-categorypercentage"}},[t._v("#")]),t._v(" barPercentage vs categoryPercentage")]),t._v(" "),a("p",[t._v("The following shows the relationship between the bar percentage option and the category percentage option.")]),t._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[t._v("// categoryPercentage: 1.0\n// barPercentage: 1.0\nBar: | 1.0 | 1.0 |\nCategory: | 1.0 |\nSample: |===========|\n\n// categoryPercentage: 1.0\n// barPercentage: 0.5\nBar: |.5| |.5|\nCategory: | 1.0 |\nSample: |==============|\n\n// categoryPercentage: 0.5\n// barPercentage: 1.0\nBar: |1.0||1.0|\nCategory: | .5 |\nSample: |==================|\n")])])]),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("All of the supported "),a("RouterLink",{attrs:{to:"/general/data-structures.html"}},[t._v("data structures")]),t._v(" can be used with bar charts.")],1),t._v(" "),a("h2",{attrs:{id:"stacked-bar-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stacked-bar-chart"}},[t._v("#")]),t._v(" Stacked Bar Chart")]),t._v(" "),a("p",[t._v("Bar charts can be configured into stacked bar charts by changing the settings on the X and Y axes to enable stacking. Stacked bar charts can be used to show how one data series is made up of a number of smaller pieces.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" stackedBar "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n stacked"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n stacked"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"horizontal-bar-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#horizontal-bar-chart"}},[t._v("#")]),t._v(" Horizontal Bar Chart")]),t._v(" "),a("p",[t._v("A horizontal bar chart is a variation on a vertical bar chart. It is sometimes used to show trend data, and the comparison of multiple data sets side by side.\nTo achieve this you will have to set the "),a("code",[t._v("indexAxis")]),t._v(" property in the options object to "),a("code",[t._v("'y'")]),t._v(".\nThe default for this property is "),a("code",[t._v("'x'")]),t._v(" and thus will show vertical bars.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n axis: 'y',\n label: 'My First Dataset',\n data: [65, 59, 80, 81, 56, 55, 40],\n fill: false,\n backgroundColor: [\n 'rgba(255, 99, 132, 0.2)',\n 'rgba(255, 159, 64, 0.2)',\n 'rgba(255, 205, 86, 0.2)',\n 'rgba(75, 192, 192, 0.2)',\n 'rgba(54, 162, 235, 0.2)',\n 'rgba(153, 102, 255, 0.2)',\n 'rgba(201, 203, 207, 0.2)'\n ],\n borderColor: [\n 'rgb(255, 99, 132)',\n 'rgb(255, 159, 64)',\n 'rgb(255, 205, 86)',\n 'rgb(75, 192, 192)',\n 'rgb(54, 162, 235)',\n 'rgb(153, 102, 255)',\n 'rgb(201, 203, 207)'\n ],\n borderWidth: 1\n }]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data,\n options: {\n indexAxis: 'y',\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h3",{attrs:{id:"horizontal-bar-chart-config-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#horizontal-bar-chart-config-options"}},[t._v("#")]),t._v(" Horizontal Bar Chart config Options")]),t._v(" "),a("p",[t._v("The configuration options for the horizontal bar chart are the same as for the "),a("a",{attrs:{href:"#scale-configuration"}},[t._v("bar chart")]),t._v(". However, any options specified on the x-axis in a bar chart, are applied to the y-axis in a horizontal bar chart.")]),t._v(" "),a("h2",{attrs:{id:"internal-data-format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),a("p",[a("code",[t._v("{x, y, _custom}")]),t._v(" where "),a("code",[t._v("_custom")]),t._v(" is an optional object defining stacked bar properties: "),a("code",[t._v("{start, end, barStart, barEnd, min, max}")]),t._v(". "),a("code",[t._v("start")]),t._v(" and "),a("code",[t._v("end")]),t._v(" are the input values. Those two are repeated in "),a("code",[t._v("barStart")]),t._v(" (closer to origin), "),a("code",[t._v("barEnd")]),t._v(" (further from origin), "),a("code",[t._v("min")]),t._v(" and "),a("code",[t._v("max")]),t._v(".")])],1)}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[135],{459:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"bar-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bar-chart"}},[t._v("#")]),t._v(" Bar Chart")]),t._v(" "),a("p",[t._v("A bar chart provides a way of showing data values represented as vertical bars. It is sometimes used to show trend data, and the comparison of multiple data sets side by side.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First Dataset',\n data: [65, 59, 80, 81, 56, 55, 40],\n backgroundColor: [\n 'rgba(255, 99, 132, 0.2)',\n 'rgba(255, 159, 64, 0.2)',\n 'rgba(255, 205, 86, 0.2)',\n 'rgba(75, 192, 192, 0.2)',\n 'rgba(54, 162, 235, 0.2)',\n 'rgba(153, 102, 255, 0.2)',\n 'rgba(201, 203, 207, 0.2)'\n ],\n borderColor: [\n 'rgb(255, 99, 132)',\n 'rgb(255, 159, 64)',\n 'rgb(255, 205, 86)',\n 'rgb(75, 192, 192)',\n 'rgb(54, 162, 235)',\n 'rgb(153, 102, 255)',\n 'rgb(201, 203, 207)'\n ],\n borderWidth: 1\n }]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n scales: {\n y: {\n beginAtZero: true\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.bar")]),t._v(" - options for all bar datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.bar")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#bar-configuration"}},[t._v("bar elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The bar chart allows a number of properties to be specified for each dataset.\nThese are used to set display properties for a specific dataset. For example,\nthe color of the bars is generally set this way.\nOnly the "),a("code",[t._v("data")]),t._v(" option needs to be specified in the dataset namespace.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("base")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#barpercentage"}},[a("code",[t._v("barPercentage")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0.9")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#barthickness"}},[a("code",[t._v("barThickness")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'start'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderwidth"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderradius"}},[a("code",[t._v("borderRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#categorypercentage"}},[a("code",[t._v("categoryPercentage")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0.8")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("object")]),t._v("|"),a("code",[t._v("object[]")]),t._v("| "),a("code",[t._v("number[]")]),t._v("|"),a("code",[t._v("string[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("grouped")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("true")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("indexAxis")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'x'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#maxbarthickness"}},[a("code",[t._v("maxBarThickness")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("minBarLength")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("label")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("''")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("order")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("RouterLink",{attrs:{to:"/configuration/elements.html#point-styles"}},[a("code",[t._v("pointStyle")])])],1),t._v(" "),a("td",[a("code",[t._v("string")]),t._v("|"),a("code",[t._v("Image")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'circle'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("skipNull")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("stack")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'bar'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("xAxisID")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[t._v("first x axis")])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("yAxisID")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[t._v("first y axis")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"example-dataset-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#example-dataset-configuration"}},[t._v("#")]),t._v(" Example dataset configuration")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n barPercentage"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0.5")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n barThickness"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("6")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n maxBarThickness"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("8")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n minBarLength"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("40")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("60")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("70")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("base")])]),t._v(" "),a("td",[t._v("Base value for the bar in data units along the value axis. If not set, defaults to the value axis base value.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("grouped")])]),t._v(" "),a("td",[t._v("Should the bars be grouped on index axis. When "),a("code",[t._v("true")]),t._v(", all the datasets at same index value will be placed next to each other centering on that index value. When "),a("code",[t._v("false")]),t._v(", each bar is placed on its actual index-axis value.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("indexAxis")])]),t._v(" "),a("td",[t._v("The base axis of the dataset. "),a("code",[t._v("'x'")]),t._v(" for vertical bars and "),a("code",[t._v("'y'")]),t._v(" for horizontal bars.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("label")])]),t._v(" "),a("td",[t._v("The label for the dataset which appears in the legend and tooltips.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("order")])]),t._v(" "),a("td",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip, and legend.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("skipNull")])]),t._v(" "),a("td",[t._v("If "),a("code",[t._v("true")]),t._v(", null or undefined values will not be used for spacing calculations when determining bar size.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("stack")])]),t._v(" "),a("td",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack). "),a("a",{attrs:{href:"#stacked-bar-charts"}},[t._v("more")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("xAxisID")])]),t._v(" "),a("td",[t._v("The ID of the x-axis to plot this dataset on.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("yAxisID")])]),t._v(" "),a("td",[t._v("The ID of the y-axis to plot this dataset on.")])])])]),t._v(" "),a("h3",{attrs:{id:"styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#styling"}},[t._v("#")]),t._v(" Styling")]),t._v(" "),a("p",[t._v("The style of each bar can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("The bar background color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("The bar border color.")])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])])]),t._v(" "),a("td",[t._v("The edge to skip when drawing bar.")])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderwidth"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[t._v("The bar border width (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderradius"}},[a("code",[t._v("borderRadius")])])]),t._v(" "),a("td",[t._v("The bar border radius (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("minBarLength")])]),t._v(" "),a("td",[t._v("Set this to ensure that bars have a minimum length in pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",[t._v("Style of the point for legend. "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-styles"}},[t._v("more...")])],1)])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#bar-configuration"}},[a("code",[t._v("elements.bar.*")])]),t._v(" options.")],1),t._v(" "),a("h4",{attrs:{id:"borderskipped"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#borderskipped"}},[t._v("#")]),t._v(" borderSkipped")]),t._v(" "),a("p",[t._v("This setting is used to avoid drawing the bar stroke at the base of the fill, or disable the border radius.\nIn general, this does not need to be changed except when creating chart types\nthat derive from a bar chart.")]),t._v(" "),a("div",{staticClass:"custom-block tip"},[a("p",{staticClass:"custom-block-title"},[t._v("Note")]),t._v(" "),a("p",[t._v("For negative bars in a vertical chart, "),a("code",[t._v("top")]),t._v(" and "),a("code",[t._v("bottom")]),t._v(" are flipped. Same goes for "),a("code",[t._v("left")]),t._v(" and "),a("code",[t._v("right")]),t._v(" in a horizontal chart.")])]),t._v(" "),a("p",[t._v("Options are:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'start'")])]),t._v(" "),a("li",[a("code",[t._v("'end'")])]),t._v(" "),a("li",[a("code",[t._v("'bottom'")])]),t._v(" "),a("li",[a("code",[t._v("'left'")])]),t._v(" "),a("li",[a("code",[t._v("'top'")])]),t._v(" "),a("li",[a("code",[t._v("'right'")])]),t._v(" "),a("li",[a("code",[t._v("false")])])]),t._v(" "),a("h4",{attrs:{id:"borderwidth"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),a("p",[t._v("If this value is a number, it is applied to all sides of the rectangle (left, top, right, bottom), except "),a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])]),t._v(". If this value is an object, the "),a("code",[t._v("left")]),t._v(" property defines the left border width. Similarly, the "),a("code",[t._v("right")]),t._v(", "),a("code",[t._v("top")]),t._v(", and "),a("code",[t._v("bottom")]),t._v(" properties can also be specified. Omitted borders and "),a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])]),t._v(" are skipped.")]),t._v(" "),a("h4",{attrs:{id:"borderradius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[t._v("#")]),t._v(" borderRadius")]),t._v(" "),a("p",[t._v("If this value is a number, it is applied to all corners of the rectangle (topLeft, topRight, bottomLeft, bottomRight), except corners touching the "),a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])]),t._v(". If this value is an object, the "),a("code",[t._v("topLeft")]),t._v(" property defines the top-left corners border radius. Similarly, the "),a("code",[t._v("topRight")]),t._v(", "),a("code",[t._v("bottomLeft")]),t._v(", and "),a("code",[t._v("bottomRight")]),t._v(" properties can also be specified. Omitted corners and those touching the "),a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])]),t._v(" are skipped. For example if the "),a("code",[t._v("top")]),t._v(" border is skipped, the border radius for the corners "),a("code",[t._v("topLeft")]),t._v(" and "),a("code",[t._v("topRight")]),t._v(" will be skipped as well.")]),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each bar can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("hoverBackgroundColor")])]),t._v(" "),a("td",[t._v("The bar background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderColor")])]),t._v(" "),a("td",[t._v("The bar border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderWidth")])]),t._v(" "),a("td",[t._v("The bar border width when hovered (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderRadius")])]),t._v(" "),a("td",[t._v("The bar border radius when hovered (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#bar-configuration"}},[a("code",[t._v("elements.bar.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"barpercentage"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barpercentage"}},[t._v("#")]),t._v(" barPercentage")]),t._v(" "),a("p",[t._v("Percent (0-1) of the available width each bar should be within the category width. 1.0 will take the whole category width and put the bars right next to each other. "),a("a",{attrs:{href:"#barpercentage-vs-categorypercentage"}},[t._v("more...")])]),t._v(" "),a("h3",{attrs:{id:"categorypercentage"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#categorypercentage"}},[t._v("#")]),t._v(" categoryPercentage")]),t._v(" "),a("p",[t._v("Percent (0-1) of the available width each category should be within the sample width. "),a("a",{attrs:{href:"#barpercentage-vs-categorypercentage"}},[t._v("more...")])]),t._v(" "),a("h3",{attrs:{id:"barthickness"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barthickness"}},[t._v("#")]),t._v(" barThickness")]),t._v(" "),a("p",[t._v("If this value is a number, it is applied to the width of each bar, in pixels. When this is enforced, "),a("code",[t._v("barPercentage")]),t._v(" and "),a("code",[t._v("categoryPercentage")]),t._v(" are ignored.")]),t._v(" "),a("p",[t._v("If set to "),a("code",[t._v("'flex'")]),t._v(", the base sample widths are calculated automatically based on the previous and following samples so that they take the full available widths without overlap. Then, bars are sized using "),a("code",[t._v("barPercentage")]),t._v(" and "),a("code",[t._v("categoryPercentage")]),t._v(". There is no gap when the percentage options are 1. This mode generates bars with different widths when data are not evenly spaced.")]),t._v(" "),a("p",[t._v("If not set (default), the base sample widths are calculated using the smallest interval that prevents bar overlapping, and bars are sized using "),a("code",[t._v("barPercentage")]),t._v(" and "),a("code",[t._v("categoryPercentage")]),t._v(". This mode always generates bars equally sized.")]),t._v(" "),a("h3",{attrs:{id:"maxbarthickness"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxbarthickness"}},[t._v("#")]),t._v(" maxBarThickness")]),t._v(" "),a("p",[t._v("Set this to ensure that bars are not sized thicker than this.")]),t._v(" "),a("h2",{attrs:{id:"scale-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scale-configuration"}},[t._v("#")]),t._v(" Scale Configuration")]),t._v(" "),a("p",[t._v("The bar chart sets unique default values for the following configuration from the associated "),a("code",[t._v("scale")]),t._v(" options:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("offset")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, extra space is added to both edges and the axis is scaled to fit into the chart area.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("grid.offset")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, the bars for a particular data point fall between the grid lines. The grid line will move to the left by one half of the tick interval. If false, the grid line will go right down the middle of the bars. "),a("a",{attrs:{href:"#offsetgridlines"}},[t._v("more...")])])])])]),t._v(" "),a("h3",{attrs:{id:"example-scale-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#example-scale-configuration"}},[t._v("#")]),t._v(" Example scale configuration")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("options "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n grid"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n offset"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h3",{attrs:{id:"offset-grid-lines"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offset-grid-lines"}},[t._v("#")]),t._v(" Offset Grid Lines")]),t._v(" "),a("p",[t._v("If true, the bars for a particular data point fall between the grid lines. The grid line will move to the left by one half of the tick interval, which is the space between the grid lines. If false, the grid line will go right down the middle of the bars. This is set to true for a category scale in a bar chart while false for other scales or chart types by default.")]),t._v(" "),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("It is common to want to apply a configuration setting to all created bar charts. The global bar chart settings are stored in "),a("code",[t._v("Chart.overrides.bar")]),t._v(". Changing the global options only affects charts created after the change. Existing charts are not changed.")]),t._v(" "),a("h2",{attrs:{id:"barpercentage-vs-categorypercentage"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barpercentage-vs-categorypercentage"}},[t._v("#")]),t._v(" barPercentage vs categoryPercentage")]),t._v(" "),a("p",[t._v("The following shows the relationship between the bar percentage option and the category percentage option.")]),t._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[t._v("// categoryPercentage: 1.0\n// barPercentage: 1.0\nBar: | 1.0 | 1.0 |\nCategory: | 1.0 |\nSample: |===========|\n\n// categoryPercentage: 1.0\n// barPercentage: 0.5\nBar: |.5| |.5|\nCategory: | 1.0 |\nSample: |==============|\n\n// categoryPercentage: 0.5\n// barPercentage: 1.0\nBar: |1.0||1.0|\nCategory: | .5 |\nSample: |==================|\n")])])]),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("All of the supported "),a("RouterLink",{attrs:{to:"/general/data-structures.html"}},[t._v("data structures")]),t._v(" can be used with bar charts.")],1),t._v(" "),a("h2",{attrs:{id:"stacked-bar-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stacked-bar-chart"}},[t._v("#")]),t._v(" Stacked Bar Chart")]),t._v(" "),a("p",[t._v("Bar charts can be configured into stacked bar charts by changing the settings on the X and Y axes to enable stacking. Stacked bar charts can be used to show how one data series is made up of a number of smaller pieces.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" stackedBar "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n stacked"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n stacked"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"horizontal-bar-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#horizontal-bar-chart"}},[t._v("#")]),t._v(" Horizontal Bar Chart")]),t._v(" "),a("p",[t._v("A horizontal bar chart is a variation on a vertical bar chart. It is sometimes used to show trend data, and the comparison of multiple data sets side by side.\nTo achieve this you will have to set the "),a("code",[t._v("indexAxis")]),t._v(" property in the options object to "),a("code",[t._v("'y'")]),t._v(".\nThe default for this property is "),a("code",[t._v("'x'")]),t._v(" and thus will show vertical bars.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n axis: 'y',\n label: 'My First Dataset',\n data: [65, 59, 80, 81, 56, 55, 40],\n fill: false,\n backgroundColor: [\n 'rgba(255, 99, 132, 0.2)',\n 'rgba(255, 159, 64, 0.2)',\n 'rgba(255, 205, 86, 0.2)',\n 'rgba(75, 192, 192, 0.2)',\n 'rgba(54, 162, 235, 0.2)',\n 'rgba(153, 102, 255, 0.2)',\n 'rgba(201, 203, 207, 0.2)'\n ],\n borderColor: [\n 'rgb(255, 99, 132)',\n 'rgb(255, 159, 64)',\n 'rgb(255, 205, 86)',\n 'rgb(75, 192, 192)',\n 'rgb(54, 162, 235)',\n 'rgb(153, 102, 255)',\n 'rgb(201, 203, 207)'\n ],\n borderWidth: 1\n }]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data,\n options: {\n indexAxis: 'y',\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h3",{attrs:{id:"horizontal-bar-chart-config-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#horizontal-bar-chart-config-options"}},[t._v("#")]),t._v(" Horizontal Bar Chart config Options")]),t._v(" "),a("p",[t._v("The configuration options for the horizontal bar chart are the same as for the "),a("a",{attrs:{href:"#scale-configuration"}},[t._v("bar chart")]),t._v(". However, any options specified on the x-axis in a bar chart, are applied to the y-axis in a horizontal bar chart.")]),t._v(" "),a("h2",{attrs:{id:"internal-data-format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),a("p",[a("code",[t._v("{x, y, _custom}")]),t._v(" where "),a("code",[t._v("_custom")]),t._v(" is an optional object defining stacked bar properties: "),a("code",[t._v("{start, end, barStart, barEnd, min, max}")]),t._v(". "),a("code",[t._v("start")]),t._v(" and "),a("code",[t._v("end")]),t._v(" are the input values. Those two are repeated in "),a("code",[t._v("barStart")]),t._v(" (closer to origin), "),a("code",[t._v("barEnd")]),t._v(" (further from origin), "),a("code",[t._v("min")]),t._v(" and "),a("code",[t._v("max")]),t._v(".")])],1)}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/136.d7d24c70.js b/docs/latest/assets/js/136.f6489687.js similarity index 99% rename from docs/latest/assets/js/136.d7d24c70.js rename to docs/latest/assets/js/136.f6489687.js index 0d46ee49bf..60af23a143 100644 --- a/docs/latest/assets/js/136.d7d24c70.js +++ b/docs/latest/assets/js/136.f6489687.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[136],{461:function(t,e,a){"use strict";a.r(e);var r=a(7),o=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"bubble-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bubble-chart"}},[t._v("#")]),t._v(" Bubble Chart")]),t._v(" "),a("p",[t._v("A bubble chart is used to display three dimensions of data at the same time. The location of the bubble is determined by the first two dimensions and the corresponding horizontal and vertical axes. The third dimension is represented by the size of the individual bubbles.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst data = {\n datasets: [{\n label: 'First Dataset',\n data: [{\n x: 20,\n y: 30,\n r: 15\n }, {\n x: 40,\n y: 10,\n r: 10\n }],\n backgroundColor: 'rgb(255, 99, 132)'\n }]\n};\n// \n\n// \nconst config = {\n type: 'bubble',\n data: data,\n options: {}\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.bubble")]),t._v(" - options for all bubble datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.point")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[t._v("point elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The bubble chart allows a number of properties to be specified for each dataset. These are used to set display properties for a specific dataset. For example, the colour of the bubbles is generally set this way.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("3")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("object[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("4")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hitRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("label")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("order")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("pointStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'circle'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("rotation")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("radius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("3")])])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("label")])]),t._v(" "),a("td",[t._v("The label for the dataset which appears in the legend and tooltips.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("order")])]),t._v(" "),a("td",[t._v("The drawing order of dataset. Also affects order for tooltip and legend.")])])])]),t._v(" "),a("h3",{attrs:{id:"styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#styling"}},[t._v("#")]),t._v(" Styling")]),t._v(" "),a("p",[t._v("The style of each bubble can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("bubble background color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("bubble border color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderWidth")])]),t._v(" "),a("td",[t._v("bubble border width (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",[t._v("bubble "),a("a",{attrs:{href:"../configuration/elements#point-styles"}},[t._v("shape style")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("rotation")])]),t._v(" "),a("td",[t._v("bubble rotation (in degrees).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("radius")])]),t._v(" "),a("td",[t._v("bubble radius (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[a("code",[t._v("elements.point.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each bubble can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("hoverBackgroundColor")])]),t._v(" "),a("td",[t._v("bubble background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderColor")])]),t._v(" "),a("td",[t._v("bubble border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderWidth")])]),t._v(" "),a("td",[t._v("bubble border width when hovered (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverRadius")])]),t._v(" "),a("td",[t._v("bubble "),a("strong",[t._v("additional")]),t._v(" radius when hovered (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hitRadius")])]),t._v(" "),a("td",[t._v("bubble "),a("strong",[t._v("additional")]),t._v(" radius for hit detection (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[a("code",[t._v("elements.point.*")])]),t._v(" options.")],1),t._v(" "),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("We can also change the default values for the Bubble chart type. Doing so will give all bubble charts created after this point the new defaults. The default configuration for the bubble chart can be accessed at "),a("code",[t._v("Chart.overrides.bubble")]),t._v(".")]),t._v(" "),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("Bubble chart datasets need to contain a "),a("code",[t._v("data")]),t._v(" array of points, each point represented by an object containing the following properties:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// X Value")]),t._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Y Value")]),t._v("\n y"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Bubble radius in pixels (not scaled).")]),t._v("\n r"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("p",[a("strong",[t._v("Important:")]),t._v(" the radius property, "),a("code",[t._v("r")]),t._v(" is "),a("strong",[t._v("not")]),t._v(" scaled by the chart, it is the raw radius in pixels of the bubble that is drawn on the canvas.")]),t._v(" "),a("h2",{attrs:{id:"internal-data-format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),a("p",[a("code",[t._v("{x, y, _custom}")]),t._v(" where "),a("code",[t._v("_custom")]),t._v(" is the radius.")])],1)}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[136],{463:function(t,e,a){"use strict";a.r(e);var r=a(7),o=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"bubble-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bubble-chart"}},[t._v("#")]),t._v(" Bubble Chart")]),t._v(" "),a("p",[t._v("A bubble chart is used to display three dimensions of data at the same time. The location of the bubble is determined by the first two dimensions and the corresponding horizontal and vertical axes. The third dimension is represented by the size of the individual bubbles.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst data = {\n datasets: [{\n label: 'First Dataset',\n data: [{\n x: 20,\n y: 30,\n r: 15\n }, {\n x: 40,\n y: 10,\n r: 10\n }],\n backgroundColor: 'rgb(255, 99, 132)'\n }]\n};\n// \n\n// \nconst config = {\n type: 'bubble',\n data: data,\n options: {}\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.bubble")]),t._v(" - options for all bubble datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.point")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[t._v("point elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The bubble chart allows a number of properties to be specified for each dataset. These are used to set display properties for a specific dataset. For example, the colour of the bubbles is generally set this way.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("3")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("object[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("4")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hitRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("label")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("order")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("pointStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'circle'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("rotation")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("radius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("3")])])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("label")])]),t._v(" "),a("td",[t._v("The label for the dataset which appears in the legend and tooltips.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("order")])]),t._v(" "),a("td",[t._v("The drawing order of dataset. Also affects order for tooltip and legend.")])])])]),t._v(" "),a("h3",{attrs:{id:"styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#styling"}},[t._v("#")]),t._v(" Styling")]),t._v(" "),a("p",[t._v("The style of each bubble can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("bubble background color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("bubble border color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderWidth")])]),t._v(" "),a("td",[t._v("bubble border width (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",[t._v("bubble "),a("a",{attrs:{href:"../configuration/elements#point-styles"}},[t._v("shape style")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("rotation")])]),t._v(" "),a("td",[t._v("bubble rotation (in degrees).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("radius")])]),t._v(" "),a("td",[t._v("bubble radius (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[a("code",[t._v("elements.point.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each bubble can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("hoverBackgroundColor")])]),t._v(" "),a("td",[t._v("bubble background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderColor")])]),t._v(" "),a("td",[t._v("bubble border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderWidth")])]),t._v(" "),a("td",[t._v("bubble border width when hovered (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverRadius")])]),t._v(" "),a("td",[t._v("bubble "),a("strong",[t._v("additional")]),t._v(" radius when hovered (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hitRadius")])]),t._v(" "),a("td",[t._v("bubble "),a("strong",[t._v("additional")]),t._v(" radius for hit detection (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[a("code",[t._v("elements.point.*")])]),t._v(" options.")],1),t._v(" "),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("We can also change the default values for the Bubble chart type. Doing so will give all bubble charts created after this point the new defaults. The default configuration for the bubble chart can be accessed at "),a("code",[t._v("Chart.overrides.bubble")]),t._v(".")]),t._v(" "),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("Bubble chart datasets need to contain a "),a("code",[t._v("data")]),t._v(" array of points, each point represented by an object containing the following properties:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// X Value")]),t._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Y Value")]),t._v("\n y"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Bubble radius in pixels (not scaled).")]),t._v("\n r"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("p",[a("strong",[t._v("Important:")]),t._v(" the radius property, "),a("code",[t._v("r")]),t._v(" is "),a("strong",[t._v("not")]),t._v(" scaled by the chart, it is the raw radius in pixels of the bubble that is drawn on the canvas.")]),t._v(" "),a("h2",{attrs:{id:"internal-data-format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),a("p",[a("code",[t._v("{x, y, _custom}")]),t._v(" where "),a("code",[t._v("_custom")]),t._v(" is the radius.")])],1)}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/137.2f82698b.js b/docs/latest/assets/js/137.d8e51241.js similarity index 99% rename from docs/latest/assets/js/137.2f82698b.js rename to docs/latest/assets/js/137.d8e51241.js index 01fc5b577c..cac7d35c78 100644 --- a/docs/latest/assets/js/137.2f82698b.js +++ b/docs/latest/assets/js/137.d8e51241.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[137],{462:function(t,e,a){"use strict";a.r(e);var r=a(7),o=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"doughnut-and-pie-charts"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#doughnut-and-pie-charts"}},[t._v("#")]),t._v(" Doughnut and Pie Charts")]),t._v(" "),a("p",[t._v("Pie and doughnut charts are probably the most commonly used charts. They are divided into segments, the arc of each segment shows the proportional value of each piece of data.")]),t._v(" "),a("p",[t._v("They are excellent at showing the relational proportions between data.")]),t._v(" "),a("p",[t._v("Pie and doughnut charts are effectively the same class in Chart.js, but have one different default value - their "),a("code",[t._v("cutout")]),t._v(". This equates to what portion of the inner should be cut out. This defaults to "),a("code",[t._v("0")]),t._v(" for pie charts, and "),a("code",[t._v("'50%'")]),t._v(" for doughnuts.")]),t._v(" "),a("p",[t._v("They are also registered under two aliases in the "),a("code",[t._v("Chart")]),t._v(" core. Other than their different default value, and different alias, they are exactly the same.")]),t._v(" "),a("tabs",[a("tab",{attrs:{name:"Doughnut"}},[a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Red',\n 'Blue',\n 'Yellow'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [300, 50, 100],\n backgroundColor: [\n 'rgb(255, 99, 132)',\n 'rgb(54, 162, 235)',\n 'rgb(255, 205, 86)'\n ],\n hoverOffset: 4\n }]\n};\n// \n\n// \nconst config = {\n type: 'doughnut',\n data: data,\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1),t._v(" "),a("tab",{attrs:{name:"Pie"}},[a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Red',\n 'Blue',\n 'Yellow'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [300, 50, 100],\n backgroundColor: [\n 'rgb(255, 99, 132)',\n 'rgb(54, 162, 235)',\n 'rgb(255, 205, 86)'\n ],\n hoverOffset: 4\n }]\n};\n// \n\n// \nconst config = {\n type: 'pie',\n data: data,\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)],1),t._v(" "),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.doughnut")]),t._v(" - options for all doughnut datasets")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.pie")]),t._v(" - options for all pie datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.arc")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[t._v("arc elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The doughnut/pie chart allows a number of properties to be specified for each dataset. These are used to set display properties for a specific dataset. For example, the colours of the dataset's arcs are generally set this way.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#border-alignment"}},[a("code",[t._v("borderAlign")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'center'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'#fff'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#border-radius"}},[a("code",[t._v("borderRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("2")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("circumference")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interations"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverOffset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("offset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("rotation")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("weight")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("1")])])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("circumference")])]),t._v(" "),a("td",[t._v("Per-dataset override for the sweep that the arcs cover")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("rotation")])]),t._v(" "),a("td",[t._v("Per-dataset override for the starting angle to draw arcs from")])])])]),t._v(" "),a("h3",{attrs:{id:"styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#styling"}},[t._v("#")]),t._v(" Styling")]),t._v(" "),a("p",[t._v("The style of each arc can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("arc background color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("arc border color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderWidth")])]),t._v(" "),a("td",[t._v("arc border width (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("offset")])]),t._v(" "),a("td",[t._v("arc offset (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("weight")])]),t._v(" "),a("td",[t._v("The relative thickness of the dataset. Providing a value for weight will cause the pie or doughnut dataset to be drawn with a thickness relative to the sum of all the dataset weight values.")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[a("code",[t._v("elements.arc.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"border-alignment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#border-alignment"}},[t._v("#")]),t._v(" Border Alignment")]),t._v(" "),a("p",[t._v("The following values are supported for "),a("code",[t._v("borderAlign")]),t._v(".")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'center'")]),t._v(" (default)")]),t._v(" "),a("li",[a("code",[t._v("'inner'")])])]),t._v(" "),a("p",[t._v("When "),a("code",[t._v("'center'")]),t._v(" is set, the borders of arcs next to each other will overlap. When "),a("code",[t._v("'inner'")]),t._v(" is set, it is guaranteed that all borders will not overlap.")]),t._v(" "),a("h3",{attrs:{id:"border-radius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#border-radius"}},[t._v("#")]),t._v(" Border Radius")]),t._v(" "),a("p",[t._v("If this value is a number, it is applied to all corners of the arc (outerStart, outerEnd, innerStart, innerRight). If this value is an object, the "),a("code",[t._v("outerStart")]),t._v(" property defines the outer-start corner's border radius. Similarly, the "),a("code",[t._v("outerEnd")]),t._v(", "),a("code",[t._v("innerStart")]),t._v(", and "),a("code",[t._v("innerEnd")]),t._v(" properties can also be specified.")]),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each arc can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("hoverBackgroundColor")])]),t._v(" "),a("td",[t._v("arc background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderColor")])]),t._v(" "),a("td",[t._v("arc border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderWidth")])]),t._v(" "),a("td",[t._v("arc border width when hovered (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverOffset")])]),t._v(" "),a("td",[t._v("arc offset when hovered (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[a("code",[t._v("elements.arc.*")])]),t._v(" options.")],1),t._v(" "),a("h2",{attrs:{id:"config-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#config-options"}},[t._v("#")]),t._v(" Config Options")]),t._v(" "),a("p",[t._v("These are the customisation options specific to Pie & Doughnut charts. These options are looked up on access, and form together with the global chart configuration the options of the chart.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("cutout")])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("50%")]),t._v(" - for doughnut, "),a("code",[t._v("0")]),t._v(" - for pie")]),t._v(" "),a("td",[t._v("The portion of the chart that is cut out of the middle. If "),a("code",[t._v("string")]),t._v(" and ending with '%', percentage of the chart radius. "),a("code",[t._v("number")]),t._v(" is considered to be pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("radius")])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("100%")])]),t._v(" "),a("td",[t._v("The outer radius of the chart. If "),a("code",[t._v("string")]),t._v(" and ending with '%', percentage of the maximum radius. "),a("code",[t._v("number")]),t._v(" is considered to be pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("rotation")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("0")]),t._v(" "),a("td",[t._v("Starting angle to draw arcs from.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("circumference")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("360")]),t._v(" "),a("td",[t._v("Sweep to allow arcs to cover.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("animation.animateRotate")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, the chart will animate in with a rotation animation. This property is in the "),a("code",[t._v("options.animation")]),t._v(" object.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("animation.animateScale")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("If true, will animate scaling the chart from the center outwards.")])])])]),t._v(" "),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("We can also change these default values for each Doughnut type that is created, this object is available at "),a("code",[t._v("Chart.overrides.doughnut")]),t._v(". Pie charts also have a clone of these defaults available to change at "),a("code",[t._v("Chart.overrides.pie")]),t._v(", with the only difference being "),a("code",[t._v("cutout")]),t._v(" being set to 0.")]),t._v(" "),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("For a pie chart, datasets need to contain an array of data points. The data points should be a number, Chart.js will total all of the numbers and calculate the relative proportion of each.")]),t._v(" "),a("p",[t._v("You also need to specify an array of labels so that tooltips appear correctly.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("data "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// These labels appear in the legend and in the tooltips when hovering different arcs")]),t._v("\n labels"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Red'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Yellow'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Blue'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])],1)}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[137],{460:function(t,e,a){"use strict";a.r(e);var r=a(7),o=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"doughnut-and-pie-charts"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#doughnut-and-pie-charts"}},[t._v("#")]),t._v(" Doughnut and Pie Charts")]),t._v(" "),a("p",[t._v("Pie and doughnut charts are probably the most commonly used charts. They are divided into segments, the arc of each segment shows the proportional value of each piece of data.")]),t._v(" "),a("p",[t._v("They are excellent at showing the relational proportions between data.")]),t._v(" "),a("p",[t._v("Pie and doughnut charts are effectively the same class in Chart.js, but have one different default value - their "),a("code",[t._v("cutout")]),t._v(". This equates to what portion of the inner should be cut out. This defaults to "),a("code",[t._v("0")]),t._v(" for pie charts, and "),a("code",[t._v("'50%'")]),t._v(" for doughnuts.")]),t._v(" "),a("p",[t._v("They are also registered under two aliases in the "),a("code",[t._v("Chart")]),t._v(" core. Other than their different default value, and different alias, they are exactly the same.")]),t._v(" "),a("tabs",[a("tab",{attrs:{name:"Doughnut"}},[a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Red',\n 'Blue',\n 'Yellow'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [300, 50, 100],\n backgroundColor: [\n 'rgb(255, 99, 132)',\n 'rgb(54, 162, 235)',\n 'rgb(255, 205, 86)'\n ],\n hoverOffset: 4\n }]\n};\n// \n\n// \nconst config = {\n type: 'doughnut',\n data: data,\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1),t._v(" "),a("tab",{attrs:{name:"Pie"}},[a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Red',\n 'Blue',\n 'Yellow'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [300, 50, 100],\n backgroundColor: [\n 'rgb(255, 99, 132)',\n 'rgb(54, 162, 235)',\n 'rgb(255, 205, 86)'\n ],\n hoverOffset: 4\n }]\n};\n// \n\n// \nconst config = {\n type: 'pie',\n data: data,\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)],1),t._v(" "),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.doughnut")]),t._v(" - options for all doughnut datasets")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.pie")]),t._v(" - options for all pie datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.arc")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[t._v("arc elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The doughnut/pie chart allows a number of properties to be specified for each dataset. These are used to set display properties for a specific dataset. For example, the colours of the dataset's arcs are generally set this way.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#border-alignment"}},[a("code",[t._v("borderAlign")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'center'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'#fff'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#border-radius"}},[a("code",[t._v("borderRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("2")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("circumference")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interations"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverOffset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("offset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("rotation")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("weight")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("1")])])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("circumference")])]),t._v(" "),a("td",[t._v("Per-dataset override for the sweep that the arcs cover")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("rotation")])]),t._v(" "),a("td",[t._v("Per-dataset override for the starting angle to draw arcs from")])])])]),t._v(" "),a("h3",{attrs:{id:"styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#styling"}},[t._v("#")]),t._v(" Styling")]),t._v(" "),a("p",[t._v("The style of each arc can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("arc background color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("arc border color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderWidth")])]),t._v(" "),a("td",[t._v("arc border width (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("offset")])]),t._v(" "),a("td",[t._v("arc offset (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("weight")])]),t._v(" "),a("td",[t._v("The relative thickness of the dataset. Providing a value for weight will cause the pie or doughnut dataset to be drawn with a thickness relative to the sum of all the dataset weight values.")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[a("code",[t._v("elements.arc.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"border-alignment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#border-alignment"}},[t._v("#")]),t._v(" Border Alignment")]),t._v(" "),a("p",[t._v("The following values are supported for "),a("code",[t._v("borderAlign")]),t._v(".")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'center'")]),t._v(" (default)")]),t._v(" "),a("li",[a("code",[t._v("'inner'")])])]),t._v(" "),a("p",[t._v("When "),a("code",[t._v("'center'")]),t._v(" is set, the borders of arcs next to each other will overlap. When "),a("code",[t._v("'inner'")]),t._v(" is set, it is guaranteed that all borders will not overlap.")]),t._v(" "),a("h3",{attrs:{id:"border-radius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#border-radius"}},[t._v("#")]),t._v(" Border Radius")]),t._v(" "),a("p",[t._v("If this value is a number, it is applied to all corners of the arc (outerStart, outerEnd, innerStart, innerRight). If this value is an object, the "),a("code",[t._v("outerStart")]),t._v(" property defines the outer-start corner's border radius. Similarly, the "),a("code",[t._v("outerEnd")]),t._v(", "),a("code",[t._v("innerStart")]),t._v(", and "),a("code",[t._v("innerEnd")]),t._v(" properties can also be specified.")]),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each arc can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("hoverBackgroundColor")])]),t._v(" "),a("td",[t._v("arc background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderColor")])]),t._v(" "),a("td",[t._v("arc border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderWidth")])]),t._v(" "),a("td",[t._v("arc border width when hovered (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverOffset")])]),t._v(" "),a("td",[t._v("arc offset when hovered (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[a("code",[t._v("elements.arc.*")])]),t._v(" options.")],1),t._v(" "),a("h2",{attrs:{id:"config-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#config-options"}},[t._v("#")]),t._v(" Config Options")]),t._v(" "),a("p",[t._v("These are the customisation options specific to Pie & Doughnut charts. These options are looked up on access, and form together with the global chart configuration the options of the chart.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("cutout")])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("50%")]),t._v(" - for doughnut, "),a("code",[t._v("0")]),t._v(" - for pie")]),t._v(" "),a("td",[t._v("The portion of the chart that is cut out of the middle. If "),a("code",[t._v("string")]),t._v(" and ending with '%', percentage of the chart radius. "),a("code",[t._v("number")]),t._v(" is considered to be pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("radius")])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("100%")])]),t._v(" "),a("td",[t._v("The outer radius of the chart. If "),a("code",[t._v("string")]),t._v(" and ending with '%', percentage of the maximum radius. "),a("code",[t._v("number")]),t._v(" is considered to be pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("rotation")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("0")]),t._v(" "),a("td",[t._v("Starting angle to draw arcs from.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("circumference")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("360")]),t._v(" "),a("td",[t._v("Sweep to allow arcs to cover.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("animation.animateRotate")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, the chart will animate in with a rotation animation. This property is in the "),a("code",[t._v("options.animation")]),t._v(" object.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("animation.animateScale")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("If true, will animate scaling the chart from the center outwards.")])])])]),t._v(" "),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("We can also change these default values for each Doughnut type that is created, this object is available at "),a("code",[t._v("Chart.overrides.doughnut")]),t._v(". Pie charts also have a clone of these defaults available to change at "),a("code",[t._v("Chart.overrides.pie")]),t._v(", with the only difference being "),a("code",[t._v("cutout")]),t._v(" being set to 0.")]),t._v(" "),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("For a pie chart, datasets need to contain an array of data points. The data points should be a number, Chart.js will total all of the numbers and calculate the relative proportion of each.")]),t._v(" "),a("p",[t._v("You also need to specify an array of labels so that tooltips appear correctly.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("data "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// These labels appear in the legend and in the tooltips when hovering different arcs")]),t._v("\n labels"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Red'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Yellow'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Blue'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])],1)}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/138.28a46530.js b/docs/latest/assets/js/138.fdf11c55.js similarity index 99% rename from docs/latest/assets/js/138.28a46530.js rename to docs/latest/assets/js/138.fdf11c55.js index baf6327180..1d78ac4db0 100644 --- a/docs/latest/assets/js/138.28a46530.js +++ b/docs/latest/assets/js/138.fdf11c55.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[138],{463:function(t,e,a){"use strict";a.r(e);var n=a(7),o=Object(n.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"line-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#line-chart"}},[t._v("#")]),t._v(" Line Chart")]),t._v(" "),a("p",[t._v("A line chart is a way of plotting data points on a line. Often, it is used to show trend data, or the comparison of two data sets.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First Dataset',\n data: [65, 59, 80, 81, 56, 55, 40],\n fill: false,\n borderColor: 'rgb(75, 192, 192)',\n tension: 0.1\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.line")]),t._v(" - options for all line datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.line")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#line-configuration"}},[t._v("line elements")])],1),t._v(" "),a("li",[a("code",[t._v("options.elements.point")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[t._v("point elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The line chart allows a number of properties to be specified for each dataset. These are used to set display properties for a specific dataset. For example, the colour of a line is generally set this way.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderCapStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'butt'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderDash")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("[]")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderDashOffset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0.0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderJoinStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'miter'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("3")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#cubicinterpolationmode"}},[a("code",[t._v("cubicInterpolationMode")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'default'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("object")]),t._v("|"),a("code",[t._v("object[]")]),t._v("| "),a("code",[t._v("number[]")]),t._v("|"),a("code",[t._v("string[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("fill")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("false")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderCapStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderDash")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderDashOffset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderJoinStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("indexAxis")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'x'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("label")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("''")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("order")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBackgroundColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBorderColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointHitRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBackgroundColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBorderColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("4")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("3")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointRotation")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")]),t._v("|"),a("code",[t._v("Image")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'circle'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#segment"}},[a("code",[t._v("segment")])])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("showLine")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("true")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("spanGaps")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("stack")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'line'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#stepped"}},[a("code",[t._v("stepped")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("false")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("tension")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("xAxisID")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[t._v("first x axis")])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("yAxisID")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[t._v("first y axis")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("indexAxis")])]),t._v(" "),a("td",[t._v("The base axis of the dataset. "),a("code",[t._v("'x'")]),t._v(" for horizontal lines and "),a("code",[t._v("'y'")]),t._v(" for vertical lines.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("label")])]),t._v(" "),a("td",[t._v("The label for the dataset which appears in the legend and tooltips.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("order")])]),t._v(" "),a("td",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip, and legend.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("stack")])]),t._v(" "),a("td",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack). "),a("a",{attrs:{href:"#stacked-area-charts"}},[t._v("more")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("xAxisID")])]),t._v(" "),a("td",[t._v("The ID of the x-axis to plot this dataset on.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("yAxisID")])]),t._v(" "),a("td",[t._v("The ID of the y-axis to plot this dataset on.")])])])]),t._v(" "),a("h3",{attrs:{id:"point-styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#point-styling"}},[t._v("#")]),t._v(" Point Styling")]),t._v(" "),a("p",[t._v("The style of each point can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("pointBackgroundColor")])]),t._v(" "),a("td",[t._v("The fill color for points.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointBorderColor")])]),t._v(" "),a("td",[t._v("The border color for points.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointBorderWidth")])]),t._v(" "),a("td",[t._v("The width of the point border in pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHitRadius")])]),t._v(" "),a("td",[t._v("The pixel size of the non-displayed point that reacts to mouse events.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointRadius")])]),t._v(" "),a("td",[t._v("The radius of the point shape. If set to 0, the point is not rendered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointRotation")])]),t._v(" "),a("td",[t._v("The rotation of the point in degrees.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",[t._v("Style of the point. "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-styles"}},[t._v("more...")])],1)])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback first to the dataset options then to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[a("code",[t._v("elements.point.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"line-styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#line-styling"}},[t._v("#")]),t._v(" Line Styling")]),t._v(" "),a("p",[t._v("The style of the line can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("The line fill color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderCapStyle")])]),t._v(" "),a("td",[t._v("Cap style of the line. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("The line color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderDash")])]),t._v(" "),a("td",[t._v("Length and spacing of dashes. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderDashOffset")])]),t._v(" "),a("td",[t._v("Offset for line dashes. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderJoinStyle")])]),t._v(" "),a("td",[t._v("Line joint style. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderWidth")])]),t._v(" "),a("td",[t._v("The line width (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("fill")])]),t._v(" "),a("td",[t._v("How to fill the area under the line. See "),a("RouterLink",{attrs:{to:"/charts/area.html"}},[t._v("area charts")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("tension")])]),t._v(" "),a("td",[t._v("Bezier curve tension of the line. Set to 0 to draw straightlines. This option is ignored if monotone cubic interpolation is used.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("showLine")])]),t._v(" "),a("td",[t._v("If false, the line is not drawn for this dataset.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("spanGaps")])]),t._v(" "),a("td",[t._v("If true, lines will be drawn between points with no or null data. If false, points with "),a("code",[t._v("null")]),t._v(" data will create a break in the line. Can also be a number specifying the maximum gap length to span. The unit of the value depends on the scale used.")])])])]),t._v(" "),a("p",[t._v("If the value is "),a("code",[t._v("undefined")]),t._v(", "),a("code",[t._v("showLine")]),t._v(" and "),a("code",[t._v("spanGaps")]),t._v(" fallback to the associated "),a("a",{attrs:{href:"#configuration-options"}},[t._v("chart configuration options")]),t._v(". The rest of the values fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#line-configuration"}},[a("code",[t._v("elements.line.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each point can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("pointHoverBackgroundColor")])]),t._v(" "),a("td",[t._v("Point background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverBorderColor")])]),t._v(" "),a("td",[t._v("Point border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverBorderWidth")])]),t._v(" "),a("td",[t._v("Border width of point when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverRadius")])]),t._v(" "),a("td",[t._v("The radius of the point when hovered.")])])])]),t._v(" "),a("h3",{attrs:{id:"cubicinterpolationmode"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cubicinterpolationmode"}},[t._v("#")]),t._v(" cubicInterpolationMode")]),t._v(" "),a("p",[t._v("The following interpolation modes are supported.")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'default'")])]),t._v(" "),a("li",[a("code",[t._v("'monotone'")])])]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("'default'")]),t._v(" algorithm uses a custom weighted cubic interpolation, which produces pleasant curves for all types of datasets.")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("'monotone'")]),t._v(" algorithm is more suited to "),a("code",[t._v("y = f(x)")]),t._v(" datasets: it preserves monotonicity (or piecewise monotonicity) of the dataset being interpolated, and ensures local extremums (if any) stay at input data points.")]),t._v(" "),a("p",[t._v("If left untouched ("),a("code",[t._v("undefined")]),t._v("), the global "),a("code",[t._v("options.elements.line.cubicInterpolationMode")]),t._v(" property is used.")]),t._v(" "),a("h3",{attrs:{id:"segment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#segment"}},[t._v("#")]),t._v(" Segment")]),t._v(" "),a("p",[t._v("Line segment styles can be overridden by scriptable options in the "),a("code",[t._v("segment")]),t._v(" object. Currently all of the "),a("code",[t._v("border*")]),t._v(" and "),a("code",[t._v("backgroundColor")]),t._v(" options are supported. The segment styles are resolved for each section of the line between each point. "),a("code",[t._v("undefined")]),t._v(" fallbacks to main line styles.")]),t._v(" "),a("p",[t._v("Context for the scriptable segment contains the following properties:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'segment'")])]),t._v(" "),a("li",[a("code",[t._v("p0")]),t._v(": first point element")]),t._v(" "),a("li",[a("code",[t._v("p1")]),t._v(": second point element")])]),t._v(" "),a("p",[a("RouterLink",{attrs:{to:"/samples/line/segments.html"}},[t._v("Example usage")])],1),t._v(" "),a("h3",{attrs:{id:"stepped"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stepped"}},[t._v("#")]),t._v(" Stepped")]),t._v(" "),a("p",[t._v("The following values are supported for "),a("code",[t._v("stepped")]),t._v(".")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("false")]),t._v(": No Step Interpolation (default)")]),t._v(" "),a("li",[a("code",[t._v("true")]),t._v(": Step-before Interpolation (eq. "),a("code",[t._v("'before'")]),t._v(")")]),t._v(" "),a("li",[a("code",[t._v("'before'")]),t._v(": Step-before Interpolation")]),t._v(" "),a("li",[a("code",[t._v("'after'")]),t._v(": Step-after Interpolation")]),t._v(" "),a("li",[a("code",[t._v("'middle'")]),t._v(": Step-middle Interpolation")])]),t._v(" "),a("p",[t._v("If the "),a("code",[t._v("stepped")]),t._v(" value is set to anything other than false, "),a("code",[t._v("tension")]),t._v(" will be ignored.")]),t._v(" "),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("It is common to want to apply a configuration setting to all created line charts. The global line chart settings are stored in "),a("code",[t._v("Chart.overrides.line")]),t._v(". Changing the global options only affects charts created after the change. Existing charts are not changed.")]),t._v(" "),a("p",[t._v("For example, to configure all line charts with "),a("code",[t._v("spanGaps = true")]),t._v(" you would do:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("overrides"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("line"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("spanGaps "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("All of the supported "),a("RouterLink",{attrs:{to:"/general/data-structures.html"}},[t._v("data structures")]),t._v(" can be used with line charts.")],1),t._v(" "),a("h2",{attrs:{id:"stacked-area-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stacked-area-chart"}},[t._v("#")]),t._v(" Stacked Area Chart")]),t._v(" "),a("p",[t._v("Line charts can be configured into stacked area charts by changing the settings on the y-axis to enable stacking. Stacked area charts can be used to show how one data trend is made up of a number of smaller pieces.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" stackedLine "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n y"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n stacked"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"vertical-line-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#vertical-line-chart"}},[t._v("#")]),t._v(" Vertical Line Chart")]),t._v(" "),a("p",[t._v("A vertical line chart is a variation on the horizontal line chart.\nTo achieve this you will have to set the "),a("code",[t._v("indexAxis")]),t._v(" property in the options object to "),a("code",[t._v("'y'")]),t._v(".\nThe default for this property is "),a("code",[t._v("'x'")]),t._v(" and thus will show horizontal lines.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n axis: 'y',\n label: 'My First Dataset',\n data: [65, 59, 80, 81, 56, 55, 40],\n fill: false,\n backgroundColor: [\n 'rgba(255, 99, 132, 0.2)',\n 'rgba(255, 159, 64, 0.2)',\n 'rgba(255, 205, 86, 0.2)',\n 'rgba(75, 192, 192, 0.2)',\n 'rgba(54, 162, 235, 0.2)',\n 'rgba(153, 102, 255, 0.2)',\n 'rgba(201, 203, 207, 0.2)'\n ],\n borderColor: [\n 'rgb(255, 99, 132)',\n 'rgb(255, 159, 64)',\n 'rgb(255, 205, 86)',\n 'rgb(75, 192, 192)',\n 'rgb(54, 162, 235)',\n 'rgb(153, 102, 255)',\n 'rgb(201, 203, 207)'\n ],\n borderWidth: 1\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n indexAxis: 'y',\n scales: {\n x: {\n beginAtZero: true\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h3",{attrs:{id:"config-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#config-options"}},[t._v("#")]),t._v(" Config Options")]),t._v(" "),a("p",[t._v("The configuration options for the vertical line chart are the same as for the "),a("a",{attrs:{href:"#configuration-options"}},[t._v("line chart")]),t._v(". However, any options specified on the x-axis in a line chart, are applied to the y-axis in a vertical line chart.")]),t._v(" "),a("h2",{attrs:{id:"internal-data-format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),a("p",[a("code",[t._v("{x, y}")])])],1)}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[138],{461:function(t,e,a){"use strict";a.r(e);var n=a(7),o=Object(n.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"line-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#line-chart"}},[t._v("#")]),t._v(" Line Chart")]),t._v(" "),a("p",[t._v("A line chart is a way of plotting data points on a line. Often, it is used to show trend data, or the comparison of two data sets.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First Dataset',\n data: [65, 59, 80, 81, 56, 55, 40],\n fill: false,\n borderColor: 'rgb(75, 192, 192)',\n tension: 0.1\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.line")]),t._v(" - options for all line datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.line")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#line-configuration"}},[t._v("line elements")])],1),t._v(" "),a("li",[a("code",[t._v("options.elements.point")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[t._v("point elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The line chart allows a number of properties to be specified for each dataset. These are used to set display properties for a specific dataset. For example, the colour of a line is generally set this way.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderCapStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'butt'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderDash")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("[]")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderDashOffset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0.0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderJoinStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'miter'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("3")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#cubicinterpolationmode"}},[a("code",[t._v("cubicInterpolationMode")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'default'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("object")]),t._v("|"),a("code",[t._v("object[]")]),t._v("| "),a("code",[t._v("number[]")]),t._v("|"),a("code",[t._v("string[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("fill")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("false")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderCapStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderDash")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderDashOffset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderJoinStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("indexAxis")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'x'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("label")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("''")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("order")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBackgroundColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBorderColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointHitRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBackgroundColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBorderColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("4")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("3")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointRotation")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")]),t._v("|"),a("code",[t._v("Image")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'circle'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#segment"}},[a("code",[t._v("segment")])])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("showLine")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("true")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("spanGaps")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("stack")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'line'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#stepped"}},[a("code",[t._v("stepped")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("false")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("tension")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("xAxisID")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[t._v("first x axis")])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("yAxisID")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[t._v("first y axis")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("indexAxis")])]),t._v(" "),a("td",[t._v("The base axis of the dataset. "),a("code",[t._v("'x'")]),t._v(" for horizontal lines and "),a("code",[t._v("'y'")]),t._v(" for vertical lines.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("label")])]),t._v(" "),a("td",[t._v("The label for the dataset which appears in the legend and tooltips.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("order")])]),t._v(" "),a("td",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip, and legend.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("stack")])]),t._v(" "),a("td",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack). "),a("a",{attrs:{href:"#stacked-area-charts"}},[t._v("more")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("xAxisID")])]),t._v(" "),a("td",[t._v("The ID of the x-axis to plot this dataset on.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("yAxisID")])]),t._v(" "),a("td",[t._v("The ID of the y-axis to plot this dataset on.")])])])]),t._v(" "),a("h3",{attrs:{id:"point-styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#point-styling"}},[t._v("#")]),t._v(" Point Styling")]),t._v(" "),a("p",[t._v("The style of each point can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("pointBackgroundColor")])]),t._v(" "),a("td",[t._v("The fill color for points.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointBorderColor")])]),t._v(" "),a("td",[t._v("The border color for points.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointBorderWidth")])]),t._v(" "),a("td",[t._v("The width of the point border in pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHitRadius")])]),t._v(" "),a("td",[t._v("The pixel size of the non-displayed point that reacts to mouse events.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointRadius")])]),t._v(" "),a("td",[t._v("The radius of the point shape. If set to 0, the point is not rendered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointRotation")])]),t._v(" "),a("td",[t._v("The rotation of the point in degrees.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",[t._v("Style of the point. "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-styles"}},[t._v("more...")])],1)])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback first to the dataset options then to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[a("code",[t._v("elements.point.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"line-styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#line-styling"}},[t._v("#")]),t._v(" Line Styling")]),t._v(" "),a("p",[t._v("The style of the line can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("The line fill color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderCapStyle")])]),t._v(" "),a("td",[t._v("Cap style of the line. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("The line color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderDash")])]),t._v(" "),a("td",[t._v("Length and spacing of dashes. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderDashOffset")])]),t._v(" "),a("td",[t._v("Offset for line dashes. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderJoinStyle")])]),t._v(" "),a("td",[t._v("Line joint style. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderWidth")])]),t._v(" "),a("td",[t._v("The line width (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("fill")])]),t._v(" "),a("td",[t._v("How to fill the area under the line. See "),a("RouterLink",{attrs:{to:"/charts/area.html"}},[t._v("area charts")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("tension")])]),t._v(" "),a("td",[t._v("Bezier curve tension of the line. Set to 0 to draw straightlines. This option is ignored if monotone cubic interpolation is used.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("showLine")])]),t._v(" "),a("td",[t._v("If false, the line is not drawn for this dataset.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("spanGaps")])]),t._v(" "),a("td",[t._v("If true, lines will be drawn between points with no or null data. If false, points with "),a("code",[t._v("null")]),t._v(" data will create a break in the line. Can also be a number specifying the maximum gap length to span. The unit of the value depends on the scale used.")])])])]),t._v(" "),a("p",[t._v("If the value is "),a("code",[t._v("undefined")]),t._v(", "),a("code",[t._v("showLine")]),t._v(" and "),a("code",[t._v("spanGaps")]),t._v(" fallback to the associated "),a("a",{attrs:{href:"#configuration-options"}},[t._v("chart configuration options")]),t._v(". The rest of the values fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#line-configuration"}},[a("code",[t._v("elements.line.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each point can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("pointHoverBackgroundColor")])]),t._v(" "),a("td",[t._v("Point background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverBorderColor")])]),t._v(" "),a("td",[t._v("Point border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverBorderWidth")])]),t._v(" "),a("td",[t._v("Border width of point when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverRadius")])]),t._v(" "),a("td",[t._v("The radius of the point when hovered.")])])])]),t._v(" "),a("h3",{attrs:{id:"cubicinterpolationmode"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cubicinterpolationmode"}},[t._v("#")]),t._v(" cubicInterpolationMode")]),t._v(" "),a("p",[t._v("The following interpolation modes are supported.")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'default'")])]),t._v(" "),a("li",[a("code",[t._v("'monotone'")])])]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("'default'")]),t._v(" algorithm uses a custom weighted cubic interpolation, which produces pleasant curves for all types of datasets.")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("'monotone'")]),t._v(" algorithm is more suited to "),a("code",[t._v("y = f(x)")]),t._v(" datasets: it preserves monotonicity (or piecewise monotonicity) of the dataset being interpolated, and ensures local extremums (if any) stay at input data points.")]),t._v(" "),a("p",[t._v("If left untouched ("),a("code",[t._v("undefined")]),t._v("), the global "),a("code",[t._v("options.elements.line.cubicInterpolationMode")]),t._v(" property is used.")]),t._v(" "),a("h3",{attrs:{id:"segment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#segment"}},[t._v("#")]),t._v(" Segment")]),t._v(" "),a("p",[t._v("Line segment styles can be overridden by scriptable options in the "),a("code",[t._v("segment")]),t._v(" object. Currently all of the "),a("code",[t._v("border*")]),t._v(" and "),a("code",[t._v("backgroundColor")]),t._v(" options are supported. The segment styles are resolved for each section of the line between each point. "),a("code",[t._v("undefined")]),t._v(" fallbacks to main line styles.")]),t._v(" "),a("p",[t._v("Context for the scriptable segment contains the following properties:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'segment'")])]),t._v(" "),a("li",[a("code",[t._v("p0")]),t._v(": first point element")]),t._v(" "),a("li",[a("code",[t._v("p1")]),t._v(": second point element")])]),t._v(" "),a("p",[a("RouterLink",{attrs:{to:"/samples/line/segments.html"}},[t._v("Example usage")])],1),t._v(" "),a("h3",{attrs:{id:"stepped"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stepped"}},[t._v("#")]),t._v(" Stepped")]),t._v(" "),a("p",[t._v("The following values are supported for "),a("code",[t._v("stepped")]),t._v(".")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("false")]),t._v(": No Step Interpolation (default)")]),t._v(" "),a("li",[a("code",[t._v("true")]),t._v(": Step-before Interpolation (eq. "),a("code",[t._v("'before'")]),t._v(")")]),t._v(" "),a("li",[a("code",[t._v("'before'")]),t._v(": Step-before Interpolation")]),t._v(" "),a("li",[a("code",[t._v("'after'")]),t._v(": Step-after Interpolation")]),t._v(" "),a("li",[a("code",[t._v("'middle'")]),t._v(": Step-middle Interpolation")])]),t._v(" "),a("p",[t._v("If the "),a("code",[t._v("stepped")]),t._v(" value is set to anything other than false, "),a("code",[t._v("tension")]),t._v(" will be ignored.")]),t._v(" "),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("It is common to want to apply a configuration setting to all created line charts. The global line chart settings are stored in "),a("code",[t._v("Chart.overrides.line")]),t._v(". Changing the global options only affects charts created after the change. Existing charts are not changed.")]),t._v(" "),a("p",[t._v("For example, to configure all line charts with "),a("code",[t._v("spanGaps = true")]),t._v(" you would do:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("overrides"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("line"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("spanGaps "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("All of the supported "),a("RouterLink",{attrs:{to:"/general/data-structures.html"}},[t._v("data structures")]),t._v(" can be used with line charts.")],1),t._v(" "),a("h2",{attrs:{id:"stacked-area-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stacked-area-chart"}},[t._v("#")]),t._v(" Stacked Area Chart")]),t._v(" "),a("p",[t._v("Line charts can be configured into stacked area charts by changing the settings on the y-axis to enable stacking. Stacked area charts can be used to show how one data trend is made up of a number of smaller pieces.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" stackedLine "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n y"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n stacked"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"vertical-line-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#vertical-line-chart"}},[t._v("#")]),t._v(" Vertical Line Chart")]),t._v(" "),a("p",[t._v("A vertical line chart is a variation on the horizontal line chart.\nTo achieve this you will have to set the "),a("code",[t._v("indexAxis")]),t._v(" property in the options object to "),a("code",[t._v("'y'")]),t._v(".\nThe default for this property is "),a("code",[t._v("'x'")]),t._v(" and thus will show horizontal lines.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n axis: 'y',\n label: 'My First Dataset',\n data: [65, 59, 80, 81, 56, 55, 40],\n fill: false,\n backgroundColor: [\n 'rgba(255, 99, 132, 0.2)',\n 'rgba(255, 159, 64, 0.2)',\n 'rgba(255, 205, 86, 0.2)',\n 'rgba(75, 192, 192, 0.2)',\n 'rgba(54, 162, 235, 0.2)',\n 'rgba(153, 102, 255, 0.2)',\n 'rgba(201, 203, 207, 0.2)'\n ],\n borderColor: [\n 'rgb(255, 99, 132)',\n 'rgb(255, 159, 64)',\n 'rgb(255, 205, 86)',\n 'rgb(75, 192, 192)',\n 'rgb(54, 162, 235)',\n 'rgb(153, 102, 255)',\n 'rgb(201, 203, 207)'\n ],\n borderWidth: 1\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n indexAxis: 'y',\n scales: {\n x: {\n beginAtZero: true\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h3",{attrs:{id:"config-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#config-options"}},[t._v("#")]),t._v(" Config Options")]),t._v(" "),a("p",[t._v("The configuration options for the vertical line chart are the same as for the "),a("a",{attrs:{href:"#configuration-options"}},[t._v("line chart")]),t._v(". However, any options specified on the x-axis in a line chart, are applied to the y-axis in a vertical line chart.")]),t._v(" "),a("h2",{attrs:{id:"internal-data-format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),a("p",[a("code",[t._v("{x, y}")])])],1)}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/139.bc71089e.js b/docs/latest/assets/js/139.c5ca9584.js similarity index 99% rename from docs/latest/assets/js/139.bc71089e.js rename to docs/latest/assets/js/139.c5ca9584.js index 01936d9f12..02d7ca399a 100644 --- a/docs/latest/assets/js/139.bc71089e.js +++ b/docs/latest/assets/js/139.c5ca9584.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[139],{464:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"mixed-chart-types"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#mixed-chart-types"}},[t._v("#")]),t._v(" Mixed Chart Types")]),t._v(" "),s("p",[t._v("With Chart.js, it is possible to create mixed charts that are a combination of two or more different chart types. A common example is a bar chart that also includes a line dataset.")]),t._v(" "),s("p",[t._v("When creating a mixed chart, we specify the chart type on each dataset.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" mixedChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Bar Dataset'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("40")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Line Dataset'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'January'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'February'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'March'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'April'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" options\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("At this point, we have a chart rendering how we'd like. It's important to note that the default options for the charts are only considered at the dataset level and are not merged at the chart level in this case.")]),t._v(" "),s("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'January',\n 'February',\n 'March',\n 'April'\n ],\n datasets: [{\n type: 'bar',\n label: 'Bar Dataset',\n data: [10, 20, 30, 40],\n borderColor: 'rgb(255, 99, 132)',\n backgroundColor: 'rgba(255, 99, 132, 0.2)'\n }, {\n type: 'line',\n label: 'Line Dataset',\n data: [50, 50, 50, 50],\n fill: false,\n borderColor: 'rgb(54, 162, 235)'\n }]\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: {\n y: {\n beginAtZero: true\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),s("h2",{attrs:{id:"drawing-order"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#drawing-order"}},[t._v("#")]),t._v(" Drawing order")]),t._v(" "),s("p",[t._v("By default, datasets are drawn such that the first one is top-most. This can be altered by specifying "),s("code",[t._v("order")]),t._v(" option to datasets. "),s("code",[t._v("order")]),t._v(" defaults to "),s("code",[t._v("0")]),t._v(". Note that this also affects stacking, legend, and tooltip. So it's essentially the same as reordering the datasets.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" mixedChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Bar Dataset'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("40")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// this dataset is drawn below")]),t._v("\n order"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Line Dataset'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// this dataset is drawn on top")]),t._v("\n order"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'January'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'February'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'March'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'April'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" options\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])],1)}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[139],{462:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"mixed-chart-types"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#mixed-chart-types"}},[t._v("#")]),t._v(" Mixed Chart Types")]),t._v(" "),s("p",[t._v("With Chart.js, it is possible to create mixed charts that are a combination of two or more different chart types. A common example is a bar chart that also includes a line dataset.")]),t._v(" "),s("p",[t._v("When creating a mixed chart, we specify the chart type on each dataset.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" mixedChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Bar Dataset'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("40")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Line Dataset'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'January'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'February'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'March'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'April'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" options\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("At this point, we have a chart rendering how we'd like. It's important to note that the default options for the charts are only considered at the dataset level and are not merged at the chart level in this case.")]),t._v(" "),s("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'January',\n 'February',\n 'March',\n 'April'\n ],\n datasets: [{\n type: 'bar',\n label: 'Bar Dataset',\n data: [10, 20, 30, 40],\n borderColor: 'rgb(255, 99, 132)',\n backgroundColor: 'rgba(255, 99, 132, 0.2)'\n }, {\n type: 'line',\n label: 'Line Dataset',\n data: [50, 50, 50, 50],\n fill: false,\n borderColor: 'rgb(54, 162, 235)'\n }]\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: {\n y: {\n beginAtZero: true\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),s("h2",{attrs:{id:"drawing-order"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#drawing-order"}},[t._v("#")]),t._v(" Drawing order")]),t._v(" "),s("p",[t._v("By default, datasets are drawn such that the first one is top-most. This can be altered by specifying "),s("code",[t._v("order")]),t._v(" option to datasets. "),s("code",[t._v("order")]),t._v(" defaults to "),s("code",[t._v("0")]),t._v(". Note that this also affects stacking, legend, and tooltip. So it's essentially the same as reordering the datasets.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" mixedChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Bar Dataset'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("40")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// this dataset is drawn below")]),t._v("\n order"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Line Dataset'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// this dataset is drawn on top")]),t._v("\n order"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'January'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'February'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'March'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'April'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" options\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])],1)}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/14.5e5d4bd9.js b/docs/latest/assets/js/14.5e5d4bd9.js new file mode 100644 index 0000000000..c77919a323 --- /dev/null +++ b/docs/latest/assets/js/14.5e5d4bd9.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{477:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-basicplatform"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-basicplatform"}},[t._v("#")]),t._v(" Class: BasicPlatform")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[a("em",[t._v("BasePlatform")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("BasicPlatform")])])])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new BasicPlatform")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/basicplatform.html"}},[a("em",[t._v("BasicPlatform")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/basicplatform.html"}},[a("em",[t._v("BasicPlatform")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"acquirecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#acquirecontext"}},[t._v("#")]),t._v(" acquireContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("acquireContext")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("options?")]),t._v(": CanvasRenderingContext2DSettings): CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Called at chart construction time, returns a context2d instance implementing\nthe "),a("a",{attrs:{href:"https://www.w3.org/TR/2dcontext/",target:"_blank",rel:"noopener noreferrer"}},[t._v("W3C Canvas 2D Context API standard"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas from which to acquire context (platform specific)")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2DSettings")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart options")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1907",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1907"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addeventlistener"}},[t._v("#")]),t._v(" addEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Registers the specified listener on the given chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to listen for event")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to listen for")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Receives a notification (an object that implements the "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(" interface) when an event of the specified type occurs.")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1925",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1925"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdevicepixelratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdevicepixelratio"}},[t._v("#")]),t._v(" getDevicePixelRatio")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDevicePixelRatio")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("the current devicePixelRatio of the device this platform is connected to.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1936",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1936"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaximumsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaximumsize"}},[t._v("#")]),t._v(" getMaximumSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMaximumSize")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("width?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("aspectRatio?")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas for which to calculate the maximum size")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("aspectRatio?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("the maximum size available.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1944",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1944"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isattached"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isattached"}},[t._v("#")]),t._v(" isAttached")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isAttached")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the canvas is attached to the platform, false if not.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1949",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1949"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"releasecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#releasecontext"}},[t._v("#")]),t._v(" releaseContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("releaseContext")]),t._v("("),a("code",[t._v("context")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Called at chart destruction time, releases any resources associated to the context\npreviously returned by the acquireContext() method.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("context")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The context2d instance")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the method succeeded, else false")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1917",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1917"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removeeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removeeventlistener"}},[t._v("#")]),t._v(" removeEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Removes the specified listener previously registered with addEventListener.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to remove the listener")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to remove")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The listener function to remove from the event target.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1932",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1932"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/14.8547c6f9.js b/docs/latest/assets/js/14.8547c6f9.js deleted file mode 100644 index 83d468d7a2..0000000000 --- a/docs/latest/assets/js/14.8547c6f9.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{341:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-basicplatform"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-basicplatform"}},[t._v("#")]),t._v(" Class: BasicPlatform")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[a("em",[t._v("BasePlatform")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("BasicPlatform")])])])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new BasicPlatform")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/basicplatform.html"}},[a("em",[t._v("BasicPlatform")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/basicplatform.html"}},[a("em",[t._v("BasicPlatform")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"acquirecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#acquirecontext"}},[t._v("#")]),t._v(" acquireContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("acquireContext")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("options?")]),t._v(": CanvasRenderingContext2DSettings): CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Called at chart construction time, returns a context2d instance implementing\nthe "),a("a",{attrs:{href:"https://www.w3.org/TR/2dcontext/",target:"_blank",rel:"noopener noreferrer"}},[t._v("W3C Canvas 2D Context API standard"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas from which to acquire context (platform specific)")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2DSettings")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart options")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1907",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1907"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addeventlistener"}},[t._v("#")]),t._v(" addEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Registers the specified listener on the given chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to listen for event")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to listen for")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Receives a notification (an object that implements the "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(" interface) when an event of the specified type occurs.")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1925",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1925"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdevicepixelratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdevicepixelratio"}},[t._v("#")]),t._v(" getDevicePixelRatio")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDevicePixelRatio")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("the current devicePixelRatio of the device this platform is connected to.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1936",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1936"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaximumsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaximumsize"}},[t._v("#")]),t._v(" getMaximumSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMaximumSize")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("width?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("aspectRatio?")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas for which to calculate the maximum size")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("aspectRatio?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("the maximum size available.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1944",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1944"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isattached"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isattached"}},[t._v("#")]),t._v(" isAttached")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isAttached")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the canvas is attached to the platform, false if not.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1949",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1949"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"releasecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#releasecontext"}},[t._v("#")]),t._v(" releaseContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("releaseContext")]),t._v("("),a("code",[t._v("context")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Called at chart destruction time, releases any resources associated to the context\npreviously returned by the acquireContext() method.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("context")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The context2d instance")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the method succeeded, else false")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1917",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1917"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removeeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removeeventlistener"}},[t._v("#")]),t._v(" removeEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Removes the specified listener previously registered with addEventListener.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to remove the listener")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to remove")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The listener function to remove from the event target.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1932",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1932"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/140.7b997f6c.js b/docs/latest/assets/js/140.6046865f.js similarity index 99% rename from docs/latest/assets/js/140.7b997f6c.js rename to docs/latest/assets/js/140.6046865f.js index 84c13d68df..f66f5371e8 100644 --- a/docs/latest/assets/js/140.7b997f6c.js +++ b/docs/latest/assets/js/140.6046865f.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[140],{465:function(t,e,a){"use strict";a.r(e);var r=a(7),o=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"polar-area-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#polar-area-chart"}},[t._v("#")]),t._v(" Polar Area Chart")]),t._v(" "),a("p",[t._v("Polar area charts are similar to pie charts, but each segment has the same angle - the radius of the segment differs depending on the value.")]),t._v(" "),a("p",[t._v("This type of chart is often useful when we want to show a comparison data similar to a pie chart, but also show a scale of values for context.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Red',\n 'Green',\n 'Yellow',\n 'Grey',\n 'Blue'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [11, 16, 7, 3, 14],\n backgroundColor: [\n 'rgb(255, 99, 132)',\n 'rgb(75, 192, 192)',\n 'rgb(255, 205, 86)',\n 'rgb(201, 203, 207)',\n 'rgb(54, 162, 235)'\n ]\n }]\n};\n// \n\n// \nconst config = {\n type: 'polarArea',\n data: data,\n options: {}\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.polarArea")]),t._v(" - options for all polarArea datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.arc")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[t._v("arc elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The following options can be included in a polar area chart dataset to configure options for that specific dataset.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#border-alignment"}},[a("code",[t._v("borderAlign")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'center'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'#fff'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("2")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interations"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])])])]),t._v(" "),a("h3",{attrs:{id:"styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#styling"}},[t._v("#")]),t._v(" Styling")]),t._v(" "),a("p",[t._v("The style of each arc can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("arc background color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("arc border color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderWidth")])]),t._v(" "),a("td",[t._v("arc border width (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[a("code",[t._v("elements.arc.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"border-alignment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#border-alignment"}},[t._v("#")]),t._v(" Border Alignment")]),t._v(" "),a("p",[t._v("The following values are supported for "),a("code",[t._v("borderAlign")]),t._v(".")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'center'")]),t._v(" (default)")]),t._v(" "),a("li",[a("code",[t._v("'inner'")])])]),t._v(" "),a("p",[t._v("When "),a("code",[t._v("'center'")]),t._v(" is set, the borders of arcs next to each other will overlap. When "),a("code",[t._v("'inner'")]),t._v(" is set, it is guaranteed that all the borders do not overlap.")]),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each arc can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("hoverBackgroundColor")])]),t._v(" "),a("td",[t._v("arc background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderColor")])]),t._v(" "),a("td",[t._v("arc border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderWidth")])]),t._v(" "),a("td",[t._v("arc border width when hovered (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[a("code",[t._v("elements.arc.*")])]),t._v(" options.")],1),t._v(" "),a("h2",{attrs:{id:"config-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#config-options"}},[t._v("#")]),t._v(" Config Options")]),t._v(" "),a("p",[t._v("These are the customisation options specific to Polar Area charts. These options are looked up on access, and form together with the "),a("a",{attrs:{href:"#default-options"}},[t._v("global chart default options")]),t._v(" the options of the chart.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("animation.animateRotate")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, the chart will animate in with a rotation animation. This property is in the "),a("code",[t._v("options.animation")]),t._v(" object.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("animation.animateScale")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, will animate scaling the chart from the center outwards.")])])])]),t._v(" "),a("p",[t._v("The polar area chart uses the "),a("RouterLink",{attrs:{to:"/axes/radial/linear.html"}},[t._v("radialLinear")]),t._v(" scale. Additional configuration is provided via the scale.")],1),t._v(" "),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("We can also change these default values for each PolarArea type that is created, this object is available at "),a("code",[t._v("Chart.overrides.polarArea")]),t._v(". Changing the global options only affects charts created after the change. Existing charts are not changed.")]),t._v(" "),a("p",[t._v("For example, to configure all new polar area charts with "),a("code",[t._v("animateScale = false")]),t._v(" you would do:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("overrides"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("polarArea"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("animation"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("animateScale "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("For a polar area chart, datasets need to contain an array of data points. The data points should be a number, Chart.js will total all of the numbers and calculate the relative proportion of each.")]),t._v(" "),a("p",[t._v("You also need to specify an array of labels so that tooltips appear correctly for each slice.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("data "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// These labels appear in the legend and in the tooltips when hovering different arcs")]),t._v("\n labels"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Red'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Yellow'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Blue'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])],1)}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[140],{464:function(t,e,a){"use strict";a.r(e);var r=a(7),o=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"polar-area-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#polar-area-chart"}},[t._v("#")]),t._v(" Polar Area Chart")]),t._v(" "),a("p",[t._v("Polar area charts are similar to pie charts, but each segment has the same angle - the radius of the segment differs depending on the value.")]),t._v(" "),a("p",[t._v("This type of chart is often useful when we want to show a comparison data similar to a pie chart, but also show a scale of values for context.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Red',\n 'Green',\n 'Yellow',\n 'Grey',\n 'Blue'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [11, 16, 7, 3, 14],\n backgroundColor: [\n 'rgb(255, 99, 132)',\n 'rgb(75, 192, 192)',\n 'rgb(255, 205, 86)',\n 'rgb(201, 203, 207)',\n 'rgb(54, 162, 235)'\n ]\n }]\n};\n// \n\n// \nconst config = {\n type: 'polarArea',\n data: data,\n options: {}\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.polarArea")]),t._v(" - options for all polarArea datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.arc")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[t._v("arc elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The following options can be included in a polar area chart dataset to configure options for that specific dataset.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#border-alignment"}},[a("code",[t._v("borderAlign")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'center'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'#fff'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("2")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interations"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])])])]),t._v(" "),a("h3",{attrs:{id:"styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#styling"}},[t._v("#")]),t._v(" Styling")]),t._v(" "),a("p",[t._v("The style of each arc can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("arc background color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("arc border color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderWidth")])]),t._v(" "),a("td",[t._v("arc border width (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[a("code",[t._v("elements.arc.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"border-alignment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#border-alignment"}},[t._v("#")]),t._v(" Border Alignment")]),t._v(" "),a("p",[t._v("The following values are supported for "),a("code",[t._v("borderAlign")]),t._v(".")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'center'")]),t._v(" (default)")]),t._v(" "),a("li",[a("code",[t._v("'inner'")])])]),t._v(" "),a("p",[t._v("When "),a("code",[t._v("'center'")]),t._v(" is set, the borders of arcs next to each other will overlap. When "),a("code",[t._v("'inner'")]),t._v(" is set, it is guaranteed that all the borders do not overlap.")]),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each arc can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("hoverBackgroundColor")])]),t._v(" "),a("td",[t._v("arc background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderColor")])]),t._v(" "),a("td",[t._v("arc border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderWidth")])]),t._v(" "),a("td",[t._v("arc border width when hovered (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[a("code",[t._v("elements.arc.*")])]),t._v(" options.")],1),t._v(" "),a("h2",{attrs:{id:"config-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#config-options"}},[t._v("#")]),t._v(" Config Options")]),t._v(" "),a("p",[t._v("These are the customisation options specific to Polar Area charts. These options are looked up on access, and form together with the "),a("a",{attrs:{href:"#default-options"}},[t._v("global chart default options")]),t._v(" the options of the chart.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("animation.animateRotate")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, the chart will animate in with a rotation animation. This property is in the "),a("code",[t._v("options.animation")]),t._v(" object.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("animation.animateScale")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, will animate scaling the chart from the center outwards.")])])])]),t._v(" "),a("p",[t._v("The polar area chart uses the "),a("RouterLink",{attrs:{to:"/axes/radial/linear.html"}},[t._v("radialLinear")]),t._v(" scale. Additional configuration is provided via the scale.")],1),t._v(" "),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("We can also change these default values for each PolarArea type that is created, this object is available at "),a("code",[t._v("Chart.overrides.polarArea")]),t._v(". Changing the global options only affects charts created after the change. Existing charts are not changed.")]),t._v(" "),a("p",[t._v("For example, to configure all new polar area charts with "),a("code",[t._v("animateScale = false")]),t._v(" you would do:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("overrides"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("polarArea"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("animation"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("animateScale "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("For a polar area chart, datasets need to contain an array of data points. The data points should be a number, Chart.js will total all of the numbers and calculate the relative proportion of each.")]),t._v(" "),a("p",[t._v("You also need to specify an array of labels so that tooltips appear correctly for each slice.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("data "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// These labels appear in the legend and in the tooltips when hovering different arcs")]),t._v("\n labels"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Red'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Yellow'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Blue'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])],1)}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/141.2bcbc9a2.js b/docs/latest/assets/js/141.eeadecc8.js similarity index 99% rename from docs/latest/assets/js/141.2bcbc9a2.js rename to docs/latest/assets/js/141.eeadecc8.js index 453f683e23..0b56a7a240 100644 --- a/docs/latest/assets/js/141.2bcbc9a2.js +++ b/docs/latest/assets/js/141.eeadecc8.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[141],{466:function(t,e,a){"use strict";a.r(e);var n=a(7),r=Object(n.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"radar-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radar-chart"}},[t._v("#")]),t._v(" Radar Chart")]),t._v(" "),a("p",[t._v("A radar chart is a way of showing multiple data points and the variation between them.")]),t._v(" "),a("p",[t._v("They are often useful for comparing the points of two or more different data sets.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Eating',\n 'Drinking',\n 'Sleeping',\n 'Designing',\n 'Coding',\n 'Cycling',\n 'Running'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [65, 59, 90, 81, 56, 55, 40],\n fill: true,\n backgroundColor: 'rgba(255, 99, 132, 0.2)',\n borderColor: 'rgb(255, 99, 132)',\n pointBackgroundColor: 'rgb(255, 99, 132)',\n pointBorderColor: '#fff',\n pointHoverBackgroundColor: '#fff',\n pointHoverBorderColor: 'rgb(255, 99, 132)'\n }, {\n label: 'My Second Dataset',\n data: [28, 48, 40, 19, 96, 27, 100],\n fill: true,\n backgroundColor: 'rgba(54, 162, 235, 0.2)',\n borderColor: 'rgb(54, 162, 235)',\n pointBackgroundColor: 'rgb(54, 162, 235)',\n pointBorderColor: '#fff',\n pointHoverBackgroundColor: '#fff',\n pointHoverBorderColor: 'rgb(54, 162, 235)'\n }]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data: data,\n options: {\n elements: {\n line: {\n borderWidth: 3\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.line")]),t._v(" - options for all line datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.line")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#line-configuration"}},[t._v("line elements")])],1),t._v(" "),a("li",[a("code",[t._v("options.elements.point")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[t._v("point elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The radar chart allows a number of properties to be specified for each dataset. These are used to set display properties for a specific dataset. For example, the colour of a line is generally set this way.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderCapStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'butt'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderDash")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("[]")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderDashOffset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0.0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderJoinStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'miter'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("3")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderCapStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderDash")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderDashOffset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderJoinStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("fill")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("false")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("label")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("''")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("order")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("tension")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBackgroundColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBorderColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointHitRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBackgroundColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBorderColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("4")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("3")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointRotation")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")]),t._v("|"),a("code",[t._v("Image")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'circle'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("spanGaps")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("label")])]),t._v(" "),a("td",[t._v("The label for the dataset which appears in the legend and tooltips.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("order")])]),t._v(" "),a("td",[t._v("The drawing order of dataset.")])])])]),t._v(" "),a("h3",{attrs:{id:"point-styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#point-styling"}},[t._v("#")]),t._v(" Point Styling")]),t._v(" "),a("p",[t._v("The style of each point can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("pointBackgroundColor")])]),t._v(" "),a("td",[t._v("The fill color for points.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointBorderColor")])]),t._v(" "),a("td",[t._v("The border color for points.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointBorderWidth")])]),t._v(" "),a("td",[t._v("The width of the point border in pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHitRadius")])]),t._v(" "),a("td",[t._v("The pixel size of the non-displayed point that reacts to mouse events.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointRadius")])]),t._v(" "),a("td",[t._v("The radius of the point shape. If set to 0, the point is not rendered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointRotation")])]),t._v(" "),a("td",[t._v("The rotation of the point in degrees.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",[t._v("Style of the point. "),a("a",{attrs:{href:"../configuration/elements#point-styles"}},[t._v("more...")])])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback first to the dataset options then to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[a("code",[t._v("elements.point.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"line-styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#line-styling"}},[t._v("#")]),t._v(" Line Styling")]),t._v(" "),a("p",[t._v("The style of the line can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("The line fill color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderCapStyle")])]),t._v(" "),a("td",[t._v("Cap style of the line. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("The line color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderDash")])]),t._v(" "),a("td",[t._v("Length and spacing of dashes. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderDashOffset")])]),t._v(" "),a("td",[t._v("Offset for line dashes. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderJoinStyle")])]),t._v(" "),a("td",[t._v("Line joint style. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderWidth")])]),t._v(" "),a("td",[t._v("The line width (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("fill")])]),t._v(" "),a("td",[t._v("How to fill the area under the line. See "),a("RouterLink",{attrs:{to:"/charts/area.html"}},[t._v("area charts")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("tension")])]),t._v(" "),a("td",[t._v("Bezier curve tension of the line. Set to 0 to draw straight lines.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("spanGaps")])]),t._v(" "),a("td",[t._v("If true, lines will be drawn between points with no or null data. If false, points with "),a("code",[t._v("null")]),t._v(" data will create a break in the line.")])])])]),t._v(" "),a("p",[t._v("If the value is "),a("code",[t._v("undefined")]),t._v(", "),a("code",[t._v("spanGaps")]),t._v(" fallback to the associated "),a("a",{attrs:{href:"#configuration-options"}},[t._v("chart configuration options")]),t._v(". The rest of the values fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#line-configuration"}},[a("code",[t._v("elements.line.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each point can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("pointHoverBackgroundColor")])]),t._v(" "),a("td",[t._v("Point background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverBorderColor")])]),t._v(" "),a("td",[t._v("Point border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverBorderWidth")])]),t._v(" "),a("td",[t._v("Border width of point when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverRadius")])]),t._v(" "),a("td",[t._v("The radius of the point when hovered.")])])])]),t._v(" "),a("h2",{attrs:{id:"scale-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scale-options"}},[t._v("#")]),t._v(" Scale Options")]),t._v(" "),a("p",[t._v("The radar chart supports only a single scale. The options for this scale are defined in the "),a("code",[t._v("scale")]),t._v(" property.\nThe options for this scale are defined in the "),a("code",[t._v("scale")]),t._v(" property, which can be referenced from the "),a("a",{attrs:{href:"../axes/radial/linear"}},[t._v("Linear Radial Axis page")]),t._v(".")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("options "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n r"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n angleLines"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n suggestedMin"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n suggestedMax"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("100")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("It is common to want to apply a configuration setting to all created radar charts. The global radar chart settings are stored in "),a("code",[t._v("Chart.overrides.radar")]),t._v(". Changing the global options only affects charts created after the change. Existing charts are not changed.")]),t._v(" "),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("data")]),t._v(" property of a dataset for a radar chart is specified as an array of numbers. Each point in the data array corresponds to the label at the same index.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),a("p",[t._v("For a radar chart, to provide context of what each point means, we include an array of strings that show around each point in the chart.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Running'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Swimming'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Eating'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Cycling'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("4")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("h2",{attrs:{id:"internal-data-format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),a("p",[a("code",[t._v("{x, y}")])])],1)}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[141],{465:function(t,e,a){"use strict";a.r(e);var n=a(7),r=Object(n.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"radar-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radar-chart"}},[t._v("#")]),t._v(" Radar Chart")]),t._v(" "),a("p",[t._v("A radar chart is a way of showing multiple data points and the variation between them.")]),t._v(" "),a("p",[t._v("They are often useful for comparing the points of two or more different data sets.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Eating',\n 'Drinking',\n 'Sleeping',\n 'Designing',\n 'Coding',\n 'Cycling',\n 'Running'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [65, 59, 90, 81, 56, 55, 40],\n fill: true,\n backgroundColor: 'rgba(255, 99, 132, 0.2)',\n borderColor: 'rgb(255, 99, 132)',\n pointBackgroundColor: 'rgb(255, 99, 132)',\n pointBorderColor: '#fff',\n pointHoverBackgroundColor: '#fff',\n pointHoverBorderColor: 'rgb(255, 99, 132)'\n }, {\n label: 'My Second Dataset',\n data: [28, 48, 40, 19, 96, 27, 100],\n fill: true,\n backgroundColor: 'rgba(54, 162, 235, 0.2)',\n borderColor: 'rgb(54, 162, 235)',\n pointBackgroundColor: 'rgb(54, 162, 235)',\n pointBorderColor: '#fff',\n pointHoverBackgroundColor: '#fff',\n pointHoverBorderColor: 'rgb(54, 162, 235)'\n }]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data: data,\n options: {\n elements: {\n line: {\n borderWidth: 3\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.line")]),t._v(" - options for all line datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.line")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#line-configuration"}},[t._v("line elements")])],1),t._v(" "),a("li",[a("code",[t._v("options.elements.point")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[t._v("point elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The radar chart allows a number of properties to be specified for each dataset. These are used to set display properties for a specific dataset. For example, the colour of a line is generally set this way.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderCapStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'butt'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderDash")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("[]")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderDashOffset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0.0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderJoinStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'miter'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("3")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderCapStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderDash")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderDashOffset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderJoinStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("fill")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("false")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("label")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("''")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("order")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("tension")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBackgroundColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBorderColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointHitRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBackgroundColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBorderColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("4")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("3")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointRotation")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")]),t._v("|"),a("code",[t._v("Image")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'circle'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("spanGaps")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("label")])]),t._v(" "),a("td",[t._v("The label for the dataset which appears in the legend and tooltips.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("order")])]),t._v(" "),a("td",[t._v("The drawing order of dataset.")])])])]),t._v(" "),a("h3",{attrs:{id:"point-styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#point-styling"}},[t._v("#")]),t._v(" Point Styling")]),t._v(" "),a("p",[t._v("The style of each point can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("pointBackgroundColor")])]),t._v(" "),a("td",[t._v("The fill color for points.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointBorderColor")])]),t._v(" "),a("td",[t._v("The border color for points.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointBorderWidth")])]),t._v(" "),a("td",[t._v("The width of the point border in pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHitRadius")])]),t._v(" "),a("td",[t._v("The pixel size of the non-displayed point that reacts to mouse events.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointRadius")])]),t._v(" "),a("td",[t._v("The radius of the point shape. If set to 0, the point is not rendered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointRotation")])]),t._v(" "),a("td",[t._v("The rotation of the point in degrees.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",[t._v("Style of the point. "),a("a",{attrs:{href:"../configuration/elements#point-styles"}},[t._v("more...")])])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback first to the dataset options then to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[a("code",[t._v("elements.point.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"line-styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#line-styling"}},[t._v("#")]),t._v(" Line Styling")]),t._v(" "),a("p",[t._v("The style of the line can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("The line fill color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderCapStyle")])]),t._v(" "),a("td",[t._v("Cap style of the line. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("The line color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderDash")])]),t._v(" "),a("td",[t._v("Length and spacing of dashes. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderDashOffset")])]),t._v(" "),a("td",[t._v("Offset for line dashes. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderJoinStyle")])]),t._v(" "),a("td",[t._v("Line joint style. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderWidth")])]),t._v(" "),a("td",[t._v("The line width (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("fill")])]),t._v(" "),a("td",[t._v("How to fill the area under the line. See "),a("RouterLink",{attrs:{to:"/charts/area.html"}},[t._v("area charts")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("tension")])]),t._v(" "),a("td",[t._v("Bezier curve tension of the line. Set to 0 to draw straight lines.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("spanGaps")])]),t._v(" "),a("td",[t._v("If true, lines will be drawn between points with no or null data. If false, points with "),a("code",[t._v("null")]),t._v(" data will create a break in the line.")])])])]),t._v(" "),a("p",[t._v("If the value is "),a("code",[t._v("undefined")]),t._v(", "),a("code",[t._v("spanGaps")]),t._v(" fallback to the associated "),a("a",{attrs:{href:"#configuration-options"}},[t._v("chart configuration options")]),t._v(". The rest of the values fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#line-configuration"}},[a("code",[t._v("elements.line.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each point can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("pointHoverBackgroundColor")])]),t._v(" "),a("td",[t._v("Point background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverBorderColor")])]),t._v(" "),a("td",[t._v("Point border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverBorderWidth")])]),t._v(" "),a("td",[t._v("Border width of point when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverRadius")])]),t._v(" "),a("td",[t._v("The radius of the point when hovered.")])])])]),t._v(" "),a("h2",{attrs:{id:"scale-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scale-options"}},[t._v("#")]),t._v(" Scale Options")]),t._v(" "),a("p",[t._v("The radar chart supports only a single scale. The options for this scale are defined in the "),a("code",[t._v("scale")]),t._v(" property.\nThe options for this scale are defined in the "),a("code",[t._v("scale")]),t._v(" property, which can be referenced from the "),a("a",{attrs:{href:"../axes/radial/linear"}},[t._v("Linear Radial Axis page")]),t._v(".")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("options "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n r"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n angleLines"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n suggestedMin"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n suggestedMax"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("100")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("It is common to want to apply a configuration setting to all created radar charts. The global radar chart settings are stored in "),a("code",[t._v("Chart.overrides.radar")]),t._v(". Changing the global options only affects charts created after the change. Existing charts are not changed.")]),t._v(" "),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("data")]),t._v(" property of a dataset for a radar chart is specified as an array of numbers. Each point in the data array corresponds to the label at the same index.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),a("p",[t._v("For a radar chart, to provide context of what each point means, we include an array of strings that show around each point in the chart.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Running'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Swimming'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Eating'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Cycling'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("4")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("h2",{attrs:{id:"internal-data-format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),a("p",[a("code",[t._v("{x, y}")])])],1)}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/142.39f6fc08.js b/docs/latest/assets/js/142.d1a290f9.js similarity index 98% rename from docs/latest/assets/js/142.39f6fc08.js rename to docs/latest/assets/js/142.d1a290f9.js index dd0bae95bb..75a5c4b95a 100644 --- a/docs/latest/assets/js/142.39f6fc08.js +++ b/docs/latest/assets/js/142.d1a290f9.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[142],{467:function(t,a,e){"use strict";e.r(a);var s=e(7),n=Object(s.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"scatter-chart"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#scatter-chart"}},[t._v("#")]),t._v(" Scatter Chart")]),t._v(" "),e("p",[t._v("Scatter charts are based on basic line charts with the x axis changed to a linear axis. To use a scatter chart, data must be passed as objects containing X and Y properties. The example below creates a scatter chart with 4 points.")]),t._v(" "),e("chart-editor",{attrs:{code:"// \nconst data = {\n datasets: [{\n label: 'Scatter Dataset',\n data: [{\n x: -10,\n y: 0\n }, {\n x: 0,\n y: 10\n }, {\n x: 10,\n y: 5\n }, {\n x: 0.5,\n y: 5.5\n }],\n backgroundColor: 'rgb(255, 99, 132)'\n }],\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: {\n x: {\n type: 'linear',\n position: 'bottom'\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),e("h2",{attrs:{id:"dataset-properties"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),e("p",[t._v("Namespaces:")]),t._v(" "),e("ul",[e("li",[e("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),e("li",[e("code",[t._v("options.datasets.scatter")]),t._v(" - options for all scatter datasets")]),t._v(" "),e("li",[e("code",[t._v("options.elements.line")]),t._v(" - options for all "),e("RouterLink",{attrs:{to:"/configuration/elements.html#line-configuration"}},[t._v("line elements")])],1),t._v(" "),e("li",[e("code",[t._v("options.elements.point")]),t._v(" - options for all "),e("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[t._v("point elements")])],1),t._v(" "),e("li",[e("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),e("p",[t._v("The scatter chart supports all of the same properties as the "),e("RouterLink",{attrs:{to:"/charts/charts/line.html#dataset-properties"}},[t._v("line chart")]),t._v(".\nBy default, the scatter chart will override the showLine property of the line chart to "),e("code",[t._v("false")]),t._v(".")],1),t._v(" "),e("p",[t._v("The index scale is of the type "),e("code",[t._v("linear")]),t._v(". This means if you are using the labels array the values have to be numbers or parsable to numbers, the same applies to the object format for the keys.")]),t._v(" "),e("h2",{attrs:{id:"data-structure"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),e("p",[t._v("Unlike the line chart where data can be supplied in two different formats, the scatter chart only accepts data in a point format.")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[t._v("data"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("15")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),e("h2",{attrs:{id:"internal-data-format"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),e("p",[e("code",[t._v("{x, y}")])])],1)}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[142],{466:function(t,a,e){"use strict";e.r(a);var s=e(7),n=Object(s.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"scatter-chart"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#scatter-chart"}},[t._v("#")]),t._v(" Scatter Chart")]),t._v(" "),e("p",[t._v("Scatter charts are based on basic line charts with the x axis changed to a linear axis. To use a scatter chart, data must be passed as objects containing X and Y properties. The example below creates a scatter chart with 4 points.")]),t._v(" "),e("chart-editor",{attrs:{code:"// \nconst data = {\n datasets: [{\n label: 'Scatter Dataset',\n data: [{\n x: -10,\n y: 0\n }, {\n x: 0,\n y: 10\n }, {\n x: 10,\n y: 5\n }, {\n x: 0.5,\n y: 5.5\n }],\n backgroundColor: 'rgb(255, 99, 132)'\n }],\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: {\n x: {\n type: 'linear',\n position: 'bottom'\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),e("h2",{attrs:{id:"dataset-properties"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),e("p",[t._v("Namespaces:")]),t._v(" "),e("ul",[e("li",[e("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),e("li",[e("code",[t._v("options.datasets.scatter")]),t._v(" - options for all scatter datasets")]),t._v(" "),e("li",[e("code",[t._v("options.elements.line")]),t._v(" - options for all "),e("RouterLink",{attrs:{to:"/configuration/elements.html#line-configuration"}},[t._v("line elements")])],1),t._v(" "),e("li",[e("code",[t._v("options.elements.point")]),t._v(" - options for all "),e("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[t._v("point elements")])],1),t._v(" "),e("li",[e("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),e("p",[t._v("The scatter chart supports all of the same properties as the "),e("RouterLink",{attrs:{to:"/charts/charts/line.html#dataset-properties"}},[t._v("line chart")]),t._v(".\nBy default, the scatter chart will override the showLine property of the line chart to "),e("code",[t._v("false")]),t._v(".")],1),t._v(" "),e("p",[t._v("The index scale is of the type "),e("code",[t._v("linear")]),t._v(". This means if you are using the labels array the values have to be numbers or parsable to numbers, the same applies to the object format for the keys.")]),t._v(" "),e("h2",{attrs:{id:"data-structure"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),e("p",[t._v("Unlike the line chart where data can be supplied in two different formats, the scatter chart only accepts data in a point format.")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[t._v("data"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("15")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),e("h2",{attrs:{id:"internal-data-format"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),e("p",[e("code",[t._v("{x, y}")])])],1)}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/143.765e86af.js b/docs/latest/assets/js/143.a5488c00.js similarity index 99% rename from docs/latest/assets/js/143.765e86af.js rename to docs/latest/assets/js/143.a5488c00.js index c1edbfc692..ccda0cda98 100644 --- a/docs/latest/assets/js/143.765e86af.js +++ b/docs/latest/assets/js/143.a5488c00.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[143],{468:function(t,a,n){"use strict";n.r(a);var e=n(7),o=Object(e.a)({},(function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[n("h1",{attrs:{id:"animations"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" Animations")]),t._v(" "),n("p",[t._v("Chart.js animates charts out of the box. A number of options are provided to configure how the animation looks and how long it takes.")]),t._v(" "),n("tabs",[n("tab",{attrs:{name:"Looping tension [property]"}},[n("chart-editor",{attrs:{code:"// \nconst data = {\n labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],\n datasets: [{\n label: 'Looping tension',\n data: [65, 59, 80, 81, 26, 55, 40],\n fill: false,\n borderColor: 'rgb(75, 192, 192)',\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n animations: {\n tension: {\n duration: 1000,\n easing: 'linear',\n from: 1,\n to: 0,\n loop: true\n }\n },\n scales: {\n y: { // defining min and max so hiding the dataset does not change scale range\n min: 0,\n max: 100\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1),t._v(" "),n("tab",{attrs:{name:"Hide and show [mode]"}},[n("chart-editor",{attrs:{code:"// \nconst data = {\n labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],\n datasets: [{\n label: 'Try hiding me',\n data: [65, 59, 80, 81, 26, 55, 40],\n fill: false,\n borderColor: 'rgb(75, 192, 192)',\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n transitions: {\n show: {\n animations: {\n x: {\n from: 0\n },\n y: {\n from: 0\n }\n }\n },\n hide: {\n animations: {\n x: {\n to: 0\n },\n y: {\n to: 0\n }\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)],1),t._v(" "),n("h2",{attrs:{id:"animation-configuration"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#animation-configuration"}},[t._v("#")]),t._v(" Animation configuration")]),t._v(" "),n("p",[t._v("Animation configuration consists of 3 keys.")]),t._v(" "),n("table",[n("thead",[n("tr",[n("th",[t._v("Name")]),t._v(" "),n("th",[t._v("Type")]),t._v(" "),n("th",[t._v("Details")])])]),t._v(" "),n("tbody",[n("tr",[n("td",[t._v("animation")]),t._v(" "),n("td",[n("code",[t._v("object")])]),t._v(" "),n("td",[n("a",{attrs:{href:"#animation"}},[t._v("animation")])])]),t._v(" "),n("tr",[n("td",[t._v("animations")]),t._v(" "),n("td",[n("code",[t._v("object")])]),t._v(" "),n("td",[n("a",{attrs:{href:"#animations"}},[t._v("animations")])])]),t._v(" "),n("tr",[n("td",[t._v("transitions")]),t._v(" "),n("td",[n("code",[t._v("object")])]),t._v(" "),n("td",[n("a",{attrs:{href:"#transitions"}},[t._v("transitions")])])])])]),t._v(" "),n("p",[t._v("These keys can be configured in following paths:")]),t._v(" "),n("ul",[n("li",[t._v("`` - chart options")]),t._v(" "),n("li",[n("code",[t._v("datasets[type]")]),t._v(" - dataset type options")]),t._v(" "),n("li",[n("code",[t._v("overrides[type]")]),t._v(" - chart type options")])]),t._v(" "),n("p",[t._v("These paths are valid under "),n("code",[t._v("defaults")]),t._v(" for global confuguration and "),n("code",[t._v("options")]),t._v(" for instance configuration.")]),t._v(" "),n("h2",{attrs:{id:"animation"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),n("p",[t._v("The default configuration is defined here: "),n("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/master/src/core/core.animations.js",target:"_blank"}},[t._v("core.animations.js")])]),t._v(" "),n("p",[t._v("Namespace: "),n("code",[t._v("options.animation")])]),t._v(" "),n("table",[n("thead",[n("tr",[n("th",[t._v("Name")]),t._v(" "),n("th",[t._v("Type")]),t._v(" "),n("th",[t._v("Default")]),t._v(" "),n("th",[t._v("Description")])])]),t._v(" "),n("tbody",[n("tr",[n("td",[n("code",[t._v("duration")])]),t._v(" "),n("td",[n("code",[t._v("number")])]),t._v(" "),n("td",[n("code",[t._v("1000")])]),t._v(" "),n("td",[t._v("The number of milliseconds an animation takes.")])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("easing")])]),t._v(" "),n("td",[n("code",[t._v("string")])]),t._v(" "),n("td",[n("code",[t._v("'easeOutQuart'")])]),t._v(" "),n("td",[t._v("Easing function to use. "),n("a",{attrs:{href:"#easing"}},[t._v("more...")])])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("delay")])]),t._v(" "),n("td",[n("code",[t._v("number")])]),t._v(" "),n("td",[n("code",[t._v("undefined")])]),t._v(" "),n("td",[t._v("Delay before starting the animations.")])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("loop")])]),t._v(" "),n("td",[n("code",[t._v("boolean")])]),t._v(" "),n("td",[n("code",[t._v("undefined")])]),t._v(" "),n("td",[t._v("If set to "),n("code",[t._v("true")]),t._v(", the animations loop endlessly.")])])])]),t._v(" "),n("p",[t._v("These defaults can be overridden in "),n("code",[t._v("options.animation")]),t._v(" or "),n("code",[t._v("dataset.animation")]),t._v(" and "),n("code",[t._v("tooltip.animation")]),t._v(". These keys are also "),n("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")]),t._v(".")],1),t._v(" "),n("h2",{attrs:{id:"animations-2"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#animations-2"}},[t._v("#")]),t._v(" animations")]),t._v(" "),n("p",[t._v("Animations options configures which element properties are animated and how.\nIn addition to the main "),n("a",{attrs:{href:"#animation-configuration"}},[t._v("animation configuration")]),t._v(", the following options are available:")]),t._v(" "),n("p",[t._v("Namespace: "),n("code",[t._v("options.animations[animation]")])]),t._v(" "),n("table",[n("thead",[n("tr",[n("th",[t._v("Name")]),t._v(" "),n("th",[t._v("Type")]),t._v(" "),n("th",[t._v("Default")]),t._v(" "),n("th",[t._v("Description")])])]),t._v(" "),n("tbody",[n("tr",[n("td",[n("code",[t._v("properties")])]),t._v(" "),n("td",[n("code",[t._v("string[]")])]),t._v(" "),n("td",[n("code",[t._v("key")])]),t._v(" "),n("td",[t._v("The property names this configuration applies to. Defaults to the key name of this object.")])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("type")])]),t._v(" "),n("td",[n("code",[t._v("string")])]),t._v(" "),n("td",[n("code",[t._v("typeof property")])]),t._v(" "),n("td",[t._v("Type of property, determines the interpolator used. Possible values: "),n("code",[t._v("'number'")]),t._v(", "),n("code",[t._v("'color'")]),t._v(" and "),n("code",[t._v("'boolean'")]),t._v(". Only really needed for "),n("code",[t._v("'color'")]),t._v(", because "),n("code",[t._v("typeof")]),t._v(" does not get that right.")])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("from")])]),t._v(" "),n("td",[n("code",[t._v("number")]),t._v("|"),n("code",[t._v("Color")]),t._v("|"),n("code",[t._v("boolean")])]),t._v(" "),n("td",[n("code",[t._v("undefined")])]),t._v(" "),n("td",[t._v("Start value for the animation. Current value is used when "),n("code",[t._v("undefined")])])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("to")])]),t._v(" "),n("td",[n("code",[t._v("number")]),t._v("|"),n("code",[t._v("Color")]),t._v("|"),n("code",[t._v("boolean")])]),t._v(" "),n("td",[n("code",[t._v("undefined")])]),t._v(" "),n("td",[t._v("End value for the animation. Updated value is used when "),n("code",[t._v("undefined")])])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("fn")])]),t._v(" "),n("td",[n("code",[t._v("(from: T, to: T, factor: number) => T;")])]),t._v(" "),n("td",[n("code",[t._v("undefined")])]),t._v(" "),n("td",[t._v("Optional custom interpolator, instead of using a predefined interpolator from "),n("code",[t._v("type")])])])])]),t._v(" "),n("h3",{attrs:{id:"default-animations"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#default-animations"}},[t._v("#")]),t._v(" Default animations")]),t._v(" "),n("table",[n("thead",[n("tr",[n("th",[t._v("Name")]),t._v(" "),n("th",[t._v("Option")]),t._v(" "),n("th",[t._v("Value")])])]),t._v(" "),n("tbody",[n("tr",[n("td",[n("code",[t._v("numbers")])]),t._v(" "),n("td",[n("code",[t._v("properties")])]),t._v(" "),n("td",[n("code",[t._v("['x', 'y', 'borderWidth', 'radius', 'tension']")])])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("numbers")])]),t._v(" "),n("td",[n("code",[t._v("type")])]),t._v(" "),n("td",[n("code",[t._v("'number'")])])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("colors")])]),t._v(" "),n("td",[n("code",[t._v("properties")])]),t._v(" "),n("td",[n("code",[t._v("['color', 'borderColor', 'backgroundColor']")])])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("colors")])]),t._v(" "),n("td",[n("code",[t._v("type")])]),t._v(" "),n("td",[n("code",[t._v("'color'")])])])])]),t._v(" "),n("div",{staticClass:"custom-block tip"},[n("p",{staticClass:"custom-block-title"},[t._v("Note")]),t._v(" "),n("p",[t._v("These default animations are overridden by most of the dataset controllers.")])]),t._v(" "),n("h2",{attrs:{id:"transitions"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),n("p",[t._v("The core transitions are "),n("code",[t._v("'active'")]),t._v(", "),n("code",[t._v("'hide'")]),t._v(", "),n("code",[t._v("'reset'")]),t._v(", "),n("code",[t._v("'resize'")]),t._v(", "),n("code",[t._v("'show'")]),t._v(".\nA custom transition can be used by passing a custom "),n("code",[t._v("mode")]),t._v(" to "),n("RouterLink",{attrs:{to:"/developers/api.html#updatemode"}},[t._v("update")]),t._v(".\nTransition extends the main "),n("a",{attrs:{href:"#animation-configuration"}},[t._v("animation configuration")]),t._v(" and "),n("a",{attrs:{href:"#animations-configuration"}},[t._v("animations configuration")]),t._v(".")],1),t._v(" "),n("h3",{attrs:{id:"default-transitions"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#default-transitions"}},[t._v("#")]),t._v(" Default transitions")]),t._v(" "),n("p",[t._v("Namespace: "),n("code",[t._v("options.transitions[mode]")])]),t._v(" "),n("table",[n("thead",[n("tr",[n("th",[t._v("Mode")]),t._v(" "),n("th",[t._v("Option")]),t._v(" "),n("th",[t._v("Value")]),t._v(" "),n("th",[t._v("Description")])])]),t._v(" "),n("tbody",[n("tr",[n("td",[n("code",[t._v("'active'")])]),t._v(" "),n("td",[t._v("animation.duration")]),t._v(" "),n("td",[t._v("400")]),t._v(" "),n("td",[t._v("Override default duration to 400ms for hover animations")])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("'resize'")])]),t._v(" "),n("td",[t._v("animation.duration")]),t._v(" "),n("td",[t._v("0")]),t._v(" "),n("td",[t._v("Override default duration to 0ms (= no animation) for resize")])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("'show'")])]),t._v(" "),n("td",[t._v("animations.colors")]),t._v(" "),n("td",[n("code",[t._v("{ type: 'color', properties: ['borderColor', 'backgroundColor'], from: 'transparent' }")])]),t._v(" "),n("td",[t._v("Colors are faded in from transparent when dataset is shown using legend / "),n("RouterLink",{attrs:{to:"/developers/api.html#showdatasetIndex"}},[t._v("api")]),t._v(".")],1)]),t._v(" "),n("tr",[n("td",[n("code",[t._v("'show'")])]),t._v(" "),n("td",[t._v("animations.visible")]),t._v(" "),n("td",[n("code",[t._v("{ type: 'boolean', duration: 0 }")])]),t._v(" "),n("td",[t._v("Dataset visiblity is immediately changed to true so the color transition from transparent is visible.")])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("'hide'")])]),t._v(" "),n("td",[t._v("animations.colors")]),t._v(" "),n("td",[n("code",[t._v("{ type: 'color', properties: ['borderColor', 'backgroundColor'], to: 'transparent' }")])]),t._v(" "),n("td",[t._v("Colors are faded to transparent when dataset id hidden using legend / "),n("RouterLink",{attrs:{to:"/developers/api.html#hidedatasetIndex"}},[t._v("api")]),t._v(".")],1)]),t._v(" "),n("tr",[n("td",[n("code",[t._v("'hide'")])]),t._v(" "),n("td",[t._v("animations.visible")]),t._v(" "),n("td",[n("code",[t._v("{ type: 'boolean', easing: 'easeInExpo' }")])]),t._v(" "),n("td",[t._v("Visibility is changed to false at a very late phase of animation")])])])]),t._v(" "),n("h2",{attrs:{id:"disabling-animation"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#disabling-animation"}},[t._v("#")]),t._v(" Disabling animation")]),t._v(" "),n("p",[t._v("To disable an animation configuration, the animation node must be set to "),n("code",[t._v("false")]),t._v(", with the exception for animation modes which can be disabled by setting the "),n("code",[t._v("duration")]),t._v(" to "),n("code",[t._v("0")]),t._v(".")]),t._v(" "),n("div",{staticClass:"language-javascript extra-class"},[n("pre",{pre:!0,attrs:{class:"language-javascript"}},[n("code",[t._v("chart"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("animation "),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// disables all animations")]),t._v("\nchart"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("animations"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("colors "),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// disables animation defined by the collection of 'colors' properties")]),t._v("\nchart"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("animations"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("x "),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// disables animation defined by the 'x' property")]),t._v("\nchart"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("transitions"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("active"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("animation"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("duration "),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// disables the animation for 'active' mode")]),t._v("\n")])])]),n("h2",{attrs:{id:"easing"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#easing"}},[t._v("#")]),t._v(" Easing")]),t._v(" "),n("p",[t._v("Available options are:")]),t._v(" "),n("ul",[n("li",[n("code",[t._v("'linear'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInQuad'")])]),t._v(" "),n("li",[n("code",[t._v("'easeOutQuad'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInOutQuad'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInCubic'")])]),t._v(" "),n("li",[n("code",[t._v("'easeOutCubic'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInOutCubic'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInQuart'")])]),t._v(" "),n("li",[n("code",[t._v("'easeOutQuart'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInOutQuart'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInQuint'")])]),t._v(" "),n("li",[n("code",[t._v("'easeOutQuint'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInOutQuint'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInSine'")])]),t._v(" "),n("li",[n("code",[t._v("'easeOutSine'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInOutSine'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInExpo'")])]),t._v(" "),n("li",[n("code",[t._v("'easeOutExpo'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInOutExpo'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInCirc'")])]),t._v(" "),n("li",[n("code",[t._v("'easeOutCirc'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInOutCirc'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInElastic'")])]),t._v(" "),n("li",[n("code",[t._v("'easeOutElastic'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInOutElastic'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInBack'")])]),t._v(" "),n("li",[n("code",[t._v("'easeOutBack'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInOutBack'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInBounce'")])]),t._v(" "),n("li",[n("code",[t._v("'easeOutBounce'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInOutBounce'")])])]),t._v(" "),n("p",[t._v("See "),n("a",{attrs:{href:"http://robertpenner.com/easing/",target:"_blank",rel:"noopener noreferrer"}},[t._v("Robert Penner's easing equations"),n("OutboundLink")],1),t._v(".")]),t._v(" "),n("h2",{attrs:{id:"animation-callbacks"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#animation-callbacks"}},[t._v("#")]),t._v(" Animation Callbacks")]),t._v(" "),n("p",[t._v("The animation configuration provides callbacks which are useful for synchronizing an external draw to the chart animation.\nThe callbacks can be set only at main "),n("a",{attrs:{href:"#animation-configuration"}},[t._v("animation configuration")]),t._v(".")]),t._v(" "),n("p",[t._v("Namespace: "),n("code",[t._v("options.animation")])]),t._v(" "),n("table",[n("thead",[n("tr",[n("th",[t._v("Name")]),t._v(" "),n("th",[t._v("Type")]),t._v(" "),n("th",[t._v("Default")]),t._v(" "),n("th",[t._v("Description")])])]),t._v(" "),n("tbody",[n("tr",[n("td",[n("code",[t._v("onProgress")])]),t._v(" "),n("td",[n("code",[t._v("function")])]),t._v(" "),n("td",[n("code",[t._v("null")])]),t._v(" "),n("td",[t._v("Callback called on each step of an animation.")])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("onComplete")])]),t._v(" "),n("td",[n("code",[t._v("function")])]),t._v(" "),n("td",[n("code",[t._v("null")])]),t._v(" "),n("td",[t._v("Callback called when all animations are completed.")])])])]),t._v(" "),n("p",[t._v("The callback is passed the following object:")]),t._v(" "),n("div",{staticClass:"language-javascript extra-class"},[n("pre",{pre:!0,attrs:{class:"language-javascript"}},[n("code",[n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),n("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Chart object")]),t._v("\n chart"),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Chart"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),n("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Number of animations still in progress")]),t._v("\n currentStep"),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),n("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Total number of animations at the start of current animation")]),t._v("\n numSteps"),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),n("p",[t._v("The following example fills a progress bar during the chart animation.")]),t._v(" "),n("div",{staticClass:"language-javascript extra-class"},[n("pre",{pre:!0,attrs:{class:"language-javascript"}},[n("code",[n("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n animation"),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),n("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("onProgress")]),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),n("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("animation")]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n progress"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("value "),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" animation"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("currentStep "),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v("/")]),t._v(" animation"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("numSteps"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),n("p",[t._v("Another example usage of these callbacks can be found on "),n("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/master/samples/advanced/progress-bar.html",target:"_blank",rel:"noopener noreferrer"}},[t._v("Github"),n("OutboundLink")],1),t._v(": this sample displays a progress bar showing how far along the animation is.")])],1)}),[],!1,null,null,null);a.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[143],{467:function(t,a,n){"use strict";n.r(a);var e=n(7),o=Object(e.a)({},(function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[n("h1",{attrs:{id:"animations"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" Animations")]),t._v(" "),n("p",[t._v("Chart.js animates charts out of the box. A number of options are provided to configure how the animation looks and how long it takes.")]),t._v(" "),n("tabs",[n("tab",{attrs:{name:"Looping tension [property]"}},[n("chart-editor",{attrs:{code:"// \nconst data = {\n labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],\n datasets: [{\n label: 'Looping tension',\n data: [65, 59, 80, 81, 26, 55, 40],\n fill: false,\n borderColor: 'rgb(75, 192, 192)',\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n animations: {\n tension: {\n duration: 1000,\n easing: 'linear',\n from: 1,\n to: 0,\n loop: true\n }\n },\n scales: {\n y: { // defining min and max so hiding the dataset does not change scale range\n min: 0,\n max: 100\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1),t._v(" "),n("tab",{attrs:{name:"Hide and show [mode]"}},[n("chart-editor",{attrs:{code:"// \nconst data = {\n labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],\n datasets: [{\n label: 'Try hiding me',\n data: [65, 59, 80, 81, 26, 55, 40],\n fill: false,\n borderColor: 'rgb(75, 192, 192)',\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n transitions: {\n show: {\n animations: {\n x: {\n from: 0\n },\n y: {\n from: 0\n }\n }\n },\n hide: {\n animations: {\n x: {\n to: 0\n },\n y: {\n to: 0\n }\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)],1),t._v(" "),n("h2",{attrs:{id:"animation-configuration"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#animation-configuration"}},[t._v("#")]),t._v(" Animation configuration")]),t._v(" "),n("p",[t._v("Animation configuration consists of 3 keys.")]),t._v(" "),n("table",[n("thead",[n("tr",[n("th",[t._v("Name")]),t._v(" "),n("th",[t._v("Type")]),t._v(" "),n("th",[t._v("Details")])])]),t._v(" "),n("tbody",[n("tr",[n("td",[t._v("animation")]),t._v(" "),n("td",[n("code",[t._v("object")])]),t._v(" "),n("td",[n("a",{attrs:{href:"#animation"}},[t._v("animation")])])]),t._v(" "),n("tr",[n("td",[t._v("animations")]),t._v(" "),n("td",[n("code",[t._v("object")])]),t._v(" "),n("td",[n("a",{attrs:{href:"#animations"}},[t._v("animations")])])]),t._v(" "),n("tr",[n("td",[t._v("transitions")]),t._v(" "),n("td",[n("code",[t._v("object")])]),t._v(" "),n("td",[n("a",{attrs:{href:"#transitions"}},[t._v("transitions")])])])])]),t._v(" "),n("p",[t._v("These keys can be configured in following paths:")]),t._v(" "),n("ul",[n("li",[t._v("`` - chart options")]),t._v(" "),n("li",[n("code",[t._v("datasets[type]")]),t._v(" - dataset type options")]),t._v(" "),n("li",[n("code",[t._v("overrides[type]")]),t._v(" - chart type options")])]),t._v(" "),n("p",[t._v("These paths are valid under "),n("code",[t._v("defaults")]),t._v(" for global confuguration and "),n("code",[t._v("options")]),t._v(" for instance configuration.")]),t._v(" "),n("h2",{attrs:{id:"animation"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),n("p",[t._v("The default configuration is defined here: "),n("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/master/src/core/core.animations.js",target:"_blank"}},[t._v("core.animations.js")])]),t._v(" "),n("p",[t._v("Namespace: "),n("code",[t._v("options.animation")])]),t._v(" "),n("table",[n("thead",[n("tr",[n("th",[t._v("Name")]),t._v(" "),n("th",[t._v("Type")]),t._v(" "),n("th",[t._v("Default")]),t._v(" "),n("th",[t._v("Description")])])]),t._v(" "),n("tbody",[n("tr",[n("td",[n("code",[t._v("duration")])]),t._v(" "),n("td",[n("code",[t._v("number")])]),t._v(" "),n("td",[n("code",[t._v("1000")])]),t._v(" "),n("td",[t._v("The number of milliseconds an animation takes.")])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("easing")])]),t._v(" "),n("td",[n("code",[t._v("string")])]),t._v(" "),n("td",[n("code",[t._v("'easeOutQuart'")])]),t._v(" "),n("td",[t._v("Easing function to use. "),n("a",{attrs:{href:"#easing"}},[t._v("more...")])])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("delay")])]),t._v(" "),n("td",[n("code",[t._v("number")])]),t._v(" "),n("td",[n("code",[t._v("undefined")])]),t._v(" "),n("td",[t._v("Delay before starting the animations.")])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("loop")])]),t._v(" "),n("td",[n("code",[t._v("boolean")])]),t._v(" "),n("td",[n("code",[t._v("undefined")])]),t._v(" "),n("td",[t._v("If set to "),n("code",[t._v("true")]),t._v(", the animations loop endlessly.")])])])]),t._v(" "),n("p",[t._v("These defaults can be overridden in "),n("code",[t._v("options.animation")]),t._v(" or "),n("code",[t._v("dataset.animation")]),t._v(" and "),n("code",[t._v("tooltip.animation")]),t._v(". These keys are also "),n("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")]),t._v(".")],1),t._v(" "),n("h2",{attrs:{id:"animations-2"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#animations-2"}},[t._v("#")]),t._v(" animations")]),t._v(" "),n("p",[t._v("Animations options configures which element properties are animated and how.\nIn addition to the main "),n("a",{attrs:{href:"#animation-configuration"}},[t._v("animation configuration")]),t._v(", the following options are available:")]),t._v(" "),n("p",[t._v("Namespace: "),n("code",[t._v("options.animations[animation]")])]),t._v(" "),n("table",[n("thead",[n("tr",[n("th",[t._v("Name")]),t._v(" "),n("th",[t._v("Type")]),t._v(" "),n("th",[t._v("Default")]),t._v(" "),n("th",[t._v("Description")])])]),t._v(" "),n("tbody",[n("tr",[n("td",[n("code",[t._v("properties")])]),t._v(" "),n("td",[n("code",[t._v("string[]")])]),t._v(" "),n("td",[n("code",[t._v("key")])]),t._v(" "),n("td",[t._v("The property names this configuration applies to. Defaults to the key name of this object.")])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("type")])]),t._v(" "),n("td",[n("code",[t._v("string")])]),t._v(" "),n("td",[n("code",[t._v("typeof property")])]),t._v(" "),n("td",[t._v("Type of property, determines the interpolator used. Possible values: "),n("code",[t._v("'number'")]),t._v(", "),n("code",[t._v("'color'")]),t._v(" and "),n("code",[t._v("'boolean'")]),t._v(". Only really needed for "),n("code",[t._v("'color'")]),t._v(", because "),n("code",[t._v("typeof")]),t._v(" does not get that right.")])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("from")])]),t._v(" "),n("td",[n("code",[t._v("number")]),t._v("|"),n("code",[t._v("Color")]),t._v("|"),n("code",[t._v("boolean")])]),t._v(" "),n("td",[n("code",[t._v("undefined")])]),t._v(" "),n("td",[t._v("Start value for the animation. Current value is used when "),n("code",[t._v("undefined")])])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("to")])]),t._v(" "),n("td",[n("code",[t._v("number")]),t._v("|"),n("code",[t._v("Color")]),t._v("|"),n("code",[t._v("boolean")])]),t._v(" "),n("td",[n("code",[t._v("undefined")])]),t._v(" "),n("td",[t._v("End value for the animation. Updated value is used when "),n("code",[t._v("undefined")])])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("fn")])]),t._v(" "),n("td",[n("code",[t._v("(from: T, to: T, factor: number) => T;")])]),t._v(" "),n("td",[n("code",[t._v("undefined")])]),t._v(" "),n("td",[t._v("Optional custom interpolator, instead of using a predefined interpolator from "),n("code",[t._v("type")])])])])]),t._v(" "),n("h3",{attrs:{id:"default-animations"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#default-animations"}},[t._v("#")]),t._v(" Default animations")]),t._v(" "),n("table",[n("thead",[n("tr",[n("th",[t._v("Name")]),t._v(" "),n("th",[t._v("Option")]),t._v(" "),n("th",[t._v("Value")])])]),t._v(" "),n("tbody",[n("tr",[n("td",[n("code",[t._v("numbers")])]),t._v(" "),n("td",[n("code",[t._v("properties")])]),t._v(" "),n("td",[n("code",[t._v("['x', 'y', 'borderWidth', 'radius', 'tension']")])])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("numbers")])]),t._v(" "),n("td",[n("code",[t._v("type")])]),t._v(" "),n("td",[n("code",[t._v("'number'")])])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("colors")])]),t._v(" "),n("td",[n("code",[t._v("properties")])]),t._v(" "),n("td",[n("code",[t._v("['color', 'borderColor', 'backgroundColor']")])])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("colors")])]),t._v(" "),n("td",[n("code",[t._v("type")])]),t._v(" "),n("td",[n("code",[t._v("'color'")])])])])]),t._v(" "),n("div",{staticClass:"custom-block tip"},[n("p",{staticClass:"custom-block-title"},[t._v("Note")]),t._v(" "),n("p",[t._v("These default animations are overridden by most of the dataset controllers.")])]),t._v(" "),n("h2",{attrs:{id:"transitions"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),n("p",[t._v("The core transitions are "),n("code",[t._v("'active'")]),t._v(", "),n("code",[t._v("'hide'")]),t._v(", "),n("code",[t._v("'reset'")]),t._v(", "),n("code",[t._v("'resize'")]),t._v(", "),n("code",[t._v("'show'")]),t._v(".\nA custom transition can be used by passing a custom "),n("code",[t._v("mode")]),t._v(" to "),n("RouterLink",{attrs:{to:"/developers/api.html#updatemode"}},[t._v("update")]),t._v(".\nTransition extends the main "),n("a",{attrs:{href:"#animation-configuration"}},[t._v("animation configuration")]),t._v(" and "),n("a",{attrs:{href:"#animations-configuration"}},[t._v("animations configuration")]),t._v(".")],1),t._v(" "),n("h3",{attrs:{id:"default-transitions"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#default-transitions"}},[t._v("#")]),t._v(" Default transitions")]),t._v(" "),n("p",[t._v("Namespace: "),n("code",[t._v("options.transitions[mode]")])]),t._v(" "),n("table",[n("thead",[n("tr",[n("th",[t._v("Mode")]),t._v(" "),n("th",[t._v("Option")]),t._v(" "),n("th",[t._v("Value")]),t._v(" "),n("th",[t._v("Description")])])]),t._v(" "),n("tbody",[n("tr",[n("td",[n("code",[t._v("'active'")])]),t._v(" "),n("td",[t._v("animation.duration")]),t._v(" "),n("td",[t._v("400")]),t._v(" "),n("td",[t._v("Override default duration to 400ms for hover animations")])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("'resize'")])]),t._v(" "),n("td",[t._v("animation.duration")]),t._v(" "),n("td",[t._v("0")]),t._v(" "),n("td",[t._v("Override default duration to 0ms (= no animation) for resize")])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("'show'")])]),t._v(" "),n("td",[t._v("animations.colors")]),t._v(" "),n("td",[n("code",[t._v("{ type: 'color', properties: ['borderColor', 'backgroundColor'], from: 'transparent' }")])]),t._v(" "),n("td",[t._v("Colors are faded in from transparent when dataset is shown using legend / "),n("RouterLink",{attrs:{to:"/developers/api.html#showdatasetIndex"}},[t._v("api")]),t._v(".")],1)]),t._v(" "),n("tr",[n("td",[n("code",[t._v("'show'")])]),t._v(" "),n("td",[t._v("animations.visible")]),t._v(" "),n("td",[n("code",[t._v("{ type: 'boolean', duration: 0 }")])]),t._v(" "),n("td",[t._v("Dataset visiblity is immediately changed to true so the color transition from transparent is visible.")])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("'hide'")])]),t._v(" "),n("td",[t._v("animations.colors")]),t._v(" "),n("td",[n("code",[t._v("{ type: 'color', properties: ['borderColor', 'backgroundColor'], to: 'transparent' }")])]),t._v(" "),n("td",[t._v("Colors are faded to transparent when dataset id hidden using legend / "),n("RouterLink",{attrs:{to:"/developers/api.html#hidedatasetIndex"}},[t._v("api")]),t._v(".")],1)]),t._v(" "),n("tr",[n("td",[n("code",[t._v("'hide'")])]),t._v(" "),n("td",[t._v("animations.visible")]),t._v(" "),n("td",[n("code",[t._v("{ type: 'boolean', easing: 'easeInExpo' }")])]),t._v(" "),n("td",[t._v("Visibility is changed to false at a very late phase of animation")])])])]),t._v(" "),n("h2",{attrs:{id:"disabling-animation"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#disabling-animation"}},[t._v("#")]),t._v(" Disabling animation")]),t._v(" "),n("p",[t._v("To disable an animation configuration, the animation node must be set to "),n("code",[t._v("false")]),t._v(", with the exception for animation modes which can be disabled by setting the "),n("code",[t._v("duration")]),t._v(" to "),n("code",[t._v("0")]),t._v(".")]),t._v(" "),n("div",{staticClass:"language-javascript extra-class"},[n("pre",{pre:!0,attrs:{class:"language-javascript"}},[n("code",[t._v("chart"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("animation "),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// disables all animations")]),t._v("\nchart"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("animations"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("colors "),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// disables animation defined by the collection of 'colors' properties")]),t._v("\nchart"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("animations"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("x "),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// disables animation defined by the 'x' property")]),t._v("\nchart"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("transitions"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("active"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("animation"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("duration "),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// disables the animation for 'active' mode")]),t._v("\n")])])]),n("h2",{attrs:{id:"easing"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#easing"}},[t._v("#")]),t._v(" Easing")]),t._v(" "),n("p",[t._v("Available options are:")]),t._v(" "),n("ul",[n("li",[n("code",[t._v("'linear'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInQuad'")])]),t._v(" "),n("li",[n("code",[t._v("'easeOutQuad'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInOutQuad'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInCubic'")])]),t._v(" "),n("li",[n("code",[t._v("'easeOutCubic'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInOutCubic'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInQuart'")])]),t._v(" "),n("li",[n("code",[t._v("'easeOutQuart'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInOutQuart'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInQuint'")])]),t._v(" "),n("li",[n("code",[t._v("'easeOutQuint'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInOutQuint'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInSine'")])]),t._v(" "),n("li",[n("code",[t._v("'easeOutSine'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInOutSine'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInExpo'")])]),t._v(" "),n("li",[n("code",[t._v("'easeOutExpo'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInOutExpo'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInCirc'")])]),t._v(" "),n("li",[n("code",[t._v("'easeOutCirc'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInOutCirc'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInElastic'")])]),t._v(" "),n("li",[n("code",[t._v("'easeOutElastic'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInOutElastic'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInBack'")])]),t._v(" "),n("li",[n("code",[t._v("'easeOutBack'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInOutBack'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInBounce'")])]),t._v(" "),n("li",[n("code",[t._v("'easeOutBounce'")])]),t._v(" "),n("li",[n("code",[t._v("'easeInOutBounce'")])])]),t._v(" "),n("p",[t._v("See "),n("a",{attrs:{href:"http://robertpenner.com/easing/",target:"_blank",rel:"noopener noreferrer"}},[t._v("Robert Penner's easing equations"),n("OutboundLink")],1),t._v(".")]),t._v(" "),n("h2",{attrs:{id:"animation-callbacks"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#animation-callbacks"}},[t._v("#")]),t._v(" Animation Callbacks")]),t._v(" "),n("p",[t._v("The animation configuration provides callbacks which are useful for synchronizing an external draw to the chart animation.\nThe callbacks can be set only at main "),n("a",{attrs:{href:"#animation-configuration"}},[t._v("animation configuration")]),t._v(".")]),t._v(" "),n("p",[t._v("Namespace: "),n("code",[t._v("options.animation")])]),t._v(" "),n("table",[n("thead",[n("tr",[n("th",[t._v("Name")]),t._v(" "),n("th",[t._v("Type")]),t._v(" "),n("th",[t._v("Default")]),t._v(" "),n("th",[t._v("Description")])])]),t._v(" "),n("tbody",[n("tr",[n("td",[n("code",[t._v("onProgress")])]),t._v(" "),n("td",[n("code",[t._v("function")])]),t._v(" "),n("td",[n("code",[t._v("null")])]),t._v(" "),n("td",[t._v("Callback called on each step of an animation.")])]),t._v(" "),n("tr",[n("td",[n("code",[t._v("onComplete")])]),t._v(" "),n("td",[n("code",[t._v("function")])]),t._v(" "),n("td",[n("code",[t._v("null")])]),t._v(" "),n("td",[t._v("Callback called when all animations are completed.")])])])]),t._v(" "),n("p",[t._v("The callback is passed the following object:")]),t._v(" "),n("div",{staticClass:"language-javascript extra-class"},[n("pre",{pre:!0,attrs:{class:"language-javascript"}},[n("code",[n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),n("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Chart object")]),t._v("\n chart"),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Chart"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),n("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Number of animations still in progress")]),t._v("\n currentStep"),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),n("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Total number of animations at the start of current animation")]),t._v("\n numSteps"),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),n("p",[t._v("The following example fills a progress bar during the chart animation.")]),t._v(" "),n("div",{staticClass:"language-javascript extra-class"},[n("pre",{pre:!0,attrs:{class:"language-javascript"}},[n("code",[n("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n animation"),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),n("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("onProgress")]),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),n("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("animation")]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n progress"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("value "),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" animation"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("currentStep "),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v("/")]),t._v(" animation"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("numSteps"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),n("p",[t._v("Another example usage of these callbacks can be found on "),n("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/master/samples/advanced/progress-bar.html",target:"_blank",rel:"noopener noreferrer"}},[t._v("Github"),n("OutboundLink")],1),t._v(": this sample displays a progress bar showing how far along the animation is.")])],1)}),[],!1,null,null,null);a.default=o.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/144.6e658e5a.js b/docs/latest/assets/js/144.68b9b863.js similarity index 98% rename from docs/latest/assets/js/144.6e658e5a.js rename to docs/latest/assets/js/144.68b9b863.js index 0456193e78..fc14c91266 100644 --- a/docs/latest/assets/js/144.6e658e5a.js +++ b/docs/latest/assets/js/144.68b9b863.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[144],{469:function(n,t,a){"use strict";a.r(t);var e=a(7),o=Object(e.a)({},(function(){var n=this,t=n.$createElement,a=n._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":n.$parent.slotKey}},[a("h1",{attrs:{id:"canvas-background"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#canvas-background"}},[n._v("#")]),n._v(" Canvas background")]),n._v(" "),a("p",[n._v("In some use cases you would want a background image or color over the whole canvas. There is no built-in support for this, the way you can achieve this is by writing a custom plugin.")]),n._v(" "),a("p",[n._v("In the two example plugins underneath here you can see how you can draw a color or image to the canvas as background. This way of giving the chart a background is only necessary if you want to export the chart with that specific background.\nFor normal use you can set the background more easily with "),a("a",{attrs:{href:"https://www.w3schools.com/cssref/css3_pr_background.asp",target:"_blank",rel:"noopener noreferrer"}},[n._v("CSS"),a("OutboundLink")],1),n._v(".")]),n._v(" "),a("tabs",[a("tab",{attrs:{name:"Color"}},[a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Red',\n 'Blue',\n 'Yellow'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [300, 50, 100],\n backgroundColor: [\n 'rgb(255, 99, 132)',\n 'rgb(54, 162, 235)',\n 'rgb(255, 205, 86)'\n ],\n hoverOffset: 4\n }]\n};\n// \n\n// \n// Note: changes to the plugin code is not reflected to the chart, because the plugin is loaded at chart construction time and editor changes only trigger an chart.update().\nconst plugin = {\n id: 'custom_canvas_background_color',\n beforeDraw: (chart) => {\n const ctx = chart.canvas.getContext('2d');\n ctx.save();\n ctx.globalCompositeOperation = 'destination-over';\n ctx.fillStyle = 'lightGreen';\n ctx.fillRect(0, 0, chart.width, chart.height);\n ctx.restore();\n }\n};\n// \n\n// \nconst config = {\n type: 'doughnut',\n data: data,\n plugins: [plugin],\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1),n._v(" "),a("tab",{attrs:{name:"Image"}},[a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Red',\n 'Blue',\n 'Yellow'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [300, 50, 100],\n backgroundColor: [\n 'rgb(255, 99, 132)',\n 'rgb(54, 162, 235)',\n 'rgb(255, 205, 86)'\n ],\n hoverOffset: 4\n }]\n};\n// \n\n// \n// Note: changes to the plugin code is not reflected to the chart, because the plugin is loaded at chart construction time and editor changes only trigger an chart.update().\nconst image = new Image();\nimage.src = 'https://www.chartjs.org/img/chartjs-logo.svg';\n\nconst plugin = {\n id: 'custom_canvas_background_image',\n beforeDraw: (chart) => {\n if (image.complete) {\n const ctx = chart.ctx;\n const {top, left, width, height} = chart.chartArea;\n const x = left + width / 2 - image.width / 2;\n const y = top + height / 2 - image.height / 2;\n ctx.drawImage(image, x, y);\n } else {\n image.onload = () => chart.draw();\n }\n }\n};\n// \n\n// \nconst config = {\n type: 'doughnut',\n data: data,\n plugins: [plugin],\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)],1)],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[144],{468:function(n,t,a){"use strict";a.r(t);var e=a(7),o=Object(e.a)({},(function(){var n=this,t=n.$createElement,a=n._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":n.$parent.slotKey}},[a("h1",{attrs:{id:"canvas-background"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#canvas-background"}},[n._v("#")]),n._v(" Canvas background")]),n._v(" "),a("p",[n._v("In some use cases you would want a background image or color over the whole canvas. There is no built-in support for this, the way you can achieve this is by writing a custom plugin.")]),n._v(" "),a("p",[n._v("In the two example plugins underneath here you can see how you can draw a color or image to the canvas as background. This way of giving the chart a background is only necessary if you want to export the chart with that specific background.\nFor normal use you can set the background more easily with "),a("a",{attrs:{href:"https://www.w3schools.com/cssref/css3_pr_background.asp",target:"_blank",rel:"noopener noreferrer"}},[n._v("CSS"),a("OutboundLink")],1),n._v(".")]),n._v(" "),a("tabs",[a("tab",{attrs:{name:"Color"}},[a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Red',\n 'Blue',\n 'Yellow'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [300, 50, 100],\n backgroundColor: [\n 'rgb(255, 99, 132)',\n 'rgb(54, 162, 235)',\n 'rgb(255, 205, 86)'\n ],\n hoverOffset: 4\n }]\n};\n// \n\n// \n// Note: changes to the plugin code is not reflected to the chart, because the plugin is loaded at chart construction time and editor changes only trigger an chart.update().\nconst plugin = {\n id: 'custom_canvas_background_color',\n beforeDraw: (chart) => {\n const ctx = chart.canvas.getContext('2d');\n ctx.save();\n ctx.globalCompositeOperation = 'destination-over';\n ctx.fillStyle = 'lightGreen';\n ctx.fillRect(0, 0, chart.width, chart.height);\n ctx.restore();\n }\n};\n// \n\n// \nconst config = {\n type: 'doughnut',\n data: data,\n plugins: [plugin],\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1),n._v(" "),a("tab",{attrs:{name:"Image"}},[a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Red',\n 'Blue',\n 'Yellow'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [300, 50, 100],\n backgroundColor: [\n 'rgb(255, 99, 132)',\n 'rgb(54, 162, 235)',\n 'rgb(255, 205, 86)'\n ],\n hoverOffset: 4\n }]\n};\n// \n\n// \n// Note: changes to the plugin code is not reflected to the chart, because the plugin is loaded at chart construction time and editor changes only trigger an chart.update().\nconst image = new Image();\nimage.src = 'https://www.chartjs.org/img/chartjs-logo.svg';\n\nconst plugin = {\n id: 'custom_canvas_background_image',\n beforeDraw: (chart) => {\n if (image.complete) {\n const ctx = chart.ctx;\n const {top, left, width, height} = chart.chartArea;\n const x = left + width / 2 - image.width / 2;\n const y = top + height / 2 - image.height / 2;\n ctx.drawImage(image, x, y);\n } else {\n image.onload = () => chart.draw();\n }\n }\n};\n// \n\n// \nconst config = {\n type: 'doughnut',\n data: data,\n plugins: [plugin],\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)],1)],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/145.5713ccac.js b/docs/latest/assets/js/145.a9f9466e.js similarity index 98% rename from docs/latest/assets/js/145.5713ccac.js rename to docs/latest/assets/js/145.a9f9466e.js index 186d6ee0eb..7eb2118a58 100644 --- a/docs/latest/assets/js/145.5713ccac.js +++ b/docs/latest/assets/js/145.a9f9466e.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[145],{470:function(t,e,a){"use strict";a.r(e);var i=a(7),r=Object(i.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"data-decimation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-decimation"}},[t._v("#")]),t._v(" Data Decimation")]),t._v(" "),a("p",[t._v("The decimation plugin can be used with line charts to automatically decimate data at the start of the chart lifecycle. Before enabling this plugin, review the "),a("a",{attrs:{href:"#requirements"}},[t._v("requirements")]),t._v(" to ensure that it will work with the chart you want to create.")]),t._v(" "),a("h2",{attrs:{id:"configuration-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configuration-options"}},[t._v("#")]),t._v(" Configuration Options")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.plugins.decimation")]),t._v(", the global options for the plugin are defined in "),a("code",[t._v("Chart.defaults.plugins.decimation")]),t._v(".")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("enabled")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Is decimation enabled?")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("algorithm")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'min-max'")])]),t._v(" "),a("td",[t._v("Decimation algorithm to use. See the "),a("a",{attrs:{href:"#decimation-algorithms"}},[t._v("more...")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("samples")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("If the "),a("code",[t._v("'lttb'")]),t._v(" algorithm is used, this is the number of samples in the output dataset. Defaults to the canvas width to pick 1 sample per pixel.")])])])]),t._v(" "),a("h2",{attrs:{id:"decimation-algorithms"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#decimation-algorithms"}},[t._v("#")]),t._v(" Decimation Algorithms")]),t._v(" "),a("p",[t._v("Decimation algorithm to use for data. Options are:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'lttb'")])]),t._v(" "),a("li",[a("code",[t._v("'min-max'")])])]),t._v(" "),a("h3",{attrs:{id:"largest-triangle-three-bucket-lttb-decimation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#largest-triangle-three-bucket-lttb-decimation"}},[t._v("#")]),t._v(" Largest Triangle Three Bucket (LTTB) Decimation")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/sveinn-steinarsson/flot-downsample",target:"_blank",rel:"noopener noreferrer"}},[t._v("LTTB"),a("OutboundLink")],1),t._v(" decimation reduces the number of data points significantly. This is most useful for showing trends in data using only a few data points.")]),t._v(" "),a("h3",{attrs:{id:"min-max-decimation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#min-max-decimation"}},[t._v("#")]),t._v(" Min/Max Decimation")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://digital.ni.com/public.nsf/allkb/F694FFEEA0ACF282862576020075F784",target:"_blank",rel:"noopener noreferrer"}},[t._v("Min/max"),a("OutboundLink")],1),t._v(" decimation will preserve peaks in your data but could require up to 4 points for each pixel. This type of decimation would work well for a very noisy signal where you need to see data peaks.")]),t._v(" "),a("h2",{attrs:{id:"requirements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#requirements"}},[t._v("#")]),t._v(" Requirements")]),t._v(" "),a("p",[t._v("To use the decimation plugin, the following requirements must be met:")]),t._v(" "),a("ol",[a("li",[t._v("The dataset must have an "),a("RouterLink",{attrs:{to:"/charts/line.html#general"}},[a("code",[t._v("indexAxis")])]),t._v(" of "),a("code",[t._v("'x'")])],1),t._v(" "),a("li",[t._v("The dataset must be a line")]),t._v(" "),a("li",[t._v("The X axis for the dataset must be either a "),a("RouterLink",{attrs:{to:"/axes/cartesian/linear.html"}},[a("code",[t._v("'linear'")])]),t._v(" or "),a("RouterLink",{attrs:{to:"/axes/cartesian/time.html"}},[a("code",[t._v("'time'")])]),t._v(" type axis")],1),t._v(" "),a("li",[t._v("Data must not need parsing, i.e. "),a("RouterLink",{attrs:{to:"/general/data-structures.html#dataset-configuration"}},[a("code",[t._v("parsing")])]),t._v(" must be "),a("code",[t._v("false")])],1),t._v(" "),a("li",[t._v("The dataset object must be mutable. The plugin stores the original data as "),a("code",[t._v("dataset._data")]),t._v(" and then defines a new "),a("code",[t._v("data")]),t._v(" property on the dataset.")])]),t._v(" "),a("h2",{attrs:{id:"related-samples"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#related-samples"}},[t._v("#")]),t._v(" Related Samples")]),t._v(" "),a("ul",[a("li",[a("a",{attrs:{href:"../samples/advanced/data-decimation"}},[t._v("Data Decimation Sample")])])])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[145],{469:function(t,e,a){"use strict";a.r(e);var i=a(7),r=Object(i.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"data-decimation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-decimation"}},[t._v("#")]),t._v(" Data Decimation")]),t._v(" "),a("p",[t._v("The decimation plugin can be used with line charts to automatically decimate data at the start of the chart lifecycle. Before enabling this plugin, review the "),a("a",{attrs:{href:"#requirements"}},[t._v("requirements")]),t._v(" to ensure that it will work with the chart you want to create.")]),t._v(" "),a("h2",{attrs:{id:"configuration-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configuration-options"}},[t._v("#")]),t._v(" Configuration Options")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.plugins.decimation")]),t._v(", the global options for the plugin are defined in "),a("code",[t._v("Chart.defaults.plugins.decimation")]),t._v(".")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("enabled")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Is decimation enabled?")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("algorithm")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'min-max'")])]),t._v(" "),a("td",[t._v("Decimation algorithm to use. See the "),a("a",{attrs:{href:"#decimation-algorithms"}},[t._v("more...")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("samples")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("If the "),a("code",[t._v("'lttb'")]),t._v(" algorithm is used, this is the number of samples in the output dataset. Defaults to the canvas width to pick 1 sample per pixel.")])])])]),t._v(" "),a("h2",{attrs:{id:"decimation-algorithms"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#decimation-algorithms"}},[t._v("#")]),t._v(" Decimation Algorithms")]),t._v(" "),a("p",[t._v("Decimation algorithm to use for data. Options are:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'lttb'")])]),t._v(" "),a("li",[a("code",[t._v("'min-max'")])])]),t._v(" "),a("h3",{attrs:{id:"largest-triangle-three-bucket-lttb-decimation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#largest-triangle-three-bucket-lttb-decimation"}},[t._v("#")]),t._v(" Largest Triangle Three Bucket (LTTB) Decimation")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/sveinn-steinarsson/flot-downsample",target:"_blank",rel:"noopener noreferrer"}},[t._v("LTTB"),a("OutboundLink")],1),t._v(" decimation reduces the number of data points significantly. This is most useful for showing trends in data using only a few data points.")]),t._v(" "),a("h3",{attrs:{id:"min-max-decimation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#min-max-decimation"}},[t._v("#")]),t._v(" Min/Max Decimation")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://digital.ni.com/public.nsf/allkb/F694FFEEA0ACF282862576020075F784",target:"_blank",rel:"noopener noreferrer"}},[t._v("Min/max"),a("OutboundLink")],1),t._v(" decimation will preserve peaks in your data but could require up to 4 points for each pixel. This type of decimation would work well for a very noisy signal where you need to see data peaks.")]),t._v(" "),a("h2",{attrs:{id:"requirements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#requirements"}},[t._v("#")]),t._v(" Requirements")]),t._v(" "),a("p",[t._v("To use the decimation plugin, the following requirements must be met:")]),t._v(" "),a("ol",[a("li",[t._v("The dataset must have an "),a("RouterLink",{attrs:{to:"/charts/line.html#general"}},[a("code",[t._v("indexAxis")])]),t._v(" of "),a("code",[t._v("'x'")])],1),t._v(" "),a("li",[t._v("The dataset must be a line")]),t._v(" "),a("li",[t._v("The X axis for the dataset must be either a "),a("RouterLink",{attrs:{to:"/axes/cartesian/linear.html"}},[a("code",[t._v("'linear'")])]),t._v(" or "),a("RouterLink",{attrs:{to:"/axes/cartesian/time.html"}},[a("code",[t._v("'time'")])]),t._v(" type axis")],1),t._v(" "),a("li",[t._v("Data must not need parsing, i.e. "),a("RouterLink",{attrs:{to:"/general/data-structures.html#dataset-configuration"}},[a("code",[t._v("parsing")])]),t._v(" must be "),a("code",[t._v("false")])],1),t._v(" "),a("li",[t._v("The dataset object must be mutable. The plugin stores the original data as "),a("code",[t._v("dataset._data")]),t._v(" and then defines a new "),a("code",[t._v("data")]),t._v(" property on the dataset.")])]),t._v(" "),a("h2",{attrs:{id:"related-samples"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#related-samples"}},[t._v("#")]),t._v(" Related Samples")]),t._v(" "),a("ul",[a("li",[a("a",{attrs:{href:"../samples/advanced/data-decimation"}},[t._v("Data Decimation Sample")])])])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/146.25c98087.js b/docs/latest/assets/js/146.adf77307.js similarity index 100% rename from docs/latest/assets/js/146.25c98087.js rename to docs/latest/assets/js/146.adf77307.js diff --git a/docs/latest/assets/js/147.ba6767cf.js b/docs/latest/assets/js/147.dd25d778.js similarity index 99% rename from docs/latest/assets/js/147.ba6767cf.js rename to docs/latest/assets/js/147.dd25d778.js index 7a58031975..a766921134 100644 --- a/docs/latest/assets/js/147.ba6767cf.js +++ b/docs/latest/assets/js/147.dd25d778.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[147],{472:function(t,e,o){"use strict";o.r(e);var r=o(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[o("h1",{attrs:{id:"elements"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#elements"}},[t._v("#")]),t._v(" Elements")]),t._v(" "),o("p",[t._v("While chart types provide settings to configure the styling of each dataset, you sometimes want to style "),o("strong",[t._v("all datasets the same way")]),t._v(". A common example would be to stroke all of the bars in a bar chart with the same colour but change the fill per dataset. Options can be configured for four different types of elements: "),o("strong",[o("a",{attrs:{href:"#arc-configuration"}},[t._v("arc")])]),t._v(", "),o("strong",[o("a",{attrs:{href:"#line-configuration"}},[t._v("lines")])]),t._v(", "),o("strong",[o("a",{attrs:{href:"#point-configuration"}},[t._v("points")])]),t._v(", and "),o("strong",[o("a",{attrs:{href:"#bar-configuration"}},[t._v("bars")])]),t._v(". When set, these options apply to all objects of that type unless specifically overridden by the configuration attached to a dataset.")]),t._v(" "),o("h2",{attrs:{id:"global-configuration"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#global-configuration"}},[t._v("#")]),t._v(" Global Configuration")]),t._v(" "),o("p",[t._v("The element options can be specified per chart or globally. The global options for elements are defined in "),o("code",[t._v("Chart.defaults.elements")]),t._v(". For example, to set the border width of all bar charts globally you would do:")]),t._v(" "),o("div",{staticClass:"language-javascript extra-class"},[o("pre",{pre:!0,attrs:{class:"language-javascript"}},[o("code",[t._v("Chart"),o("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),o("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("elements"),o("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("bar"),o("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("borderWidth "),o("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),o("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),o("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),o("h2",{attrs:{id:"point-configuration"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#point-configuration"}},[t._v("#")]),t._v(" Point Configuration")]),t._v(" "),o("p",[t._v("Point elements are used to represent the points in a line, radar or bubble chart.")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.elements.point")]),t._v(", global point options: "),o("code",[t._v("Chart.defaults.elements.point")]),t._v(".")]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("radius")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("3")])]),t._v(" "),o("td",[t._v("Point radius.")])]),t._v(" "),o("tr",[o("td",[o("a",{attrs:{href:"#point-styles"}},[o("code",[t._v("pointStyle")])])]),t._v(" "),o("td",[o("code",[t._v("string")]),t._v("|"),o("code",[t._v("Image")])]),t._v(" "),o("td",[o("code",[t._v("'circle'")])]),t._v(" "),o("td",[t._v("Point style.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("rotation")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("Point rotation (in degrees).")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("backgroundColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.backgroundColor")])]),t._v(" "),o("td",[t._v("Point fill color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("1")])]),t._v(" "),o("td",[t._v("Point stroke width.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("'Chart.defaults.borderColor")])]),t._v(" "),o("td",[t._v("Point stroke color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("hitRadius")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("1")])]),t._v(" "),o("td",[t._v("Extra radius added to point radius for hit detection.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("hoverRadius")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("4")])]),t._v(" "),o("td",[t._v("Point radius when hovered.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("hoverBorderWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("1")])]),t._v(" "),o("td",[t._v("Stroke width when hovered.")])])])]),t._v(" "),o("h3",{attrs:{id:"point-styles"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#point-styles"}},[t._v("#")]),t._v(" Point Styles")]),t._v(" "),o("p",[t._v("The following values are supported:")]),t._v(" "),o("ul",[o("li",[o("code",[t._v("'circle'")])]),t._v(" "),o("li",[o("code",[t._v("'cross'")])]),t._v(" "),o("li",[o("code",[t._v("'crossRot'")])]),t._v(" "),o("li",[o("code",[t._v("'dash'")])]),t._v(" "),o("li",[o("code",[t._v("'line'")])]),t._v(" "),o("li",[o("code",[t._v("'rect'")])]),t._v(" "),o("li",[o("code",[t._v("'rectRounded'")])]),t._v(" "),o("li",[o("code",[t._v("'rectRot'")])]),t._v(" "),o("li",[o("code",[t._v("'star'")])]),t._v(" "),o("li",[o("code",[t._v("'triangle'")])])]),t._v(" "),o("p",[t._v("If the value is an image, that image is drawn on the canvas using "),o("a",{attrs:{href:"https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/drawImage",target:"_blank",rel:"noopener noreferrer"}},[t._v("drawImage"),o("OutboundLink")],1),t._v(".")]),t._v(" "),o("h2",{attrs:{id:"line-configuration"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#line-configuration"}},[t._v("#")]),t._v(" Line Configuration")]),t._v(" "),o("p",[t._v("Line elements are used to represent the line in a line chart.")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.elements.line")]),t._v(", global line options: "),o("code",[t._v("Chart.defaults.elements.line")]),t._v(".")]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("tension")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("Bézier curve tension ("),o("code",[t._v("0")]),t._v(" for no Bézier curves).")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("backgroundColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.backgroundColor")])]),t._v(" "),o("td",[t._v("Line fill color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("3")])]),t._v(" "),o("td",[t._v("Line stroke width.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.borderColor")])]),t._v(" "),o("td",[t._v("Line stroke color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderCapStyle")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'butt'")])]),t._v(" "),o("td",[t._v("Line cap style. See "),o("a",{attrs:{href:"https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/lineCap",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),o("OutboundLink")],1),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderDash")])]),t._v(" "),o("td",[o("code",[t._v("number[]")])]),t._v(" "),o("td",[o("code",[t._v("[]")])]),t._v(" "),o("td",[t._v("Line dash. See "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),o("OutboundLink")],1),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderDashOffset")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0.0")])]),t._v(" "),o("td",[t._v("Line dash offset. See "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),o("OutboundLink")],1),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderJoinStyle")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'miter'")])]),t._v(" "),o("td",[t._v("Line join style. See "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),o("OutboundLink")],1),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("capBezierPoints")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[o("code",[t._v("true")]),t._v(" to keep Bézier control inside the chart, "),o("code",[t._v("false")]),t._v(" for no restriction.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("cubicInterpolationMode")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'default'")])]),t._v(" "),o("td",[t._v("Interpolation mode to apply. "),o("RouterLink",{attrs:{to:"/configuration/charts/line.md/#cubicinterpolationmode"}},[t._v("See more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("fill")])]),t._v(" "),o("td",[o("code",[t._v("boolean")]),t._v("|"),o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("How to fill the area under the line. See "),o("RouterLink",{attrs:{to:"/charts/area.html#filling-modes"}},[t._v("area charts")]),t._v(".")],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("stepped")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("code",[t._v("true")]),t._v(" to show the line as a stepped line ("),o("code",[t._v("tension")]),t._v(" will be ignored).")])])])]),t._v(" "),o("h2",{attrs:{id:"bar-configuration"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#bar-configuration"}},[t._v("#")]),t._v(" Bar Configuration")]),t._v(" "),o("p",[t._v("Bar elements are used to represent the bars in a bar chart.")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.elements.bar")]),t._v(", global bar options: "),o("code",[t._v("Chart.defaults.elements.bar")]),t._v(".")]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("backgroundColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.backgroundColor")])]),t._v(" "),o("td",[t._v("Bar fill color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("Bar stroke width.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.borderColor")])]),t._v(" "),o("td",[t._v("Bar stroke color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderSkipped")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'start'")])]),t._v(" "),o("td",[t._v("Skipped (excluded) border: "),o("code",[t._v("'start'")]),t._v(", "),o("code",[t._v("'end'")]),t._v(", "),o("code",[t._v("'bottom'")]),t._v(", "),o("code",[t._v("'left'")]),t._v(", "),o("code",[t._v("'top'")]),t._v(" or "),o("code",[t._v("'right'")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderRadius")])]),t._v(" "),o("td",[o("code",[t._v("number")]),t._v("|"),o("code",[t._v("object")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("The bar border radius (in pixels).")])]),t._v(" "),o("tr",[o("td",[o("a",{attrs:{href:"#point-styles"}},[o("code",[t._v("pointStyle")])])]),t._v(" "),o("td",[o("code",[t._v("string")]),t._v("|"),o("code",[t._v("Image")])]),t._v(" "),o("td",[o("code",[t._v("'circle'")])]),t._v(" "),o("td",[t._v("Style of the point for legend.")])])])]),t._v(" "),o("h2",{attrs:{id:"arc-configuration"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#arc-configuration"}},[t._v("#")]),t._v(" Arc Configuration")]),t._v(" "),o("p",[t._v("Arcs are used in the polar area, doughnut and pie charts.")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.elements.arc")]),t._v(", global arc options: "),o("code",[t._v("Chart.defaults.elements.arc")]),t._v(".")]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("angle")]),t._v(" - for polar only")]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("circumference / (arc count)")])]),t._v(" "),o("td",[t._v("Arc angle to cover.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("backgroundColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.backgroundColor")])]),t._v(" "),o("td",[t._v("Arc fill color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderAlign")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'center'")])]),t._v(" "),o("td",[t._v("Arc stroke alignment.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("'#fff'")])]),t._v(" "),o("td",[t._v("Arc stroke color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("2")])]),t._v(" "),o("td",[t._v("Arc stroke width.")])])])])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[147],{470:function(t,e,o){"use strict";o.r(e);var r=o(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[o("h1",{attrs:{id:"elements"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#elements"}},[t._v("#")]),t._v(" Elements")]),t._v(" "),o("p",[t._v("While chart types provide settings to configure the styling of each dataset, you sometimes want to style "),o("strong",[t._v("all datasets the same way")]),t._v(". A common example would be to stroke all of the bars in a bar chart with the same colour but change the fill per dataset. Options can be configured for four different types of elements: "),o("strong",[o("a",{attrs:{href:"#arc-configuration"}},[t._v("arc")])]),t._v(", "),o("strong",[o("a",{attrs:{href:"#line-configuration"}},[t._v("lines")])]),t._v(", "),o("strong",[o("a",{attrs:{href:"#point-configuration"}},[t._v("points")])]),t._v(", and "),o("strong",[o("a",{attrs:{href:"#bar-configuration"}},[t._v("bars")])]),t._v(". When set, these options apply to all objects of that type unless specifically overridden by the configuration attached to a dataset.")]),t._v(" "),o("h2",{attrs:{id:"global-configuration"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#global-configuration"}},[t._v("#")]),t._v(" Global Configuration")]),t._v(" "),o("p",[t._v("The element options can be specified per chart or globally. The global options for elements are defined in "),o("code",[t._v("Chart.defaults.elements")]),t._v(". For example, to set the border width of all bar charts globally you would do:")]),t._v(" "),o("div",{staticClass:"language-javascript extra-class"},[o("pre",{pre:!0,attrs:{class:"language-javascript"}},[o("code",[t._v("Chart"),o("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),o("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("elements"),o("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("bar"),o("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("borderWidth "),o("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),o("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),o("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),o("h2",{attrs:{id:"point-configuration"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#point-configuration"}},[t._v("#")]),t._v(" Point Configuration")]),t._v(" "),o("p",[t._v("Point elements are used to represent the points in a line, radar or bubble chart.")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.elements.point")]),t._v(", global point options: "),o("code",[t._v("Chart.defaults.elements.point")]),t._v(".")]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("radius")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("3")])]),t._v(" "),o("td",[t._v("Point radius.")])]),t._v(" "),o("tr",[o("td",[o("a",{attrs:{href:"#point-styles"}},[o("code",[t._v("pointStyle")])])]),t._v(" "),o("td",[o("code",[t._v("string")]),t._v("|"),o("code",[t._v("Image")])]),t._v(" "),o("td",[o("code",[t._v("'circle'")])]),t._v(" "),o("td",[t._v("Point style.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("rotation")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("Point rotation (in degrees).")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("backgroundColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.backgroundColor")])]),t._v(" "),o("td",[t._v("Point fill color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("1")])]),t._v(" "),o("td",[t._v("Point stroke width.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("'Chart.defaults.borderColor")])]),t._v(" "),o("td",[t._v("Point stroke color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("hitRadius")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("1")])]),t._v(" "),o("td",[t._v("Extra radius added to point radius for hit detection.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("hoverRadius")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("4")])]),t._v(" "),o("td",[t._v("Point radius when hovered.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("hoverBorderWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("1")])]),t._v(" "),o("td",[t._v("Stroke width when hovered.")])])])]),t._v(" "),o("h3",{attrs:{id:"point-styles"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#point-styles"}},[t._v("#")]),t._v(" Point Styles")]),t._v(" "),o("p",[t._v("The following values are supported:")]),t._v(" "),o("ul",[o("li",[o("code",[t._v("'circle'")])]),t._v(" "),o("li",[o("code",[t._v("'cross'")])]),t._v(" "),o("li",[o("code",[t._v("'crossRot'")])]),t._v(" "),o("li",[o("code",[t._v("'dash'")])]),t._v(" "),o("li",[o("code",[t._v("'line'")])]),t._v(" "),o("li",[o("code",[t._v("'rect'")])]),t._v(" "),o("li",[o("code",[t._v("'rectRounded'")])]),t._v(" "),o("li",[o("code",[t._v("'rectRot'")])]),t._v(" "),o("li",[o("code",[t._v("'star'")])]),t._v(" "),o("li",[o("code",[t._v("'triangle'")])])]),t._v(" "),o("p",[t._v("If the value is an image, that image is drawn on the canvas using "),o("a",{attrs:{href:"https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/drawImage",target:"_blank",rel:"noopener noreferrer"}},[t._v("drawImage"),o("OutboundLink")],1),t._v(".")]),t._v(" "),o("h2",{attrs:{id:"line-configuration"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#line-configuration"}},[t._v("#")]),t._v(" Line Configuration")]),t._v(" "),o("p",[t._v("Line elements are used to represent the line in a line chart.")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.elements.line")]),t._v(", global line options: "),o("code",[t._v("Chart.defaults.elements.line")]),t._v(".")]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("tension")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("Bézier curve tension ("),o("code",[t._v("0")]),t._v(" for no Bézier curves).")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("backgroundColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.backgroundColor")])]),t._v(" "),o("td",[t._v("Line fill color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("3")])]),t._v(" "),o("td",[t._v("Line stroke width.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.borderColor")])]),t._v(" "),o("td",[t._v("Line stroke color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderCapStyle")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'butt'")])]),t._v(" "),o("td",[t._v("Line cap style. See "),o("a",{attrs:{href:"https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/lineCap",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),o("OutboundLink")],1),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderDash")])]),t._v(" "),o("td",[o("code",[t._v("number[]")])]),t._v(" "),o("td",[o("code",[t._v("[]")])]),t._v(" "),o("td",[t._v("Line dash. See "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),o("OutboundLink")],1),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderDashOffset")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0.0")])]),t._v(" "),o("td",[t._v("Line dash offset. See "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),o("OutboundLink")],1),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderJoinStyle")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'miter'")])]),t._v(" "),o("td",[t._v("Line join style. See "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),o("OutboundLink")],1),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("capBezierPoints")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[o("code",[t._v("true")]),t._v(" to keep Bézier control inside the chart, "),o("code",[t._v("false")]),t._v(" for no restriction.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("cubicInterpolationMode")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'default'")])]),t._v(" "),o("td",[t._v("Interpolation mode to apply. "),o("RouterLink",{attrs:{to:"/configuration/charts/line.md/#cubicinterpolationmode"}},[t._v("See more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("fill")])]),t._v(" "),o("td",[o("code",[t._v("boolean")]),t._v("|"),o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("How to fill the area under the line. See "),o("RouterLink",{attrs:{to:"/charts/area.html#filling-modes"}},[t._v("area charts")]),t._v(".")],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("stepped")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("code",[t._v("true")]),t._v(" to show the line as a stepped line ("),o("code",[t._v("tension")]),t._v(" will be ignored).")])])])]),t._v(" "),o("h2",{attrs:{id:"bar-configuration"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#bar-configuration"}},[t._v("#")]),t._v(" Bar Configuration")]),t._v(" "),o("p",[t._v("Bar elements are used to represent the bars in a bar chart.")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.elements.bar")]),t._v(", global bar options: "),o("code",[t._v("Chart.defaults.elements.bar")]),t._v(".")]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("backgroundColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.backgroundColor")])]),t._v(" "),o("td",[t._v("Bar fill color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("Bar stroke width.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.borderColor")])]),t._v(" "),o("td",[t._v("Bar stroke color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderSkipped")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'start'")])]),t._v(" "),o("td",[t._v("Skipped (excluded) border: "),o("code",[t._v("'start'")]),t._v(", "),o("code",[t._v("'end'")]),t._v(", "),o("code",[t._v("'bottom'")]),t._v(", "),o("code",[t._v("'left'")]),t._v(", "),o("code",[t._v("'top'")]),t._v(" or "),o("code",[t._v("'right'")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderRadius")])]),t._v(" "),o("td",[o("code",[t._v("number")]),t._v("|"),o("code",[t._v("object")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("The bar border radius (in pixels).")])]),t._v(" "),o("tr",[o("td",[o("a",{attrs:{href:"#point-styles"}},[o("code",[t._v("pointStyle")])])]),t._v(" "),o("td",[o("code",[t._v("string")]),t._v("|"),o("code",[t._v("Image")])]),t._v(" "),o("td",[o("code",[t._v("'circle'")])]),t._v(" "),o("td",[t._v("Style of the point for legend.")])])])]),t._v(" "),o("h2",{attrs:{id:"arc-configuration"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#arc-configuration"}},[t._v("#")]),t._v(" Arc Configuration")]),t._v(" "),o("p",[t._v("Arcs are used in the polar area, doughnut and pie charts.")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.elements.arc")]),t._v(", global arc options: "),o("code",[t._v("Chart.defaults.elements.arc")]),t._v(".")]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("angle")]),t._v(" - for polar only")]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("circumference / (arc count)")])]),t._v(" "),o("td",[t._v("Arc angle to cover.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("backgroundColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.backgroundColor")])]),t._v(" "),o("td",[t._v("Arc fill color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderAlign")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'center'")])]),t._v(" "),o("td",[t._v("Arc stroke alignment.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("'#fff'")])]),t._v(" "),o("td",[t._v("Arc stroke color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("2")])]),t._v(" "),o("td",[t._v("Arc stroke width.")])])])])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/148.d66dcd2c.js b/docs/latest/assets/js/148.e1172124.js similarity index 99% rename from docs/latest/assets/js/148.d66dcd2c.js rename to docs/latest/assets/js/148.e1172124.js index 67735efcd5..0a6998e496 100644 --- a/docs/latest/assets/js/148.d66dcd2c.js +++ b/docs/latest/assets/js/148.e1172124.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[148],{473:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"configuration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#configuration"}},[t._v("#")]),t._v(" Configuration")]),t._v(" "),s("p",[t._v("The configuration is used to change how the chart behaves. There are properties to control styling, fonts, the legend, etc.")]),t._v(" "),s("h2",{attrs:{id:"global-configuration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#global-configuration"}},[t._v("#")]),t._v(" Global Configuration")]),t._v(" "),s("p",[t._v("This concept was introduced in Chart.js 1.0 to keep configuration "),s("a",{attrs:{href:"https://en.wikipedia.org/wiki/Don%27t_repeat_yourself",target:"_blank",rel:"noopener noreferrer"}},[t._v("DRY"),s("OutboundLink")],1),t._v(", and allow for changing options globally across chart types, avoiding the need to specify options for each instance, or the default for a particular chart type.")]),t._v(" "),s("p",[t._v("Chart.js merges the options object passed to the chart with the global configuration using chart type defaults and scales defaults appropriately. This way you can be as specific as you would like in your individual chart configuration, while still changing the defaults for all chart types where applicable. The global general options are defined in "),s("code",[t._v("Chart.defaults")]),t._v(". The defaults for each chart type are discussed in the documentation for that chart type.")]),t._v(" "),s("p",[t._v("The following example would set the interaction mode to 'nearest' for all charts where this was not overridden by the chart type defaults or the options passed to the constructor on creation.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("interaction"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("mode "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'nearest'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Interaction mode is set to nearest because it was not overridden here")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chartInteractionModeNearest "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This chart would have the interaction mode that was passed in")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chartDifferentInteractionMode "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Overrides the global setting")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'index'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"dataset-configuration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#dataset-configuration"}},[t._v("#")]),t._v(" Dataset Configuration")]),t._v(" "),s("p",[t._v("Options may be configured directly on the dataset. The dataset options can be changed at multiple different levels. See "),s("RouterLink",{attrs:{to:"/general/options.html#dataset-level-options"}},[t._v("options")]),t._v(" for details on how the options are resolved.")],1),t._v(" "),s("p",[t._v("The following example would set the "),s("code",[t._v("showLine")]),t._v(" option to 'false' for all line datasets except for those overridden by options passed to the dataset on creation.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Do not show lines for all datasets by default")]),t._v("\nChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("line"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("showLine "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This chart would show a line only for the third dataset")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n showLine"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// overrides the `line` dataset default")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'scatter'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 'line' dataset default does not affect this dataset since it's a 'scatter'")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[148],{472:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"configuration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#configuration"}},[t._v("#")]),t._v(" Configuration")]),t._v(" "),s("p",[t._v("The configuration is used to change how the chart behaves. There are properties to control styling, fonts, the legend, etc.")]),t._v(" "),s("h2",{attrs:{id:"global-configuration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#global-configuration"}},[t._v("#")]),t._v(" Global Configuration")]),t._v(" "),s("p",[t._v("This concept was introduced in Chart.js 1.0 to keep configuration "),s("a",{attrs:{href:"https://en.wikipedia.org/wiki/Don%27t_repeat_yourself",target:"_blank",rel:"noopener noreferrer"}},[t._v("DRY"),s("OutboundLink")],1),t._v(", and allow for changing options globally across chart types, avoiding the need to specify options for each instance, or the default for a particular chart type.")]),t._v(" "),s("p",[t._v("Chart.js merges the options object passed to the chart with the global configuration using chart type defaults and scales defaults appropriately. This way you can be as specific as you would like in your individual chart configuration, while still changing the defaults for all chart types where applicable. The global general options are defined in "),s("code",[t._v("Chart.defaults")]),t._v(". The defaults for each chart type are discussed in the documentation for that chart type.")]),t._v(" "),s("p",[t._v("The following example would set the interaction mode to 'nearest' for all charts where this was not overridden by the chart type defaults or the options passed to the constructor on creation.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("interaction"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("mode "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'nearest'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Interaction mode is set to nearest because it was not overridden here")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chartInteractionModeNearest "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This chart would have the interaction mode that was passed in")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chartDifferentInteractionMode "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Overrides the global setting")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'index'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"dataset-configuration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#dataset-configuration"}},[t._v("#")]),t._v(" Dataset Configuration")]),t._v(" "),s("p",[t._v("Options may be configured directly on the dataset. The dataset options can be changed at multiple different levels. See "),s("RouterLink",{attrs:{to:"/general/options.html#dataset-level-options"}},[t._v("options")]),t._v(" for details on how the options are resolved.")],1),t._v(" "),s("p",[t._v("The following example would set the "),s("code",[t._v("showLine")]),t._v(" option to 'false' for all line datasets except for those overridden by options passed to the dataset on creation.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Do not show lines for all datasets by default")]),t._v("\nChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("line"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("showLine "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This chart would show a line only for the third dataset")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n showLine"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// overrides the `line` dataset default")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'scatter'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 'line' dataset default does not affect this dataset since it's a 'scatter'")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/149.106987ae.js b/docs/latest/assets/js/149.3db445d9.js similarity index 99% rename from docs/latest/assets/js/149.106987ae.js rename to docs/latest/assets/js/149.3db445d9.js index 4fed27bb61..681f00db52 100644 --- a/docs/latest/assets/js/149.106987ae.js +++ b/docs/latest/assets/js/149.3db445d9.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[149],{474:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"interactions"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),s("p",[t._v("Namespace: "),s("code",[t._v("options.interaction")]),t._v(", the global interaction configuration is at "),s("code",[t._v("Chart.defaults.interaction")]),t._v(". To configure which events trigger chart interactions, see "),s("a",{attrs:{href:"#events"}},[t._v("events")]),t._v(".")]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Default")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("mode")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'nearest'")])]),t._v(" "),s("td",[t._v("Sets which elements appear in the interaction. See "),s("a",{attrs:{href:"#modes"}},[t._v("Interaction Modes")]),t._v(" for details.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("intersect")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[s("code",[t._v("true")])]),t._v(" "),s("td",[t._v("if true, the interaction mode only applies when the mouse position intersects an item on the chart.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("axis")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'x'")])]),t._v(" "),s("td",[t._v("Can be set to "),s("code",[t._v("'x'")]),t._v(", "),s("code",[t._v("'y'")]),t._v(", or "),s("code",[t._v("'xy'")]),t._v(" to define which directions are used in calculating distances. Defaults to "),s("code",[t._v("'x'")]),t._v(" for "),s("code",[t._v("'index'")]),t._v(" mode and "),s("code",[t._v("'xy'")]),t._v(" in "),s("code",[t._v("dataset")]),t._v(" and "),s("code",[t._v("'nearest'")]),t._v(" modes.")])])])]),t._v(" "),s("p",[t._v("By default, these options apply to both the hover and tooltip interactions. The same options can be set in the "),s("code",[t._v("options.hover")]),t._v(" namespace, in which case they will only affect the hover interaction. Similarly, the options can be set in the "),s("code",[t._v("options.plugins.tooltip")]),t._v(" namespace to independently configure the tooltip interactions.")]),t._v(" "),s("h2",{attrs:{id:"events"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#events"}},[t._v("#")]),t._v(" Events")]),t._v(" "),s("p",[t._v("The following properties define how the chart interacts with events.\nNamespace: "),s("code",[t._v("options")])]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Default")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("events")])]),t._v(" "),s("td",[s("code",[t._v("string[]")])]),t._v(" "),s("td",[s("code",[t._v("['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove']")])]),t._v(" "),s("td",[t._v("The "),s("code",[t._v("events")]),t._v(" option defines the browser events that the chart should listen to for. Each of these events trigger hover and are passed to plugins. "),s("a",{attrs:{href:"#event-option"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("onHover")])]),t._v(" "),s("td",[s("code",[t._v("function")])]),t._v(" "),s("td",[s("code",[t._v("null")])]),t._v(" "),s("td",[t._v("Called when any of the events fire over chartArea. Passed the event, an array of active elements (bars, points, etc), and the chart.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("onClick")])]),t._v(" "),s("td",[s("code",[t._v("function")])]),t._v(" "),s("td",[s("code",[t._v("null")])]),t._v(" "),s("td",[t._v("Called if the event is of type "),s("code",[t._v("'mouseup'")]),t._v(", "),s("code",[t._v("'click'")]),t._v(" or '"),s("code",[t._v("'contextmenu'")]),t._v(" over chartArea. Passed the event, an array of active elements, and the chart.")])])])]),t._v(" "),s("h3",{attrs:{id:"event-option"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#event-option"}},[t._v("#")]),t._v(" Event Option")]),t._v(" "),s("p",[t._v("For example, to have the chart only respond to click events, you could do:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This chart will not respond to mousemove, etc")]),t._v("\n events"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'click'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("Events for each plugin can be further limited by defining (allowed) events array in plugin options:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// All of these (default) events trigger a hover and are passed to all plugins,")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// unless limited at plugin options")]),t._v("\n events"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'mousemove'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'mouseout'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'click'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'touchstart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'touchmove'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltip"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Tooltip will only receive click events")]),t._v("\n events"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'click'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"converting-events-to-data-values"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#converting-events-to-data-values"}},[t._v("#")]),t._v(" Converting Events to Data Values")]),t._v(" "),s("p",[t._v("A common occurrence is taking an event, such as a click, and finding the data coordinates on the chart where the event occurred. Chart.js provides helpers that make this a straightforward process.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("onClick")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("e")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" canvasPosition "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("helpers"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getRelativePosition")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("e"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Substitute the appropriate scale IDs")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" dataX "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getValueForPixel")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("canvasPosition"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" dataY "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getValueForPixel")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("canvasPosition"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"modes"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#modes"}},[t._v("#")]),t._v(" Modes")]),t._v(" "),s("p",[t._v("When configuring the interaction with the graph via "),s("code",[t._v("interaction")]),t._v(", "),s("code",[t._v("hover")]),t._v(" or "),s("code",[t._v("tooltips")]),t._v(", a number of different modes are available.")]),t._v(" "),s("p",[s("code",[t._v("options.hover")]),t._v(" and "),s("code",[t._v("options.plugins.tooltip")]),t._v(" extend from "),s("code",[t._v("options.interaction")]),t._v(". So if "),s("code",[t._v("mode")]),t._v(", "),s("code",[t._v("intersect")]),t._v(" or any other common settings are configured only in "),s("code",[t._v("options.interaction")]),t._v(", both hover and tooltips obey that.")]),t._v(" "),s("p",[t._v("The modes are detailed below and how they behave in conjunction with the "),s("code",[t._v("intersect")]),t._v(" setting.")]),t._v(" "),s("h3",{attrs:{id:"point"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#point"}},[t._v("#")]),t._v(" point")]),t._v(" "),s("p",[t._v("Finds all of the items that intersect the point.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'point'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"nearest"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#nearest"}},[t._v("#")]),t._v(" nearest")]),t._v(" "),s("p",[t._v("Gets the items that are at the nearest distance to the point. The nearest item is determined based on the distance to the center of the chart item (point, bar). You can use the "),s("code",[t._v("axis")]),t._v(" setting to define which directions are used in distance calculation. If "),s("code",[t._v("intersect")]),t._v(" is true, this is only triggered when the mouse position intersects an item in the graph. This is very useful for combo charts where points are hidden behind bars.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'nearest'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"index"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),s("p",[t._v("Finds item at the same index. If the "),s("code",[t._v("intersect")]),t._v(" setting is true, the first intersecting item is used to determine the index in the data. If "),s("code",[t._v("intersect")]),t._v(" false the nearest item, in the x direction, is used to determine the index.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'index'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("To use index mode in a chart like the horizontal bar chart, where we search along the y direction, you can use the "),s("code",[t._v("axis")]),t._v(" setting introduced in v2.7.0. By setting this value to "),s("code",[t._v("'y'")]),t._v(" on the y direction is used.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'index'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n axis"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'y'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"dataset"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[t._v("#")]),t._v(" dataset")]),t._v(" "),s("p",[t._v("Finds items in the same dataset. If the "),s("code",[t._v("intersect")]),t._v(" setting is true, the first intersecting item is used to determine the index in the data. If "),s("code",[t._v("intersect")]),t._v(" false the nearest item is used to determine the index.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'dataset'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"x"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),s("p",[t._v("Returns all items that would intersect based on the "),s("code",[t._v("X")]),t._v(" coordinate of the position only. Would be useful for a vertical cursor implementation. Note that this only applies to cartesian charts.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'x'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"y"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),s("p",[t._v("Returns all items that would intersect based on the "),s("code",[t._v("Y")]),t._v(" coordinate of the position. This would be useful for a horizontal cursor implementation. Note that this only applies to cartesian charts.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'y'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[149],{473:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"interactions"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),s("p",[t._v("Namespace: "),s("code",[t._v("options.interaction")]),t._v(", the global interaction configuration is at "),s("code",[t._v("Chart.defaults.interaction")]),t._v(". To configure which events trigger chart interactions, see "),s("a",{attrs:{href:"#events"}},[t._v("events")]),t._v(".")]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Default")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("mode")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'nearest'")])]),t._v(" "),s("td",[t._v("Sets which elements appear in the interaction. See "),s("a",{attrs:{href:"#modes"}},[t._v("Interaction Modes")]),t._v(" for details.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("intersect")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[s("code",[t._v("true")])]),t._v(" "),s("td",[t._v("if true, the interaction mode only applies when the mouse position intersects an item on the chart.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("axis")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'x'")])]),t._v(" "),s("td",[t._v("Can be set to "),s("code",[t._v("'x'")]),t._v(", "),s("code",[t._v("'y'")]),t._v(", or "),s("code",[t._v("'xy'")]),t._v(" to define which directions are used in calculating distances. Defaults to "),s("code",[t._v("'x'")]),t._v(" for "),s("code",[t._v("'index'")]),t._v(" mode and "),s("code",[t._v("'xy'")]),t._v(" in "),s("code",[t._v("dataset")]),t._v(" and "),s("code",[t._v("'nearest'")]),t._v(" modes.")])])])]),t._v(" "),s("p",[t._v("By default, these options apply to both the hover and tooltip interactions. The same options can be set in the "),s("code",[t._v("options.hover")]),t._v(" namespace, in which case they will only affect the hover interaction. Similarly, the options can be set in the "),s("code",[t._v("options.plugins.tooltip")]),t._v(" namespace to independently configure the tooltip interactions.")]),t._v(" "),s("h2",{attrs:{id:"events"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#events"}},[t._v("#")]),t._v(" Events")]),t._v(" "),s("p",[t._v("The following properties define how the chart interacts with events.\nNamespace: "),s("code",[t._v("options")])]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Default")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("events")])]),t._v(" "),s("td",[s("code",[t._v("string[]")])]),t._v(" "),s("td",[s("code",[t._v("['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove']")])]),t._v(" "),s("td",[t._v("The "),s("code",[t._v("events")]),t._v(" option defines the browser events that the chart should listen to for. Each of these events trigger hover and are passed to plugins. "),s("a",{attrs:{href:"#event-option"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("onHover")])]),t._v(" "),s("td",[s("code",[t._v("function")])]),t._v(" "),s("td",[s("code",[t._v("null")])]),t._v(" "),s("td",[t._v("Called when any of the events fire over chartArea. Passed the event, an array of active elements (bars, points, etc), and the chart.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("onClick")])]),t._v(" "),s("td",[s("code",[t._v("function")])]),t._v(" "),s("td",[s("code",[t._v("null")])]),t._v(" "),s("td",[t._v("Called if the event is of type "),s("code",[t._v("'mouseup'")]),t._v(", "),s("code",[t._v("'click'")]),t._v(" or '"),s("code",[t._v("'contextmenu'")]),t._v(" over chartArea. Passed the event, an array of active elements, and the chart.")])])])]),t._v(" "),s("h3",{attrs:{id:"event-option"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#event-option"}},[t._v("#")]),t._v(" Event Option")]),t._v(" "),s("p",[t._v("For example, to have the chart only respond to click events, you could do:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This chart will not respond to mousemove, etc")]),t._v("\n events"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'click'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("Events for each plugin can be further limited by defining (allowed) events array in plugin options:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// All of these (default) events trigger a hover and are passed to all plugins,")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// unless limited at plugin options")]),t._v("\n events"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'mousemove'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'mouseout'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'click'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'touchstart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'touchmove'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltip"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Tooltip will only receive click events")]),t._v("\n events"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'click'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"converting-events-to-data-values"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#converting-events-to-data-values"}},[t._v("#")]),t._v(" Converting Events to Data Values")]),t._v(" "),s("p",[t._v("A common occurrence is taking an event, such as a click, and finding the data coordinates on the chart where the event occurred. Chart.js provides helpers that make this a straightforward process.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("onClick")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("e")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" canvasPosition "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("helpers"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getRelativePosition")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("e"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Substitute the appropriate scale IDs")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" dataX "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getValueForPixel")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("canvasPosition"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" dataY "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getValueForPixel")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("canvasPosition"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"modes"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#modes"}},[t._v("#")]),t._v(" Modes")]),t._v(" "),s("p",[t._v("When configuring the interaction with the graph via "),s("code",[t._v("interaction")]),t._v(", "),s("code",[t._v("hover")]),t._v(" or "),s("code",[t._v("tooltips")]),t._v(", a number of different modes are available.")]),t._v(" "),s("p",[s("code",[t._v("options.hover")]),t._v(" and "),s("code",[t._v("options.plugins.tooltip")]),t._v(" extend from "),s("code",[t._v("options.interaction")]),t._v(". So if "),s("code",[t._v("mode")]),t._v(", "),s("code",[t._v("intersect")]),t._v(" or any other common settings are configured only in "),s("code",[t._v("options.interaction")]),t._v(", both hover and tooltips obey that.")]),t._v(" "),s("p",[t._v("The modes are detailed below and how they behave in conjunction with the "),s("code",[t._v("intersect")]),t._v(" setting.")]),t._v(" "),s("h3",{attrs:{id:"point"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#point"}},[t._v("#")]),t._v(" point")]),t._v(" "),s("p",[t._v("Finds all of the items that intersect the point.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'point'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"nearest"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#nearest"}},[t._v("#")]),t._v(" nearest")]),t._v(" "),s("p",[t._v("Gets the items that are at the nearest distance to the point. The nearest item is determined based on the distance to the center of the chart item (point, bar). You can use the "),s("code",[t._v("axis")]),t._v(" setting to define which directions are used in distance calculation. If "),s("code",[t._v("intersect")]),t._v(" is true, this is only triggered when the mouse position intersects an item in the graph. This is very useful for combo charts where points are hidden behind bars.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'nearest'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"index"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),s("p",[t._v("Finds item at the same index. If the "),s("code",[t._v("intersect")]),t._v(" setting is true, the first intersecting item is used to determine the index in the data. If "),s("code",[t._v("intersect")]),t._v(" false the nearest item, in the x direction, is used to determine the index.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'index'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("To use index mode in a chart like the horizontal bar chart, where we search along the y direction, you can use the "),s("code",[t._v("axis")]),t._v(" setting introduced in v2.7.0. By setting this value to "),s("code",[t._v("'y'")]),t._v(" on the y direction is used.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'index'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n axis"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'y'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"dataset"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[t._v("#")]),t._v(" dataset")]),t._v(" "),s("p",[t._v("Finds items in the same dataset. If the "),s("code",[t._v("intersect")]),t._v(" setting is true, the first intersecting item is used to determine the index in the data. If "),s("code",[t._v("intersect")]),t._v(" false the nearest item is used to determine the index.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'dataset'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"x"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),s("p",[t._v("Returns all items that would intersect based on the "),s("code",[t._v("X")]),t._v(" coordinate of the position only. Would be useful for a vertical cursor implementation. Note that this only applies to cartesian charts.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'x'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"y"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),s("p",[t._v("Returns all items that would intersect based on the "),s("code",[t._v("Y")]),t._v(" coordinate of the position. This would be useful for a horizontal cursor implementation. Note that this only applies to cartesian charts.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'y'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/15.41c18415.js b/docs/latest/assets/js/15.41c18415.js deleted file mode 100644 index fb22d34356..0000000000 --- a/docs/latest/assets/js/15.41c18415.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{342:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-chart-ttype-tdata-tlabel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-chart-ttype-tdata-tlabel"}},[t._v("#")]),t._v(" Class: Chart")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TType[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TLabel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new Chart")]),t._v("("),a("code",[t._v("item")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartitem"}},[a("em",[t._v("ChartItem")])]),t._v(", "),a("code",[t._v("config")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartconfiguration.html"}},[a("em",[t._v("ChartConfiguration")])]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("defaultDataPoint")]),t._v("][]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TLabel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("item")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartitem"}},[a("em",[t._v("ChartItem")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("config")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartconfiguration.html"}},[a("em",[t._v("ChartConfiguration")])]),t._v("")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L455",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:455"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"aspectratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aspectratio"}},[t._v("#")]),t._v(" aspectRatio")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("aspectRatio")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L447",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:447"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"attached"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#attached"}},[t._v("#")]),t._v(" attached")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("attached")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L452",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:452"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"boxes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#boxes"}},[t._v("#")]),t._v(" boxes")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("boxes")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L448",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:448"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"canvas"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#canvas"}},[t._v("#")]),t._v(" canvas")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("canvas")]),t._v(": HTMLCanvasElement")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L442",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:442"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chartarea"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chartarea"}},[t._v("#")]),t._v(" chartArea")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L450",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:450"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"config"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#config"}},[t._v("#")]),t._v(" config")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("config")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartconfiguration.html"}},[a("em",[t._v("ChartConfiguration")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L444",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:444"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ctx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ctx"}},[t._v("#")]),t._v(" ctx")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("ctx")]),t._v(": CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L443",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:443"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"currentdevicepixelratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#currentdevicepixelratio"}},[t._v("#")]),t._v(" currentDevicePixelRatio")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("currentDevicePixelRatio")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L449",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:449"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"data"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[t._v("#")]),t._v(" data")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("data")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[a("em",[t._v("ChartData")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L454",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:454"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"height"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("height")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L446",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:446"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"id"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("id")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L441",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:441"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("options")]),t._v(": "),a("em",[t._v("DeepPartial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[a("em",[t._v("CoreChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[a("em",[t._v("ElementChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[a("em",[t._v("PluginChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#datasetchartoptions"}},[a("em",[t._v("DatasetChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#scalechartoptions"}},[a("em",[t._v("ScaleChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("chartOptions")]),t._v("]>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L455",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:455"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"platform"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#platform"}},[t._v("#")]),t._v(" platform")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("platform")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[a("em",[t._v("BasePlatform")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L440",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:440"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scales"}},[t._v("#")]),t._v(" scales")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("scales")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L451",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:451"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"width"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("width")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L445",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:445"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"defaults"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defaults"}},[t._v("#")]),t._v(" defaults")]),t._v(" "),a("p",[t._v("▪ "),a("code",[t._v("Static")]),t._v(" "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("defaults")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[a("em",[t._v("Defaults")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L494",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:494"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"instances"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#instances"}},[t._v("#")]),t._v(" instances")]),t._v(" "),a("p",[t._v("▪ "),a("code",[t._v("Static")]),t._v(" "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("instances")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L497",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:497"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"overrides"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#overrides"}},[t._v("#")]),t._v(" overrides")]),t._v(" "),a("p",[t._v("▪ "),a("code",[t._v("Static")]),t._v(" "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("overrides")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#overrides"}},[a("em",[t._v("Overrides")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L495",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:495"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"registry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#registry"}},[t._v("#")]),t._v(" registry")]),t._v(" "),a("p",[t._v("▪ "),a("code",[t._v("Static")]),t._v(" "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("registry")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/registry.html"}},[a("em",[t._v("Registry")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L498",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:498"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"version"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#version"}},[t._v("#")]),t._v(" version")]),t._v(" "),a("p",[t._v("▪ "),a("code",[t._v("Static")]),t._v(" "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("version")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L496",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:496"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"bindevents"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bindevents"}},[t._v("#")]),t._v(" bindEvents")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("bindEvents")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L488",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:488"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildorupdatecontrollers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildorupdatecontrollers"}},[t._v("#")]),t._v(" buildOrUpdateControllers")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildOrUpdateControllers")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L465",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:465"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildorupdatescales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildorupdatescales"}},[t._v("#")]),t._v(" buildOrUpdateScales")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildOrUpdateScales")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L464",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:464"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"clear"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#clear"}},[t._v("#")]),t._v(" clear")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("clear")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L459",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:459"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"destroy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#destroy"}},[t._v("#")]),t._v(" destroy")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("destroy")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L486",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:486"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L469",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:469"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ensurescaleshaveids"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ensurescaleshaveids"}},[t._v("#")]),t._v(" ensureScalesHaveIDs")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("ensureScalesHaveIDs")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L463",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:463"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getactiveelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getactiveelements"}},[t._v("#")]),t._v(" getActiveElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getActiveElements")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L483",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:483"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdatavisibility"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdatavisibility"}},[t._v("#")]),t._v(" getDataVisibility")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDataVisibility")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L479",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:479"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdatasetmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdatasetmeta"}},[t._v("#")]),t._v(" getDatasetMeta")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDatasetMeta")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L474",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:474"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getelementsateventformode"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getelementsateventformode"}},[t._v("#")]),t._v(" getElementsAtEventForMode")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getElementsAtEventForMode")]),t._v("("),a("code",[t._v("e")]),t._v(": Event, "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("options")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[a("em",[t._v("InteractionOptions")])]),t._v(", "),a("code",[t._v("useFinalPosition")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[a("em",[t._v("InteractionItem")])]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("e")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Event")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[a("em",[t._v("InteractionOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[a("em",[t._v("InteractionItem")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L471",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:471"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getsortedvisibledatasetmetas"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getsortedvisibledatasetmetas"}},[t._v("#")]),t._v(" getSortedVisibleDatasetMetas")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getSortedVisibleDatasetMetas")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L473",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:473"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getvisibledatasetcount"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getvisibledatasetcount"}},[t._v("#")]),t._v(" getVisibleDatasetCount")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getVisibleDatasetCount")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L475",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:475"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hide"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hide"}},[t._v("#")]),t._v(" hide")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hide")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L480",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:480"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isdatasetvisible"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isdatasetvisible"}},[t._v("#")]),t._v(" isDatasetVisible")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isDatasetVisible")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L476",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:476"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"notifyplugins"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#notifyplugins"}},[t._v("#")]),t._v(" notifyPlugins")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("notifyPlugins")]),t._v("("),a("code",[t._v("hook")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("args?")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("hook")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L492",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:492"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"render"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#render"}},[t._v("#")]),t._v(" render")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("render")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L468",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:468"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" reset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("reset")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L466",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:466"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resize"}},[t._v("#")]),t._v(" resize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("resize")]),t._v("("),a("code",[t._v("width?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height?")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L462",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:462"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setactiveelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setactiveelements"}},[t._v("#")]),t._v(" setActiveElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setActiveElements")]),t._v("("),a("code",[t._v("active")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[a("em",[t._v("ActiveDataPoint")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[a("em",[t._v("ActiveDataPoint")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L484",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:484"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setdatasetvisibility"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setdatasetvisibility"}},[t._v("#")]),t._v(" setDatasetVisibility")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setDatasetVisibility")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("visible")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("visible")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L477",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:477"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"show"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#show"}},[t._v("#")]),t._v(" show")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("show")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L481",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:481"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"stop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stop"}},[t._v("#")]),t._v(" stop")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("stop")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L460",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:460"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tobase64image"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tobase64image"}},[t._v("#")]),t._v(" toBase64Image")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("toBase64Image")]),t._v("("),a("code",[t._v("type?")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("quality?")]),t._v(": "),a("em",[t._v("unknown")]),t._v("): "),a("em",[t._v("string")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("quality?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L487",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:487"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"toggledatavisibility"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#toggledatavisibility"}},[t._v("#")]),t._v(" toggleDataVisibility")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("toggleDataVisibility")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L478",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:478"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"unbindevents"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#unbindevents"}},[t._v("#")]),t._v(" unbindEvents")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("unbindEvents")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L489",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:489"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("mode?")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L467",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:467"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatehoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatehoverstyle"}},[t._v("#")]),t._v(" updateHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateHoverStyle")]),t._v("("),a("code",[t._v("items")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("dataset")]),t._v(", "),a("code",[t._v("enabled")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("items")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("dataset")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("enabled")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L490",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:490"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getchart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getchart"}},[t._v("#")]),t._v(" getChart")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Static")]),a("strong",[t._v("getChart")]),t._v("("),a("code",[t._v("key")]),t._v(": "),a("em",[t._v("string")]),t._v(" | HTMLCanvasElement | CanvasRenderingContext2D): "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("key")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | HTMLCanvasElement | CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L499",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:499"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"register"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#register"}},[t._v("#")]),t._v(" register")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Static")]),a("strong",[t._v("register")]),t._v("(..."),a("code",[t._v("items")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...items")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L500",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:500"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"unregister"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#unregister"}},[t._v("#")]),t._v(" unregister")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Static")]),a("strong",[t._v("unregister")]),t._v("(..."),a("code",[t._v("items")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...items")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L501",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:501"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/15.b568f739.js b/docs/latest/assets/js/15.b568f739.js new file mode 100644 index 0000000000..62aaa4318f --- /dev/null +++ b/docs/latest/assets/js/15.b568f739.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{491:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-chart-ttype-tdata-tlabel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-chart-ttype-tdata-tlabel"}},[t._v("#")]),t._v(" Class: Chart")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TType[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TLabel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new Chart")]),t._v("("),a("code",[t._v("item")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartitem"}},[a("em",[t._v("ChartItem")])]),t._v(", "),a("code",[t._v("config")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartconfiguration.html"}},[a("em",[t._v("ChartConfiguration")])]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("defaultDataPoint")]),t._v("][]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TLabel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("item")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartitem"}},[a("em",[t._v("ChartItem")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("config")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartconfiguration.html"}},[a("em",[t._v("ChartConfiguration")])]),t._v("")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L455",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:455"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"aspectratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aspectratio"}},[t._v("#")]),t._v(" aspectRatio")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("aspectRatio")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L447",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:447"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"attached"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#attached"}},[t._v("#")]),t._v(" attached")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("attached")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L452",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:452"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"boxes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#boxes"}},[t._v("#")]),t._v(" boxes")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("boxes")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L448",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:448"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"canvas"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#canvas"}},[t._v("#")]),t._v(" canvas")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("canvas")]),t._v(": HTMLCanvasElement")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L442",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:442"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chartarea"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chartarea"}},[t._v("#")]),t._v(" chartArea")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L450",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:450"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"config"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#config"}},[t._v("#")]),t._v(" config")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("config")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartconfiguration.html"}},[a("em",[t._v("ChartConfiguration")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L444",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:444"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ctx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ctx"}},[t._v("#")]),t._v(" ctx")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("ctx")]),t._v(": CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L443",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:443"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"currentdevicepixelratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#currentdevicepixelratio"}},[t._v("#")]),t._v(" currentDevicePixelRatio")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("currentDevicePixelRatio")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L449",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:449"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"data"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[t._v("#")]),t._v(" data")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("data")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[a("em",[t._v("ChartData")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L454",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:454"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"height"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("height")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L446",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:446"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"id"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("id")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L441",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:441"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("options")]),t._v(": "),a("em",[t._v("DeepPartial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[a("em",[t._v("CoreChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[a("em",[t._v("ElementChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[a("em",[t._v("PluginChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#datasetchartoptions"}},[a("em",[t._v("DatasetChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#scalechartoptions"}},[a("em",[t._v("ScaleChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("chartOptions")]),t._v("]>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L455",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:455"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"platform"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#platform"}},[t._v("#")]),t._v(" platform")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("platform")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[a("em",[t._v("BasePlatform")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L440",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:440"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scales"}},[t._v("#")]),t._v(" scales")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("scales")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L451",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:451"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"width"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("width")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L445",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:445"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"defaults"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defaults"}},[t._v("#")]),t._v(" defaults")]),t._v(" "),a("p",[t._v("▪ "),a("code",[t._v("Static")]),t._v(" "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("defaults")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[a("em",[t._v("Defaults")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L494",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:494"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"instances"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#instances"}},[t._v("#")]),t._v(" instances")]),t._v(" "),a("p",[t._v("▪ "),a("code",[t._v("Static")]),t._v(" "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("instances")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L497",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:497"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"overrides"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#overrides"}},[t._v("#")]),t._v(" overrides")]),t._v(" "),a("p",[t._v("▪ "),a("code",[t._v("Static")]),t._v(" "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("overrides")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#overrides"}},[a("em",[t._v("Overrides")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L495",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:495"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"registry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#registry"}},[t._v("#")]),t._v(" registry")]),t._v(" "),a("p",[t._v("▪ "),a("code",[t._v("Static")]),t._v(" "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("registry")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/registry.html"}},[a("em",[t._v("Registry")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L498",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:498"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"version"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#version"}},[t._v("#")]),t._v(" version")]),t._v(" "),a("p",[t._v("▪ "),a("code",[t._v("Static")]),t._v(" "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("version")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L496",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:496"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"bindevents"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bindevents"}},[t._v("#")]),t._v(" bindEvents")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("bindEvents")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L488",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:488"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildorupdatecontrollers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildorupdatecontrollers"}},[t._v("#")]),t._v(" buildOrUpdateControllers")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildOrUpdateControllers")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L465",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:465"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildorupdatescales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildorupdatescales"}},[t._v("#")]),t._v(" buildOrUpdateScales")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildOrUpdateScales")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L464",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:464"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"clear"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#clear"}},[t._v("#")]),t._v(" clear")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("clear")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L459",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:459"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"destroy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#destroy"}},[t._v("#")]),t._v(" destroy")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("destroy")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L486",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:486"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L469",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:469"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ensurescaleshaveids"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ensurescaleshaveids"}},[t._v("#")]),t._v(" ensureScalesHaveIDs")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("ensureScalesHaveIDs")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L463",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:463"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getactiveelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getactiveelements"}},[t._v("#")]),t._v(" getActiveElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getActiveElements")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L483",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:483"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdatavisibility"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdatavisibility"}},[t._v("#")]),t._v(" getDataVisibility")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDataVisibility")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L479",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:479"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdatasetmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdatasetmeta"}},[t._v("#")]),t._v(" getDatasetMeta")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDatasetMeta")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L474",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:474"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getelementsateventformode"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getelementsateventformode"}},[t._v("#")]),t._v(" getElementsAtEventForMode")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getElementsAtEventForMode")]),t._v("("),a("code",[t._v("e")]),t._v(": Event, "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("options")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[a("em",[t._v("InteractionOptions")])]),t._v(", "),a("code",[t._v("useFinalPosition")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[a("em",[t._v("InteractionItem")])]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("e")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Event")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[a("em",[t._v("InteractionOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[a("em",[t._v("InteractionItem")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L471",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:471"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getsortedvisibledatasetmetas"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getsortedvisibledatasetmetas"}},[t._v("#")]),t._v(" getSortedVisibleDatasetMetas")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getSortedVisibleDatasetMetas")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L473",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:473"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getvisibledatasetcount"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getvisibledatasetcount"}},[t._v("#")]),t._v(" getVisibleDatasetCount")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getVisibleDatasetCount")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L475",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:475"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hide"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hide"}},[t._v("#")]),t._v(" hide")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hide")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L480",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:480"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isdatasetvisible"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isdatasetvisible"}},[t._v("#")]),t._v(" isDatasetVisible")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isDatasetVisible")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L476",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:476"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"notifyplugins"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#notifyplugins"}},[t._v("#")]),t._v(" notifyPlugins")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("notifyPlugins")]),t._v("("),a("code",[t._v("hook")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("args?")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("hook")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L492",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:492"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"render"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#render"}},[t._v("#")]),t._v(" render")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("render")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L468",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:468"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" reset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("reset")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L466",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:466"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resize"}},[t._v("#")]),t._v(" resize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("resize")]),t._v("("),a("code",[t._v("width?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height?")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L462",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:462"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setactiveelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setactiveelements"}},[t._v("#")]),t._v(" setActiveElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setActiveElements")]),t._v("("),a("code",[t._v("active")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[a("em",[t._v("ActiveDataPoint")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[a("em",[t._v("ActiveDataPoint")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L484",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:484"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setdatasetvisibility"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setdatasetvisibility"}},[t._v("#")]),t._v(" setDatasetVisibility")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setDatasetVisibility")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("visible")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("visible")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L477",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:477"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"show"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#show"}},[t._v("#")]),t._v(" show")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("show")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L481",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:481"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"stop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stop"}},[t._v("#")]),t._v(" stop")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("stop")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L460",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:460"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tobase64image"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tobase64image"}},[t._v("#")]),t._v(" toBase64Image")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("toBase64Image")]),t._v("("),a("code",[t._v("type?")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("quality?")]),t._v(": "),a("em",[t._v("unknown")]),t._v("): "),a("em",[t._v("string")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("quality?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L487",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:487"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"toggledatavisibility"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#toggledatavisibility"}},[t._v("#")]),t._v(" toggleDataVisibility")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("toggleDataVisibility")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L478",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:478"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"unbindevents"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#unbindevents"}},[t._v("#")]),t._v(" unbindEvents")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("unbindEvents")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L489",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:489"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("mode?")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L467",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:467"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatehoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatehoverstyle"}},[t._v("#")]),t._v(" updateHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateHoverStyle")]),t._v("("),a("code",[t._v("items")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("dataset")]),t._v(", "),a("code",[t._v("enabled")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("items")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("dataset")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("enabled")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L490",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:490"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getchart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getchart"}},[t._v("#")]),t._v(" getChart")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Static")]),a("strong",[t._v("getChart")]),t._v("("),a("code",[t._v("key")]),t._v(": "),a("em",[t._v("string")]),t._v(" | HTMLCanvasElement | CanvasRenderingContext2D): "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("key")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | HTMLCanvasElement | CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L499",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:499"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"register"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#register"}},[t._v("#")]),t._v(" register")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Static")]),a("strong",[t._v("register")]),t._v("(..."),a("code",[t._v("items")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...items")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L500",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:500"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"unregister"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#unregister"}},[t._v("#")]),t._v(" unregister")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Static")]),a("strong",[t._v("unregister")]),t._v("(..."),a("code",[t._v("items")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...items")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L501",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:501"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/150.98525ac3.js b/docs/latest/assets/js/150.dadd8522.js similarity index 95% rename from docs/latest/assets/js/150.98525ac3.js rename to docs/latest/assets/js/150.dadd8522.js index 6f68dc29b4..b1c74856b3 100644 --- a/docs/latest/assets/js/150.98525ac3.js +++ b/docs/latest/assets/js/150.dadd8522.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[150],{475:function(t,e,a){"use strict";a.r(e);var o=a(7),n=Object(o.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"layout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#layout"}},[t._v("#")]),t._v(" Layout")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.layout")]),t._v(", the global options for the chart layout is defined in "),a("code",[t._v("Chart.defaults.layout")]),t._v(".")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/padding.html"}},[a("code",[t._v("Padding")])])],1),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[t._v("The padding to add inside the chart.")])])])])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[150],{474:function(t,e,a){"use strict";a.r(e);var o=a(7),n=Object(o.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"layout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#layout"}},[t._v("#")]),t._v(" Layout")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.layout")]),t._v(", the global options for the chart layout is defined in "),a("code",[t._v("Chart.defaults.layout")]),t._v(".")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/padding.html"}},[a("code",[t._v("Padding")])])],1),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[t._v("The padding to add inside the chart.")])])])])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/151.0eed2bac.js b/docs/latest/assets/js/151.ca1b1565.js similarity index 99% rename from docs/latest/assets/js/151.0eed2bac.js rename to docs/latest/assets/js/151.ca1b1565.js index dd1ab04fbd..67663616a0 100644 --- a/docs/latest/assets/js/151.0eed2bac.js +++ b/docs/latest/assets/js/151.ca1b1565.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[151],{477:function(t,e,a){"use strict";a.r(e);var n=a(7),s=Object(n.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"legend"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#legend"}},[t._v("#")]),t._v(" Legend")]),t._v(" "),a("p",[t._v("The chart legend displays data about the datasets that are appearing on the chart.")]),t._v(" "),a("h2",{attrs:{id:"configuration-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configuration-options"}},[t._v("#")]),t._v(" Configuration options")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.plugins.legend")]),t._v(", the global options for the chart legend is defined in "),a("code",[t._v("Chart.defaults.plugins.legend")]),t._v(".")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("Is the legend shown?")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("position")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'top'")])]),t._v(" "),a("td",[t._v("Position of the legend. "),a("a",{attrs:{href:"#position"}},[t._v("more...")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("align")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'center'")])]),t._v(" "),a("td",[t._v("Alignment of the legend. "),a("a",{attrs:{href:"#align"}},[t._v("more...")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("maxHeight")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Maximum height of the legend, in pixels")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("maxWidth")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Maximum width of the legend, in pixels")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("fullSize")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("Marks that this box should take the full width/height of the canvas (moving other boxes). This is unlikely to need to be changed in day-to-day use.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onClick")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("A callback that is called when a click event is registered on a label item. Arguments: "),a("code",[t._v("[event, legendItem, legend]")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onHover")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("A callback that is called when a 'mousemove' event is registered on top of a label item. Arguments: "),a("code",[t._v("[event, legendItem, legend]")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onLeave")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("A callback that is called when a 'mousemove' event is registered outside of a previously hovered label item. Arguments: "),a("code",[t._v("[event, legendItem, legend]")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("reverse")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Legend will show datasets in reverse order.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("labels")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("See the "),a("a",{attrs:{href:"#legend-label-configuration"}},[t._v("Legend Label Configuration")]),t._v(" section below.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("rtl")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td"),t._v(" "),a("td",[a("code",[t._v("true")]),t._v(" for rendering the legends from right to left.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textDirection")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[t._v("canvas' default")]),t._v(" "),a("td",[t._v("This will force the text direction "),a("code",[t._v("'rtl'")]),t._v(" or "),a("code",[t._v("'ltr'")]),t._v(" on the canvas for rendering the legend, regardless of the css specified on the canvas")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("title")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("See the "),a("a",{attrs:{href:"#legend-title-configuration"}},[t._v("Legend Title Configuration")]),t._v(" section below.")])])])]),t._v(" "),a("h2",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" Position")]),t._v(" "),a("p",[t._v("Position of the legend. Options are:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'top'")])]),t._v(" "),a("li",[a("code",[t._v("'left'")])]),t._v(" "),a("li",[a("code",[t._v("'bottom'")])]),t._v(" "),a("li",[a("code",[t._v("'right'")])]),t._v(" "),a("li",[a("code",[t._v("'chartArea'")])])]),t._v(" "),a("p",[t._v("When using the "),a("code",[t._v("'chartArea'")]),t._v(" option the legend position is at the moment not configurable, it will always be on the left side of the chart in the middle.")]),t._v(" "),a("h2",{attrs:{id:"align"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#align"}},[t._v("#")]),t._v(" Align")]),t._v(" "),a("p",[t._v("Alignment of the legend. Options are:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'start'")])]),t._v(" "),a("li",[a("code",[t._v("'center'")])]),t._v(" "),a("li",[a("code",[t._v("'end'")])])]),t._v(" "),a("p",[t._v("Defaults to "),a("code",[t._v("'center'")]),t._v(" for unrecognized values.")]),t._v(" "),a("h2",{attrs:{id:"legend-label-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#legend-label-configuration"}},[t._v("#")]),t._v(" Legend Label Configuration")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.plugins.legend.labels")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("boxWidth")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("40")])]),t._v(" "),a("td",[t._v("Width of coloured box.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("boxHeight")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("font.size")])]),t._v(" "),a("td",[t._v("Height of the coloured box.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("color")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.color")])]),t._v(" "),a("td",[t._v("Color of label and the strikethrough.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("font")])]),t._v(" "),a("td",[a("code",[t._v("Font")])]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.font")])]),t._v(" "),a("td",[t._v("See "),a("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("10")])]),t._v(" "),a("td",[t._v("Padding between rows of colored boxes.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("generateLabels")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Generates legend items for each thing in the legend. Default implementation returns the text + styling for the color box. See "),a("a",{attrs:{href:"#legend-item-interface"}},[t._v("Legend Item")]),t._v(" for details.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("filter")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td",[a("code",[t._v("null")])]),t._v(" "),a("td",[t._v("Filters legend items out of the legend. Receives 2 parameters, a "),a("a",{attrs:{href:"#legend-item-interface"}},[t._v("Legend Item")]),t._v(" and the chart data.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("sort")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td",[a("code",[t._v("null")])]),t._v(" "),a("td",[t._v("Sorts legend items. Receives 3 parameters, two "),a("a",{attrs:{href:"#legend-item-interface"}},[t._v("Legend Items")]),t._v(" and the chart data.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointStyle")])]),t._v(" "),a("td"),t._v(" "),a("td"),t._v(" "),a("td",[t._v("If specified, this style of point is used for the legend. Only used if "),a("code",[t._v("usePointStyle")]),t._v(" is true.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textAlign")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'center'")])]),t._v(" "),a("td",[t._v("Horizontal alignment of the label text. Options are: "),a("code",[t._v("'left'")]),t._v(", "),a("code",[t._v("'right'")]),t._v(" or "),a("code",[t._v("'center'")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("usePointStyle")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Label style will match corresponding point style (size is based on the minimum value between boxWidth and font.size).")])])])]),t._v(" "),a("h2",{attrs:{id:"legend-title-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#legend-title-configuration"}},[t._v("#")]),t._v(" Legend Title Configuration")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.plugins.legend.title")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("color")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.color")])]),t._v(" "),a("td",[t._v("Color of text.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Is the legend title displayed.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("font")])]),t._v(" "),a("td",[a("code",[t._v("Font")])]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.font")])]),t._v(" "),a("td",[t._v("See "),a("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/padding.html"}},[a("code",[t._v("Padding")])])],1),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Padding around the title.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("text")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("The string title.")])])])]),t._v(" "),a("h2",{attrs:{id:"legend-item-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#legend-item-interface"}},[t._v("#")]),t._v(" Legend Item Interface")]),t._v(" "),a("p",[t._v("Items passed to the legend "),a("code",[t._v("onClick")]),t._v(" function are the ones returned from "),a("code",[t._v("labels.generateLabels")]),t._v(". These items must implement the following interface.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Label that will be displayed")]),t._v("\n text"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Border radius of the legend item.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Introduced in 3.1.0")]),t._v("\n borderRadius"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" BorderRadius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Index of the associated dataset")]),t._v("\n datasetIndex"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Fill style of the legend box")]),t._v("\n fillStyle"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Color"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Text color")]),t._v("\n fontColor"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Color"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// If true, this item represents a hidden dataset. Label will be rendered with a strike-through effect")]),t._v("\n hidden"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" boolean"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For box border. See https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/lineCap")]),t._v("\n lineCap"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For box border. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash")]),t._v("\n lineDash"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For box border. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset")]),t._v("\n lineDashOffset"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For box border. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin")]),t._v("\n lineJoin"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Width of box border")]),t._v("\n lineWidth"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Stroke style of the legend box")]),t._v("\n strokeStyle"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Color"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Point style of the legend box (only used if usePointStyle is true)")]),t._v("\n pointStyle"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" Image"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Rotation of the point in degrees (only used if usePointStyle is true)")]),t._v("\n rotation"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("h2",{attrs:{id:"example"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#example"}},[t._v("#")]),t._v(" Example")]),t._v(" "),a("p",[t._v("The following example will create a chart with the legend enabled and turn all of the text red in color.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n legend"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labels"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n color"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgb(255, 99, 132)'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"custom-on-click-actions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#custom-on-click-actions"}},[t._v("#")]),t._v(" Custom On Click Actions")]),t._v(" "),a("p",[t._v("It can be common to want to trigger different behaviour when clicking an item in the legend. This can be easily achieved using a callback in the config object.")]),t._v(" "),a("p",[t._v("The default legend click handler is:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("e"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" legend")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" index "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasetIndex"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" ci "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" legend"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("isDatasetVisible")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("hide")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("hidden "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("else")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("show")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("hidden "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("p",[t._v("Lets say we wanted instead to link the display of the first two datasets. We could change the click handler accordingly.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" defaultLegendClickHandler "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("plugins"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("legend"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("onClick"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("newLegendClickHandler")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("e"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" legend")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" index "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasetIndex"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("index "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Do the original logic")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("defaultLegendClickHandler")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("e"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("else")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" ci "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" legend"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getDatasetMeta")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getDatasetMeta")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("forEach")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("meta")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n meta"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("hidden "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" meta"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("hidden "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("===")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("!")]),t._v("ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("hidden "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n legend"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n onClick"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" newLegendClickHandler\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("p",[t._v("Now when you click the legend in this chart, the visibility of the first two datasets will be linked together.")])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[151],{475:function(t,e,a){"use strict";a.r(e);var n=a(7),s=Object(n.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"legend"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#legend"}},[t._v("#")]),t._v(" Legend")]),t._v(" "),a("p",[t._v("The chart legend displays data about the datasets that are appearing on the chart.")]),t._v(" "),a("h2",{attrs:{id:"configuration-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configuration-options"}},[t._v("#")]),t._v(" Configuration options")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.plugins.legend")]),t._v(", the global options for the chart legend is defined in "),a("code",[t._v("Chart.defaults.plugins.legend")]),t._v(".")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("Is the legend shown?")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("position")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'top'")])]),t._v(" "),a("td",[t._v("Position of the legend. "),a("a",{attrs:{href:"#position"}},[t._v("more...")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("align")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'center'")])]),t._v(" "),a("td",[t._v("Alignment of the legend. "),a("a",{attrs:{href:"#align"}},[t._v("more...")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("maxHeight")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Maximum height of the legend, in pixels")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("maxWidth")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Maximum width of the legend, in pixels")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("fullSize")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("Marks that this box should take the full width/height of the canvas (moving other boxes). This is unlikely to need to be changed in day-to-day use.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onClick")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("A callback that is called when a click event is registered on a label item. Arguments: "),a("code",[t._v("[event, legendItem, legend]")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onHover")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("A callback that is called when a 'mousemove' event is registered on top of a label item. Arguments: "),a("code",[t._v("[event, legendItem, legend]")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onLeave")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("A callback that is called when a 'mousemove' event is registered outside of a previously hovered label item. Arguments: "),a("code",[t._v("[event, legendItem, legend]")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("reverse")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Legend will show datasets in reverse order.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("labels")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("See the "),a("a",{attrs:{href:"#legend-label-configuration"}},[t._v("Legend Label Configuration")]),t._v(" section below.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("rtl")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td"),t._v(" "),a("td",[a("code",[t._v("true")]),t._v(" for rendering the legends from right to left.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textDirection")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[t._v("canvas' default")]),t._v(" "),a("td",[t._v("This will force the text direction "),a("code",[t._v("'rtl'")]),t._v(" or "),a("code",[t._v("'ltr'")]),t._v(" on the canvas for rendering the legend, regardless of the css specified on the canvas")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("title")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("See the "),a("a",{attrs:{href:"#legend-title-configuration"}},[t._v("Legend Title Configuration")]),t._v(" section below.")])])])]),t._v(" "),a("h2",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" Position")]),t._v(" "),a("p",[t._v("Position of the legend. Options are:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'top'")])]),t._v(" "),a("li",[a("code",[t._v("'left'")])]),t._v(" "),a("li",[a("code",[t._v("'bottom'")])]),t._v(" "),a("li",[a("code",[t._v("'right'")])]),t._v(" "),a("li",[a("code",[t._v("'chartArea'")])])]),t._v(" "),a("p",[t._v("When using the "),a("code",[t._v("'chartArea'")]),t._v(" option the legend position is at the moment not configurable, it will always be on the left side of the chart in the middle.")]),t._v(" "),a("h2",{attrs:{id:"align"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#align"}},[t._v("#")]),t._v(" Align")]),t._v(" "),a("p",[t._v("Alignment of the legend. Options are:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'start'")])]),t._v(" "),a("li",[a("code",[t._v("'center'")])]),t._v(" "),a("li",[a("code",[t._v("'end'")])])]),t._v(" "),a("p",[t._v("Defaults to "),a("code",[t._v("'center'")]),t._v(" for unrecognized values.")]),t._v(" "),a("h2",{attrs:{id:"legend-label-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#legend-label-configuration"}},[t._v("#")]),t._v(" Legend Label Configuration")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.plugins.legend.labels")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("boxWidth")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("40")])]),t._v(" "),a("td",[t._v("Width of coloured box.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("boxHeight")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("font.size")])]),t._v(" "),a("td",[t._v("Height of the coloured box.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("color")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.color")])]),t._v(" "),a("td",[t._v("Color of label and the strikethrough.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("font")])]),t._v(" "),a("td",[a("code",[t._v("Font")])]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.font")])]),t._v(" "),a("td",[t._v("See "),a("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("10")])]),t._v(" "),a("td",[t._v("Padding between rows of colored boxes.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("generateLabels")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Generates legend items for each thing in the legend. Default implementation returns the text + styling for the color box. See "),a("a",{attrs:{href:"#legend-item-interface"}},[t._v("Legend Item")]),t._v(" for details.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("filter")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td",[a("code",[t._v("null")])]),t._v(" "),a("td",[t._v("Filters legend items out of the legend. Receives 2 parameters, a "),a("a",{attrs:{href:"#legend-item-interface"}},[t._v("Legend Item")]),t._v(" and the chart data.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("sort")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td",[a("code",[t._v("null")])]),t._v(" "),a("td",[t._v("Sorts legend items. Receives 3 parameters, two "),a("a",{attrs:{href:"#legend-item-interface"}},[t._v("Legend Items")]),t._v(" and the chart data.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointStyle")])]),t._v(" "),a("td"),t._v(" "),a("td"),t._v(" "),a("td",[t._v("If specified, this style of point is used for the legend. Only used if "),a("code",[t._v("usePointStyle")]),t._v(" is true.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textAlign")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'center'")])]),t._v(" "),a("td",[t._v("Horizontal alignment of the label text. Options are: "),a("code",[t._v("'left'")]),t._v(", "),a("code",[t._v("'right'")]),t._v(" or "),a("code",[t._v("'center'")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("usePointStyle")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Label style will match corresponding point style (size is based on the minimum value between boxWidth and font.size).")])])])]),t._v(" "),a("h2",{attrs:{id:"legend-title-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#legend-title-configuration"}},[t._v("#")]),t._v(" Legend Title Configuration")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.plugins.legend.title")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("color")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.color")])]),t._v(" "),a("td",[t._v("Color of text.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Is the legend title displayed.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("font")])]),t._v(" "),a("td",[a("code",[t._v("Font")])]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.font")])]),t._v(" "),a("td",[t._v("See "),a("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/padding.html"}},[a("code",[t._v("Padding")])])],1),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Padding around the title.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("text")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("The string title.")])])])]),t._v(" "),a("h2",{attrs:{id:"legend-item-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#legend-item-interface"}},[t._v("#")]),t._v(" Legend Item Interface")]),t._v(" "),a("p",[t._v("Items passed to the legend "),a("code",[t._v("onClick")]),t._v(" function are the ones returned from "),a("code",[t._v("labels.generateLabels")]),t._v(". These items must implement the following interface.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Label that will be displayed")]),t._v("\n text"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Border radius of the legend item.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Introduced in 3.1.0")]),t._v("\n borderRadius"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" BorderRadius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Index of the associated dataset")]),t._v("\n datasetIndex"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Fill style of the legend box")]),t._v("\n fillStyle"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Color"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Text color")]),t._v("\n fontColor"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Color"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// If true, this item represents a hidden dataset. Label will be rendered with a strike-through effect")]),t._v("\n hidden"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" boolean"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For box border. See https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/lineCap")]),t._v("\n lineCap"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For box border. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash")]),t._v("\n lineDash"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For box border. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset")]),t._v("\n lineDashOffset"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For box border. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin")]),t._v("\n lineJoin"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Width of box border")]),t._v("\n lineWidth"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Stroke style of the legend box")]),t._v("\n strokeStyle"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Color"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Point style of the legend box (only used if usePointStyle is true)")]),t._v("\n pointStyle"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" Image"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Rotation of the point in degrees (only used if usePointStyle is true)")]),t._v("\n rotation"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("h2",{attrs:{id:"example"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#example"}},[t._v("#")]),t._v(" Example")]),t._v(" "),a("p",[t._v("The following example will create a chart with the legend enabled and turn all of the text red in color.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n legend"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labels"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n color"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgb(255, 99, 132)'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"custom-on-click-actions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#custom-on-click-actions"}},[t._v("#")]),t._v(" Custom On Click Actions")]),t._v(" "),a("p",[t._v("It can be common to want to trigger different behaviour when clicking an item in the legend. This can be easily achieved using a callback in the config object.")]),t._v(" "),a("p",[t._v("The default legend click handler is:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("e"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" legend")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" index "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasetIndex"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" ci "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" legend"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("isDatasetVisible")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("hide")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("hidden "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("else")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("show")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("hidden "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("p",[t._v("Lets say we wanted instead to link the display of the first two datasets. We could change the click handler accordingly.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" defaultLegendClickHandler "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("plugins"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("legend"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("onClick"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("newLegendClickHandler")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("e"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" legend")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" index "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasetIndex"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("index "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Do the original logic")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("defaultLegendClickHandler")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("e"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("else")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" ci "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" legend"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getDatasetMeta")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getDatasetMeta")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("forEach")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("meta")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n meta"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("hidden "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" meta"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("hidden "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("===")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("!")]),t._v("ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("hidden "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n legend"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n onClick"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" newLegendClickHandler\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("p",[t._v("Now when you click the legend in this chart, the visibility of the first two datasets will be linked together.")])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/152.8140349d.js b/docs/latest/assets/js/152.48f8570e.js similarity index 100% rename from docs/latest/assets/js/152.8140349d.js rename to docs/latest/assets/js/152.48f8570e.js diff --git a/docs/latest/assets/js/153.3133cb81.js b/docs/latest/assets/js/153.8d6fd5c8.js similarity index 99% rename from docs/latest/assets/js/153.3133cb81.js rename to docs/latest/assets/js/153.8d6fd5c8.js index d612894412..865c857b52 100644 --- a/docs/latest/assets/js/153.3133cb81.js +++ b/docs/latest/assets/js/153.8d6fd5c8.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[153],{478:function(t,a,e){"use strict";e.r(a);var s=e(7),n=Object(s.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"responsive-charts"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#responsive-charts"}},[t._v("#")]),t._v(" Responsive Charts")]),t._v(" "),e("p",[t._v("When it comes to changing the chart size based on the window size, a major limitation is that the canvas "),e("em",[t._v("render")]),t._v(" size ("),e("code",[t._v("canvas.width")]),t._v(" and "),e("code",[t._v(".height")]),t._v(") can "),e("strong",[t._v("not")]),t._v(" be expressed with relative values, contrary to the "),e("em",[t._v("display")]),t._v(" size ("),e("code",[t._v("canvas.style.width")]),t._v(" and "),e("code",[t._v(".height")]),t._v("). Furthermore, these sizes are independent from each other and thus the canvas "),e("em",[t._v("render")]),t._v(" size does not adjust automatically based on the "),e("em",[t._v("display")]),t._v(" size, making the rendering inaccurate.")]),t._v(" "),e("p",[t._v("The following examples "),e("strong",[t._v("do not work")]),t._v(":")]),t._v(" "),e("ul",[e("li",[e("code",[t._v('')]),t._v(": "),e("strong",[t._v("invalid")]),t._v(" values, the canvas doesn't resize ("),e("a",{attrs:{href:"https://codepen.io/chartjs/pen/oWLZaR",target:"_blank",rel:"noopener noreferrer"}},[t._v("example"),e("OutboundLink")],1),t._v(")")]),t._v(" "),e("li",[e("code",[t._v('')]),t._v(": "),e("strong",[t._v("invalid")]),t._v(" behavior, the canvas is resized but becomes blurry ("),e("a",{attrs:{href:"https://codepen.io/chartjs/pen/WjxpmO",target:"_blank",rel:"noopener noreferrer"}},[t._v("example"),e("OutboundLink")],1),t._v(")")])]),t._v(" "),e("p",[t._v("Chart.js provides a "),e("a",{attrs:{href:"#configuration-options"}},[t._v("few options")]),t._v(" to enable responsiveness and control the resize behavior of charts by detecting when the canvas "),e("em",[t._v("display")]),t._v(" size changes and update the "),e("em",[t._v("render")]),t._v(" size accordingly.")]),t._v(" "),e("h2",{attrs:{id:"configuration-options"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#configuration-options"}},[t._v("#")]),t._v(" Configuration Options")]),t._v(" "),e("p",[t._v("Namespace: "),e("code",[t._v("options")])]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Default")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[e("code",[t._v("responsive")])]),t._v(" "),e("td",[e("code",[t._v("boolean")])]),t._v(" "),e("td",[e("code",[t._v("true")])]),t._v(" "),e("td",[t._v("Resizes the chart canvas when its container does ("),e("a",{attrs:{href:"#important-note"}},[t._v("important note...")]),t._v(").")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("maintainAspectRatio")])]),t._v(" "),e("td",[e("code",[t._v("boolean")])]),t._v(" "),e("td",[e("code",[t._v("true")])]),t._v(" "),e("td",[t._v("Maintain the original canvas aspect ratio "),e("code",[t._v("(width / height)")]),t._v(" when resizing.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("aspectRatio")])]),t._v(" "),e("td",[e("code",[t._v("number")])]),t._v(" "),e("td",[e("code",[t._v("2")])]),t._v(" "),e("td",[t._v("Canvas aspect ratio (i.e. "),e("code",[t._v("width / height")]),t._v(", a value of 1 representing a square canvas). Note that this option is ignored if the height is explicitly defined either as attribute or via the style.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("onResize")])]),t._v(" "),e("td",[e("code",[t._v("function")])]),t._v(" "),e("td",[e("code",[t._v("null")])]),t._v(" "),e("td",[t._v("Called when a resize occurs. Gets passed two arguments: the chart instance and the new size.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("resizeDelay")])]),t._v(" "),e("td",[e("code",[t._v("number")])]),t._v(" "),e("td",[e("code",[t._v("0")])]),t._v(" "),e("td",[t._v("Delay the resize update by give amount of milliseconds. This can ease the resize process by debouncing update of the elements.")])])])]),t._v(" "),e("h2",{attrs:{id:"important-note"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#important-note"}},[t._v("#")]),t._v(" Important Note")]),t._v(" "),e("p",[t._v("Detecting when the canvas size changes can not be done directly from the "),e("code",[t._v("canvas")]),t._v(" element. Chart.js uses its parent container to update the canvas "),e("em",[t._v("render")]),t._v(" and "),e("em",[t._v("display")]),t._v(" sizes. However, this method requires the container to be "),e("strong",[t._v("relatively positioned")]),t._v(" and "),e("strong",[t._v("dedicated to the chart canvas only")]),t._v(". Responsiveness can then be achieved by setting relative values for the container size ("),e("a",{attrs:{href:"https://codepen.io/chartjs/pen/YVWZbz",target:"_blank",rel:"noopener noreferrer"}},[t._v("example"),e("OutboundLink")],1),t._v("):")]),t._v(" "),e("div",{staticClass:"language-html extra-class"},[e("pre",{pre:!0,attrs:{class:"language-html"}},[e("code",[e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("div")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("class")]),e("span",{pre:!0,attrs:{class:"token attr-value"}},[e("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("chart-container"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),e("span",{pre:!0,attrs:{class:"token style-attr"}},[e("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("style")]),e("span",{pre:!0,attrs:{class:"token attr-value"}},[e("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),e("span",{pre:!0,attrs:{class:"token style language-css"}},[e("span",{pre:!0,attrs:{class:"token property"}},[t._v("position")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v(" relative"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token property"}},[t._v("height")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("40vh"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token property"}},[t._v("width")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("80vw")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])])]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),e("span",{pre:!0,attrs:{class:"token attr-value"}},[e("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("chart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),e("p",[t._v("The chart can also be programmatically resized by modifying the container size:")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[t._v("chart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("canvas"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("parentNode"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("height "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'128px'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nchart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("canvas"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("parentNode"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("width "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'128px'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[t._v("Note that in order for the above code to correctly resize the chart height, the "),e("a",{attrs:{href:"#configuration-options"}},[e("code",[t._v("maintainAspectRatio")])]),t._v(" option must also be set to "),e("code",[t._v("false")]),t._v(".")]),t._v(" "),e("h2",{attrs:{id:"printing-resizable-charts"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#printing-resizable-charts"}},[t._v("#")]),t._v(" Printing Resizable Charts")]),t._v(" "),e("p",[t._v("CSS media queries allow changing styles when printing a page. The CSS applied from these media queries may cause charts to need to resize. However, the resize won't happen automatically. To support resizing charts when printing, you need to hook the "),e("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeprint",target:"_blank",rel:"noopener noreferrer"}},[t._v("onbeforeprint"),e("OutboundLink")],1),t._v(" event and manually trigger resizing of each chart.")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("beforePrintHandler")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("for")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" id "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("in")]),t._v(" Chart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("instances"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n Chart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("instances"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("id"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("resize")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),e("p",[t._v("You may also find that, due to complexities in when the browser lays out the document for printing and when resize events are fired, Chart.js is unable to properly resize for the print layout. To work around this, you can pass an explicit size to "),e("code",[t._v(".resize()")]),t._v(" then use an "),e("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onafterprint",target:"_blank",rel:"noopener noreferrer"}},[t._v("onafterprint"),e("OutboundLink")],1),t._v(" event to restore the automatic size when done.")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[t._v("window"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("addEventListener")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'beforeprint'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n myChart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("resize")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("600")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("600")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nwindow"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("addEventListener")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'afterprint'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n myChart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("resize")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[153],{481:function(t,a,e){"use strict";e.r(a);var s=e(7),n=Object(s.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"responsive-charts"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#responsive-charts"}},[t._v("#")]),t._v(" Responsive Charts")]),t._v(" "),e("p",[t._v("When it comes to changing the chart size based on the window size, a major limitation is that the canvas "),e("em",[t._v("render")]),t._v(" size ("),e("code",[t._v("canvas.width")]),t._v(" and "),e("code",[t._v(".height")]),t._v(") can "),e("strong",[t._v("not")]),t._v(" be expressed with relative values, contrary to the "),e("em",[t._v("display")]),t._v(" size ("),e("code",[t._v("canvas.style.width")]),t._v(" and "),e("code",[t._v(".height")]),t._v("). Furthermore, these sizes are independent from each other and thus the canvas "),e("em",[t._v("render")]),t._v(" size does not adjust automatically based on the "),e("em",[t._v("display")]),t._v(" size, making the rendering inaccurate.")]),t._v(" "),e("p",[t._v("The following examples "),e("strong",[t._v("do not work")]),t._v(":")]),t._v(" "),e("ul",[e("li",[e("code",[t._v('')]),t._v(": "),e("strong",[t._v("invalid")]),t._v(" values, the canvas doesn't resize ("),e("a",{attrs:{href:"https://codepen.io/chartjs/pen/oWLZaR",target:"_blank",rel:"noopener noreferrer"}},[t._v("example"),e("OutboundLink")],1),t._v(")")]),t._v(" "),e("li",[e("code",[t._v('')]),t._v(": "),e("strong",[t._v("invalid")]),t._v(" behavior, the canvas is resized but becomes blurry ("),e("a",{attrs:{href:"https://codepen.io/chartjs/pen/WjxpmO",target:"_blank",rel:"noopener noreferrer"}},[t._v("example"),e("OutboundLink")],1),t._v(")")])]),t._v(" "),e("p",[t._v("Chart.js provides a "),e("a",{attrs:{href:"#configuration-options"}},[t._v("few options")]),t._v(" to enable responsiveness and control the resize behavior of charts by detecting when the canvas "),e("em",[t._v("display")]),t._v(" size changes and update the "),e("em",[t._v("render")]),t._v(" size accordingly.")]),t._v(" "),e("h2",{attrs:{id:"configuration-options"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#configuration-options"}},[t._v("#")]),t._v(" Configuration Options")]),t._v(" "),e("p",[t._v("Namespace: "),e("code",[t._v("options")])]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Default")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[e("code",[t._v("responsive")])]),t._v(" "),e("td",[e("code",[t._v("boolean")])]),t._v(" "),e("td",[e("code",[t._v("true")])]),t._v(" "),e("td",[t._v("Resizes the chart canvas when its container does ("),e("a",{attrs:{href:"#important-note"}},[t._v("important note...")]),t._v(").")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("maintainAspectRatio")])]),t._v(" "),e("td",[e("code",[t._v("boolean")])]),t._v(" "),e("td",[e("code",[t._v("true")])]),t._v(" "),e("td",[t._v("Maintain the original canvas aspect ratio "),e("code",[t._v("(width / height)")]),t._v(" when resizing.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("aspectRatio")])]),t._v(" "),e("td",[e("code",[t._v("number")])]),t._v(" "),e("td",[e("code",[t._v("2")])]),t._v(" "),e("td",[t._v("Canvas aspect ratio (i.e. "),e("code",[t._v("width / height")]),t._v(", a value of 1 representing a square canvas). Note that this option is ignored if the height is explicitly defined either as attribute or via the style.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("onResize")])]),t._v(" "),e("td",[e("code",[t._v("function")])]),t._v(" "),e("td",[e("code",[t._v("null")])]),t._v(" "),e("td",[t._v("Called when a resize occurs. Gets passed two arguments: the chart instance and the new size.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("resizeDelay")])]),t._v(" "),e("td",[e("code",[t._v("number")])]),t._v(" "),e("td",[e("code",[t._v("0")])]),t._v(" "),e("td",[t._v("Delay the resize update by give amount of milliseconds. This can ease the resize process by debouncing update of the elements.")])])])]),t._v(" "),e("h2",{attrs:{id:"important-note"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#important-note"}},[t._v("#")]),t._v(" Important Note")]),t._v(" "),e("p",[t._v("Detecting when the canvas size changes can not be done directly from the "),e("code",[t._v("canvas")]),t._v(" element. Chart.js uses its parent container to update the canvas "),e("em",[t._v("render")]),t._v(" and "),e("em",[t._v("display")]),t._v(" sizes. However, this method requires the container to be "),e("strong",[t._v("relatively positioned")]),t._v(" and "),e("strong",[t._v("dedicated to the chart canvas only")]),t._v(". Responsiveness can then be achieved by setting relative values for the container size ("),e("a",{attrs:{href:"https://codepen.io/chartjs/pen/YVWZbz",target:"_blank",rel:"noopener noreferrer"}},[t._v("example"),e("OutboundLink")],1),t._v("):")]),t._v(" "),e("div",{staticClass:"language-html extra-class"},[e("pre",{pre:!0,attrs:{class:"language-html"}},[e("code",[e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("div")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("class")]),e("span",{pre:!0,attrs:{class:"token attr-value"}},[e("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("chart-container"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),e("span",{pre:!0,attrs:{class:"token style-attr"}},[e("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("style")]),e("span",{pre:!0,attrs:{class:"token attr-value"}},[e("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),e("span",{pre:!0,attrs:{class:"token style language-css"}},[e("span",{pre:!0,attrs:{class:"token property"}},[t._v("position")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v(" relative"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token property"}},[t._v("height")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("40vh"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token property"}},[t._v("width")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("80vw")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])])]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),e("span",{pre:!0,attrs:{class:"token attr-value"}},[e("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("chart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),e("p",[t._v("The chart can also be programmatically resized by modifying the container size:")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[t._v("chart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("canvas"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("parentNode"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("height "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'128px'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nchart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("canvas"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("parentNode"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("width "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'128px'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[t._v("Note that in order for the above code to correctly resize the chart height, the "),e("a",{attrs:{href:"#configuration-options"}},[e("code",[t._v("maintainAspectRatio")])]),t._v(" option must also be set to "),e("code",[t._v("false")]),t._v(".")]),t._v(" "),e("h2",{attrs:{id:"printing-resizable-charts"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#printing-resizable-charts"}},[t._v("#")]),t._v(" Printing Resizable Charts")]),t._v(" "),e("p",[t._v("CSS media queries allow changing styles when printing a page. The CSS applied from these media queries may cause charts to need to resize. However, the resize won't happen automatically. To support resizing charts when printing, you need to hook the "),e("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeprint",target:"_blank",rel:"noopener noreferrer"}},[t._v("onbeforeprint"),e("OutboundLink")],1),t._v(" event and manually trigger resizing of each chart.")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("beforePrintHandler")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("for")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" id "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("in")]),t._v(" Chart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("instances"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n Chart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("instances"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("id"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("resize")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),e("p",[t._v("You may also find that, due to complexities in when the browser lays out the document for printing and when resize events are fired, Chart.js is unable to properly resize for the print layout. To work around this, you can pass an explicit size to "),e("code",[t._v(".resize()")]),t._v(" then use an "),e("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onafterprint",target:"_blank",rel:"noopener noreferrer"}},[t._v("onafterprint"),e("OutboundLink")],1),t._v(" event to restore the automatic size when done.")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[t._v("window"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("addEventListener")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'beforeprint'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n myChart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("resize")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("600")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("600")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nwindow"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("addEventListener")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'afterprint'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n myChart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("resize")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/154.b18edd5e.js b/docs/latest/assets/js/154.fcb3d380.js similarity index 99% rename from docs/latest/assets/js/154.b18edd5e.js rename to docs/latest/assets/js/154.fcb3d380.js index f23f6cd8b0..a499f49b02 100644 --- a/docs/latest/assets/js/154.b18edd5e.js +++ b/docs/latest/assets/js/154.fcb3d380.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[154],{479:function(t,a,e){"use strict";e.r(a);var s=e(7),n=Object(s.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"title"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" Title")]),t._v(" "),e("p",[t._v("The chart title defines text to draw at the top of the chart.")]),t._v(" "),e("h2",{attrs:{id:"title-configuration"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#title-configuration"}},[t._v("#")]),t._v(" Title Configuration")]),t._v(" "),e("p",[t._v("Namespace: "),e("code",[t._v("options.plugins.title")]),t._v(", the global options for the chart title is defined in "),e("code",[t._v("Chart.defaults.plugins.title")]),t._v(".")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Default")]),t._v(" "),e("th",{staticStyle:{"text-align":"center"}},[e("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[e("code",[t._v("align")])]),t._v(" "),e("td",[e("code",[t._v("string")])]),t._v(" "),e("td",[e("code",[t._v("'center'")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Alignment of the title. "),e("a",{attrs:{href:"#align"}},[t._v("more...")])])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("color")])]),t._v(" "),e("td",[e("RouterLink",{attrs:{to:"/general/colors.html"}},[e("code",[t._v("Color")])])],1),t._v(" "),e("td",[e("code",[t._v("Chart.defaults.color")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Color of text.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("display")])]),t._v(" "),e("td",[e("code",[t._v("boolean")])]),t._v(" "),e("td",[e("code",[t._v("false")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Is the title shown?")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("fullSize")])]),t._v(" "),e("td",[e("code",[t._v("boolean")])]),t._v(" "),e("td",[e("code",[t._v("true")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Marks that this box should take the full width/height of the canvas. If "),e("code",[t._v("false")]),t._v(", the box is sized and placed above/beside the chart area.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("position")])]),t._v(" "),e("td",[e("code",[t._v("string")])]),t._v(" "),e("td",[e("code",[t._v("'top'")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Position of title. "),e("a",{attrs:{href:"#position"}},[t._v("more...")])])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("font")])]),t._v(" "),e("td",[e("code",[t._v("Font")])]),t._v(" "),e("td",[e("code",[t._v("{weight: 'bold'}")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("See "),e("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),e("tr",[e("td",[e("code",[t._v("padding")])]),t._v(" "),e("td",[e("RouterLink",{attrs:{to:"/general/padding.html"}},[e("code",[t._v("Padding")])])],1),t._v(" "),e("td",[e("code",[t._v("10")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Padding to apply around the title. Only "),e("code",[t._v("top")]),t._v(" and "),e("code",[t._v("bottom")]),t._v(" are implemented.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("text")])]),t._v(" "),e("td",[e("code",[t._v("string")]),t._v("|"),e("code",[t._v("string[]")])]),t._v(" "),e("td",[e("code",[t._v("''")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Title text to display. If specified as an array, text is rendered on multiple lines.")])])])]),t._v(" "),e("h3",{attrs:{id:"position"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" Position")]),t._v(" "),e("p",[t._v("Possible title position values are:")]),t._v(" "),e("ul",[e("li",[e("code",[t._v("'top'")])]),t._v(" "),e("li",[e("code",[t._v("'left'")])]),t._v(" "),e("li",[e("code",[t._v("'bottom'")])]),t._v(" "),e("li",[e("code",[t._v("'right'")])])]),t._v(" "),e("h2",{attrs:{id:"align"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#align"}},[t._v("#")]),t._v(" Align")]),t._v(" "),e("p",[t._v("Alignment of the title. Options are:")]),t._v(" "),e("ul",[e("li",[e("code",[t._v("'start'")])]),t._v(" "),e("li",[e("code",[t._v("'center'")])]),t._v(" "),e("li",[e("code",[t._v("'end'")])])]),t._v(" "),e("h2",{attrs:{id:"example-usage"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#example-usage"}},[t._v("#")]),t._v(" Example Usage")]),t._v(" "),e("p",[t._v("The example below would enable a title of 'Custom Chart Title' on the chart that is created.")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n title"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n text"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Custom Chart Title'")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[t._v("This example shows how to specify separate top and bottom title text padding:")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n title"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n text"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Custom Chart Title'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n padding"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n top"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n bottom"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[154],{478:function(t,a,e){"use strict";e.r(a);var s=e(7),n=Object(s.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"title"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" Title")]),t._v(" "),e("p",[t._v("The chart title defines text to draw at the top of the chart.")]),t._v(" "),e("h2",{attrs:{id:"title-configuration"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#title-configuration"}},[t._v("#")]),t._v(" Title Configuration")]),t._v(" "),e("p",[t._v("Namespace: "),e("code",[t._v("options.plugins.title")]),t._v(", the global options for the chart title is defined in "),e("code",[t._v("Chart.defaults.plugins.title")]),t._v(".")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Default")]),t._v(" "),e("th",{staticStyle:{"text-align":"center"}},[e("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[e("code",[t._v("align")])]),t._v(" "),e("td",[e("code",[t._v("string")])]),t._v(" "),e("td",[e("code",[t._v("'center'")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Alignment of the title. "),e("a",{attrs:{href:"#align"}},[t._v("more...")])])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("color")])]),t._v(" "),e("td",[e("RouterLink",{attrs:{to:"/general/colors.html"}},[e("code",[t._v("Color")])])],1),t._v(" "),e("td",[e("code",[t._v("Chart.defaults.color")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Color of text.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("display")])]),t._v(" "),e("td",[e("code",[t._v("boolean")])]),t._v(" "),e("td",[e("code",[t._v("false")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Is the title shown?")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("fullSize")])]),t._v(" "),e("td",[e("code",[t._v("boolean")])]),t._v(" "),e("td",[e("code",[t._v("true")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Marks that this box should take the full width/height of the canvas. If "),e("code",[t._v("false")]),t._v(", the box is sized and placed above/beside the chart area.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("position")])]),t._v(" "),e("td",[e("code",[t._v("string")])]),t._v(" "),e("td",[e("code",[t._v("'top'")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Position of title. "),e("a",{attrs:{href:"#position"}},[t._v("more...")])])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("font")])]),t._v(" "),e("td",[e("code",[t._v("Font")])]),t._v(" "),e("td",[e("code",[t._v("{weight: 'bold'}")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("See "),e("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),e("tr",[e("td",[e("code",[t._v("padding")])]),t._v(" "),e("td",[e("RouterLink",{attrs:{to:"/general/padding.html"}},[e("code",[t._v("Padding")])])],1),t._v(" "),e("td",[e("code",[t._v("10")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Padding to apply around the title. Only "),e("code",[t._v("top")]),t._v(" and "),e("code",[t._v("bottom")]),t._v(" are implemented.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("text")])]),t._v(" "),e("td",[e("code",[t._v("string")]),t._v("|"),e("code",[t._v("string[]")])]),t._v(" "),e("td",[e("code",[t._v("''")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Title text to display. If specified as an array, text is rendered on multiple lines.")])])])]),t._v(" "),e("h3",{attrs:{id:"position"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" Position")]),t._v(" "),e("p",[t._v("Possible title position values are:")]),t._v(" "),e("ul",[e("li",[e("code",[t._v("'top'")])]),t._v(" "),e("li",[e("code",[t._v("'left'")])]),t._v(" "),e("li",[e("code",[t._v("'bottom'")])]),t._v(" "),e("li",[e("code",[t._v("'right'")])])]),t._v(" "),e("h2",{attrs:{id:"align"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#align"}},[t._v("#")]),t._v(" Align")]),t._v(" "),e("p",[t._v("Alignment of the title. Options are:")]),t._v(" "),e("ul",[e("li",[e("code",[t._v("'start'")])]),t._v(" "),e("li",[e("code",[t._v("'center'")])]),t._v(" "),e("li",[e("code",[t._v("'end'")])])]),t._v(" "),e("h2",{attrs:{id:"example-usage"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#example-usage"}},[t._v("#")]),t._v(" Example Usage")]),t._v(" "),e("p",[t._v("The example below would enable a title of 'Custom Chart Title' on the chart that is created.")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n title"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n text"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Custom Chart Title'")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[t._v("This example shows how to specify separate top and bottom title text padding:")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n title"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n text"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Custom Chart Title'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n padding"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n top"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n bottom"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/155.4c2ecdc0.js b/docs/latest/assets/js/155.4b834ca6.js similarity index 99% rename from docs/latest/assets/js/155.4c2ecdc0.js rename to docs/latest/assets/js/155.4b834ca6.js index f38a936722..ab348c3e0b 100644 --- a/docs/latest/assets/js/155.4c2ecdc0.js +++ b/docs/latest/assets/js/155.4b834ca6.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[155],{480:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"tooltip"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tooltip"}},[t._v("#")]),t._v(" Tooltip")]),t._v(" "),s("h2",{attrs:{id:"tooltip-configuration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tooltip-configuration"}},[t._v("#")]),t._v(" Tooltip Configuration")]),t._v(" "),s("p",[t._v("Namespace: "),s("code",[t._v("options.plugins.tooltip")]),t._v(", the global options for the chart tooltips is defined in "),s("code",[t._v("Chart.defaults.plugins.tooltip")]),t._v(".")]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Default")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("enabled")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[s("code",[t._v("true")])]),t._v(" "),s("td",[t._v("Are on-canvas tooltips enabled?")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("external")])]),t._v(" "),s("td",[s("code",[t._v("function")])]),t._v(" "),s("td",[s("code",[t._v("null")])]),t._v(" "),s("td",[t._v("See "),s("a",{attrs:{href:"#external-custom-tooltips"}},[t._v("external tooltip")]),t._v(" section.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("mode")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("interaction.mode")])]),t._v(" "),s("td",[t._v("Sets which elements appear in the tooltip. "),s("RouterLink",{attrs:{to:"/configuration/interactions.html#modes"}},[t._v("more...")]),t._v(".")],1)]),t._v(" "),s("tr",[s("td",[s("code",[t._v("intersect")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[s("code",[t._v("interaction.intersect")])]),t._v(" "),s("td",[t._v("If true, the tooltip mode applies only when the mouse position intersects with an element. If false, the mode will be applied at all times.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("position")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'average'")])]),t._v(" "),s("td",[t._v("The mode for positioning the tooltip. "),s("a",{attrs:{href:"#position-modes"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("callbacks")])]),t._v(" "),s("td",[s("code",[t._v("object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("See the "),s("a",{attrs:{href:"#tooltip-callbacks"}},[t._v("callbacks section")]),t._v(".")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("itemSort")])]),t._v(" "),s("td",[s("code",[t._v("function")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Sort tooltip items. "),s("a",{attrs:{href:"#sort-callback"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("filter")])]),t._v(" "),s("td",[s("code",[t._v("function")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Filter tooltip items. "),s("a",{attrs:{href:"#filter-callback"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("backgroundColor")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'rgba(0, 0, 0, 0.8)'")])]),t._v(" "),s("td",[t._v("Background color of the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("titleColor")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'#fff'")])]),t._v(" "),s("td",[t._v("Color of title text.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("titleFont")])]),t._v(" "),s("td",[s("code",[t._v("Font")])]),t._v(" "),s("td",[s("code",[t._v("{weight: 'bold'}")])]),t._v(" "),s("td",[t._v("See "),s("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")]),t._v(".")],1)]),t._v(" "),s("tr",[s("td",[s("code",[t._v("titleAlign")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'left'")])]),t._v(" "),s("td",[t._v("Horizontal alignment of the title text lines. "),s("a",{attrs:{href:"#alignment"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("titleSpacing")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("2")])]),t._v(" "),s("td",[t._v("Spacing to add to top and bottom of each title line.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("titleMarginBottom")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("6")])]),t._v(" "),s("td",[t._v("Margin to add on bottom of title section.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("bodyColor")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'#fff'")])]),t._v(" "),s("td",[t._v("Color of body text.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("bodyFont")])]),t._v(" "),s("td",[s("code",[t._v("Font")])]),t._v(" "),s("td",[s("code",[t._v("{}")])]),t._v(" "),s("td",[t._v("See "),s("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")]),t._v(".")],1)]),t._v(" "),s("tr",[s("td",[s("code",[t._v("bodyAlign")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'left'")])]),t._v(" "),s("td",[t._v("Horizontal alignment of the body text lines. "),s("a",{attrs:{href:"#alignment"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("bodySpacing")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("2")])]),t._v(" "),s("td",[t._v("Spacing to add to top and bottom of each tooltip item.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footerColor")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'#fff'")])]),t._v(" "),s("td",[t._v("Color of footer text.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footerFont")])]),t._v(" "),s("td",[s("code",[t._v("Font")])]),t._v(" "),s("td",[s("code",[t._v("{weight: 'bold'}")])]),t._v(" "),s("td",[t._v("See "),s("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")]),t._v(".")],1)]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footerAlign")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'left'")])]),t._v(" "),s("td",[t._v("Horizontal alignment of the footer text lines. "),s("a",{attrs:{href:"#alignment"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footerSpacing")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("2")])]),t._v(" "),s("td",[t._v("Spacing to add to top and bottom of each footer line.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footerMarginTop")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("6")])]),t._v(" "),s("td",[t._v("Margin to add before drawing the footer.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("padding")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/padding.html"}},[s("code",[t._v("Padding")])])],1),t._v(" "),s("td",[s("code",[t._v("6")])]),t._v(" "),s("td",[t._v("Padding inside the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("caretPadding")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("2")])]),t._v(" "),s("td",[t._v("Extra distance to move the end of the tooltip arrow away from the tooltip point.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("caretSize")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("5")])]),t._v(" "),s("td",[t._v("Size, in px, of the tooltip arrow.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("cornerRadius")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("6")])]),t._v(" "),s("td",[t._v("Radius of tooltip corner curves.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("multiKeyBackground")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'#fff'")])]),t._v(" "),s("td",[t._v("Color to draw behind the colored boxes when multiple items are in the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("displayColors")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[s("code",[t._v("true")])]),t._v(" "),s("td",[t._v("If true, color boxes are shown in the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("boxWidth")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("bodyFont.size")])]),t._v(" "),s("td",[t._v("Width of the color box if displayColors is true.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("boxHeight")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("bodyFont.size")])]),t._v(" "),s("td",[t._v("Height of the color box if displayColors is true.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("usePointStyle")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[s("code",[t._v("false")])]),t._v(" "),s("td",[t._v("Use the corresponding point style (from dataset options) instead of color boxes, ex: star, triangle etc. (size is based on the minimum value between boxWidth and boxHeight).")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("borderColor")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'rgba(0, 0, 0, 0)'")])]),t._v(" "),s("td",[t._v("Color of the border.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("borderWidth")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("0")])]),t._v(" "),s("td",[t._v("Size of the border.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("rtl")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td"),t._v(" "),s("td",[s("code",[t._v("true")]),t._v(" for rendering the tooltip from right to left.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("textDirection")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[t._v("canvas' default")]),t._v(" "),s("td",[t._v("This will force the text direction "),s("code",[t._v("'rtl' or 'ltr")]),t._v(" on the canvas for rendering the tooltips, regardless of the css specified on the canvas")])])])]),t._v(" "),s("h3",{attrs:{id:"position-modes"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#position-modes"}},[t._v("#")]),t._v(" Position Modes")]),t._v(" "),s("p",[t._v("Possible modes are:")]),t._v(" "),s("ul",[s("li",[s("code",[t._v("'average'")])]),t._v(" "),s("li",[s("code",[t._v("'nearest'")])])]),t._v(" "),s("p",[s("code",[t._v("'average'")]),t._v(" mode will place the tooltip at the average position of the items displayed in the tooltip. "),s("code",[t._v("'nearest'")]),t._v(" will place the tooltip at the position of the element closest to the event position.")]),t._v(" "),s("p",[t._v("New modes can be defined by adding functions to the "),s("code",[t._v("Chart.Tooltip.positioners")]),t._v(" map.")]),t._v(" "),s("p",[t._v("Example:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("/**\n * Custom positioner\n * @function Tooltip.positioners.myCustomPositioner\n * @param elements {Chart.Element[]} the tooltip elements\n * @param eventPosition {Point} the position of the event in canvas coordinates\n * @returns {Point} the tooltip position\n */")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" tooltipPlugin "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("registry"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getPlugin")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'tooltip'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\ntooltipPlugin"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("positioners"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("myCustomPositioner")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("elements"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" eventPosition")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("/** @type {Tooltip} */")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" tooltip "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("/* ... */")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"alignment"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#alignment"}},[t._v("#")]),t._v(" Alignment")]),t._v(" "),s("p",[t._v("The "),s("code",[t._v("titleAlign")]),t._v(", "),s("code",[t._v("bodyAlign")]),t._v(" and "),s("code",[t._v("footerAlign")]),t._v(" options define the horizontal position of the text lines with respect to the tooltip box. The following values are supported.")]),t._v(" "),s("ul",[s("li",[s("code",[t._v("'left'")]),t._v(" (default)")]),t._v(" "),s("li",[s("code",[t._v("'right'")])]),t._v(" "),s("li",[s("code",[t._v("'center'")])])]),t._v(" "),s("p",[t._v("These options are only applied to text lines. Color boxes are always aligned to the left edge.")]),t._v(" "),s("h3",{attrs:{id:"sort-callback"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#sort-callback"}},[t._v("#")]),t._v(" Sort Callback")]),t._v(" "),s("p",[t._v("Allows sorting of "),s("a",{attrs:{href:"#tooltip-item-context"}},[t._v("tooltip items")]),t._v(". Must implement at minimum a function that can be passed to "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort",target:"_blank",rel:"noopener noreferrer"}},[t._v("Array.prototype.sort"),s("OutboundLink")],1),t._v(". This function can also accept a third parameter that is the data object passed to the chart.")]),t._v(" "),s("h3",{attrs:{id:"filter-callback"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#filter-callback"}},[t._v("#")]),t._v(" Filter Callback")]),t._v(" "),s("p",[t._v("Allows filtering of "),s("a",{attrs:{href:"#tooltip-item-context"}},[t._v("tooltip items")]),t._v(". Must implement at minimum a function that can be passed to "),s("a",{attrs:{href:"https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/filter",target:"_blank",rel:"noopener noreferrer"}},[t._v("Array.prototype.filter"),s("OutboundLink")],1),t._v(". This function can also accept a fourth parameter that is the data object passed to the chart.")]),t._v(" "),s("h2",{attrs:{id:"tooltip-callbacks"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tooltip-callbacks"}},[t._v("#")]),t._v(" Tooltip Callbacks")]),t._v(" "),s("p",[t._v("Namespace: "),s("code",[t._v("options.plugins.tooltip.callbacks")]),t._v(", the tooltip has the following callbacks for providing text. For all functions, "),s("code",[t._v("this")]),t._v(" will be the tooltip object created from the "),s("code",[t._v("Tooltip")]),t._v(" constructor.")]),t._v(" "),s("p",[t._v("Namespace: "),s("code",[t._v("data.datasets[].tooltip.callbacks")]),t._v(", items marked with "),s("code",[t._v("Yes")]),t._v(" in the column "),s("code",[t._v("Dataset override")]),t._v(" can be overridden per dataset.")]),t._v(" "),s("p",[t._v("All functions are called with the same arguments: a "),s("a",{attrs:{href:"#tooltip-item-context"}},[t._v("tooltip item context")]),t._v(". All functions must return either a string or an array of strings. Arrays of strings are treated as multiple lines of text.")]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Arguments")]),t._v(" "),s("th",[t._v("Dataset override")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("beforeTitle")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns the text to render before the title.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("title")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render as the title of the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("afterTitle")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render after the title.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("beforeBody")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render before the body section.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("beforeLabel")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, object")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns text to render before an individual label. This will be called for each item in the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("label")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, object")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns text to render for an individual item in the tooltip. "),s("a",{attrs:{href:"#label-callback"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("labelColor")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, Chart")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns the colors to render for the tooltip item. "),s("a",{attrs:{href:"#label-color-callback"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("labelTextColor")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, Chart")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns the colors for the text of the label for the tooltip item.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("labelPointStyle")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, Chart")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns the point style to use instead of color boxes if usePointStyle is true (object with values "),s("code",[t._v("pointStyle")]),t._v(" and "),s("code",[t._v("rotation")]),t._v("). Default implementation uses the point style from the dataset points. "),s("a",{attrs:{href:"#label-point-style-callback"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("afterLabel")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, object")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns text to render after an individual label.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("afterBody")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render after the body section.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("beforeFooter")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render before the footer section.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footer")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render as the footer of the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("afterFooter")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Text to render after the footer section.")])])])]),t._v(" "),s("h3",{attrs:{id:"label-callback"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#label-callback"}},[t._v("#")]),t._v(" Label Callback")]),t._v(" "),s("p",[t._v("The "),s("code",[t._v("label")]),t._v(" callback can change the text that displays for a given data point. A common example to show a unit. The example below puts a "),s("code",[t._v("'$'")]),t._v(" before every row.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltip"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n callbacks"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("label")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" label "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" context"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("dataset"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("label "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("||")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("label"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("': '")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("context"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("parsed"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("!==")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Intl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("NumberFormat")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'en-US'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" style"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'currency'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" currency"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'USD'")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("format")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("context"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("parsed"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" label"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"label-color-callback"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#label-color-callback"}},[t._v("#")]),t._v(" Label Color Callback")]),t._v(" "),s("p",[t._v("For example, to return a red box with a blue dashed border that has a border radius for each item in the tooltip you could do:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltip"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n callbacks"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("labelColor")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n borderColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgb(0, 0, 255)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n backgroundColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgb(255, 0, 0)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderWidth"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderDash"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderRadius"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("labelTextColor")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#543453'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"label-point-style-callback"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#label-point-style-callback"}},[t._v("#")]),t._v(" Label Point Style Callback")]),t._v(" "),s("p",[t._v("For example, to draw triangles instead of the regular color box for each item in the tooltip you could do:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltip"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n usePointStyle"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n callbacks"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("labelPointStyle")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n pointStyle"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'triangle'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n rotation"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"tooltip-item-context"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tooltip-item-context"}},[t._v("#")]),t._v(" Tooltip Item Context")]),t._v(" "),s("p",[t._v("The tooltip items passed to the tooltip callbacks implement the following interface.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The chart the tooltip is being shown on")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Chart\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Label for the tooltip")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Parsed data values for the given `dataIndex` and `datasetIndex`")]),t._v("\n parsed"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" object"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Raw data values for the given `dataIndex` and `datasetIndex`")]),t._v("\n raw"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" object"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Formatted value for the tooltip")]),t._v("\n formattedValue"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The dataset the item comes from")]),t._v("\n dataset"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" object\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Index of the dataset the item comes from")]),t._v("\n datasetIndex"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Index of this data item in the dataset")]),t._v("\n dataIndex"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The chart element (point, arc, bar, etc.) for this tooltip item")]),t._v("\n element"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Element"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("h2",{attrs:{id:"external-custom-tooltips"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#external-custom-tooltips"}},[t._v("#")]),t._v(" External (Custom) Tooltips")]),t._v(" "),s("p",[t._v("External tooltips allow you to hook into the tooltip rendering process so that you can render the tooltip in your own custom way. Generally this is used to create an HTML tooltip instead of an on-canvas tooltip. The "),s("code",[t._v("external")]),t._v(" option takes a function which is passed a context parameter containing the "),s("code",[t._v("chart")]),t._v(" and "),s("code",[t._v("tooltip")]),t._v(". You can enable external tooltips in the global or chart configuration like so:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myPieChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'pie'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltip"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Disable the on-canvas tooltip")]),t._v("\n enabled"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("external")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Tooltip Element")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" tooltipEl "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chartjs-tooltip'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Create element on first render")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("!")]),t._v("tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltipEl "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("createElement")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'div'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("id "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chartjs-tooltip'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("innerHTML "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'
'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("body"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("appendChild")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Hide if no tooltip")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" tooltipModel "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" context"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("tooltip"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("opacity "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("===")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("opacity "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Set caret Position")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("classList"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("remove")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'above'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'below'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'no-transform'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("yAlign"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("classList"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("add")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("yAlign"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("else")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("classList"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("add")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'no-transform'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getBody")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("bodyItem")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" bodyItem"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("lines"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Set Text")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("body"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" titleLines "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("title "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("||")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" bodyLines "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("body"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("map")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("getBody"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" innerHtml "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n titleLines"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("forEach")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("title")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n innerHtml "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" title "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n innerHtml "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n bodyLines"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("forEach")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("body"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" i")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" colors "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("labelColors"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("i"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" style "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'background:'")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" colors"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("backgroundColor"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n style "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'; border-color:'")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" colors"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("borderColor"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n style "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'; border-width: 2px'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" span "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n innerHtml "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" span "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" body "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n innerHtml "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" tableRoot "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("querySelector")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'table'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tableRoot"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("innerHTML "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" innerHtml"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" position "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" context"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getBoundingClientRect")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" bodyFont "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("helpers"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toFont")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("bodyFont"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Display, position, and set styles for font")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("opacity "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("position "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'absolute'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("left "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" position"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("left "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" window"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("pageXOffset "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("caretX "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'px'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("top "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" position"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("top "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" window"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("pageYOffset "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("caretY "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'px'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("font "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" bodyFont"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("padding "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("padding "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'px '")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("padding "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'px'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("pointerEvents "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'none'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("See "),s("a",{attrs:{href:"https://www.chartjs.org/samples/",target:"_blank",rel:"noopener noreferrer"}},[t._v("samples"),s("OutboundLink")],1),t._v(" for examples on how to get started with external tooltips.")]),t._v(" "),s("h2",{attrs:{id:"tooltip-model"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tooltip-model"}},[t._v("#")]),t._v(" Tooltip Model")]),t._v(" "),s("p",[t._v("The tooltip model contains parameters that can be used to render the tooltip.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The items that we are rendering in the tooltip. See Tooltip Item Interface section")]),t._v("\n dataPoints"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" TooltipItem"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Positioning")]),t._v("\n xAlign"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n yAlign"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// X and Y properties are the top left of the tooltip")]),t._v("\n x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n width"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n height"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Where the tooltip points to")]),t._v("\n caretX"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n caretY"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Body")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The body lines that need to be rendered")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Each object contains 3 parameters")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// before: string[] // lines of text before the line with the color square")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// lines: string[], // lines of text to render as the main item with color square")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// after: string[], // lines of text to render after the main lines")]),t._v("\n body"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" object"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// lines of text that appear after the title but before the body")]),t._v("\n beforeBody"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// line of text that appear after the body and before the footer")]),t._v("\n afterBody"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Title")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// lines of text that form the title")]),t._v("\n title"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Footer")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// lines of text that form the footer")]),t._v("\n footer"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// colors to render for each item in body[]. This is the color of the squares in the tooltip")]),t._v("\n labelColors"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Color"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labelTextColors"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Color"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 0 opacity is a hidden tooltip")]),t._v("\n opacity"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// tooltip options")]),t._v("\n options "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Object\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[155],{479:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"tooltip"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tooltip"}},[t._v("#")]),t._v(" Tooltip")]),t._v(" "),s("h2",{attrs:{id:"tooltip-configuration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tooltip-configuration"}},[t._v("#")]),t._v(" Tooltip Configuration")]),t._v(" "),s("p",[t._v("Namespace: "),s("code",[t._v("options.plugins.tooltip")]),t._v(", the global options for the chart tooltips is defined in "),s("code",[t._v("Chart.defaults.plugins.tooltip")]),t._v(".")]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Default")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("enabled")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[s("code",[t._v("true")])]),t._v(" "),s("td",[t._v("Are on-canvas tooltips enabled?")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("external")])]),t._v(" "),s("td",[s("code",[t._v("function")])]),t._v(" "),s("td",[s("code",[t._v("null")])]),t._v(" "),s("td",[t._v("See "),s("a",{attrs:{href:"#external-custom-tooltips"}},[t._v("external tooltip")]),t._v(" section.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("mode")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("interaction.mode")])]),t._v(" "),s("td",[t._v("Sets which elements appear in the tooltip. "),s("RouterLink",{attrs:{to:"/configuration/interactions.html#modes"}},[t._v("more...")]),t._v(".")],1)]),t._v(" "),s("tr",[s("td",[s("code",[t._v("intersect")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[s("code",[t._v("interaction.intersect")])]),t._v(" "),s("td",[t._v("If true, the tooltip mode applies only when the mouse position intersects with an element. If false, the mode will be applied at all times.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("position")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'average'")])]),t._v(" "),s("td",[t._v("The mode for positioning the tooltip. "),s("a",{attrs:{href:"#position-modes"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("callbacks")])]),t._v(" "),s("td",[s("code",[t._v("object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("See the "),s("a",{attrs:{href:"#tooltip-callbacks"}},[t._v("callbacks section")]),t._v(".")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("itemSort")])]),t._v(" "),s("td",[s("code",[t._v("function")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Sort tooltip items. "),s("a",{attrs:{href:"#sort-callback"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("filter")])]),t._v(" "),s("td",[s("code",[t._v("function")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Filter tooltip items. "),s("a",{attrs:{href:"#filter-callback"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("backgroundColor")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'rgba(0, 0, 0, 0.8)'")])]),t._v(" "),s("td",[t._v("Background color of the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("titleColor")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'#fff'")])]),t._v(" "),s("td",[t._v("Color of title text.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("titleFont")])]),t._v(" "),s("td",[s("code",[t._v("Font")])]),t._v(" "),s("td",[s("code",[t._v("{weight: 'bold'}")])]),t._v(" "),s("td",[t._v("See "),s("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")]),t._v(".")],1)]),t._v(" "),s("tr",[s("td",[s("code",[t._v("titleAlign")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'left'")])]),t._v(" "),s("td",[t._v("Horizontal alignment of the title text lines. "),s("a",{attrs:{href:"#alignment"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("titleSpacing")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("2")])]),t._v(" "),s("td",[t._v("Spacing to add to top and bottom of each title line.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("titleMarginBottom")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("6")])]),t._v(" "),s("td",[t._v("Margin to add on bottom of title section.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("bodyColor")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'#fff'")])]),t._v(" "),s("td",[t._v("Color of body text.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("bodyFont")])]),t._v(" "),s("td",[s("code",[t._v("Font")])]),t._v(" "),s("td",[s("code",[t._v("{}")])]),t._v(" "),s("td",[t._v("See "),s("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")]),t._v(".")],1)]),t._v(" "),s("tr",[s("td",[s("code",[t._v("bodyAlign")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'left'")])]),t._v(" "),s("td",[t._v("Horizontal alignment of the body text lines. "),s("a",{attrs:{href:"#alignment"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("bodySpacing")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("2")])]),t._v(" "),s("td",[t._v("Spacing to add to top and bottom of each tooltip item.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footerColor")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'#fff'")])]),t._v(" "),s("td",[t._v("Color of footer text.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footerFont")])]),t._v(" "),s("td",[s("code",[t._v("Font")])]),t._v(" "),s("td",[s("code",[t._v("{weight: 'bold'}")])]),t._v(" "),s("td",[t._v("See "),s("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")]),t._v(".")],1)]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footerAlign")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'left'")])]),t._v(" "),s("td",[t._v("Horizontal alignment of the footer text lines. "),s("a",{attrs:{href:"#alignment"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footerSpacing")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("2")])]),t._v(" "),s("td",[t._v("Spacing to add to top and bottom of each footer line.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footerMarginTop")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("6")])]),t._v(" "),s("td",[t._v("Margin to add before drawing the footer.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("padding")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/padding.html"}},[s("code",[t._v("Padding")])])],1),t._v(" "),s("td",[s("code",[t._v("6")])]),t._v(" "),s("td",[t._v("Padding inside the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("caretPadding")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("2")])]),t._v(" "),s("td",[t._v("Extra distance to move the end of the tooltip arrow away from the tooltip point.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("caretSize")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("5")])]),t._v(" "),s("td",[t._v("Size, in px, of the tooltip arrow.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("cornerRadius")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("6")])]),t._v(" "),s("td",[t._v("Radius of tooltip corner curves.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("multiKeyBackground")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'#fff'")])]),t._v(" "),s("td",[t._v("Color to draw behind the colored boxes when multiple items are in the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("displayColors")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[s("code",[t._v("true")])]),t._v(" "),s("td",[t._v("If true, color boxes are shown in the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("boxWidth")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("bodyFont.size")])]),t._v(" "),s("td",[t._v("Width of the color box if displayColors is true.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("boxHeight")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("bodyFont.size")])]),t._v(" "),s("td",[t._v("Height of the color box if displayColors is true.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("usePointStyle")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[s("code",[t._v("false")])]),t._v(" "),s("td",[t._v("Use the corresponding point style (from dataset options) instead of color boxes, ex: star, triangle etc. (size is based on the minimum value between boxWidth and boxHeight).")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("borderColor")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'rgba(0, 0, 0, 0)'")])]),t._v(" "),s("td",[t._v("Color of the border.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("borderWidth")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("0")])]),t._v(" "),s("td",[t._v("Size of the border.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("rtl")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td"),t._v(" "),s("td",[s("code",[t._v("true")]),t._v(" for rendering the tooltip from right to left.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("textDirection")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[t._v("canvas' default")]),t._v(" "),s("td",[t._v("This will force the text direction "),s("code",[t._v("'rtl' or 'ltr")]),t._v(" on the canvas for rendering the tooltips, regardless of the css specified on the canvas")])])])]),t._v(" "),s("h3",{attrs:{id:"position-modes"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#position-modes"}},[t._v("#")]),t._v(" Position Modes")]),t._v(" "),s("p",[t._v("Possible modes are:")]),t._v(" "),s("ul",[s("li",[s("code",[t._v("'average'")])]),t._v(" "),s("li",[s("code",[t._v("'nearest'")])])]),t._v(" "),s("p",[s("code",[t._v("'average'")]),t._v(" mode will place the tooltip at the average position of the items displayed in the tooltip. "),s("code",[t._v("'nearest'")]),t._v(" will place the tooltip at the position of the element closest to the event position.")]),t._v(" "),s("p",[t._v("New modes can be defined by adding functions to the "),s("code",[t._v("Chart.Tooltip.positioners")]),t._v(" map.")]),t._v(" "),s("p",[t._v("Example:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("/**\n * Custom positioner\n * @function Tooltip.positioners.myCustomPositioner\n * @param elements {Chart.Element[]} the tooltip elements\n * @param eventPosition {Point} the position of the event in canvas coordinates\n * @returns {Point} the tooltip position\n */")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" tooltipPlugin "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("registry"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getPlugin")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'tooltip'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\ntooltipPlugin"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("positioners"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("myCustomPositioner")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("elements"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" eventPosition")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("/** @type {Tooltip} */")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" tooltip "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("/* ... */")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"alignment"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#alignment"}},[t._v("#")]),t._v(" Alignment")]),t._v(" "),s("p",[t._v("The "),s("code",[t._v("titleAlign")]),t._v(", "),s("code",[t._v("bodyAlign")]),t._v(" and "),s("code",[t._v("footerAlign")]),t._v(" options define the horizontal position of the text lines with respect to the tooltip box. The following values are supported.")]),t._v(" "),s("ul",[s("li",[s("code",[t._v("'left'")]),t._v(" (default)")]),t._v(" "),s("li",[s("code",[t._v("'right'")])]),t._v(" "),s("li",[s("code",[t._v("'center'")])])]),t._v(" "),s("p",[t._v("These options are only applied to text lines. Color boxes are always aligned to the left edge.")]),t._v(" "),s("h3",{attrs:{id:"sort-callback"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#sort-callback"}},[t._v("#")]),t._v(" Sort Callback")]),t._v(" "),s("p",[t._v("Allows sorting of "),s("a",{attrs:{href:"#tooltip-item-context"}},[t._v("tooltip items")]),t._v(". Must implement at minimum a function that can be passed to "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort",target:"_blank",rel:"noopener noreferrer"}},[t._v("Array.prototype.sort"),s("OutboundLink")],1),t._v(". This function can also accept a third parameter that is the data object passed to the chart.")]),t._v(" "),s("h3",{attrs:{id:"filter-callback"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#filter-callback"}},[t._v("#")]),t._v(" Filter Callback")]),t._v(" "),s("p",[t._v("Allows filtering of "),s("a",{attrs:{href:"#tooltip-item-context"}},[t._v("tooltip items")]),t._v(". Must implement at minimum a function that can be passed to "),s("a",{attrs:{href:"https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/filter",target:"_blank",rel:"noopener noreferrer"}},[t._v("Array.prototype.filter"),s("OutboundLink")],1),t._v(". This function can also accept a fourth parameter that is the data object passed to the chart.")]),t._v(" "),s("h2",{attrs:{id:"tooltip-callbacks"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tooltip-callbacks"}},[t._v("#")]),t._v(" Tooltip Callbacks")]),t._v(" "),s("p",[t._v("Namespace: "),s("code",[t._v("options.plugins.tooltip.callbacks")]),t._v(", the tooltip has the following callbacks for providing text. For all functions, "),s("code",[t._v("this")]),t._v(" will be the tooltip object created from the "),s("code",[t._v("Tooltip")]),t._v(" constructor.")]),t._v(" "),s("p",[t._v("Namespace: "),s("code",[t._v("data.datasets[].tooltip.callbacks")]),t._v(", items marked with "),s("code",[t._v("Yes")]),t._v(" in the column "),s("code",[t._v("Dataset override")]),t._v(" can be overridden per dataset.")]),t._v(" "),s("p",[t._v("All functions are called with the same arguments: a "),s("a",{attrs:{href:"#tooltip-item-context"}},[t._v("tooltip item context")]),t._v(". All functions must return either a string or an array of strings. Arrays of strings are treated as multiple lines of text.")]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Arguments")]),t._v(" "),s("th",[t._v("Dataset override")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("beforeTitle")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns the text to render before the title.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("title")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render as the title of the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("afterTitle")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render after the title.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("beforeBody")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render before the body section.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("beforeLabel")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, object")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns text to render before an individual label. This will be called for each item in the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("label")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, object")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns text to render for an individual item in the tooltip. "),s("a",{attrs:{href:"#label-callback"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("labelColor")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, Chart")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns the colors to render for the tooltip item. "),s("a",{attrs:{href:"#label-color-callback"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("labelTextColor")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, Chart")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns the colors for the text of the label for the tooltip item.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("labelPointStyle")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, Chart")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns the point style to use instead of color boxes if usePointStyle is true (object with values "),s("code",[t._v("pointStyle")]),t._v(" and "),s("code",[t._v("rotation")]),t._v("). Default implementation uses the point style from the dataset points. "),s("a",{attrs:{href:"#label-point-style-callback"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("afterLabel")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, object")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns text to render after an individual label.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("afterBody")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render after the body section.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("beforeFooter")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render before the footer section.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footer")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render as the footer of the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("afterFooter")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Text to render after the footer section.")])])])]),t._v(" "),s("h3",{attrs:{id:"label-callback"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#label-callback"}},[t._v("#")]),t._v(" Label Callback")]),t._v(" "),s("p",[t._v("The "),s("code",[t._v("label")]),t._v(" callback can change the text that displays for a given data point. A common example to show a unit. The example below puts a "),s("code",[t._v("'$'")]),t._v(" before every row.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltip"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n callbacks"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("label")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" label "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" context"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("dataset"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("label "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("||")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("label"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("': '")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("context"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("parsed"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("!==")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Intl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("NumberFormat")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'en-US'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" style"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'currency'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" currency"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'USD'")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("format")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("context"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("parsed"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" label"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"label-color-callback"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#label-color-callback"}},[t._v("#")]),t._v(" Label Color Callback")]),t._v(" "),s("p",[t._v("For example, to return a red box with a blue dashed border that has a border radius for each item in the tooltip you could do:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltip"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n callbacks"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("labelColor")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n borderColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgb(0, 0, 255)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n backgroundColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgb(255, 0, 0)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderWidth"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderDash"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderRadius"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("labelTextColor")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#543453'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"label-point-style-callback"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#label-point-style-callback"}},[t._v("#")]),t._v(" Label Point Style Callback")]),t._v(" "),s("p",[t._v("For example, to draw triangles instead of the regular color box for each item in the tooltip you could do:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltip"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n usePointStyle"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n callbacks"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("labelPointStyle")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n pointStyle"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'triangle'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n rotation"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"tooltip-item-context"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tooltip-item-context"}},[t._v("#")]),t._v(" Tooltip Item Context")]),t._v(" "),s("p",[t._v("The tooltip items passed to the tooltip callbacks implement the following interface.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The chart the tooltip is being shown on")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Chart\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Label for the tooltip")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Parsed data values for the given `dataIndex` and `datasetIndex`")]),t._v("\n parsed"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" object"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Raw data values for the given `dataIndex` and `datasetIndex`")]),t._v("\n raw"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" object"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Formatted value for the tooltip")]),t._v("\n formattedValue"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The dataset the item comes from")]),t._v("\n dataset"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" object\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Index of the dataset the item comes from")]),t._v("\n datasetIndex"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Index of this data item in the dataset")]),t._v("\n dataIndex"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The chart element (point, arc, bar, etc.) for this tooltip item")]),t._v("\n element"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Element"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("h2",{attrs:{id:"external-custom-tooltips"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#external-custom-tooltips"}},[t._v("#")]),t._v(" External (Custom) Tooltips")]),t._v(" "),s("p",[t._v("External tooltips allow you to hook into the tooltip rendering process so that you can render the tooltip in your own custom way. Generally this is used to create an HTML tooltip instead of an on-canvas tooltip. The "),s("code",[t._v("external")]),t._v(" option takes a function which is passed a context parameter containing the "),s("code",[t._v("chart")]),t._v(" and "),s("code",[t._v("tooltip")]),t._v(". You can enable external tooltips in the global or chart configuration like so:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myPieChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'pie'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltip"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Disable the on-canvas tooltip")]),t._v("\n enabled"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("external")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Tooltip Element")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" tooltipEl "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chartjs-tooltip'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Create element on first render")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("!")]),t._v("tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltipEl "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("createElement")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'div'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("id "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chartjs-tooltip'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("innerHTML "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'
'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("body"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("appendChild")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Hide if no tooltip")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" tooltipModel "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" context"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("tooltip"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("opacity "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("===")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("opacity "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Set caret Position")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("classList"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("remove")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'above'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'below'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'no-transform'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("yAlign"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("classList"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("add")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("yAlign"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("else")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("classList"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("add")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'no-transform'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getBody")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("bodyItem")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" bodyItem"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("lines"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Set Text")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("body"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" titleLines "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("title "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("||")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" bodyLines "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("body"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("map")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("getBody"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" innerHtml "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n titleLines"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("forEach")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("title")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n innerHtml "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" title "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n innerHtml "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n bodyLines"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("forEach")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("body"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" i")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" colors "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("labelColors"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("i"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" style "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'background:'")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" colors"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("backgroundColor"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n style "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'; border-color:'")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" colors"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("borderColor"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n style "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'; border-width: 2px'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" span "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n innerHtml "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" span "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" body "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n innerHtml "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" tableRoot "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("querySelector")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'table'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tableRoot"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("innerHTML "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" innerHtml"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" position "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" context"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getBoundingClientRect")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" bodyFont "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("helpers"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toFont")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("bodyFont"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Display, position, and set styles for font")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("opacity "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("position "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'absolute'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("left "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" position"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("left "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" window"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("pageXOffset "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("caretX "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'px'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("top "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" position"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("top "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" window"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("pageYOffset "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("caretY "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'px'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("font "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" bodyFont"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("padding "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("padding "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'px '")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("padding "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'px'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("pointerEvents "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'none'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("See "),s("a",{attrs:{href:"https://www.chartjs.org/samples/",target:"_blank",rel:"noopener noreferrer"}},[t._v("samples"),s("OutboundLink")],1),t._v(" for examples on how to get started with external tooltips.")]),t._v(" "),s("h2",{attrs:{id:"tooltip-model"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tooltip-model"}},[t._v("#")]),t._v(" Tooltip Model")]),t._v(" "),s("p",[t._v("The tooltip model contains parameters that can be used to render the tooltip.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The items that we are rendering in the tooltip. See Tooltip Item Interface section")]),t._v("\n dataPoints"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" TooltipItem"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Positioning")]),t._v("\n xAlign"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n yAlign"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// X and Y properties are the top left of the tooltip")]),t._v("\n x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n width"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n height"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Where the tooltip points to")]),t._v("\n caretX"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n caretY"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Body")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The body lines that need to be rendered")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Each object contains 3 parameters")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// before: string[] // lines of text before the line with the color square")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// lines: string[], // lines of text to render as the main item with color square")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// after: string[], // lines of text to render after the main lines")]),t._v("\n body"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" object"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// lines of text that appear after the title but before the body")]),t._v("\n beforeBody"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// line of text that appear after the body and before the footer")]),t._v("\n afterBody"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Title")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// lines of text that form the title")]),t._v("\n title"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Footer")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// lines of text that form the footer")]),t._v("\n footer"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// colors to render for each item in body[]. This is the color of the squares in the tooltip")]),t._v("\n labelColors"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Color"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labelTextColors"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Color"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 0 opacity is a hidden tooltip")]),t._v("\n opacity"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// tooltip options")]),t._v("\n options "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Object\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/156.4f88415b.js b/docs/latest/assets/js/156.88c22218.js similarity index 99% rename from docs/latest/assets/js/156.4f88415b.js rename to docs/latest/assets/js/156.88c22218.js index c746771868..faa51e3763 100644 --- a/docs/latest/assets/js/156.4f88415b.js +++ b/docs/latest/assets/js/156.88c22218.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[156],{481:function(t,a,s){"use strict";s.r(a);var e=s(7),n=Object(e.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"api"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#api"}},[t._v("#")]),t._v(" API")]),t._v(" "),s("p",[t._v("For each chart, there are a set of global prototype methods on the shared chart type which you may find useful. These are available on all charts created with Chart.js, but for the examples, let's use a line chart we've made.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For example:")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myLineChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" config"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"destroy"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#destroy"}},[t._v("#")]),t._v(" .destroy()")]),t._v(" "),s("p",[t._v("Use this to destroy any chart instances that are created. This will clean up any references stored to the chart object within Chart.js, along with any associated event listeners attached by Chart.js.\nThis must be called before the canvas is reused for a new chart.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Destroys a specific chart instance")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("destroy")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"update-mode"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#update-mode"}},[t._v("#")]),t._v(" .update(mode?)")]),t._v(" "),s("p",[t._v("Triggers an update of the chart. This can be safely called after updating the data object. This will update all scales, legends, and then re-render the chart.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("myLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Would update the first dataset's value of 'March' to be 50")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Calling update now animates the position of March from 90 to 50.")]),t._v("\n")])])]),s("p",[t._v("A "),s("code",[t._v("mode")]),t._v(" string can be provided to indicate transition configuration should be used. Core calls this method using any of "),s("code",[t._v("'active'")]),t._v(", "),s("code",[t._v("'hide'")]),t._v(", "),s("code",[t._v("'reset'")]),t._v(", "),s("code",[t._v("'resize'")]),t._v(", "),s("code",[t._v("'show'")]),t._v(" or "),s("code",[t._v("undefined")]),t._v(". "),s("code",[t._v("'none'")]),t._v(" is also a supported mode for skipping animations for single update. Please see "),s("RouterLink",{attrs:{to:"/configuration/animations.html"}},[t._v("animations")]),t._v(" docs for more details.")],1),t._v(" "),s("p",[t._v("Example:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'active'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("See "),s("RouterLink",{attrs:{to:"/developers/updates.html"}},[t._v("Updating Charts")]),t._v(" for more details.")],1),t._v(" "),s("h2",{attrs:{id:"reset"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" .reset()")]),t._v(" "),s("p",[t._v("Reset the chart to its state before the initial animation. A new animation can then be triggered using "),s("code",[t._v("update")]),t._v(".")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("myLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("reset")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"render"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#render"}},[t._v("#")]),t._v(" .render()")]),t._v(" "),s("p",[t._v("Triggers a redraw of all chart elements. Note, this does not update elements for new data. Use "),s("code",[t._v(".update()")]),t._v(" in that case.")]),t._v(" "),s("h2",{attrs:{id:"stop"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#stop"}},[t._v("#")]),t._v(" .stop()")]),t._v(" "),s("p",[t._v("Use this to stop any current animation. This will pause the chart during any current animation frame. Call "),s("code",[t._v(".render()")]),t._v(" to re-animate.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Stops the charts animation loop at its current frame")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("stop")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// => returns 'this' for chainability")]),t._v("\n")])])]),s("h2",{attrs:{id:"resize-width-height"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#resize-width-height"}},[t._v("#")]),t._v(" .resize(width?, height?)")]),t._v(" "),s("p",[t._v("Use this to manually resize the canvas element. This is run each time the canvas container is resized, but you can call this method manually if you change the size of the canvas nodes container element.")]),t._v(" "),s("p",[t._v("You can call "),s("code",[t._v(".resize()")]),t._v(" with no parameters to have the chart take the size of its container element, or you can pass explicit dimensions (e.g., for "),s("RouterLink",{attrs:{to:"/configuration/responsive.html#printing-resizable-charts"}},[t._v("printing")]),t._v(").")],1),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Resizes & redraws to fill its container element")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("resize")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// => returns 'this' for chainability")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// With an explicit size:")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("resize")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("width"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" height"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"clear"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#clear"}},[t._v("#")]),t._v(" .clear()")]),t._v(" "),s("p",[t._v("Will clear the chart canvas. Used extensively internally between animation frames, but you might find it useful.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Will clear the canvas that myLineChart is drawn on")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("clear")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// => returns 'this' for chainability")]),t._v("\n")])])]),s("h2",{attrs:{id:"tobase64image-type-quality"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tobase64image-type-quality"}},[t._v("#")]),t._v(" .toBase64Image(type?, quality?)")]),t._v(" "),s("p",[t._v("This returns a base 64 encoded string of the chart in its current state.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("myLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toBase64Image")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// => returns png data url of the image on the canvas")]),t._v("\n\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toBase64Image")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'image/jpeg'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// => returns a jpeg data url in the highest quality of the canvas")]),t._v("\n")])])]),s("h2",{attrs:{id:"getelementsateventformode-e-mode-options-usefinalposition"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#getelementsateventformode-e-mode-options-usefinalposition"}},[t._v("#")]),t._v(" .getElementsAtEventForMode(e, mode, options, useFinalPosition)")]),t._v(" "),s("p",[t._v("Calling "),s("code",[t._v("getElementsAtEventForMode(e, mode, options, useFinalPosition)")]),t._v(" on your Chart instance passing an event and a mode will return the elements that are found. The "),s("code",[t._v("options")]),t._v(" and "),s("code",[t._v("useFinalPosition")]),t._v(" arguments are passed through to the handlers.")]),t._v(" "),s("p",[t._v("To get an item that was clicked on, "),s("code",[t._v("getElementsAtEventForMode")]),t._v(" can be used.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("clickHandler")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("evt")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" points "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementAtEventForMode")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("evt"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'nearest'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" intersect"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("points"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("length"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" firstPoint "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" points"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" label "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("labels"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("firstPoint"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("index"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" value "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("firstPoint"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasetIndex"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("firstPoint"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("index"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("h2",{attrs:{id:"getdatasetmeta-index"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#getdatasetmeta-index"}},[t._v("#")]),t._v(" .getDatasetMeta(index)")]),t._v(" "),s("p",[t._v("Looks for the dataset that matches the current index and returns that metadata. This returned data has all of the metadata that is used to construct the chart.")]),t._v(" "),s("p",[t._v("The "),s("code",[t._v("data")]),t._v(" property of the metadata will contain information about each point, bar, etc. depending on the chart type.")]),t._v(" "),s("p",[t._v("Extensive examples of usage are available in the "),s("a",{attrs:{href:"https://github.com/chartjs/Chart.js/tree/master/test",target:"_blank",rel:"noopener noreferrer"}},[t._v("Chart.js tests"),s("OutboundLink")],1),t._v(".")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" meta "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getDatasetMeta")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" x "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" meta"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"setdatasetvisibility-datasetindex-visibility"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#setdatasetvisibility-datasetindex-visibility"}},[t._v("#")]),t._v(" setDatasetVisibility(datasetIndex, visibility)")]),t._v(" "),s("p",[t._v("Sets the visibility for a given dataset. This can be used to build a chart legend in HTML. During click on one of the HTML items, you can call "),s("code",[t._v("setDatasetVisibility")]),t._v(" to change the appropriate dataset.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("setDatasetVisibility")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// hides dataset at index 1")]),t._v("\nchart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// chart now renders with dataset hidden")]),t._v("\n")])])]),s("h2",{attrs:{id:"toggledatavisibility-index"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#toggledatavisibility-index"}},[t._v("#")]),t._v(" toggleDataVisibility(index)")]),t._v(" "),s("p",[t._v("Toggles the visibility of an item in all datasets. A dataset needs to explicitly support this feature for it to have an effect. From internal chart types, doughnut / pie, polar area, and bar use this.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toggleDataVisibility")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// toggles the item in all datasets, at index 2")]),t._v("\nchart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// chart now renders with item hidden")]),t._v("\n")])])]),s("h2",{attrs:{id:"getdatavisibility-index"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#getdatavisibility-index"}},[t._v("#")]),t._v(" getDataVisibility(index)")]),t._v(" "),s("p",[t._v("Returns the stored visibility state of an data index for all datasets. Set by "),s("a",{attrs:{href:"#toggleDataVisibility"}},[t._v("toggleDataVisibility")]),t._v(". A dataset controller should use this method to determine if an item should not be visible.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" visible "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getDataVisibility")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"hide-datasetindex"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#hide-datasetindex"}},[t._v("#")]),t._v(" hide(datasetIndex)")]),t._v(" "),s("p",[t._v("Sets the visibility for the given dataset to false. Updates the chart and animates the dataset with "),s("code",[t._v("'hide'")]),t._v(" mode. This animation can be configured under the "),s("code",[t._v("hide")]),t._v(" key in animation options. Please see "),s("RouterLink",{attrs:{to:"/configuration/animations.html"}},[t._v("animations")]),t._v(" docs for more details.")],1),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("hide")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// hides dataset at index 1 and does 'hide' animation.")]),t._v("\n")])])]),s("h2",{attrs:{id:"show-datasetindex"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#show-datasetindex"}},[t._v("#")]),t._v(" show(datasetIndex)")]),t._v(" "),s("p",[t._v("Sets the visibility for the given dataset to true. Updates the chart and animates the dataset with "),s("code",[t._v("'show'")]),t._v(" mode. This animation can be configured under the "),s("code",[t._v("show")]),t._v(" key in animation options. Please see "),s("RouterLink",{attrs:{to:"/configuration/animations.html"}},[t._v("animations")]),t._v(" docs for more details.")],1),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("show")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// shows dataset at index 1 and does 'show' animation.")]),t._v("\n")])])]),s("h2",{attrs:{id:"setactiveelements-activeelements"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#setactiveelements-activeelements"}},[t._v("#")]),t._v(" setActiveElements(activeElements)")]),t._v(" "),s("p",[t._v('Sets the active (hovered) elements for the chart. See the "Programmatic Events" sample file to see this in action.')]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("setActiveElements")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("datasetIndex"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" index"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"static-getchart-key"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#static-getchart-key"}},[t._v("#")]),t._v(" Static: getChart(key)")]),t._v(" "),s("p",[t._v("Finds the chart instance from the given key. If the key is a "),s("code",[t._v("string")]),t._v(", it is interpreted as the ID of the Canvas node for the Chart. The key can also be a "),s("code",[t._v("CanvasRenderingContext2D")]),t._v(" or an "),s("code",[t._v("HTMLDOMElement")]),t._v(". This will return "),s("code",[t._v("undefined")]),t._v(" if no Chart is found. To be found, the chart must have previously been created.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getChart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"canvas-id"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[156],{480:function(t,a,s){"use strict";s.r(a);var e=s(7),n=Object(e.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"api"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#api"}},[t._v("#")]),t._v(" API")]),t._v(" "),s("p",[t._v("For each chart, there are a set of global prototype methods on the shared chart type which you may find useful. These are available on all charts created with Chart.js, but for the examples, let's use a line chart we've made.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For example:")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myLineChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" config"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"destroy"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#destroy"}},[t._v("#")]),t._v(" .destroy()")]),t._v(" "),s("p",[t._v("Use this to destroy any chart instances that are created. This will clean up any references stored to the chart object within Chart.js, along with any associated event listeners attached by Chart.js.\nThis must be called before the canvas is reused for a new chart.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Destroys a specific chart instance")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("destroy")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"update-mode"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#update-mode"}},[t._v("#")]),t._v(" .update(mode?)")]),t._v(" "),s("p",[t._v("Triggers an update of the chart. This can be safely called after updating the data object. This will update all scales, legends, and then re-render the chart.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("myLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Would update the first dataset's value of 'March' to be 50")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Calling update now animates the position of March from 90 to 50.")]),t._v("\n")])])]),s("p",[t._v("A "),s("code",[t._v("mode")]),t._v(" string can be provided to indicate transition configuration should be used. Core calls this method using any of "),s("code",[t._v("'active'")]),t._v(", "),s("code",[t._v("'hide'")]),t._v(", "),s("code",[t._v("'reset'")]),t._v(", "),s("code",[t._v("'resize'")]),t._v(", "),s("code",[t._v("'show'")]),t._v(" or "),s("code",[t._v("undefined")]),t._v(". "),s("code",[t._v("'none'")]),t._v(" is also a supported mode for skipping animations for single update. Please see "),s("RouterLink",{attrs:{to:"/configuration/animations.html"}},[t._v("animations")]),t._v(" docs for more details.")],1),t._v(" "),s("p",[t._v("Example:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'active'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("See "),s("RouterLink",{attrs:{to:"/developers/updates.html"}},[t._v("Updating Charts")]),t._v(" for more details.")],1),t._v(" "),s("h2",{attrs:{id:"reset"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" .reset()")]),t._v(" "),s("p",[t._v("Reset the chart to its state before the initial animation. A new animation can then be triggered using "),s("code",[t._v("update")]),t._v(".")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("myLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("reset")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"render"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#render"}},[t._v("#")]),t._v(" .render()")]),t._v(" "),s("p",[t._v("Triggers a redraw of all chart elements. Note, this does not update elements for new data. Use "),s("code",[t._v(".update()")]),t._v(" in that case.")]),t._v(" "),s("h2",{attrs:{id:"stop"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#stop"}},[t._v("#")]),t._v(" .stop()")]),t._v(" "),s("p",[t._v("Use this to stop any current animation. This will pause the chart during any current animation frame. Call "),s("code",[t._v(".render()")]),t._v(" to re-animate.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Stops the charts animation loop at its current frame")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("stop")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// => returns 'this' for chainability")]),t._v("\n")])])]),s("h2",{attrs:{id:"resize-width-height"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#resize-width-height"}},[t._v("#")]),t._v(" .resize(width?, height?)")]),t._v(" "),s("p",[t._v("Use this to manually resize the canvas element. This is run each time the canvas container is resized, but you can call this method manually if you change the size of the canvas nodes container element.")]),t._v(" "),s("p",[t._v("You can call "),s("code",[t._v(".resize()")]),t._v(" with no parameters to have the chart take the size of its container element, or you can pass explicit dimensions (e.g., for "),s("RouterLink",{attrs:{to:"/configuration/responsive.html#printing-resizable-charts"}},[t._v("printing")]),t._v(").")],1),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Resizes & redraws to fill its container element")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("resize")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// => returns 'this' for chainability")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// With an explicit size:")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("resize")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("width"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" height"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"clear"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#clear"}},[t._v("#")]),t._v(" .clear()")]),t._v(" "),s("p",[t._v("Will clear the chart canvas. Used extensively internally between animation frames, but you might find it useful.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Will clear the canvas that myLineChart is drawn on")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("clear")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// => returns 'this' for chainability")]),t._v("\n")])])]),s("h2",{attrs:{id:"tobase64image-type-quality"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tobase64image-type-quality"}},[t._v("#")]),t._v(" .toBase64Image(type?, quality?)")]),t._v(" "),s("p",[t._v("This returns a base 64 encoded string of the chart in its current state.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("myLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toBase64Image")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// => returns png data url of the image on the canvas")]),t._v("\n\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toBase64Image")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'image/jpeg'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// => returns a jpeg data url in the highest quality of the canvas")]),t._v("\n")])])]),s("h2",{attrs:{id:"getelementsateventformode-e-mode-options-usefinalposition"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#getelementsateventformode-e-mode-options-usefinalposition"}},[t._v("#")]),t._v(" .getElementsAtEventForMode(e, mode, options, useFinalPosition)")]),t._v(" "),s("p",[t._v("Calling "),s("code",[t._v("getElementsAtEventForMode(e, mode, options, useFinalPosition)")]),t._v(" on your Chart instance passing an event and a mode will return the elements that are found. The "),s("code",[t._v("options")]),t._v(" and "),s("code",[t._v("useFinalPosition")]),t._v(" arguments are passed through to the handlers.")]),t._v(" "),s("p",[t._v("To get an item that was clicked on, "),s("code",[t._v("getElementsAtEventForMode")]),t._v(" can be used.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("clickHandler")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("evt")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" points "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementAtEventForMode")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("evt"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'nearest'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" intersect"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("points"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("length"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" firstPoint "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" points"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" label "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("labels"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("firstPoint"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("index"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" value "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("firstPoint"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasetIndex"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("firstPoint"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("index"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("h2",{attrs:{id:"getdatasetmeta-index"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#getdatasetmeta-index"}},[t._v("#")]),t._v(" .getDatasetMeta(index)")]),t._v(" "),s("p",[t._v("Looks for the dataset that matches the current index and returns that metadata. This returned data has all of the metadata that is used to construct the chart.")]),t._v(" "),s("p",[t._v("The "),s("code",[t._v("data")]),t._v(" property of the metadata will contain information about each point, bar, etc. depending on the chart type.")]),t._v(" "),s("p",[t._v("Extensive examples of usage are available in the "),s("a",{attrs:{href:"https://github.com/chartjs/Chart.js/tree/master/test",target:"_blank",rel:"noopener noreferrer"}},[t._v("Chart.js tests"),s("OutboundLink")],1),t._v(".")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" meta "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getDatasetMeta")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" x "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" meta"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"setdatasetvisibility-datasetindex-visibility"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#setdatasetvisibility-datasetindex-visibility"}},[t._v("#")]),t._v(" setDatasetVisibility(datasetIndex, visibility)")]),t._v(" "),s("p",[t._v("Sets the visibility for a given dataset. This can be used to build a chart legend in HTML. During click on one of the HTML items, you can call "),s("code",[t._v("setDatasetVisibility")]),t._v(" to change the appropriate dataset.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("setDatasetVisibility")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// hides dataset at index 1")]),t._v("\nchart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// chart now renders with dataset hidden")]),t._v("\n")])])]),s("h2",{attrs:{id:"toggledatavisibility-index"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#toggledatavisibility-index"}},[t._v("#")]),t._v(" toggleDataVisibility(index)")]),t._v(" "),s("p",[t._v("Toggles the visibility of an item in all datasets. A dataset needs to explicitly support this feature for it to have an effect. From internal chart types, doughnut / pie, polar area, and bar use this.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toggleDataVisibility")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// toggles the item in all datasets, at index 2")]),t._v("\nchart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// chart now renders with item hidden")]),t._v("\n")])])]),s("h2",{attrs:{id:"getdatavisibility-index"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#getdatavisibility-index"}},[t._v("#")]),t._v(" getDataVisibility(index)")]),t._v(" "),s("p",[t._v("Returns the stored visibility state of an data index for all datasets. Set by "),s("a",{attrs:{href:"#toggleDataVisibility"}},[t._v("toggleDataVisibility")]),t._v(". A dataset controller should use this method to determine if an item should not be visible.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" visible "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getDataVisibility")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"hide-datasetindex"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#hide-datasetindex"}},[t._v("#")]),t._v(" hide(datasetIndex)")]),t._v(" "),s("p",[t._v("Sets the visibility for the given dataset to false. Updates the chart and animates the dataset with "),s("code",[t._v("'hide'")]),t._v(" mode. This animation can be configured under the "),s("code",[t._v("hide")]),t._v(" key in animation options. Please see "),s("RouterLink",{attrs:{to:"/configuration/animations.html"}},[t._v("animations")]),t._v(" docs for more details.")],1),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("hide")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// hides dataset at index 1 and does 'hide' animation.")]),t._v("\n")])])]),s("h2",{attrs:{id:"show-datasetindex"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#show-datasetindex"}},[t._v("#")]),t._v(" show(datasetIndex)")]),t._v(" "),s("p",[t._v("Sets the visibility for the given dataset to true. Updates the chart and animates the dataset with "),s("code",[t._v("'show'")]),t._v(" mode. This animation can be configured under the "),s("code",[t._v("show")]),t._v(" key in animation options. Please see "),s("RouterLink",{attrs:{to:"/configuration/animations.html"}},[t._v("animations")]),t._v(" docs for more details.")],1),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("show")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// shows dataset at index 1 and does 'show' animation.")]),t._v("\n")])])]),s("h2",{attrs:{id:"setactiveelements-activeelements"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#setactiveelements-activeelements"}},[t._v("#")]),t._v(" setActiveElements(activeElements)")]),t._v(" "),s("p",[t._v('Sets the active (hovered) elements for the chart. See the "Programmatic Events" sample file to see this in action.')]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("setActiveElements")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("datasetIndex"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" index"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"static-getchart-key"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#static-getchart-key"}},[t._v("#")]),t._v(" Static: getChart(key)")]),t._v(" "),s("p",[t._v("Finds the chart instance from the given key. If the key is a "),s("code",[t._v("string")]),t._v(", it is interpreted as the ID of the Canvas node for the Chart. The key can also be a "),s("code",[t._v("CanvasRenderingContext2D")]),t._v(" or an "),s("code",[t._v("HTMLDOMElement")]),t._v(". This will return "),s("code",[t._v("undefined")]),t._v(" if no Chart is found. To be found, the chart must have previously been created.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getChart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"canvas-id"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/157.a88f44e3.js b/docs/latest/assets/js/157.6b66074e.js similarity index 100% rename from docs/latest/assets/js/157.a88f44e3.js rename to docs/latest/assets/js/157.6b66074e.js diff --git a/docs/latest/assets/js/158.b6bb0c6c.js b/docs/latest/assets/js/158.c56031b6.js similarity index 99% rename from docs/latest/assets/js/158.b6bb0c6c.js rename to docs/latest/assets/js/158.c56031b6.js index bd9e222aae..1e40833aa1 100644 --- a/docs/latest/assets/js/158.b6bb0c6c.js +++ b/docs/latest/assets/js/158.c56031b6.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[158],{483:function(t,s,a){"use strict";a.r(s);var n=a(7),e=Object(n.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"new-charts"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#new-charts"}},[t._v("#")]),t._v(" New Charts")]),t._v(" "),a("p",[t._v("Chart.js 2.0 introduced the concept of controllers for each dataset. Like scales, new controllers can be written as needed.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("class")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("MyType")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("extends")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("DatasetController")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\nChart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("register")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("MyType"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Now we can create a new instance of our chart, using the Chart.js API")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// this is the string the constructor was registered at, ie Chart.controllers.MyType")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'MyType'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" options\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"dataset-controller-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-controller-interface"}},[t._v("#")]),t._v(" Dataset Controller Interface")]),t._v(" "),a("p",[t._v("Dataset controllers must implement the following interface.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Defaults for charts of this type")]),t._v("\n defaults"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// If set to `false` or `null`, no dataset level element is created.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// If set to a string, this is the type of element to create for the dataset.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For example, a line create needs to create a line element so this is the string 'line'")]),t._v("\n datasetElementType"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// If set to `false` or `null`, no elements are created for each data value.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// If set to a string, this is the type of element to create for each data value.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For example, a line create needs to create a point element so this is the string 'point'")]),t._v("\n dataElementType"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// ID of the controller")]),t._v("\n id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Update the elements in response to new data")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// @param mode : update mode, core calls this method using any of `'active'`, `'hide'`, `'reset'`, `'resize'`, `'show'` or `undefined`")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("update")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("mode")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("p",[t._v("The following methods may optionally be overridden by derived dataset controllers.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Draw the representation of the dataset. The base implementation works in most cases, and an example of a derived version")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// can be found in the line controller")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("draw")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Initializes the controller")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("initialize")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Ensures that the dataset represented by this controller is linked to a scale. Overridden to helpers.noop in the polar area and doughnut controllers as these")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// chart types using a single scale")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("linkScales")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Parse the data into the controller meta data. The default implementation will work for cartesian parsing, but an example of an overridden")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// version can be found in the doughnut controller")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("parse")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("start"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" count")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("h2",{attrs:{id:"extending-existing-chart-types"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#extending-existing-chart-types"}},[t._v("#")]),t._v(" Extending Existing Chart Types")]),t._v(" "),a("p",[t._v("Extending or replacing an existing controller type is easy. Simply replace the constructor for one of the built in types with your own.")]),t._v(" "),a("p",[t._v("The built in controller types are:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("BarController")])]),t._v(" "),a("li",[a("code",[t._v("BubbleController")])]),t._v(" "),a("li",[a("code",[t._v("DoughnutController")])]),t._v(" "),a("li",[a("code",[t._v("LineController")])]),t._v(" "),a("li",[a("code",[t._v("PieController")])]),t._v(" "),a("li",[a("code",[t._v("PolarAreaController")])]),t._v(" "),a("li",[a("code",[t._v("RadarController")])]),t._v(" "),a("li",[a("code",[t._v("ScatterController")])])]),t._v(" "),a("p",[t._v("These controllers are also available in the UMD package, directly under "),a("code",[t._v("Chart")]),t._v(". Eg: "),a("code",[t._v("Chart.BarController")]),t._v(".")]),t._v(" "),a("p",[t._v("For example, to derive a new chart type that extends from a bubble chart, you would do the following.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("BubbleController"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("class")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Custom")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("extends")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("BubbleController")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Call bubble controller method to draw all the points")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("super")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("arguments"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Now we can do some custom drawing for this dataset. Here we'll draw a red box around the first point in each dataset")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" meta "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getMeta")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" pt0 "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" meta"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" pt0"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getProps")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'x'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'y'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" pt0"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" ctx "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("save")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("strokeStyle "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'red'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("lineWidth "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("strokeRect")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("x "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("*")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("*")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("restore")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nCustom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("id "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'derivedBubble'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nCustom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" BubbleController"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Stores the controller so that the chart initialization routine can look it up")]),t._v("\nChart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("register")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("Custom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Now we can create and use our new chart type")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'derivedBubble'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" options\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"typescript-typings"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#typescript-typings"}},[t._v("#")]),t._v(" TypeScript Typings")]),t._v(" "),a("p",[t._v("If you want your new chart type to be statically typed, you must provide a "),a("code",[t._v(".d.ts")]),t._v(' TypeScript declaration file. Chart.js provides a way to augment built-in types with user-defined ones, by using the concept of "declaration merging".')]),t._v(" "),a("p",[t._v("When adding a new chart type, "),a("code",[t._v("ChartTypeRegistry")]),t._v(" must contains the declarations for the new type, either by extending an existing entry in "),a("code",[t._v("ChartTypeRegistry")]),t._v(" or by creating a new one.")]),t._v(" "),a("p",[t._v("For example, to provide typings for a new chart type that extends from a bubble chart, you would add a "),a("code",[t._v(".d.ts")]),t._v(" containing:")]),t._v(" "),a("div",{staticClass:"language-ts extra-class"},[a("pre",{pre:!0,attrs:{class:"language-ts"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" ChartTypeRegistry "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("declare")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("module")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("interface")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("ChartTypeRegistry")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n derivedBubble"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" ChartTypeRegistry"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bubble'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])])])}),[],!1,null,null,null);s.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[158],{570:function(t,s,a){"use strict";a.r(s);var n=a(7),e=Object(n.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"new-charts"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#new-charts"}},[t._v("#")]),t._v(" New Charts")]),t._v(" "),a("p",[t._v("Chart.js 2.0 introduced the concept of controllers for each dataset. Like scales, new controllers can be written as needed.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("class")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("MyType")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("extends")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("DatasetController")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\nChart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("register")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("MyType"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Now we can create a new instance of our chart, using the Chart.js API")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// this is the string the constructor was registered at, ie Chart.controllers.MyType")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'MyType'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" options\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"dataset-controller-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-controller-interface"}},[t._v("#")]),t._v(" Dataset Controller Interface")]),t._v(" "),a("p",[t._v("Dataset controllers must implement the following interface.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Defaults for charts of this type")]),t._v("\n defaults"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// If set to `false` or `null`, no dataset level element is created.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// If set to a string, this is the type of element to create for the dataset.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For example, a line create needs to create a line element so this is the string 'line'")]),t._v("\n datasetElementType"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// If set to `false` or `null`, no elements are created for each data value.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// If set to a string, this is the type of element to create for each data value.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For example, a line create needs to create a point element so this is the string 'point'")]),t._v("\n dataElementType"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// ID of the controller")]),t._v("\n id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Update the elements in response to new data")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// @param mode : update mode, core calls this method using any of `'active'`, `'hide'`, `'reset'`, `'resize'`, `'show'` or `undefined`")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("update")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("mode")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("p",[t._v("The following methods may optionally be overridden by derived dataset controllers.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Draw the representation of the dataset. The base implementation works in most cases, and an example of a derived version")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// can be found in the line controller")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("draw")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Initializes the controller")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("initialize")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Ensures that the dataset represented by this controller is linked to a scale. Overridden to helpers.noop in the polar area and doughnut controllers as these")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// chart types using a single scale")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("linkScales")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Parse the data into the controller meta data. The default implementation will work for cartesian parsing, but an example of an overridden")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// version can be found in the doughnut controller")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("parse")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("start"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" count")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("h2",{attrs:{id:"extending-existing-chart-types"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#extending-existing-chart-types"}},[t._v("#")]),t._v(" Extending Existing Chart Types")]),t._v(" "),a("p",[t._v("Extending or replacing an existing controller type is easy. Simply replace the constructor for one of the built in types with your own.")]),t._v(" "),a("p",[t._v("The built in controller types are:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("BarController")])]),t._v(" "),a("li",[a("code",[t._v("BubbleController")])]),t._v(" "),a("li",[a("code",[t._v("DoughnutController")])]),t._v(" "),a("li",[a("code",[t._v("LineController")])]),t._v(" "),a("li",[a("code",[t._v("PieController")])]),t._v(" "),a("li",[a("code",[t._v("PolarAreaController")])]),t._v(" "),a("li",[a("code",[t._v("RadarController")])]),t._v(" "),a("li",[a("code",[t._v("ScatterController")])])]),t._v(" "),a("p",[t._v("These controllers are also available in the UMD package, directly under "),a("code",[t._v("Chart")]),t._v(". Eg: "),a("code",[t._v("Chart.BarController")]),t._v(".")]),t._v(" "),a("p",[t._v("For example, to derive a new chart type that extends from a bubble chart, you would do the following.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("BubbleController"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("class")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Custom")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("extends")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("BubbleController")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Call bubble controller method to draw all the points")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("super")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("arguments"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Now we can do some custom drawing for this dataset. Here we'll draw a red box around the first point in each dataset")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" meta "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getMeta")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" pt0 "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" meta"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" pt0"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getProps")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'x'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'y'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" pt0"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" ctx "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("save")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("strokeStyle "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'red'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("lineWidth "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("strokeRect")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("x "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("*")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("*")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("restore")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nCustom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("id "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'derivedBubble'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nCustom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" BubbleController"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Stores the controller so that the chart initialization routine can look it up")]),t._v("\nChart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("register")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("Custom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Now we can create and use our new chart type")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'derivedBubble'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" options\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"typescript-typings"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#typescript-typings"}},[t._v("#")]),t._v(" TypeScript Typings")]),t._v(" "),a("p",[t._v("If you want your new chart type to be statically typed, you must provide a "),a("code",[t._v(".d.ts")]),t._v(' TypeScript declaration file. Chart.js provides a way to augment built-in types with user-defined ones, by using the concept of "declaration merging".')]),t._v(" "),a("p",[t._v("When adding a new chart type, "),a("code",[t._v("ChartTypeRegistry")]),t._v(" must contains the declarations for the new type, either by extending an existing entry in "),a("code",[t._v("ChartTypeRegistry")]),t._v(" or by creating a new one.")]),t._v(" "),a("p",[t._v("For example, to provide typings for a new chart type that extends from a bubble chart, you would add a "),a("code",[t._v(".d.ts")]),t._v(" containing:")]),t._v(" "),a("div",{staticClass:"language-ts extra-class"},[a("pre",{pre:!0,attrs:{class:"language-ts"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" ChartTypeRegistry "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("declare")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("module")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("interface")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("ChartTypeRegistry")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n derivedBubble"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" ChartTypeRegistry"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bubble'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])])])}),[],!1,null,null,null);s.default=e.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/159.b953925d.js b/docs/latest/assets/js/159.f33bb4c1.js similarity index 99% rename from docs/latest/assets/js/159.b953925d.js rename to docs/latest/assets/js/159.f33bb4c1.js index 707fd61f69..03fc2039a7 100644 --- a/docs/latest/assets/js/159.b953925d.js +++ b/docs/latest/assets/js/159.f33bb4c1.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[159],{484:function(e,t,a){"use strict";a.r(t);var s=a(7),n=Object(s.a)({},(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[a("h1",{attrs:{id:"contributing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#contributing"}},[e._v("#")]),e._v(" Contributing")]),e._v(" "),a("p",[e._v("New contributions to the library are welcome, but we ask that you please follow these guidelines:")]),e._v(" "),a("ul",[a("li",[e._v("Before opening a PR for major additions or changes, please discuss the expected API and/or implementation by "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/issues",target:"_blank",rel:"noopener noreferrer"}},[e._v("filing an issue"),a("OutboundLink")],1),e._v(" or asking about it in the "),a("a",{attrs:{href:"https://chartjs-slack.herokuapp.com/",target:"_blank",rel:"noopener noreferrer"}},[e._v("Chart.js Slack"),a("OutboundLink")],1),e._v(" #dev channel. This will save you development time by getting feedback upfront and make review faster by giving the maintainers more context and details.")]),e._v(" "),a("li",[e._v("Consider whether your changes are useful for all users, or if creating a Chart.js "),a("RouterLink",{attrs:{to:"/developers/plugins.html"}},[e._v("plugin")]),e._v(" would be more appropriate.")],1),e._v(" "),a("li",[e._v("Check that your code will pass tests and "),a("code",[e._v("eslint")]),e._v(" code standards. "),a("code",[e._v("npm test")]),e._v(" will run both the linter and tests for you.")]),e._v(" "),a("li",[e._v("Add unit tests and document new functionality (in the "),a("code",[e._v("test/")]),e._v(" and "),a("code",[e._v("docs/")]),e._v(" directories respectively).")]),e._v(" "),a("li",[e._v("Avoid breaking changes unless there is an upcoming major release, which are infrequent. We encourage people to write plugins for most new advanced features, and care a lot about backwards compatibility.")]),e._v(" "),a("li",[e._v("We strongly prefer new methods to be added as private whenever possible. A method can be made private either by making a top-level "),a("code",[e._v("function")]),e._v(" outside of a class or by prefixing it with "),a("code",[e._v("_")]),e._v(" and adding "),a("code",[e._v("@private")]),e._v(" JSDoc if inside a class. Public APIs take considerable time to review and become locked once implemented as we have limited ability to change them without breaking backwards compatibility. Private APIs allow the flexibility to address unforeseen cases.")])]),e._v(" "),a("h2",{attrs:{id:"joining-the-project"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#joining-the-project"}},[e._v("#")]),e._v(" Joining the project")]),e._v(" "),a("p",[e._v("Active committers and contributors are invited to introduce yourself and request commit access to this project. We have a very active Slack community that you can join "),a("a",{attrs:{href:"https://chartjs-slack.herokuapp.com/",target:"_blank",rel:"noopener noreferrer"}},[e._v("here"),a("OutboundLink")],1),e._v(". If you think you can help, we'd love to have you!")]),e._v(" "),a("h2",{attrs:{id:"building-and-testing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#building-and-testing"}},[e._v("#")]),e._v(" Building and Testing")]),e._v(" "),a("p",[e._v("Firstly, we need to ensure development dependencies are installed. With node and npm installed, after cloning the Chart.js repo to a local directory, and navigating to that directory in the command line, we can run the following:")]),e._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("install")]),e._v("\n")])])]),a("p",[e._v("This will install the local development dependencies for Chart.js.")]),e._v(" "),a("p",[e._v("The following commands are now available from the repository root:")]),e._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" run build // build dist files "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("in")]),e._v(" ./dist\n"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" run autobuild // build and "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("watch")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("for")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[e._v("source")]),e._v(" changes\n"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" run dev // run tests and "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("watch")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("for")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[e._v("source")]),e._v(" and "),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[e._v("test")]),e._v(" changes\n"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" run lint // perform code linting "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),e._v("ESLint, tsc"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),e._v("\n"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[e._v("test")]),e._v(" // perform code linting and run unit tests with coverage\n")])])]),a("p",[a("code",[e._v("npm run dev")]),e._v(" and "),a("code",[e._v("npm test")]),e._v(" can be appended with a string that is used to match the spec filenames. For example: "),a("code",[e._v("npm run dev plugins")]),e._v(" will start karma in watch mode for "),a("code",[e._v("test/specs/**/*plugin*.js")]),e._v(".")]),e._v(" "),a("h3",{attrs:{id:"documentation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#documentation"}},[e._v("#")]),e._v(" Documentation")]),e._v(" "),a("p",[e._v("We use "),a("a",{attrs:{href:"https://vuepress.vuejs.org/",target:"_blank",rel:"noopener noreferrer"}},[e._v("Vuepress"),a("OutboundLink")],1),e._v(" to manage the docs which are contained as Markdown files in the docs directory. You can run the doc server locally using these commands:")]),e._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" run docs:dev\n")])])]),a("h3",{attrs:{id:"image-based-tests"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#image-based-tests"}},[e._v("#")]),e._v(" Image-Based Tests")]),e._v(" "),a("p",[e._v("Some display-related functionality is difficult to test via typical Jasmine units. For this reason, we introduced image-based tests ("),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/pull/3988",target:"_blank",rel:"noopener noreferrer"}},[e._v("#3988"),a("OutboundLink")],1),e._v(" and "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/pull/5777",target:"_blank",rel:"noopener noreferrer"}},[e._v("#5777"),a("OutboundLink")],1),e._v(") to assert that a chart is drawn pixel-for-pixel matching an expected image.")]),e._v(" "),a("p",[e._v("Generated charts in image-based tests should be "),a("strong",[e._v("as minimal as possible")]),e._v(" and focus only on the tested feature to prevent failure if another feature breaks (e.g. disable the title and legend when testing scales).")]),e._v(" "),a("p",[e._v("You can create a new image-based test by following the steps below:")]),e._v(" "),a("ul",[a("li",[e._v("Create a JS file ("),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/f7b671006a86201808402c3b6fe2054fe834fd4a/test/fixtures/controller.bubble/radius-scriptable.js",target:"_blank",rel:"noopener noreferrer"}},[e._v("example"),a("OutboundLink")],1),e._v(") or JSON file ("),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/4b421a50bfa17f73ac7aa8db7d077e674dbc148d/test/fixtures/plugin.filler/fill-line-dataset.json",target:"_blank",rel:"noopener noreferrer"}},[e._v("example"),a("OutboundLink")],1),e._v(") that defines chart config and generation options.")]),e._v(" "),a("li",[e._v("Add this file in "),a("code",[e._v("test/fixtures/{spec.name}/{feature-name}.json")]),e._v(".")]),e._v(" "),a("li",[e._v("Add a "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/4b421a50bfa17f73ac7aa8db7d077e674dbc148d/test/specs/plugin.filler.tests.js#L10",target:"_blank",rel:"noopener noreferrer"}},[e._v("describe line"),a("OutboundLink")],1),e._v(" to the beginning of "),a("code",[e._v("test/specs/{spec.name}.tests.js")]),e._v(" if it doesn't exist yet.")]),e._v(" "),a("li",[e._v("Run "),a("code",[e._v("npm run dev")]),e._v(".")]),e._v(" "),a("li",[e._v("Click the "),a("em",[e._v('"Debug"')]),e._v(" button (top/right): a test should fail with the associated canvas visible.")]),e._v(" "),a("li",[e._v("Right click on the chart and "),a("em",[e._v('"Save image as..."')]),e._v(" "),a("code",[e._v("test/fixtures/{spec.name}/{feature-name}.png")]),e._v(" making sure not to activate the tooltip or any hover functionality")]),e._v(" "),a("li",[e._v("Refresh the browser page ("),a("code",[e._v("CTRL+R")]),e._v("): test should now pass")]),e._v(" "),a("li",[e._v("Verify test relevancy by changing the feature values "),a("em",[e._v("slightly")]),e._v(" in the JSON file.")])]),e._v(" "),a("p",[e._v("Tests should pass in both browsers. In general, we've hidden all text in image tests since it's quite difficult to get them passing between different browsers. As a result, it is recommended to hide all scales in image-based tests. It is also recommended to disable animations. If tests still do not pass, adjust "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/1ca0ffb5d5b6c2072176fd36fa85a58c483aa434/test/jasmine.matchers.js",target:"_blank",rel:"noopener noreferrer"}},[a("code",[e._v("tolerance")]),e._v(" and/or "),a("code",[e._v("threshold")]),a("OutboundLink")],1),e._v(" at the beginning of the JSON file keeping them "),a("strong",[e._v("as low as possible")]),e._v(".")]),e._v(" "),a("p",[e._v("When a test fails, the expected and actual images are shown. If you'd like to see the images even when the tests pass, set "),a("code",[e._v('"debug": true')]),e._v(" in the JSON file.")]),e._v(" "),a("h2",{attrs:{id:"bugs-and-issues"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bugs-and-issues"}},[e._v("#")]),e._v(" Bugs and Issues")]),e._v(" "),a("p",[e._v("Please report these on the GitHub page - at "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js",target:"_blank"}},[e._v("github.com/chartjs/Chart.js")]),e._v(". Please do not use issues for support requests. For help using Chart.js, please take a look at the "),a("a",{attrs:{href:"https://stackoverflow.com/questions/tagged/chartjs",target:"_blank",rel:"noopener noreferrer"}},[a("code",[e._v("chartjs")]),a("OutboundLink")],1),e._v(" tag on Stack Overflow.")]),e._v(" "),a("p",[e._v("Well structured, detailed bug reports are hugely valuable for the project.")]),e._v(" "),a("p",[e._v("Guidelines for reporting bugs:")]),e._v(" "),a("ul",[a("li",[e._v("Check the issue search to see if it has already been reported")]),e._v(" "),a("li",[e._v("Isolate the problem to a simple test case")]),e._v(" "),a("li",[e._v("Please include a demonstration of the bug on a website such as "),a("a",{attrs:{href:"https://jsbin.com/",target:"_blank",rel:"noopener noreferrer"}},[e._v("JS Bin"),a("OutboundLink")],1),e._v(", "),a("a",{attrs:{href:"https://jsfiddle.net/",target:"_blank",rel:"noopener noreferrer"}},[e._v("JS Fiddle"),a("OutboundLink")],1),e._v(", or "),a("a",{attrs:{href:"https://codepen.io/pen/",target:"_blank",rel:"noopener noreferrer"}},[e._v("Codepen"),a("OutboundLink")],1),e._v(". ("),a("a",{attrs:{href:"https://codepen.io/pen?template=JXVYzq",target:"_blank",rel:"noopener noreferrer"}},[e._v("Template"),a("OutboundLink")],1),e._v("). If filing a bug against "),a("code",[e._v("master")]),e._v(", you may reference the latest code via "),a("a",{attrs:{href:"https://www.chartjs.org/dist/master/chart.min.js",target:"_blank",rel:"noopener noreferrer"}},[e._v("https://www.chartjs.org/dist/master/chart.min.js"),a("OutboundLink")],1),e._v(" (changing the filename to point at the file you need as appropriate). Do not rely on these files for production purposes as they may be removed at any time.")])]),e._v(" "),a("p",[e._v("Please provide any additional details associated with the bug, if it's browser or screen density specific, or only happens with a certain configuration or data.")])])}),[],!1,null,null,null);t.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[159],{483:function(e,t,a){"use strict";a.r(t);var s=a(7),n=Object(s.a)({},(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[a("h1",{attrs:{id:"contributing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#contributing"}},[e._v("#")]),e._v(" Contributing")]),e._v(" "),a("p",[e._v("New contributions to the library are welcome, but we ask that you please follow these guidelines:")]),e._v(" "),a("ul",[a("li",[e._v("Before opening a PR for major additions or changes, please discuss the expected API and/or implementation by "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/issues",target:"_blank",rel:"noopener noreferrer"}},[e._v("filing an issue"),a("OutboundLink")],1),e._v(" or asking about it in the "),a("a",{attrs:{href:"https://chartjs-slack.herokuapp.com/",target:"_blank",rel:"noopener noreferrer"}},[e._v("Chart.js Slack"),a("OutboundLink")],1),e._v(" #dev channel. This will save you development time by getting feedback upfront and make review faster by giving the maintainers more context and details.")]),e._v(" "),a("li",[e._v("Consider whether your changes are useful for all users, or if creating a Chart.js "),a("RouterLink",{attrs:{to:"/developers/plugins.html"}},[e._v("plugin")]),e._v(" would be more appropriate.")],1),e._v(" "),a("li",[e._v("Check that your code will pass tests and "),a("code",[e._v("eslint")]),e._v(" code standards. "),a("code",[e._v("npm test")]),e._v(" will run both the linter and tests for you.")]),e._v(" "),a("li",[e._v("Add unit tests and document new functionality (in the "),a("code",[e._v("test/")]),e._v(" and "),a("code",[e._v("docs/")]),e._v(" directories respectively).")]),e._v(" "),a("li",[e._v("Avoid breaking changes unless there is an upcoming major release, which are infrequent. We encourage people to write plugins for most new advanced features, and care a lot about backwards compatibility.")]),e._v(" "),a("li",[e._v("We strongly prefer new methods to be added as private whenever possible. A method can be made private either by making a top-level "),a("code",[e._v("function")]),e._v(" outside of a class or by prefixing it with "),a("code",[e._v("_")]),e._v(" and adding "),a("code",[e._v("@private")]),e._v(" JSDoc if inside a class. Public APIs take considerable time to review and become locked once implemented as we have limited ability to change them without breaking backwards compatibility. Private APIs allow the flexibility to address unforeseen cases.")])]),e._v(" "),a("h2",{attrs:{id:"joining-the-project"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#joining-the-project"}},[e._v("#")]),e._v(" Joining the project")]),e._v(" "),a("p",[e._v("Active committers and contributors are invited to introduce yourself and request commit access to this project. We have a very active Slack community that you can join "),a("a",{attrs:{href:"https://chartjs-slack.herokuapp.com/",target:"_blank",rel:"noopener noreferrer"}},[e._v("here"),a("OutboundLink")],1),e._v(". If you think you can help, we'd love to have you!")]),e._v(" "),a("h2",{attrs:{id:"building-and-testing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#building-and-testing"}},[e._v("#")]),e._v(" Building and Testing")]),e._v(" "),a("p",[e._v("Firstly, we need to ensure development dependencies are installed. With node and npm installed, after cloning the Chart.js repo to a local directory, and navigating to that directory in the command line, we can run the following:")]),e._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("install")]),e._v("\n")])])]),a("p",[e._v("This will install the local development dependencies for Chart.js.")]),e._v(" "),a("p",[e._v("The following commands are now available from the repository root:")]),e._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" run build // build dist files "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("in")]),e._v(" ./dist\n"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" run autobuild // build and "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("watch")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("for")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[e._v("source")]),e._v(" changes\n"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" run dev // run tests and "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("watch")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("for")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[e._v("source")]),e._v(" and "),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[e._v("test")]),e._v(" changes\n"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" run lint // perform code linting "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),e._v("ESLint, tsc"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),e._v("\n"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[e._v("test")]),e._v(" // perform code linting and run unit tests with coverage\n")])])]),a("p",[a("code",[e._v("npm run dev")]),e._v(" and "),a("code",[e._v("npm test")]),e._v(" can be appended with a string that is used to match the spec filenames. For example: "),a("code",[e._v("npm run dev plugins")]),e._v(" will start karma in watch mode for "),a("code",[e._v("test/specs/**/*plugin*.js")]),e._v(".")]),e._v(" "),a("h3",{attrs:{id:"documentation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#documentation"}},[e._v("#")]),e._v(" Documentation")]),e._v(" "),a("p",[e._v("We use "),a("a",{attrs:{href:"https://vuepress.vuejs.org/",target:"_blank",rel:"noopener noreferrer"}},[e._v("Vuepress"),a("OutboundLink")],1),e._v(" to manage the docs which are contained as Markdown files in the docs directory. You can run the doc server locally using these commands:")]),e._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" run docs:dev\n")])])]),a("h3",{attrs:{id:"image-based-tests"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#image-based-tests"}},[e._v("#")]),e._v(" Image-Based Tests")]),e._v(" "),a("p",[e._v("Some display-related functionality is difficult to test via typical Jasmine units. For this reason, we introduced image-based tests ("),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/pull/3988",target:"_blank",rel:"noopener noreferrer"}},[e._v("#3988"),a("OutboundLink")],1),e._v(" and "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/pull/5777",target:"_blank",rel:"noopener noreferrer"}},[e._v("#5777"),a("OutboundLink")],1),e._v(") to assert that a chart is drawn pixel-for-pixel matching an expected image.")]),e._v(" "),a("p",[e._v("Generated charts in image-based tests should be "),a("strong",[e._v("as minimal as possible")]),e._v(" and focus only on the tested feature to prevent failure if another feature breaks (e.g. disable the title and legend when testing scales).")]),e._v(" "),a("p",[e._v("You can create a new image-based test by following the steps below:")]),e._v(" "),a("ul",[a("li",[e._v("Create a JS file ("),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/f7b671006a86201808402c3b6fe2054fe834fd4a/test/fixtures/controller.bubble/radius-scriptable.js",target:"_blank",rel:"noopener noreferrer"}},[e._v("example"),a("OutboundLink")],1),e._v(") or JSON file ("),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/4b421a50bfa17f73ac7aa8db7d077e674dbc148d/test/fixtures/plugin.filler/fill-line-dataset.json",target:"_blank",rel:"noopener noreferrer"}},[e._v("example"),a("OutboundLink")],1),e._v(") that defines chart config and generation options.")]),e._v(" "),a("li",[e._v("Add this file in "),a("code",[e._v("test/fixtures/{spec.name}/{feature-name}.json")]),e._v(".")]),e._v(" "),a("li",[e._v("Add a "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/4b421a50bfa17f73ac7aa8db7d077e674dbc148d/test/specs/plugin.filler.tests.js#L10",target:"_blank",rel:"noopener noreferrer"}},[e._v("describe line"),a("OutboundLink")],1),e._v(" to the beginning of "),a("code",[e._v("test/specs/{spec.name}.tests.js")]),e._v(" if it doesn't exist yet.")]),e._v(" "),a("li",[e._v("Run "),a("code",[e._v("npm run dev")]),e._v(".")]),e._v(" "),a("li",[e._v("Click the "),a("em",[e._v('"Debug"')]),e._v(" button (top/right): a test should fail with the associated canvas visible.")]),e._v(" "),a("li",[e._v("Right click on the chart and "),a("em",[e._v('"Save image as..."')]),e._v(" "),a("code",[e._v("test/fixtures/{spec.name}/{feature-name}.png")]),e._v(" making sure not to activate the tooltip or any hover functionality")]),e._v(" "),a("li",[e._v("Refresh the browser page ("),a("code",[e._v("CTRL+R")]),e._v("): test should now pass")]),e._v(" "),a("li",[e._v("Verify test relevancy by changing the feature values "),a("em",[e._v("slightly")]),e._v(" in the JSON file.")])]),e._v(" "),a("p",[e._v("Tests should pass in both browsers. In general, we've hidden all text in image tests since it's quite difficult to get them passing between different browsers. As a result, it is recommended to hide all scales in image-based tests. It is also recommended to disable animations. If tests still do not pass, adjust "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/1ca0ffb5d5b6c2072176fd36fa85a58c483aa434/test/jasmine.matchers.js",target:"_blank",rel:"noopener noreferrer"}},[a("code",[e._v("tolerance")]),e._v(" and/or "),a("code",[e._v("threshold")]),a("OutboundLink")],1),e._v(" at the beginning of the JSON file keeping them "),a("strong",[e._v("as low as possible")]),e._v(".")]),e._v(" "),a("p",[e._v("When a test fails, the expected and actual images are shown. If you'd like to see the images even when the tests pass, set "),a("code",[e._v('"debug": true')]),e._v(" in the JSON file.")]),e._v(" "),a("h2",{attrs:{id:"bugs-and-issues"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bugs-and-issues"}},[e._v("#")]),e._v(" Bugs and Issues")]),e._v(" "),a("p",[e._v("Please report these on the GitHub page - at "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js",target:"_blank"}},[e._v("github.com/chartjs/Chart.js")]),e._v(". Please do not use issues for support requests. For help using Chart.js, please take a look at the "),a("a",{attrs:{href:"https://stackoverflow.com/questions/tagged/chartjs",target:"_blank",rel:"noopener noreferrer"}},[a("code",[e._v("chartjs")]),a("OutboundLink")],1),e._v(" tag on Stack Overflow.")]),e._v(" "),a("p",[e._v("Well structured, detailed bug reports are hugely valuable for the project.")]),e._v(" "),a("p",[e._v("Guidelines for reporting bugs:")]),e._v(" "),a("ul",[a("li",[e._v("Check the issue search to see if it has already been reported")]),e._v(" "),a("li",[e._v("Isolate the problem to a simple test case")]),e._v(" "),a("li",[e._v("Please include a demonstration of the bug on a website such as "),a("a",{attrs:{href:"https://jsbin.com/",target:"_blank",rel:"noopener noreferrer"}},[e._v("JS Bin"),a("OutboundLink")],1),e._v(", "),a("a",{attrs:{href:"https://jsfiddle.net/",target:"_blank",rel:"noopener noreferrer"}},[e._v("JS Fiddle"),a("OutboundLink")],1),e._v(", or "),a("a",{attrs:{href:"https://codepen.io/pen/",target:"_blank",rel:"noopener noreferrer"}},[e._v("Codepen"),a("OutboundLink")],1),e._v(". ("),a("a",{attrs:{href:"https://codepen.io/pen?template=JXVYzq",target:"_blank",rel:"noopener noreferrer"}},[e._v("Template"),a("OutboundLink")],1),e._v("). If filing a bug against "),a("code",[e._v("master")]),e._v(", you may reference the latest code via "),a("a",{attrs:{href:"https://www.chartjs.org/dist/master/chart.min.js",target:"_blank",rel:"noopener noreferrer"}},[e._v("https://www.chartjs.org/dist/master/chart.min.js"),a("OutboundLink")],1),e._v(" (changing the filename to point at the file you need as appropriate). Do not rely on these files for production purposes as they may be removed at any time.")])]),e._v(" "),a("p",[e._v("Please provide any additional details associated with the bug, if it's browser or screen density specific, or only happens with a certain configuration or data.")])])}),[],!1,null,null,null);t.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/16.18a619ff.js b/docs/latest/assets/js/16.18a619ff.js deleted file mode 100644 index 00f170f45f..0000000000 --- a/docs/latest/assets/js/16.18a619ff.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{343:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-datasetcontroller-ttype-telement-tdatasetelement-tparseddata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-datasetcontroller-ttype-telement-tdatasetelement-tparseddata"}},[t._v("#")]),t._v(" Class: DatasetController")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TElement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TDatasetElement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TParsedData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#parseddatatype"}},[a("em",[t._v("ParsedDataType")])]),t._v("")],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("DatasetController")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontroller.html"}},[a("em",[t._v("DoughnutController")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new DatasetController")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TElement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}, TElement>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TDatasetElement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}, TDatasetElement>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TParsedData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#parseddatatype"}},[a("em",[t._v("ParsedDataType")])]),t._v("")],1)])])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L532",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:532"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"cachedmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cachedmeta"}},[t._v("#")]),t._v(" _cachedMeta")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("_cachedMeta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L537",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:537"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L535",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:535"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"enableoptionsharing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enableoptionsharing"}},[t._v("#")]),t._v(" enableOptionSharing")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("enableOptionSharing")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L538",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:538"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"index"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("index")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L536",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:536"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"addelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addelements"}},[t._v("#")]),t._v(" addElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addElements")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L554",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:554"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"applystack"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#applystack"}},[t._v("#")]),t._v(" applyStack")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("applyStack")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[]): "),a("em",[t._v("number")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L590",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:590"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildorupdateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildorupdateelements"}},[t._v("#")]),t._v(" buildOrUpdateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildOrUpdateElements")]),t._v("("),a("code",[t._v("resetNewElements?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("resetNewElements?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L555",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:555"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L552",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:552"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L547",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:547"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getallparsedvalues"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getallparsedvalues"}},[t._v("#")]),t._v(" getAllParsedValues")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getAllParsedValues")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("number")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L541",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:541"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdataset"}},[t._v("#")]),t._v(" getDataset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDataset")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L549",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:549"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelandvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelandvalue"}},[t._v("#")]),t._v(" getLabelAndValue")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getLabelAndValue")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("label")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L542",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:542"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaxoverflow"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaxoverflow"}},[t._v("#")]),t._v(" getMaxOverflow")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMaxOverflow")]),t._v("(): "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L546",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:546"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmeta"}},[t._v("#")]),t._v(" getMeta")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMeta")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L550",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:550"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("canStack?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L597",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:597"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getparsed"}},[t._v("#")]),t._v(" getParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getParsed")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): TParsedData")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" TParsedData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L589",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:589"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getscaleforid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getscaleforid"}},[t._v("#")]),t._v(" getScaleForId")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getScaleForId")]),t._v("("),a("code",[t._v("scaleID")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scaleID")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L551",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:551"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getsharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getsharedoptions"}},[t._v("#")]),t._v(" getSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getSharedOptions")]),t._v("("),a("code",[t._v("options")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Utility for checking if the options are shared and should be animated separately.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L564",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:564"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getstyle"}},[t._v("#")]),t._v(" getStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getStyle")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L557",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:557"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"includeoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#includeoptions"}},[t._v("#")]),t._v(" includeOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("includeOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Utility for determining if "),a("code",[t._v("options")]),t._v(" should be included in the updated properties")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L569",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:569"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"initialize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#initialize"}},[t._v("#")]),t._v(" initialize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("initialize")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L553",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:553"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linkscales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linkscales"}},[t._v("#")]),t._v(" linkScales")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("linkScales")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L540",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:540"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L585",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:585"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsearraydata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsearraydata"}},[t._v("#")]),t._v(" parseArrayData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseArrayData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v(", "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:587"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseobjectdata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseobjectdata"}},[t._v("#")]),t._v(" parseObjectData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseObjectData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v(", "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:588"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseprimitivedata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseprimitivedata"}},[t._v("#")]),t._v(" parsePrimitiveData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parsePrimitiveData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v(", "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:586"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removehoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removehoverstyle"}},[t._v("#")]),t._v(" removeHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": TElement, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TElement")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" reset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("reset")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L548",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:548"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedataelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedataelementoptions"}},[t._v("#")]),t._v(" resolveDataElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDataElementOptions")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L559",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:559"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedatasetelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedatasetelementoptions"}},[t._v("#")]),t._v(" resolveDatasetElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDatasetElementOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L558",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:558"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"sethoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#sethoverstyle"}},[t._v("#")]),t._v(" setHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": TElement, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TElement")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L583",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:583"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:544"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelement"}},[t._v("#")]),t._v(" updateElement")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateElement")]),t._v("("),a("code",[t._v("element")]),t._v(": TElement | TDatasetElement, "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("properties")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Utility for updating an element with new properties, using animations when appropriate.")]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TElement | TDatasetElement")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("properties")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L575",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:575"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelements"}},[t._v("#")]),t._v(" updateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateElements")]),t._v("("),a("code",[t._v("elements")]),t._v(": TElement[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TElement[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:543"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateindex"}},[t._v("#")]),t._v(" updateIndex")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateIndex")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L545",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:545"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updaterangefromparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updaterangefromparsed"}},[t._v("#")]),t._v(" updateRangeFromParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateRangeFromParsed")]),t._v("("),a("code",[t._v("range")]),t._v(": { "),a("code",[t._v("max")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("min")]),t._v(": "),a("em",[t._v("number")]),t._v(" }, "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[], "),a("code",[t._v("stack")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("stack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L591",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:591"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatesharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatesharedoptions"}},[t._v("#")]),t._v(" updateSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateSharedOptions")]),t._v("("),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("newOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Utility to animate the shared options, that are potentially affecting multiple elements.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("newOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:581"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/16.dc964e15.js b/docs/latest/assets/js/16.dc964e15.js new file mode 100644 index 0000000000..fed6a47713 --- /dev/null +++ b/docs/latest/assets/js/16.dc964e15.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{368:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-datasetcontroller-ttype-telement-tdatasetelement-tparseddata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-datasetcontroller-ttype-telement-tdatasetelement-tparseddata"}},[t._v("#")]),t._v(" Class: DatasetController")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TElement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TDatasetElement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TParsedData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#parseddatatype"}},[a("em",[t._v("ParsedDataType")])]),t._v("")],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("DatasetController")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontroller.html"}},[a("em",[t._v("DoughnutController")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new DatasetController")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TElement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}, TElement>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TDatasetElement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}, TDatasetElement>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TParsedData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#parseddatatype"}},[a("em",[t._v("ParsedDataType")])]),t._v("")],1)])])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L532",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:532"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"cachedmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cachedmeta"}},[t._v("#")]),t._v(" _cachedMeta")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("_cachedMeta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L537",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:537"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L535",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:535"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"enableoptionsharing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enableoptionsharing"}},[t._v("#")]),t._v(" enableOptionSharing")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("enableOptionSharing")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L538",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:538"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"index"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("index")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L536",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:536"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"addelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addelements"}},[t._v("#")]),t._v(" addElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addElements")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L554",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:554"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"applystack"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#applystack"}},[t._v("#")]),t._v(" applyStack")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("applyStack")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[]): "),a("em",[t._v("number")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L590",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:590"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildorupdateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildorupdateelements"}},[t._v("#")]),t._v(" buildOrUpdateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildOrUpdateElements")]),t._v("("),a("code",[t._v("resetNewElements?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("resetNewElements?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L555",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:555"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L552",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:552"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L547",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:547"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getallparsedvalues"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getallparsedvalues"}},[t._v("#")]),t._v(" getAllParsedValues")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getAllParsedValues")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("number")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L541",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:541"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdataset"}},[t._v("#")]),t._v(" getDataset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDataset")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L549",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:549"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelandvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelandvalue"}},[t._v("#")]),t._v(" getLabelAndValue")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getLabelAndValue")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("label")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L542",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:542"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaxoverflow"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaxoverflow"}},[t._v("#")]),t._v(" getMaxOverflow")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMaxOverflow")]),t._v("(): "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L546",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:546"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmeta"}},[t._v("#")]),t._v(" getMeta")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMeta")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L550",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:550"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("canStack?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L597",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:597"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getparsed"}},[t._v("#")]),t._v(" getParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getParsed")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): TParsedData")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" TParsedData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L589",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:589"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getscaleforid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getscaleforid"}},[t._v("#")]),t._v(" getScaleForId")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getScaleForId")]),t._v("("),a("code",[t._v("scaleID")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scaleID")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L551",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:551"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getsharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getsharedoptions"}},[t._v("#")]),t._v(" getSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getSharedOptions")]),t._v("("),a("code",[t._v("options")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Utility for checking if the options are shared and should be animated separately.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L564",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:564"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getstyle"}},[t._v("#")]),t._v(" getStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getStyle")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L557",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:557"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"includeoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#includeoptions"}},[t._v("#")]),t._v(" includeOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("includeOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Utility for determining if "),a("code",[t._v("options")]),t._v(" should be included in the updated properties")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L569",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:569"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"initialize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#initialize"}},[t._v("#")]),t._v(" initialize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("initialize")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L553",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:553"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linkscales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linkscales"}},[t._v("#")]),t._v(" linkScales")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("linkScales")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L540",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:540"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L585",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:585"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsearraydata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsearraydata"}},[t._v("#")]),t._v(" parseArrayData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseArrayData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v(", "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:587"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseobjectdata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseobjectdata"}},[t._v("#")]),t._v(" parseObjectData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseObjectData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v(", "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:588"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseprimitivedata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseprimitivedata"}},[t._v("#")]),t._v(" parsePrimitiveData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parsePrimitiveData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v(", "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:586"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removehoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removehoverstyle"}},[t._v("#")]),t._v(" removeHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": TElement, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TElement")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" reset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("reset")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L548",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:548"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedataelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedataelementoptions"}},[t._v("#")]),t._v(" resolveDataElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDataElementOptions")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L559",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:559"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedatasetelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedatasetelementoptions"}},[t._v("#")]),t._v(" resolveDatasetElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDatasetElementOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L558",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:558"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"sethoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#sethoverstyle"}},[t._v("#")]),t._v(" setHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": TElement, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TElement")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L583",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:583"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:544"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelement"}},[t._v("#")]),t._v(" updateElement")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateElement")]),t._v("("),a("code",[t._v("element")]),t._v(": TElement | TDatasetElement, "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("properties")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Utility for updating an element with new properties, using animations when appropriate.")]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TElement | TDatasetElement")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("properties")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L575",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:575"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelements"}},[t._v("#")]),t._v(" updateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateElements")]),t._v("("),a("code",[t._v("elements")]),t._v(": TElement[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TElement[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:543"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateindex"}},[t._v("#")]),t._v(" updateIndex")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateIndex")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L545",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:545"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updaterangefromparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updaterangefromparsed"}},[t._v("#")]),t._v(" updateRangeFromParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateRangeFromParsed")]),t._v("("),a("code",[t._v("range")]),t._v(": { "),a("code",[t._v("max")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("min")]),t._v(": "),a("em",[t._v("number")]),t._v(" }, "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[], "),a("code",[t._v("stack")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("stack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L591",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:591"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatesharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatesharedoptions"}},[t._v("#")]),t._v(" updateSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateSharedOptions")]),t._v("("),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("newOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Utility to animate the shared options, that are potentially affecting multiple elements.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("newOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:581"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/160.6889a41c.js b/docs/latest/assets/js/160.e9680c69.js similarity index 98% rename from docs/latest/assets/js/160.6889a41c.js rename to docs/latest/assets/js/160.e9680c69.js index 5ec63dd878..e34739c9c7 100644 --- a/docs/latest/assets/js/160.6889a41c.js +++ b/docs/latest/assets/js/160.e9680c69.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[160],{485:function(e,r,t){"use strict";t.r(r);var s=t(7),a=Object(s.a)({},(function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"developers"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#developers"}},[e._v("#")]),e._v(" Developers")]),e._v(" "),t("p",[e._v("Developer features allow extending and enhancing Chart.js in many different ways.")]),e._v(" "),t("h2",{attrs:{id:"latest-resources"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#latest-resources"}},[e._v("#")]),e._v(" Latest resources")]),e._v(" "),t("p",[e._v("Latest documentation and samples, including unreleased features, are available at:")]),e._v(" "),t("ul",[t("li",[t("a",{attrs:{href:"https://www.chartjs.org/docs/master/",target:"_blank",rel:"noopener noreferrer"}},[e._v("https://www.chartjs.org/docs/master/"),t("OutboundLink")],1)]),e._v(" "),t("li",[t("a",{attrs:{href:"https://www.chartjs.org/samples/master/",target:"_blank",rel:"noopener noreferrer"}},[e._v("https://www.chartjs.org/samples/master/"),t("OutboundLink")],1)])]),e._v(" "),t("h2",{attrs:{id:"development-releases"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#development-releases"}},[e._v("#")]),e._v(" Development releases")]),e._v(" "),t("p",[e._v("Latest builds are available for testing at:")]),e._v(" "),t("ul",[t("li",[t("a",{attrs:{href:"https://www.chartjs.org/dist/master/chart.js",target:"_blank",rel:"noopener noreferrer"}},[e._v("https://www.chartjs.org/dist/master/chart.js"),t("OutboundLink")],1)]),e._v(" "),t("li",[t("a",{attrs:{href:"https://www.chartjs.org/dist/master/chart.min.js",target:"_blank",rel:"noopener noreferrer"}},[e._v("https://www.chartjs.org/dist/master/chart.min.js"),t("OutboundLink")],1)])]),e._v(" "),t("p",[t("strong",[e._v("WARNING: Development builds MUST not be used for production purposes or as replacement for CDN.")])]),e._v(" "),t("h2",{attrs:{id:"browser-support"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#browser-support"}},[e._v("#")]),e._v(" Browser support")]),e._v(" "),t("p",[e._v("All modern and up-to-date browsers are supported, including, but not limited to:")]),e._v(" "),t("p",[e._v("Chrome\nEdge\nFirefox\nSafari")]),e._v(" "),t("p",[e._v("As of version 3, we have dropped Internet Explorer 11 support.")]),e._v(" "),t("p",[e._v("Browser support for the canvas element is available in all modern & major mobile browsers. "),t("a",{attrs:{href:"https://caniuse.com/#feat=canvas",target:"_blank",rel:"noopener noreferrer"}},[e._v("CanIUse"),t("OutboundLink")],1)]),e._v(" "),t("p",[e._v("Run "),t("code",[e._v("npx browserslist")]),e._v(" at the root of the "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js",target:"_blank",rel:"noopener noreferrer"}},[e._v("codebase"),t("OutboundLink")],1),e._v(" to get a list of supported browsers.")]),e._v(" "),t("p",[e._v("Thanks to "),t("a",{attrs:{href:"https://browserstack.com",target:"_blank",rel:"noopener noreferrer"}},[e._v("BrowserStack"),t("OutboundLink")],1),e._v(" for allowing our team to test on thousands of browsers.")]),e._v(" "),t("h2",{attrs:{id:"previous-versions"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#previous-versions"}},[e._v("#")]),e._v(" Previous versions")]),e._v(" "),t("p",[e._v("To migrate from version 2 to version 3, please see "),t("a",{attrs:{href:"../getting-started/v3-migration"}},[e._v("the v3 migration guide")]),e._v(".")]),e._v(" "),t("p",[e._v("Version 3 has a largely different API than earlier versions.")]),e._v(" "),t("p",[e._v("Most earlier version options have current equivalents or are the same.")]),e._v(" "),t("p",[e._v("Please note - documentation for previous versions are available online or in the GitHub repo.")]),e._v(" "),t("ul",[t("li",[t("a",{attrs:{href:"https://www.chartjs.org/docs/2.9.4/",target:"_blank",rel:"noopener noreferrer"}},[e._v("2.9.4 Documentation"),t("OutboundLink")],1)]),e._v(" "),t("li",[t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/tree/v1.1.1/docs",target:"_blank",rel:"noopener noreferrer"}},[e._v("1.x Documentation"),t("OutboundLink")],1)])])])}),[],!1,null,null,null);r.default=a.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[160],{484:function(e,r,t){"use strict";t.r(r);var s=t(7),a=Object(s.a)({},(function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"developers"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#developers"}},[e._v("#")]),e._v(" Developers")]),e._v(" "),t("p",[e._v("Developer features allow extending and enhancing Chart.js in many different ways.")]),e._v(" "),t("h2",{attrs:{id:"latest-resources"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#latest-resources"}},[e._v("#")]),e._v(" Latest resources")]),e._v(" "),t("p",[e._v("Latest documentation and samples, including unreleased features, are available at:")]),e._v(" "),t("ul",[t("li",[t("a",{attrs:{href:"https://www.chartjs.org/docs/master/",target:"_blank",rel:"noopener noreferrer"}},[e._v("https://www.chartjs.org/docs/master/"),t("OutboundLink")],1)]),e._v(" "),t("li",[t("a",{attrs:{href:"https://www.chartjs.org/samples/master/",target:"_blank",rel:"noopener noreferrer"}},[e._v("https://www.chartjs.org/samples/master/"),t("OutboundLink")],1)])]),e._v(" "),t("h2",{attrs:{id:"development-releases"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#development-releases"}},[e._v("#")]),e._v(" Development releases")]),e._v(" "),t("p",[e._v("Latest builds are available for testing at:")]),e._v(" "),t("ul",[t("li",[t("a",{attrs:{href:"https://www.chartjs.org/dist/master/chart.js",target:"_blank",rel:"noopener noreferrer"}},[e._v("https://www.chartjs.org/dist/master/chart.js"),t("OutboundLink")],1)]),e._v(" "),t("li",[t("a",{attrs:{href:"https://www.chartjs.org/dist/master/chart.min.js",target:"_blank",rel:"noopener noreferrer"}},[e._v("https://www.chartjs.org/dist/master/chart.min.js"),t("OutboundLink")],1)])]),e._v(" "),t("p",[t("strong",[e._v("WARNING: Development builds MUST not be used for production purposes or as replacement for CDN.")])]),e._v(" "),t("h2",{attrs:{id:"browser-support"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#browser-support"}},[e._v("#")]),e._v(" Browser support")]),e._v(" "),t("p",[e._v("All modern and up-to-date browsers are supported, including, but not limited to:")]),e._v(" "),t("p",[e._v("Chrome\nEdge\nFirefox\nSafari")]),e._v(" "),t("p",[e._v("As of version 3, we have dropped Internet Explorer 11 support.")]),e._v(" "),t("p",[e._v("Browser support for the canvas element is available in all modern & major mobile browsers. "),t("a",{attrs:{href:"https://caniuse.com/#feat=canvas",target:"_blank",rel:"noopener noreferrer"}},[e._v("CanIUse"),t("OutboundLink")],1)]),e._v(" "),t("p",[e._v("Run "),t("code",[e._v("npx browserslist")]),e._v(" at the root of the "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js",target:"_blank",rel:"noopener noreferrer"}},[e._v("codebase"),t("OutboundLink")],1),e._v(" to get a list of supported browsers.")]),e._v(" "),t("p",[e._v("Thanks to "),t("a",{attrs:{href:"https://browserstack.com",target:"_blank",rel:"noopener noreferrer"}},[e._v("BrowserStack"),t("OutboundLink")],1),e._v(" for allowing our team to test on thousands of browsers.")]),e._v(" "),t("h2",{attrs:{id:"previous-versions"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#previous-versions"}},[e._v("#")]),e._v(" Previous versions")]),e._v(" "),t("p",[e._v("To migrate from version 2 to version 3, please see "),t("a",{attrs:{href:"../getting-started/v3-migration"}},[e._v("the v3 migration guide")]),e._v(".")]),e._v(" "),t("p",[e._v("Version 3 has a largely different API than earlier versions.")]),e._v(" "),t("p",[e._v("Most earlier version options have current equivalents or are the same.")]),e._v(" "),t("p",[e._v("Please note - documentation for previous versions are available online or in the GitHub repo.")]),e._v(" "),t("ul",[t("li",[t("a",{attrs:{href:"https://www.chartjs.org/docs/2.9.4/",target:"_blank",rel:"noopener noreferrer"}},[e._v("2.9.4 Documentation"),t("OutboundLink")],1)]),e._v(" "),t("li",[t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/tree/v1.1.1/docs",target:"_blank",rel:"noopener noreferrer"}},[e._v("1.x Documentation"),t("OutboundLink")],1)])])])}),[],!1,null,null,null);r.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/161.0ba5575d.js b/docs/latest/assets/js/161.9f1e28ab.js similarity index 98% rename from docs/latest/assets/js/161.0ba5575d.js rename to docs/latest/assets/js/161.9f1e28ab.js index d67495625e..59b0d73f90 100644 --- a/docs/latest/assets/js/161.0ba5575d.js +++ b/docs/latest/assets/js/161.9f1e28ab.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[161],{487:function(t,e,a){"use strict";a.r(e);var s=a(7),r=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"publishing-an-extension"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#publishing-an-extension"}},[t._v("#")]),t._v(" Publishing an extension")]),t._v(" "),a("p",[t._v("If you are planning on publishing an extension for Chart.js, here are a some pointers.")]),t._v(" "),a("h2",{attrs:{id:"awesome"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#awesome"}},[t._v("#")]),t._v(" Awesome")]),t._v(" "),a("p",[t._v("You'd probably want your extension to be listed in the "),a("a",{attrs:{href:"https://github.com/chartjs/awesome",target:"_blank",rel:"noopener noreferrer"}},[t._v("awesome"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("p",[t._v("Note the minimum extension age requirement of 30 days.")]),t._v(" "),a("h2",{attrs:{id:"esm"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#esm"}},[t._v("#")]),t._v(" ESM")]),t._v(" "),a("p",[t._v("If you are utilizing ESM, you probably still want to publish an UMD bundle of your extension. Because Chart.js v3 is tree shakeable, the interface is a bit different.\nUMD package's global "),a("code",[t._v("Chart")]),t._v(" includes everything, while ESM package exports all the things separately.\nFortunately, most of the exports can be mapped automatically by the bundlers.")]),t._v(" "),a("p",[t._v("But not the helpers.")]),t._v(" "),a("p",[t._v("In UMD, helpers are available through "),a("code",[t._v("Chart.helpers")]),t._v(". In ESM, they are imported from "),a("code",[t._v("chart.js/helpers")]),t._v(".")]),t._v(" "),a("p",[t._v("For example "),a("code",[t._v("import {isNullOrUndef} from 'chart.js/helpers'")]),t._v(" is available at "),a("code",[t._v("Chart.helpers.isNullOrUndef")]),t._v(" for UMD.")]),t._v(" "),a("h3",{attrs:{id:"rollup"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#rollup"}},[t._v("#")]),t._v(" Rollup")]),t._v(" "),a("p",[a("code",[t._v("output.globals")]),t._v(" can be used to convert the helpers.")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[t._v("module"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("exports "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// ...")]),t._v("\n output"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n globals"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Chart'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js/helpers'")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Chart.helpers'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[161],{485:function(t,e,a){"use strict";a.r(e);var s=a(7),r=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"publishing-an-extension"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#publishing-an-extension"}},[t._v("#")]),t._v(" Publishing an extension")]),t._v(" "),a("p",[t._v("If you are planning on publishing an extension for Chart.js, here are a some pointers.")]),t._v(" "),a("h2",{attrs:{id:"awesome"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#awesome"}},[t._v("#")]),t._v(" Awesome")]),t._v(" "),a("p",[t._v("You'd probably want your extension to be listed in the "),a("a",{attrs:{href:"https://github.com/chartjs/awesome",target:"_blank",rel:"noopener noreferrer"}},[t._v("awesome"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("p",[t._v("Note the minimum extension age requirement of 30 days.")]),t._v(" "),a("h2",{attrs:{id:"esm"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#esm"}},[t._v("#")]),t._v(" ESM")]),t._v(" "),a("p",[t._v("If you are utilizing ESM, you probably still want to publish an UMD bundle of your extension. Because Chart.js v3 is tree shakeable, the interface is a bit different.\nUMD package's global "),a("code",[t._v("Chart")]),t._v(" includes everything, while ESM package exports all the things separately.\nFortunately, most of the exports can be mapped automatically by the bundlers.")]),t._v(" "),a("p",[t._v("But not the helpers.")]),t._v(" "),a("p",[t._v("In UMD, helpers are available through "),a("code",[t._v("Chart.helpers")]),t._v(". In ESM, they are imported from "),a("code",[t._v("chart.js/helpers")]),t._v(".")]),t._v(" "),a("p",[t._v("For example "),a("code",[t._v("import {isNullOrUndef} from 'chart.js/helpers'")]),t._v(" is available at "),a("code",[t._v("Chart.helpers.isNullOrUndef")]),t._v(" for UMD.")]),t._v(" "),a("h3",{attrs:{id:"rollup"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#rollup"}},[t._v("#")]),t._v(" Rollup")]),t._v(" "),a("p",[a("code",[t._v("output.globals")]),t._v(" can be used to convert the helpers.")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[t._v("module"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("exports "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// ...")]),t._v("\n output"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n globals"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Chart'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js/helpers'")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Chart.helpers'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/162.f58b06cd.js b/docs/latest/assets/js/162.fc3983a6.js similarity index 99% rename from docs/latest/assets/js/162.f58b06cd.js rename to docs/latest/assets/js/162.fc3983a6.js index 40346c9736..ef41e9c5ad 100644 --- a/docs/latest/assets/js/162.f58b06cd.js +++ b/docs/latest/assets/js/162.fc3983a6.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[162],{488:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"updating-charts"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#updating-charts"}},[t._v("#")]),t._v(" Updating Charts")]),t._v(" "),s("p",[t._v("It's pretty common to want to update charts after they've been created. When the chart data or options are changed, Chart.js will animate to the new data values and options.")]),t._v(" "),s("h2",{attrs:{id:"adding-or-removing-data"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#adding-or-removing-data"}},[t._v("#")]),t._v(" Adding or Removing Data")]),t._v(" "),s("p",[t._v("Adding and removing data is supported by changing the data array. To add data, just add data into the data array as seen in this example.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("addData")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" label"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" data")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("labels"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("push")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("label"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("forEach")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("dataset")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n dataset"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("push")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("removeData")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("labels"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("pop")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("forEach")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("dataset")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n dataset"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("pop")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("h2",{attrs:{id:"updating-options"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#updating-options"}},[t._v("#")]),t._v(" Updating Options")]),t._v(" "),s("p",[t._v("To update the options, mutating the options property in place or passing in a new options object are supported.")]),t._v(" "),s("ul",[s("li",[t._v("If the options are mutated in place, other option properties would be preserved, including those calculated by Chart.js.")]),t._v(" "),s("li",[t._v("If created as a new object, it would be like creating a new chart with the options - old options would be discarded.")])]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("updateConfigByMutating")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("plugins"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("title"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("text "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'new title'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("updateConfigAsNewObject")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n responsive"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n title"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n text"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Chart.js'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n scales"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("Scales can be updated separately without changing other options.\nTo update the scales, pass in an object containing all the customization including those unchanged ones.")]),t._v(" "),s("p",[t._v("Variables referencing any one from "),s("code",[t._v("chart.scales")]),t._v(" would be lost after updating scales with a new "),s("code",[t._v("id")]),t._v(" or the changed "),s("code",[t._v("type")]),t._v(".")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("updateScales")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" xScale "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" yScale "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n newId"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'logarithmic'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// need to update the reference")]),t._v("\n xScale "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("newId"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n yScale "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("You can also update a specific scale either by its id.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("updateScale")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'logarithmic'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("Code sample for updating options can be found in "),s("a",{attrs:{href:"https://www.chartjs.org/samples/latest/scales/toggle-scale-type.html",target:"_blank",rel:"noopener noreferrer"}},[t._v("toggle-scale-type.html"),s("OutboundLink")],1),t._v(".")]),t._v(" "),s("h2",{attrs:{id:"preventing-animations"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#preventing-animations"}},[t._v("#")]),t._v(" Preventing Animations")]),t._v(" "),s("p",[t._v("Sometimes when a chart updates, you may not want an animation. To achieve this you can call "),s("code",[t._v("update")]),t._v(" with "),s("code",[t._v("'none'")]),t._v(" as mode.")])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[162],{487:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"updating-charts"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#updating-charts"}},[t._v("#")]),t._v(" Updating Charts")]),t._v(" "),s("p",[t._v("It's pretty common to want to update charts after they've been created. When the chart data or options are changed, Chart.js will animate to the new data values and options.")]),t._v(" "),s("h2",{attrs:{id:"adding-or-removing-data"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#adding-or-removing-data"}},[t._v("#")]),t._v(" Adding or Removing Data")]),t._v(" "),s("p",[t._v("Adding and removing data is supported by changing the data array. To add data, just add data into the data array as seen in this example.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("addData")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" label"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" data")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("labels"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("push")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("label"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("forEach")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("dataset")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n dataset"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("push")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("removeData")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("labels"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("pop")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("forEach")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("dataset")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n dataset"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("pop")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("h2",{attrs:{id:"updating-options"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#updating-options"}},[t._v("#")]),t._v(" Updating Options")]),t._v(" "),s("p",[t._v("To update the options, mutating the options property in place or passing in a new options object are supported.")]),t._v(" "),s("ul",[s("li",[t._v("If the options are mutated in place, other option properties would be preserved, including those calculated by Chart.js.")]),t._v(" "),s("li",[t._v("If created as a new object, it would be like creating a new chart with the options - old options would be discarded.")])]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("updateConfigByMutating")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("plugins"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("title"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("text "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'new title'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("updateConfigAsNewObject")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n responsive"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n title"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n text"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Chart.js'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n scales"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("Scales can be updated separately without changing other options.\nTo update the scales, pass in an object containing all the customization including those unchanged ones.")]),t._v(" "),s("p",[t._v("Variables referencing any one from "),s("code",[t._v("chart.scales")]),t._v(" would be lost after updating scales with a new "),s("code",[t._v("id")]),t._v(" or the changed "),s("code",[t._v("type")]),t._v(".")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("updateScales")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" xScale "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" yScale "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n newId"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'logarithmic'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// need to update the reference")]),t._v("\n xScale "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("newId"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n yScale "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("You can also update a specific scale either by its id.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("updateScale")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'logarithmic'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("Code sample for updating options can be found in "),s("a",{attrs:{href:"https://www.chartjs.org/samples/latest/scales/toggle-scale-type.html",target:"_blank",rel:"noopener noreferrer"}},[t._v("toggle-scale-type.html"),s("OutboundLink")],1),t._v(".")]),t._v(" "),s("h2",{attrs:{id:"preventing-animations"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#preventing-animations"}},[t._v("#")]),t._v(" Preventing Animations")]),t._v(" "),s("p",[t._v("Sometimes when a chart updates, you may not want an animation. To achieve this you can call "),s("code",[t._v("update")]),t._v(" with "),s("code",[t._v("'none'")]),t._v(" as mode.")])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/163.82598716.js b/docs/latest/assets/js/163.9e832dc0.js similarity index 99% rename from docs/latest/assets/js/163.82598716.js rename to docs/latest/assets/js/163.9e832dc0.js index aed4120cb4..2217519f16 100644 --- a/docs/latest/assets/js/163.82598716.js +++ b/docs/latest/assets/js/163.9e832dc0.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[163],{489:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"accessibility"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#accessibility"}},[t._v("#")]),t._v(" Accessibility")]),t._v(" "),s("p",[t._v("Chart.js charts are rendered on user provided "),s("code",[t._v("canvas")]),t._v(" elements. Thus, it is up to the user to create the "),s("code",[t._v("canvas")]),t._v(" element in a way that is accessible. The "),s("code",[t._v("canvas")]),t._v(" element has support in all browsers and will render on screen but the "),s("code",[t._v("canvas")]),t._v(" content will not be accessible to screen readers.")]),t._v(" "),s("p",[t._v("With "),s("code",[t._v("canvas")]),t._v(", the accessibility has to be added with ARIA attributes on the "),s("code",[t._v("canvas")]),t._v(" element or added using internal fallback content placed within the opening and closing canvas tags.")]),t._v(" "),s("p",[t._v("This "),s("a",{attrs:{href:"http://pauljadam.com/demos/canvas.html",target:"_blank",rel:"noopener noreferrer"}},[t._v("website"),s("OutboundLink")],1),t._v(" has a more detailed explanation of "),s("code",[t._v("canvas")]),t._v(" accessibility as well as in depth examples.")]),t._v(" "),s("h2",{attrs:{id:"examples"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#examples"}},[t._v("#")]),t._v(" Examples")]),t._v(" "),s("p",[t._v("These are some examples of "),s("strong",[t._v("accessible")]),t._v(" "),s("code",[t._v("canvas")]),t._v(" elements.")]),t._v(" "),s("p",[t._v("By setting the "),s("code",[t._v("role")]),t._v(" and "),s("code",[t._v("aria-label")]),t._v(", this "),s("code",[t._v("canvas")]),t._v(" now has an accessible name.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("goodCanvas1"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("100"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("aria-label")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("Hello ARIA World"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("role")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("img"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("This "),s("code",[t._v("canvas")]),t._v(" element has a text alternative via fallback content.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("okCanvas2"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("100"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("p")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),t._v("Hello Fallback World"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("These are some bad examples of "),s("strong",[t._v("inaccessible")]),t._v(" "),s("code",[t._v("canvas")]),t._v(" elements.")]),t._v(" "),s("p",[t._v("This "),s("code",[t._v("canvas")]),t._v(" element does not have an accessible name or role.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("badCanvas1"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("100"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("This "),s("code",[t._v("canvas")]),t._v(" element has inaccessible fallback content.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("badCanvas2"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("100"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),t._v("Your browser does not support the canvas element."),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[163],{488:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"accessibility"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#accessibility"}},[t._v("#")]),t._v(" Accessibility")]),t._v(" "),s("p",[t._v("Chart.js charts are rendered on user provided "),s("code",[t._v("canvas")]),t._v(" elements. Thus, it is up to the user to create the "),s("code",[t._v("canvas")]),t._v(" element in a way that is accessible. The "),s("code",[t._v("canvas")]),t._v(" element has support in all browsers and will render on screen but the "),s("code",[t._v("canvas")]),t._v(" content will not be accessible to screen readers.")]),t._v(" "),s("p",[t._v("With "),s("code",[t._v("canvas")]),t._v(", the accessibility has to be added with ARIA attributes on the "),s("code",[t._v("canvas")]),t._v(" element or added using internal fallback content placed within the opening and closing canvas tags.")]),t._v(" "),s("p",[t._v("This "),s("a",{attrs:{href:"http://pauljadam.com/demos/canvas.html",target:"_blank",rel:"noopener noreferrer"}},[t._v("website"),s("OutboundLink")],1),t._v(" has a more detailed explanation of "),s("code",[t._v("canvas")]),t._v(" accessibility as well as in depth examples.")]),t._v(" "),s("h2",{attrs:{id:"examples"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#examples"}},[t._v("#")]),t._v(" Examples")]),t._v(" "),s("p",[t._v("These are some examples of "),s("strong",[t._v("accessible")]),t._v(" "),s("code",[t._v("canvas")]),t._v(" elements.")]),t._v(" "),s("p",[t._v("By setting the "),s("code",[t._v("role")]),t._v(" and "),s("code",[t._v("aria-label")]),t._v(", this "),s("code",[t._v("canvas")]),t._v(" now has an accessible name.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("goodCanvas1"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("100"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("aria-label")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("Hello ARIA World"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("role")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("img"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("This "),s("code",[t._v("canvas")]),t._v(" element has a text alternative via fallback content.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("okCanvas2"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("100"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("p")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),t._v("Hello Fallback World"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("These are some bad examples of "),s("strong",[t._v("inaccessible")]),t._v(" "),s("code",[t._v("canvas")]),t._v(" elements.")]),t._v(" "),s("p",[t._v("This "),s("code",[t._v("canvas")]),t._v(" element does not have an accessible name or role.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("badCanvas1"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("100"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("This "),s("code",[t._v("canvas")]),t._v(" element has inaccessible fallback content.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("badCanvas2"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("100"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),t._v("Your browser does not support the canvas element."),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/164.0f3dc1ec.js b/docs/latest/assets/js/164.3cc163f4.js similarity index 99% rename from docs/latest/assets/js/164.0f3dc1ec.js rename to docs/latest/assets/js/164.3cc163f4.js index 3586b880a1..f82956f5c6 100644 --- a/docs/latest/assets/js/164.0f3dc1ec.js +++ b/docs/latest/assets/js/164.3cc163f4.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[164],{490:function(t,a,s){"use strict";s.r(a);var n=s(7),r=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"colors"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#colors"}},[t._v("#")]),t._v(" Colors")]),t._v(" "),s("p",[t._v("When supplying colors to Chart options, you can use a number of formats. You can specify the color as a string in hexadecimal, RGB, or HSL notations. If a color is needed, but not specified, Chart.js will use the global default color. There are 3 color options, stored at "),s("code",[t._v("Chart.defaults")]),t._v(", to set:")]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Default")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("backgroundColor")])]),t._v(" "),s("td",[s("code",[t._v("Color")])]),t._v(" "),s("td",[s("code",[t._v("rgba(0, 0, 0, 0.1)")])]),t._v(" "),s("td",[t._v("Background color.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("borderColor")])]),t._v(" "),s("td",[s("code",[t._v("Color")])]),t._v(" "),s("td",[s("code",[t._v("rgba(0, 0, 0, 0.1)")])]),t._v(" "),s("td",[t._v("Border color.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("color")])]),t._v(" "),s("td",[s("code",[t._v("Color")])]),t._v(" "),s("td",[s("code",[t._v("#666")])]),t._v(" "),s("td",[t._v("Font color.")])])])]),t._v(" "),s("p",[t._v("You can also pass a "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasGradient",target:"_blank",rel:"noopener noreferrer"}},[t._v("CanvasGradient"),s("OutboundLink")],1),t._v(" object. You will need to create this before passing to the chart, but using it you can achieve some interesting effects.")]),t._v(" "),s("h2",{attrs:{id:"patterns-and-gradients"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#patterns-and-gradients"}},[t._v("#")]),t._v(" Patterns and Gradients")]),t._v(" "),s("p",[t._v("An alternative option is to pass a "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasPattern",target:"_blank",rel:"noopener noreferrer"}},[t._v("CanvasPattern"),s("OutboundLink")],1),t._v(" or "),s("a",{attrs:{href:"https://developer.mozilla.org/en/docs/Web/API/CanvasGradient",target:"_blank",rel:"noopener noreferrer"}},[t._v("CanvasGradient"),s("OutboundLink")],1),t._v(" object instead of a string colour.")]),t._v(" "),s("p",[t._v("For example, if you wanted to fill a dataset with a pattern from an image you could do the following.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" img "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Image")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nimg"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("src "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'https://example.com/my_image.png'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nimg"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("onload")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'canvas'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getContext")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'2d'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" fillPattern "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("createPattern")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("img"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'repeat'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Item 1'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Item 2'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Item 3'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n backgroundColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" fillPattern\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("Using pattern fills for data graphics can help viewers with vision deficiencies (e.g. color-blindness or partial sight) to "),s("a",{attrs:{href:"http://betweentwobrackets.com/data-graphics-and-colour-vision/",target:"_blank",rel:"noopener noreferrer"}},[t._v("more easily understand your data"),s("OutboundLink")],1),t._v(".")]),t._v(" "),s("p",[t._v("Using the "),s("a",{attrs:{href:"https://github.com/ashiguruma/patternomaly",target:"_blank",rel:"noopener noreferrer"}},[t._v("Patternomaly"),s("OutboundLink")],1),t._v(" library you can generate patterns to fill datasets.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chartData "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("45")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("25")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n backgroundColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n pattern"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'square'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#ff6384'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n pattern"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'circle'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#36a2eb'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n pattern"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'diamond'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#cc65fe'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n pattern"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'triangle'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#ffce56'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Red'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Blue'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Purple'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Yellow'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[164],{489:function(t,a,s){"use strict";s.r(a);var n=s(7),r=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"colors"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#colors"}},[t._v("#")]),t._v(" Colors")]),t._v(" "),s("p",[t._v("When supplying colors to Chart options, you can use a number of formats. You can specify the color as a string in hexadecimal, RGB, or HSL notations. If a color is needed, but not specified, Chart.js will use the global default color. There are 3 color options, stored at "),s("code",[t._v("Chart.defaults")]),t._v(", to set:")]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Default")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("backgroundColor")])]),t._v(" "),s("td",[s("code",[t._v("Color")])]),t._v(" "),s("td",[s("code",[t._v("rgba(0, 0, 0, 0.1)")])]),t._v(" "),s("td",[t._v("Background color.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("borderColor")])]),t._v(" "),s("td",[s("code",[t._v("Color")])]),t._v(" "),s("td",[s("code",[t._v("rgba(0, 0, 0, 0.1)")])]),t._v(" "),s("td",[t._v("Border color.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("color")])]),t._v(" "),s("td",[s("code",[t._v("Color")])]),t._v(" "),s("td",[s("code",[t._v("#666")])]),t._v(" "),s("td",[t._v("Font color.")])])])]),t._v(" "),s("p",[t._v("You can also pass a "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasGradient",target:"_blank",rel:"noopener noreferrer"}},[t._v("CanvasGradient"),s("OutboundLink")],1),t._v(" object. You will need to create this before passing to the chart, but using it you can achieve some interesting effects.")]),t._v(" "),s("h2",{attrs:{id:"patterns-and-gradients"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#patterns-and-gradients"}},[t._v("#")]),t._v(" Patterns and Gradients")]),t._v(" "),s("p",[t._v("An alternative option is to pass a "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasPattern",target:"_blank",rel:"noopener noreferrer"}},[t._v("CanvasPattern"),s("OutboundLink")],1),t._v(" or "),s("a",{attrs:{href:"https://developer.mozilla.org/en/docs/Web/API/CanvasGradient",target:"_blank",rel:"noopener noreferrer"}},[t._v("CanvasGradient"),s("OutboundLink")],1),t._v(" object instead of a string colour.")]),t._v(" "),s("p",[t._v("For example, if you wanted to fill a dataset with a pattern from an image you could do the following.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" img "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Image")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nimg"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("src "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'https://example.com/my_image.png'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nimg"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("onload")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'canvas'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getContext")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'2d'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" fillPattern "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("createPattern")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("img"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'repeat'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Item 1'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Item 2'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Item 3'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n backgroundColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" fillPattern\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("Using pattern fills for data graphics can help viewers with vision deficiencies (e.g. color-blindness or partial sight) to "),s("a",{attrs:{href:"http://betweentwobrackets.com/data-graphics-and-colour-vision/",target:"_blank",rel:"noopener noreferrer"}},[t._v("more easily understand your data"),s("OutboundLink")],1),t._v(".")]),t._v(" "),s("p",[t._v("Using the "),s("a",{attrs:{href:"https://github.com/ashiguruma/patternomaly",target:"_blank",rel:"noopener noreferrer"}},[t._v("Patternomaly"),s("OutboundLink")],1),t._v(" library you can generate patterns to fill datasets.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chartData "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("45")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("25")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n backgroundColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n pattern"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'square'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#ff6384'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n pattern"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'circle'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#36a2eb'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n pattern"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'diamond'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#cc65fe'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n pattern"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'triangle'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#ffce56'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Red'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Blue'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Purple'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Yellow'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/165.abbfc048.js b/docs/latest/assets/js/165.34cade19.js similarity index 99% rename from docs/latest/assets/js/165.abbfc048.js rename to docs/latest/assets/js/165.34cade19.js index 17d8450c5e..6d3448a028 100644 --- a/docs/latest/assets/js/165.abbfc048.js +++ b/docs/latest/assets/js/165.34cade19.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[165],{491:function(t,a,s){"use strict";s.r(a);var e=s(7),n=Object(e.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"data-structures"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#data-structures"}},[t._v("#")]),t._v(" Data structures")]),t._v(" "),s("p",[t._v("The "),s("code",[t._v("data")]),t._v(" property of a dataset can be passed in various formats. By default, that "),s("code",[t._v("data")]),t._v(" is parsed using the associated chart type and scales.")]),t._v(" "),s("p",[t._v("If the "),s("code",[t._v("labels")]),t._v(" property of the main "),s("code",[t._v("data")]),t._v(" property is used, it has to contain the same amount of elements as the dataset with the most values. These labels are used to label the index axis (default x axes). The values for the labels have to be provided in an array.\nThe provides labels can be of the type string or number to be rendered correctly. In case you want multiline labels you can provide an array with each line as one entry in the array.")]),t._v(" "),s("h2",{attrs:{id:"primitive"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#primitive"}},[t._v("#")]),t._v(" Primitive[]")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\nlabels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'a'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'b'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),s("p",[t._v("When the "),s("code",[t._v("data")]),t._v(" is an array of numbers, values from "),s("code",[t._v("labels")]),t._v(" array at the same index are used for the index axis ("),s("code",[t._v("x")]),t._v(" for vertical, "),s("code",[t._v("y")]),t._v(" for horizontal charts).")]),t._v(" "),s("h2",{attrs:{id:"object"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#object"}},[t._v("#")]),t._v(" Object[]")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("15")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'2016-12-25'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'2016-12-26'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Sales'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Revenue'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),s("p",[t._v("This is also the internal format used for parsed data. In this mode, parsing can be disabled by specifying "),s("code",[t._v("parsing: false")]),t._v(" at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),s("p",[t._v("The values provided must be parsable by the associated scales or in the internal format of the associated scales. A common mistake would be to provide integers for the "),s("code",[t._v("category")]),t._v(" scale, which uses integers as an internal format, where each integer represents an index in the labels array. "),s("code",[t._v("null")]),t._v(" can be used for skipped values.")]),t._v(" "),s("h2",{attrs:{id:"object-using-custom-properties"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#object-using-custom-properties"}},[t._v("#")]),t._v(" Object[] using custom properties")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\ndata"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("id"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Sales'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" nested"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("value"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1500")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("id"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Purchases'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" nested"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("value"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("500")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\noptions"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n parsing"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n xAxisKey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'id'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n yAxisKey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'nested.value'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("h2",{attrs:{id:"object-2"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#object-2"}},[t._v("#")]),t._v(" Object")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n January"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n February"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("In this mode, property name is used for "),s("code",[t._v("index")]),t._v(" scale and value for "),s("code",[t._v("value")]),t._v(" scale. For vertical charts, index scale is "),s("code",[t._v("x")]),t._v(" and value scale is "),s("code",[t._v("y")]),t._v(".")]),t._v(" "),s("h2",{attrs:{id:"dataset-configuration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#dataset-configuration"}},[t._v("#")]),t._v(" Dataset Configuration")]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("label")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[t._v("The label for the dataset which appears in the legend and tooltips.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("clip")])]),t._v(" "),s("td",[s("code",[t._v("number")]),t._v("|"),s("code",[t._v("object")])]),t._v(" "),s("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("order")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("stack")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack). Defaults to dataset "),s("code",[t._v("type")]),t._v(".")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("parsing")])]),t._v(" "),s("td",[s("code",[t._v("boolean")]),t._v("|"),s("code",[t._v("object")])]),t._v(" "),s("td",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("hidden")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[t._v("Configure the visibility of the dataset. Using "),s("code",[t._v("hidden: true")]),t._v(" will hide the dataset from being rendered in the Chart.")])])])]),t._v(" "),s("h3",{attrs:{id:"parsing"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" data "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Jan'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" net"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("100")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" cogs"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" gm"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Feb'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" net"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("120")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" cogs"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("55")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" gm"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("75")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" cfg "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Jan'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Feb'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Net sales'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n parsing"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n yAxisKey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'net'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Cost of goods sold'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n parsing"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n yAxisKey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'cogs'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Gross margin'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n parsing"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n yAxisKey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'gm'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[165],{568:function(t,a,s){"use strict";s.r(a);var e=s(7),n=Object(e.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"data-structures"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#data-structures"}},[t._v("#")]),t._v(" Data structures")]),t._v(" "),s("p",[t._v("The "),s("code",[t._v("data")]),t._v(" property of a dataset can be passed in various formats. By default, that "),s("code",[t._v("data")]),t._v(" is parsed using the associated chart type and scales.")]),t._v(" "),s("p",[t._v("If the "),s("code",[t._v("labels")]),t._v(" property of the main "),s("code",[t._v("data")]),t._v(" property is used, it has to contain the same amount of elements as the dataset with the most values. These labels are used to label the index axis (default x axes). The values for the labels have to be provided in an array.\nThe provides labels can be of the type string or number to be rendered correctly. In case you want multiline labels you can provide an array with each line as one entry in the array.")]),t._v(" "),s("h2",{attrs:{id:"primitive"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#primitive"}},[t._v("#")]),t._v(" Primitive[]")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\nlabels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'a'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'b'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),s("p",[t._v("When the "),s("code",[t._v("data")]),t._v(" is an array of numbers, values from "),s("code",[t._v("labels")]),t._v(" array at the same index are used for the index axis ("),s("code",[t._v("x")]),t._v(" for vertical, "),s("code",[t._v("y")]),t._v(" for horizontal charts).")]),t._v(" "),s("h2",{attrs:{id:"object"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#object"}},[t._v("#")]),t._v(" Object[]")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("15")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'2016-12-25'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'2016-12-26'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Sales'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Revenue'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),s("p",[t._v("This is also the internal format used for parsed data. In this mode, parsing can be disabled by specifying "),s("code",[t._v("parsing: false")]),t._v(" at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),s("p",[t._v("The values provided must be parsable by the associated scales or in the internal format of the associated scales. A common mistake would be to provide integers for the "),s("code",[t._v("category")]),t._v(" scale, which uses integers as an internal format, where each integer represents an index in the labels array. "),s("code",[t._v("null")]),t._v(" can be used for skipped values.")]),t._v(" "),s("h2",{attrs:{id:"object-using-custom-properties"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#object-using-custom-properties"}},[t._v("#")]),t._v(" Object[] using custom properties")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\ndata"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("id"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Sales'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" nested"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("value"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1500")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("id"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Purchases'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" nested"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("value"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("500")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\noptions"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n parsing"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n xAxisKey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'id'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n yAxisKey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'nested.value'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("h2",{attrs:{id:"object-2"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#object-2"}},[t._v("#")]),t._v(" Object")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n January"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n February"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("In this mode, property name is used for "),s("code",[t._v("index")]),t._v(" scale and value for "),s("code",[t._v("value")]),t._v(" scale. For vertical charts, index scale is "),s("code",[t._v("x")]),t._v(" and value scale is "),s("code",[t._v("y")]),t._v(".")]),t._v(" "),s("h2",{attrs:{id:"dataset-configuration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#dataset-configuration"}},[t._v("#")]),t._v(" Dataset Configuration")]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("label")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[t._v("The label for the dataset which appears in the legend and tooltips.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("clip")])]),t._v(" "),s("td",[s("code",[t._v("number")]),t._v("|"),s("code",[t._v("object")])]),t._v(" "),s("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("order")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("stack")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack). Defaults to dataset "),s("code",[t._v("type")]),t._v(".")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("parsing")])]),t._v(" "),s("td",[s("code",[t._v("boolean")]),t._v("|"),s("code",[t._v("object")])]),t._v(" "),s("td",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("hidden")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[t._v("Configure the visibility of the dataset. Using "),s("code",[t._v("hidden: true")]),t._v(" will hide the dataset from being rendered in the Chart.")])])])]),t._v(" "),s("h3",{attrs:{id:"parsing"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" data "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Jan'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" net"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("100")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" cogs"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" gm"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Feb'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" net"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("120")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" cogs"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("55")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" gm"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("75")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" cfg "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Jan'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Feb'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Net sales'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n parsing"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n yAxisKey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'net'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Cost of goods sold'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n parsing"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n yAxisKey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'cogs'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Gross margin'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n parsing"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n yAxisKey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'gm'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/166.af31a4fc.js b/docs/latest/assets/js/166.5347ac89.js similarity index 99% rename from docs/latest/assets/js/166.af31a4fc.js rename to docs/latest/assets/js/166.5347ac89.js index 32654982b6..aa8882d70b 100644 --- a/docs/latest/assets/js/166.af31a4fc.js +++ b/docs/latest/assets/js/166.5347ac89.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[166],{492:function(t,e,s){"use strict";s.r(e);var a=s(7),n=Object(a.a)({},(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"fonts"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#fonts"}},[t._v("#")]),t._v(" Fonts")]),t._v(" "),s("p",[t._v("There are special global settings that can change all of the fonts on the chart. These options are in "),s("code",[t._v("Chart.defaults.font")]),t._v(". The global font settings only apply when more specific options are not included in the config.")]),t._v(" "),s("p",[t._v("For example, in this chart the text will all be red except for the labels in the legend.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("font"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("size "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("16")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n legend"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This more specific font property overrides the global property")]),t._v("\n font"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n size"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("14")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Default")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("family")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("\"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\"")])]),t._v(" "),s("td",[t._v("Default font family for all text, follows CSS font-family options.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("size")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("12")])]),t._v(" "),s("td",[t._v("Default font size (in px) for text. Does not apply to radialLinear scale point labels.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("style")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'normal'")])]),t._v(" "),s("td",[t._v("Default font style. Does not apply to tooltip title or footer. Does not apply to chart title. Follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("weight")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("undefined")])]),t._v(" "),s("td",[t._v("Default font weight (boldness). (see "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),s("OutboundLink")],1),t._v(").")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("lineHeight")])]),t._v(" "),s("td",[s("code",[t._v("number")]),t._v("|"),s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("1.2")])]),t._v(" "),s("td",[t._v("Height of an individual line of text (see "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/CSS/line-height",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),s("OutboundLink")],1),t._v(").")])])])]),t._v(" "),s("h2",{attrs:{id:"missing-fonts"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#missing-fonts"}},[t._v("#")]),t._v(" Missing Fonts")]),t._v(" "),s("p",[t._v("If a font is specified for a chart that does exist on the system, the browser will not apply the font when it is set. If you notice odd fonts appearing in your charts, check that the font you are applying exists on your system. See "),s("a",{attrs:{href:"https://github.com/chartjs/Chart.js/issues/3318",target:"_blank",rel:"noopener noreferrer"}},[t._v("issue 3318"),s("OutboundLink")],1),t._v(" for more details.")]),t._v(" "),s("h2",{attrs:{id:"loading-fonts"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#loading-fonts"}},[t._v("#")]),t._v(" Loading Fonts")]),t._v(" "),s("p",[t._v("If a font is not cached and needs to be loaded, charts that use the font will need to be updated once the font is loaded. This can be accomplished using the "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CSS_Font_Loading_API",target:"_blank",rel:"noopener noreferrer"}},[t._v("Font Loading APIs"),s("OutboundLink")],1),t._v(". See "),s("a",{attrs:{href:"https://github.com/chartjs/Chart.js/issues/8020",target:"_blank",rel:"noopener noreferrer"}},[t._v("issue 8020"),s("OutboundLink")],1),t._v(" for more details.")])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[166],{569:function(t,e,s){"use strict";s.r(e);var a=s(7),n=Object(a.a)({},(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"fonts"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#fonts"}},[t._v("#")]),t._v(" Fonts")]),t._v(" "),s("p",[t._v("There are special global settings that can change all of the fonts on the chart. These options are in "),s("code",[t._v("Chart.defaults.font")]),t._v(". The global font settings only apply when more specific options are not included in the config.")]),t._v(" "),s("p",[t._v("For example, in this chart the text will all be red except for the labels in the legend.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("font"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("size "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("16")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n legend"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This more specific font property overrides the global property")]),t._v("\n font"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n size"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("14")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Default")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("family")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("\"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\"")])]),t._v(" "),s("td",[t._v("Default font family for all text, follows CSS font-family options.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("size")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("12")])]),t._v(" "),s("td",[t._v("Default font size (in px) for text. Does not apply to radialLinear scale point labels.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("style")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'normal'")])]),t._v(" "),s("td",[t._v("Default font style. Does not apply to tooltip title or footer. Does not apply to chart title. Follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("weight")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("undefined")])]),t._v(" "),s("td",[t._v("Default font weight (boldness). (see "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),s("OutboundLink")],1),t._v(").")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("lineHeight")])]),t._v(" "),s("td",[s("code",[t._v("number")]),t._v("|"),s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("1.2")])]),t._v(" "),s("td",[t._v("Height of an individual line of text (see "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/CSS/line-height",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),s("OutboundLink")],1),t._v(").")])])])]),t._v(" "),s("h2",{attrs:{id:"missing-fonts"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#missing-fonts"}},[t._v("#")]),t._v(" Missing Fonts")]),t._v(" "),s("p",[t._v("If a font is specified for a chart that does exist on the system, the browser will not apply the font when it is set. If you notice odd fonts appearing in your charts, check that the font you are applying exists on your system. See "),s("a",{attrs:{href:"https://github.com/chartjs/Chart.js/issues/3318",target:"_blank",rel:"noopener noreferrer"}},[t._v("issue 3318"),s("OutboundLink")],1),t._v(" for more details.")]),t._v(" "),s("h2",{attrs:{id:"loading-fonts"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#loading-fonts"}},[t._v("#")]),t._v(" Loading Fonts")]),t._v(" "),s("p",[t._v("If a font is not cached and needs to be loaded, charts that use the font will need to be updated once the font is loaded. This can be accomplished using the "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CSS_Font_Loading_API",target:"_blank",rel:"noopener noreferrer"}},[t._v("Font Loading APIs"),s("OutboundLink")],1),t._v(". See "),s("a",{attrs:{href:"https://github.com/chartjs/Chart.js/issues/8020",target:"_blank",rel:"noopener noreferrer"}},[t._v("issue 8020"),s("OutboundLink")],1),t._v(" for more details.")])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/167.f484bf05.js b/docs/latest/assets/js/167.eff2831d.js similarity index 99% rename from docs/latest/assets/js/167.f484bf05.js rename to docs/latest/assets/js/167.eff2831d.js index 9aa2602055..e70235eb2d 100644 --- a/docs/latest/assets/js/167.f484bf05.js +++ b/docs/latest/assets/js/167.eff2831d.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[167],{493:function(t,e,a){"use strict";a.r(e);var s=a(7),o=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" Options")]),t._v(" "),a("h2",{attrs:{id:"option-resolution"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#option-resolution"}},[t._v("#")]),t._v(" Option resolution")]),t._v(" "),a("p",[t._v("Options are resolved from top to bottom, using a context dependent route.")]),t._v(" "),a("h3",{attrs:{id:"chart-level-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-level-options"}},[t._v("#")]),t._v(" Chart level options")]),t._v(" "),a("ul",[a("li",[t._v("options")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults")])]),t._v(" "),a("h3",{attrs:{id:"dataset-level-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-level-options"}},[t._v("#")]),t._v(" Dataset level options")]),t._v(" "),a("p",[a("code",[t._v("dataset.type")]),t._v(" defaults to "),a("code",[t._v("config.type")]),t._v(", if not specified.")]),t._v(" "),a("ul",[a("li",[t._v("dataset")]),t._v(" "),a("li",[t._v("options.datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("options")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults.datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults")])]),t._v(" "),a("h3",{attrs:{id:"dataset-animation-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-animation-options"}},[t._v("#")]),t._v(" Dataset animation options")]),t._v(" "),a("ul",[a("li",[t._v("dataset.animation")]),t._v(" "),a("li",[t._v("options.datasets["),a("code",[t._v("dataset.type")]),t._v("].animation")]),t._v(" "),a("li",[t._v("options.animation")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].datasets["),a("code",[t._v("dataset.type")]),t._v("].animation")]),t._v(" "),a("li",[t._v("defaults.datasets["),a("code",[t._v("dataset.type")]),t._v("].animation")]),t._v(" "),a("li",[t._v("defaults.animation")])]),t._v(" "),a("h3",{attrs:{id:"dataset-element-level-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-element-level-options"}},[t._v("#")]),t._v(" Dataset element level options")]),t._v(" "),a("p",[t._v("Each scope is looked up with "),a("code",[t._v("elementType")]),t._v(" prefix in the option name first, then wihtout the prefix. For example, "),a("code",[t._v("radius")]),t._v(" for "),a("code",[t._v("point")]),t._v(" element is looked up using "),a("code",[t._v("pointRadius")]),t._v(" and if that does not hit, then "),a("code",[t._v("radius")]),t._v(".")]),t._v(" "),a("ul",[a("li",[t._v("dataset")]),t._v(" "),a("li",[t._v("options.datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("options.datasets["),a("code",[t._v("dataset.type")]),t._v("].elements["),a("code",[t._v("elementType")]),t._v("]")]),t._v(" "),a("li",[t._v("options.elements["),a("code",[t._v("elementType")]),t._v("]")]),t._v(" "),a("li",[t._v("options")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].datasets["),a("code",[t._v("dataset.type")]),t._v("].elements["),a("code",[t._v("elementType")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults.datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults.datasets["),a("code",[t._v("dataset.type")]),t._v("].elements["),a("code",[t._v("elementType")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults.elements["),a("code",[t._v("elementType")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults")])]),t._v(" "),a("h3",{attrs:{id:"scale-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scale-options"}},[t._v("#")]),t._v(" Scale options")]),t._v(" "),a("ul",[a("li",[t._v("options.scales")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].scales")]),t._v(" "),a("li",[t._v("defaults.scales")]),t._v(" "),a("li",[t._v("defaults.scale")])]),t._v(" "),a("h3",{attrs:{id:"plugin-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#plugin-options"}},[t._v("#")]),t._v(" Plugin options")]),t._v(" "),a("p",[t._v("A plugin can provide "),a("code",[t._v("additionalOptionScopes")]),t._v(" array of paths to additionally look for its options in. For root scope, use empty string: "),a("code",[t._v("''")]),t._v(". Most core plugins also take options from root scope.")]),t._v(" "),a("ul",[a("li",[t._v("options.plugins["),a("code",[t._v("plugin.id")]),t._v("]")]),t._v(" "),a("li",[t._v("(options.["),a("code",[t._v("...plugin.additionalOptionScopes")]),t._v("])")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].plugins["),a("code",[t._v("plugin.id")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults.plugins["),a("code",[t._v("plugin.id")]),t._v("]")]),t._v(" "),a("li",[t._v("(defaults.["),a("code",[t._v("...plugin.additionalOptionScopes")]),t._v("])")])]),t._v(" "),a("h2",{attrs:{id:"scriptable-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scriptable-options"}},[t._v("#")]),t._v(" Scriptable Options")]),t._v(" "),a("p",[t._v("Scriptable options also accept a function which is called for each of the underlying data values and that takes the unique argument "),a("code",[t._v("context")]),t._v(" representing contextual information (see "),a("RouterLink",{attrs:{to:"/general/options.html#option-context"}},[t._v("option context")]),t._v(").\nA resolver is passed as second parameter, that can be used to access other options in the same context.")],1),t._v(" "),a("div",{staticClass:"custom-block tip"},[a("p",{staticClass:"custom-block-title"},[t._v("Note")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("context")]),t._v(" argument should be validated in the scriptable function, because the function can be invoked in different contexts. The "),a("code",[t._v("type")]),t._v(" field is a good candidate for this validation.")])]),t._v(" "),a("p",[t._v("Example:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("color")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" index "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("dataIndex"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("dataset"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'red'")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// draw negative values in red")]),t._v("\n index "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("%")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'blue'")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// else, alternate values in blue and green")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'green'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("borderColor")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" options")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" color "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("color"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// resolve the value of another scriptable option: 'red', 'blue' or 'green'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("helpers"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("color")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("color"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("lighten")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0.2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("h2",{attrs:{id:"indexable-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#indexable-options"}},[t._v("#")]),t._v(" Indexable Options")]),t._v(" "),a("p",[t._v("Indexable options also accept an array in which each item corresponds to the element at the same index. Note that if there are less items than data, the items are looped over. In many cases, using a "),a("a",{attrs:{href:"#scriptable-options"}},[t._v("function")]),t._v(" is more appropriate if supported.")]),t._v(" "),a("p",[t._v("Example:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("color"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'red'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// color for data at index 0")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'blue'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// color for data at index 1")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'green'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// color for data at index 2")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'black'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// color for data at index 3")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("//...")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),a("h2",{attrs:{id:"option-context"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#option-context"}},[t._v("#")]),t._v(" Option Context")]),t._v(" "),a("p",[t._v("The option context is used to give contextual information when resolving options and currently only applies to "),a("a",{attrs:{href:"#scriptable-options"}},[t._v("scriptable options")]),t._v(".\nThe object is preserved, so it can be used to store and pass information between calls.")]),t._v(" "),a("p",[t._v("There are multiple levels of context objects:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("chart")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("dataset")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data")])])])]),t._v(" "),a("li",[a("code",[t._v("scale")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("tick")])])])]),t._v(" "),a("li",[a("code",[t._v("tooltip")])])])])]),t._v(" "),a("p",[t._v("Each level inherits its parent(s) and any contextual information stored in the parent is available through the child.")]),t._v(" "),a("p",[t._v("The context object contains the following properties:")]),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("chart")]),t._v(": the associated chart")]),t._v(" "),a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'chart'")])])]),t._v(" "),a("h3",{attrs:{id:"dataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[t._v("#")]),t._v(" dataset")]),t._v(" "),a("p",[t._v("In addition to "),a("a",{attrs:{href:"#chart"}},[t._v("chart")])]),t._v(" "),a("ul",[a("li",[a("code",[t._v("active")]),t._v(": true if element is active (hovered)")]),t._v(" "),a("li",[a("code",[t._v("dataset")]),t._v(": dataset at index "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("li",[a("code",[t._v("datasetIndex")]),t._v(": index of the current dataset")]),t._v(" "),a("li",[a("code",[t._v("index")]),t._v(": same as "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("li",[a("code",[t._v("mode")]),t._v(": the update mode")]),t._v(" "),a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'dataset'")])])]),t._v(" "),a("h3",{attrs:{id:"data"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[t._v("#")]),t._v(" data")]),t._v(" "),a("p",[t._v("In addition to "),a("a",{attrs:{href:"#dataset"}},[t._v("dataset")])]),t._v(" "),a("ul",[a("li",[a("code",[t._v("active")]),t._v(": true if element is active (hovered)")]),t._v(" "),a("li",[a("code",[t._v("dataIndex")]),t._v(": index of the current data")]),t._v(" "),a("li",[a("code",[t._v("parsed")]),t._v(": the parsed data values for the given "),a("code",[t._v("dataIndex")]),t._v(" and "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("li",[a("code",[t._v("raw")]),t._v(": the raw data values for the given "),a("code",[t._v("dataIndex")]),t._v(" and "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("li",[a("code",[t._v("element")]),t._v(": the element (point, arc, bar, etc.) for this data")]),t._v(" "),a("li",[a("code",[t._v("index")]),t._v(": same as "),a("code",[t._v("dataIndex")])]),t._v(" "),a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'data'")])])]),t._v(" "),a("h3",{attrs:{id:"scale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scale"}},[t._v("#")]),t._v(" scale")]),t._v(" "),a("p",[t._v("In addition to "),a("a",{attrs:{href:"#chart"}},[t._v("chart")])]),t._v(" "),a("ul",[a("li",[a("code",[t._v("scale")]),t._v(": the associated scale")]),t._v(" "),a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'scale'")])])]),t._v(" "),a("h3",{attrs:{id:"tick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tick"}},[t._v("#")]),t._v(" tick")]),t._v(" "),a("p",[t._v("In addition to "),a("a",{attrs:{href:"#scale"}},[t._v("scale")])]),t._v(" "),a("ul",[a("li",[a("code",[t._v("tick")]),t._v(": the associated tick object")]),t._v(" "),a("li",[a("code",[t._v("index")]),t._v(": tick index")]),t._v(" "),a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'tick'")])])]),t._v(" "),a("h3",{attrs:{id:"tooltip"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltip"}},[t._v("#")]),t._v(" tooltip")]),t._v(" "),a("p",[t._v("In addition to "),a("a",{attrs:{href:"#chart"}},[t._v("chart")])]),t._v(" "),a("ul",[a("li",[a("code",[t._v("tooltip")]),t._v(": the tooltip object")]),t._v(" "),a("li",[a("code",[t._v("tooltipItems")]),t._v(": the items the tooltip is displaying")])])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[167],{492:function(t,e,a){"use strict";a.r(e);var s=a(7),o=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" Options")]),t._v(" "),a("h2",{attrs:{id:"option-resolution"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#option-resolution"}},[t._v("#")]),t._v(" Option resolution")]),t._v(" "),a("p",[t._v("Options are resolved from top to bottom, using a context dependent route.")]),t._v(" "),a("h3",{attrs:{id:"chart-level-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-level-options"}},[t._v("#")]),t._v(" Chart level options")]),t._v(" "),a("ul",[a("li",[t._v("options")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults")])]),t._v(" "),a("h3",{attrs:{id:"dataset-level-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-level-options"}},[t._v("#")]),t._v(" Dataset level options")]),t._v(" "),a("p",[a("code",[t._v("dataset.type")]),t._v(" defaults to "),a("code",[t._v("config.type")]),t._v(", if not specified.")]),t._v(" "),a("ul",[a("li",[t._v("dataset")]),t._v(" "),a("li",[t._v("options.datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("options")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults.datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults")])]),t._v(" "),a("h3",{attrs:{id:"dataset-animation-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-animation-options"}},[t._v("#")]),t._v(" Dataset animation options")]),t._v(" "),a("ul",[a("li",[t._v("dataset.animation")]),t._v(" "),a("li",[t._v("options.datasets["),a("code",[t._v("dataset.type")]),t._v("].animation")]),t._v(" "),a("li",[t._v("options.animation")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].datasets["),a("code",[t._v("dataset.type")]),t._v("].animation")]),t._v(" "),a("li",[t._v("defaults.datasets["),a("code",[t._v("dataset.type")]),t._v("].animation")]),t._v(" "),a("li",[t._v("defaults.animation")])]),t._v(" "),a("h3",{attrs:{id:"dataset-element-level-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-element-level-options"}},[t._v("#")]),t._v(" Dataset element level options")]),t._v(" "),a("p",[t._v("Each scope is looked up with "),a("code",[t._v("elementType")]),t._v(" prefix in the option name first, then wihtout the prefix. For example, "),a("code",[t._v("radius")]),t._v(" for "),a("code",[t._v("point")]),t._v(" element is looked up using "),a("code",[t._v("pointRadius")]),t._v(" and if that does not hit, then "),a("code",[t._v("radius")]),t._v(".")]),t._v(" "),a("ul",[a("li",[t._v("dataset")]),t._v(" "),a("li",[t._v("options.datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("options.datasets["),a("code",[t._v("dataset.type")]),t._v("].elements["),a("code",[t._v("elementType")]),t._v("]")]),t._v(" "),a("li",[t._v("options.elements["),a("code",[t._v("elementType")]),t._v("]")]),t._v(" "),a("li",[t._v("options")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].datasets["),a("code",[t._v("dataset.type")]),t._v("].elements["),a("code",[t._v("elementType")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults.datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults.datasets["),a("code",[t._v("dataset.type")]),t._v("].elements["),a("code",[t._v("elementType")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults.elements["),a("code",[t._v("elementType")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults")])]),t._v(" "),a("h3",{attrs:{id:"scale-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scale-options"}},[t._v("#")]),t._v(" Scale options")]),t._v(" "),a("ul",[a("li",[t._v("options.scales")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].scales")]),t._v(" "),a("li",[t._v("defaults.scales")]),t._v(" "),a("li",[t._v("defaults.scale")])]),t._v(" "),a("h3",{attrs:{id:"plugin-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#plugin-options"}},[t._v("#")]),t._v(" Plugin options")]),t._v(" "),a("p",[t._v("A plugin can provide "),a("code",[t._v("additionalOptionScopes")]),t._v(" array of paths to additionally look for its options in. For root scope, use empty string: "),a("code",[t._v("''")]),t._v(". Most core plugins also take options from root scope.")]),t._v(" "),a("ul",[a("li",[t._v("options.plugins["),a("code",[t._v("plugin.id")]),t._v("]")]),t._v(" "),a("li",[t._v("(options.["),a("code",[t._v("...plugin.additionalOptionScopes")]),t._v("])")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].plugins["),a("code",[t._v("plugin.id")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults.plugins["),a("code",[t._v("plugin.id")]),t._v("]")]),t._v(" "),a("li",[t._v("(defaults.["),a("code",[t._v("...plugin.additionalOptionScopes")]),t._v("])")])]),t._v(" "),a("h2",{attrs:{id:"scriptable-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scriptable-options"}},[t._v("#")]),t._v(" Scriptable Options")]),t._v(" "),a("p",[t._v("Scriptable options also accept a function which is called for each of the underlying data values and that takes the unique argument "),a("code",[t._v("context")]),t._v(" representing contextual information (see "),a("RouterLink",{attrs:{to:"/general/options.html#option-context"}},[t._v("option context")]),t._v(").\nA resolver is passed as second parameter, that can be used to access other options in the same context.")],1),t._v(" "),a("div",{staticClass:"custom-block tip"},[a("p",{staticClass:"custom-block-title"},[t._v("Note")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("context")]),t._v(" argument should be validated in the scriptable function, because the function can be invoked in different contexts. The "),a("code",[t._v("type")]),t._v(" field is a good candidate for this validation.")])]),t._v(" "),a("p",[t._v("Example:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("color")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" index "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("dataIndex"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("dataset"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'red'")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// draw negative values in red")]),t._v("\n index "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("%")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'blue'")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// else, alternate values in blue and green")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'green'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("borderColor")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" options")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" color "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("color"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// resolve the value of another scriptable option: 'red', 'blue' or 'green'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("helpers"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("color")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("color"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("lighten")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0.2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("h2",{attrs:{id:"indexable-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#indexable-options"}},[t._v("#")]),t._v(" Indexable Options")]),t._v(" "),a("p",[t._v("Indexable options also accept an array in which each item corresponds to the element at the same index. Note that if there are less items than data, the items are looped over. In many cases, using a "),a("a",{attrs:{href:"#scriptable-options"}},[t._v("function")]),t._v(" is more appropriate if supported.")]),t._v(" "),a("p",[t._v("Example:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("color"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'red'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// color for data at index 0")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'blue'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// color for data at index 1")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'green'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// color for data at index 2")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'black'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// color for data at index 3")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("//...")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),a("h2",{attrs:{id:"option-context"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#option-context"}},[t._v("#")]),t._v(" Option Context")]),t._v(" "),a("p",[t._v("The option context is used to give contextual information when resolving options and currently only applies to "),a("a",{attrs:{href:"#scriptable-options"}},[t._v("scriptable options")]),t._v(".\nThe object is preserved, so it can be used to store and pass information between calls.")]),t._v(" "),a("p",[t._v("There are multiple levels of context objects:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("chart")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("dataset")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data")])])])]),t._v(" "),a("li",[a("code",[t._v("scale")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("tick")])])])]),t._v(" "),a("li",[a("code",[t._v("tooltip")])])])])]),t._v(" "),a("p",[t._v("Each level inherits its parent(s) and any contextual information stored in the parent is available through the child.")]),t._v(" "),a("p",[t._v("The context object contains the following properties:")]),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("chart")]),t._v(": the associated chart")]),t._v(" "),a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'chart'")])])]),t._v(" "),a("h3",{attrs:{id:"dataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[t._v("#")]),t._v(" dataset")]),t._v(" "),a("p",[t._v("In addition to "),a("a",{attrs:{href:"#chart"}},[t._v("chart")])]),t._v(" "),a("ul",[a("li",[a("code",[t._v("active")]),t._v(": true if element is active (hovered)")]),t._v(" "),a("li",[a("code",[t._v("dataset")]),t._v(": dataset at index "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("li",[a("code",[t._v("datasetIndex")]),t._v(": index of the current dataset")]),t._v(" "),a("li",[a("code",[t._v("index")]),t._v(": same as "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("li",[a("code",[t._v("mode")]),t._v(": the update mode")]),t._v(" "),a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'dataset'")])])]),t._v(" "),a("h3",{attrs:{id:"data"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[t._v("#")]),t._v(" data")]),t._v(" "),a("p",[t._v("In addition to "),a("a",{attrs:{href:"#dataset"}},[t._v("dataset")])]),t._v(" "),a("ul",[a("li",[a("code",[t._v("active")]),t._v(": true if element is active (hovered)")]),t._v(" "),a("li",[a("code",[t._v("dataIndex")]),t._v(": index of the current data")]),t._v(" "),a("li",[a("code",[t._v("parsed")]),t._v(": the parsed data values for the given "),a("code",[t._v("dataIndex")]),t._v(" and "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("li",[a("code",[t._v("raw")]),t._v(": the raw data values for the given "),a("code",[t._v("dataIndex")]),t._v(" and "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("li",[a("code",[t._v("element")]),t._v(": the element (point, arc, bar, etc.) for this data")]),t._v(" "),a("li",[a("code",[t._v("index")]),t._v(": same as "),a("code",[t._v("dataIndex")])]),t._v(" "),a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'data'")])])]),t._v(" "),a("h3",{attrs:{id:"scale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scale"}},[t._v("#")]),t._v(" scale")]),t._v(" "),a("p",[t._v("In addition to "),a("a",{attrs:{href:"#chart"}},[t._v("chart")])]),t._v(" "),a("ul",[a("li",[a("code",[t._v("scale")]),t._v(": the associated scale")]),t._v(" "),a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'scale'")])])]),t._v(" "),a("h3",{attrs:{id:"tick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tick"}},[t._v("#")]),t._v(" tick")]),t._v(" "),a("p",[t._v("In addition to "),a("a",{attrs:{href:"#scale"}},[t._v("scale")])]),t._v(" "),a("ul",[a("li",[a("code",[t._v("tick")]),t._v(": the associated tick object")]),t._v(" "),a("li",[a("code",[t._v("index")]),t._v(": tick index")]),t._v(" "),a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'tick'")])])]),t._v(" "),a("h3",{attrs:{id:"tooltip"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltip"}},[t._v("#")]),t._v(" tooltip")]),t._v(" "),a("p",[t._v("In addition to "),a("a",{attrs:{href:"#chart"}},[t._v("chart")])]),t._v(" "),a("ul",[a("li",[a("code",[t._v("tooltip")]),t._v(": the tooltip object")]),t._v(" "),a("li",[a("code",[t._v("tooltipItems")]),t._v(": the items the tooltip is displaying")])])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/168.6df0a3a9.js b/docs/latest/assets/js/168.e618654e.js similarity index 99% rename from docs/latest/assets/js/168.6df0a3a9.js rename to docs/latest/assets/js/168.e618654e.js index be94607856..698785066d 100644 --- a/docs/latest/assets/js/168.6df0a3a9.js +++ b/docs/latest/assets/js/168.e618654e.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[168],{494:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"padding"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#padding"}},[t._v("#")]),t._v(" Padding")]),t._v(" "),s("p",[t._v("Padding values in Chart options can be supplied in couple of different formats.")]),t._v(" "),s("h2",{attrs:{id:"number"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#number"}},[t._v("#")]),t._v(" Number")]),t._v(" "),s("p",[t._v("If this value is a number, it is applied to all sides (left, top, right, bottom).")]),t._v(" "),s("p",[t._v("For example, defining a 20px padding to all sides of chart:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n layout"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v("\n padding"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"top-left-bottom-right-object"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#top-left-bottom-right-object"}},[t._v("#")]),t._v(" {top, left, bottom, right} object")]),t._v(" "),s("p",[t._v("If this value is an object, the "),s("code",[t._v("left")]),t._v(" property defines the left padding. Similarly the "),s("code",[t._v("right")]),t._v(", "),s("code",[t._v("top")]),t._v(" and "),s("code",[t._v("bottom")]),t._v(" properties can also be specified.\nOmitted properties default to "),s("code",[t._v("0")]),t._v(".")]),t._v(" "),s("p",[t._v("Lets say you wanted to add 50px of padding to the left side of the chart canvas, you would do:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n layout"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n padding"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n left"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"x-y-object"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#x-y-object"}},[t._v("#")]),t._v(" {x, y} object")]),t._v(" "),s("p",[t._v("This is a shorthand for defining left/right and top/bottom to same values.")]),t._v(" "),s("p",[t._v("For example, 10px left / right and 4px top / bottom padding on a Radial Linear Axis "),s("a",{attrs:{href:"../axes/radial/linear#tick-configuration"}},[t._v("tick backdropPadding")]),t._v(":")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'radar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n r"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n ticks"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n backdropPadding"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("4")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[168],{493:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"padding"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#padding"}},[t._v("#")]),t._v(" Padding")]),t._v(" "),s("p",[t._v("Padding values in Chart options can be supplied in couple of different formats.")]),t._v(" "),s("h2",{attrs:{id:"number"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#number"}},[t._v("#")]),t._v(" Number")]),t._v(" "),s("p",[t._v("If this value is a number, it is applied to all sides (left, top, right, bottom).")]),t._v(" "),s("p",[t._v("For example, defining a 20px padding to all sides of chart:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n layout"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v("\n padding"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"top-left-bottom-right-object"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#top-left-bottom-right-object"}},[t._v("#")]),t._v(" {top, left, bottom, right} object")]),t._v(" "),s("p",[t._v("If this value is an object, the "),s("code",[t._v("left")]),t._v(" property defines the left padding. Similarly the "),s("code",[t._v("right")]),t._v(", "),s("code",[t._v("top")]),t._v(" and "),s("code",[t._v("bottom")]),t._v(" properties can also be specified.\nOmitted properties default to "),s("code",[t._v("0")]),t._v(".")]),t._v(" "),s("p",[t._v("Lets say you wanted to add 50px of padding to the left side of the chart canvas, you would do:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n layout"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n padding"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n left"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"x-y-object"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#x-y-object"}},[t._v("#")]),t._v(" {x, y} object")]),t._v(" "),s("p",[t._v("This is a shorthand for defining left/right and top/bottom to same values.")]),t._v(" "),s("p",[t._v("For example, 10px left / right and 4px top / bottom padding on a Radial Linear Axis "),s("a",{attrs:{href:"../axes/radial/linear#tick-configuration"}},[t._v("tick backdropPadding")]),t._v(":")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'radar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n r"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n ticks"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n backdropPadding"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("4")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/169.6988ad9e.js b/docs/latest/assets/js/169.9e5b7a91.js similarity index 99% rename from docs/latest/assets/js/169.6988ad9e.js rename to docs/latest/assets/js/169.9e5b7a91.js index 5720dc2bc4..1e5848364c 100644 --- a/docs/latest/assets/js/169.6988ad9e.js +++ b/docs/latest/assets/js/169.9e5b7a91.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[169],{495:function(a,t,s){"use strict";s.r(t);var n=s(7),e=Object(n.a)({},(function(){var a=this,t=a.$createElement,s=a._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[s("h1",{attrs:{id:"performance"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#performance"}},[a._v("#")]),a._v(" Performance")]),a._v(" "),s("p",[a._v("Chart.js charts are rendered on "),s("code",[a._v("canvas")]),a._v(" elements, which makes rendering quite fast. For large datasets or performance sensitive applications, you may wish to consider the tips below.")]),a._v(" "),s("h2",{attrs:{id:"data-structure-and-format"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#data-structure-and-format"}},[a._v("#")]),a._v(" Data structure and format")]),a._v(" "),s("h3",{attrs:{id:"parsing"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[a._v("#")]),a._v(" Parsing")]),a._v(" "),s("p",[a._v("Provide prepared data in the internal format accepted by the dataset and scales, and set "),s("code",[a._v("parsing: false")]),a._v(". See "),s("RouterLink",{attrs:{to:"/general/data-structures.html"}},[a._v("Data structures")]),a._v(" for more information.")],1),a._v(" "),s("h3",{attrs:{id:"data-normalization"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#data-normalization"}},[a._v("#")]),a._v(" Data normalization")]),a._v(" "),s("p",[a._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the "),s("code",[a._v("normalized: true")]),a._v(" option to let Chart.js know that you have done so. Even without this option, it can sometimes still be faster to provide sorted data.")]),a._v(" "),s("h3",{attrs:{id:"decimation"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#decimation"}},[a._v("#")]),a._v(" Decimation")]),a._v(" "),s("p",[a._v("Decimating your data will achieve the best results. When there is a lot of data to display on the graph, it doesn't make sense to show tens of thousands of data points on a graph that is only a few hundred pixels wide.")]),a._v(" "),s("p",[a._v("The "),s("RouterLink",{attrs:{to:"/general/configuration/decimation.html"}},[a._v("decimation plugin")]),a._v(" can be used with line charts to decimate data before the chart is rendered. This will provide the best performance since it will reduce the memory needed to render the chart.")],1),a._v(" "),s("p",[a._v("Line charts are able to do "),s("a",{attrs:{href:"#automatic-data-decimation-during-draw"}},[a._v("automatic data decimation during draw")]),a._v(", when certain conditions are met. You should still consider decimating data yourself before passing it in for maximum performance since the automatic decimation occurs late in the chart life cycle.")]),a._v(" "),s("h2",{attrs:{id:"tick-calculation"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tick-calculation"}},[a._v("#")]),a._v(" Tick Calculation")]),a._v(" "),s("h3",{attrs:{id:"rotation"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[a._v("#")]),a._v(" Rotation")]),a._v(" "),s("p",[s("RouterLink",{attrs:{to:"/general/axes/cartesian/#tick-configuration"}},[a._v("Specify a rotation value")]),a._v(" by setting "),s("code",[a._v("minRotation")]),a._v(" and "),s("code",[a._v("maxRotation")]),a._v(" to the same value, which avoids the chart from having to automatically determine a value to use.")],1),a._v(" "),s("h3",{attrs:{id:"sampling"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#sampling"}},[a._v("#")]),a._v(" Sampling")]),a._v(" "),s("p",[a._v("Set the "),s("RouterLink",{attrs:{to:"/general/axes/cartesian/#tick-configuration"}},[s("code",[a._v("ticks.sampleSize")])]),a._v(" option. This will determine how large your labels are by looking at only a subset of them in order to render axes more quickly. This works best if there is not a large variance in the size of your labels.")],1),a._v(" "),s("h2",{attrs:{id:"disable-animations"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#disable-animations"}},[a._v("#")]),a._v(" Disable Animations")]),a._v(" "),s("p",[a._v("If your charts have long render times, it is a good idea to disable animations. Doing so will mean that the chart needs to only be rendered once during an update instead of multiple times. This will have the effect of reducing CPU usage and improving general page performance.\nLine charts use Path2D caching when animations are disabled and Path2D is available.")]),a._v(" "),s("p",[a._v("To disable animations")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n animation"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("false")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h2",{attrs:{id:"specify-min-and-max-for-scales"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#specify-min-and-max-for-scales"}},[a._v("#")]),a._v(" Specify "),s("code",[a._v("min")]),a._v(" and "),s("code",[a._v("max")]),a._v(" for scales")]),a._v(" "),s("p",[a._v("If you specify the "),s("code",[a._v("min")]),a._v(" and "),s("code",[a._v("max")]),a._v(", the scale does not have to compute the range from the data.")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n scales"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n x"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'time'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n min"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Date")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'2019-01-01'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[a._v("valueOf")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n max"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Date")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'2019-12-31'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[a._v("valueOf")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'linear'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n min"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n max"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("100")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h2",{attrs:{id:"parallel-rendering-with-web-workers-chromium-only"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#parallel-rendering-with-web-workers-chromium-only"}},[a._v("#")]),a._v(" Parallel rendering with web workers (Chromium only)")]),a._v(" "),s("p",[a._v("Chromium (Chrome: version 69, Edge: 79, Opera: 56) added the ability to "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen",target:"_blank",rel:"noopener noreferrer"}},[a._v("transfer rendering control of a canvas"),s("OutboundLink")],1),a._v(" to a web worker. Web workers can use the "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas",target:"_blank",rel:"noopener noreferrer"}},[a._v("OffscreenCanvas API"),s("OutboundLink")],1),a._v(" to render from a web worker onto canvases in the DOM. Chart.js is a canvas-based library and supports rendering in a web worker - just pass an OffscreenCanvas into the Chart constructor instead of a Canvas element. Note that as of today, this API is only supported in Chromium based browsers.")]),a._v(" "),s("p",[a._v("By moving all Chart.js calculations onto a separate thread, the main thread can be freed up for other uses. Some tips and tricks when using Chart.js in a web worker:")]),a._v(" "),s("ul",[s("li",[a._v("Transferring data between threads can be expensive, so ensure that your config and data objects are as small as possible. Try generating them on the worker side if you can (workers can make HTTP requests!) or passing them to your worker as ArrayBuffers, which can be transferred quickly from one thread to another.")]),a._v(" "),s("li",[a._v("You can't transfer functions between threads, so if your config object includes functions you'll have to strip them out before transferring and then add them back later.")]),a._v(" "),s("li",[a._v("You can't access the DOM from worker threads, so Chart.js plugins that use the DOM (including any mouse interactions) will likely not work.")]),a._v(" "),s("li",[a._v("Ensure that you have a fallback if you support browsers other than the most modern Chromium browsers.")]),a._v(" "),s("li",[a._v("Resizing the chart must be done manually. See an example in the worker code below.")])]),a._v(" "),s("p",[a._v("Example main thread code:")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" config "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" canvas "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("HTMLCanvasElement")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" offscreenCanvas "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[a._v("transferControlToOffscreen")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" worker "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Worker")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'worker.js'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\nworker"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[a._v("postMessage")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("canvas"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" offscreenCanvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" config"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("[")]),a._v("offscreenCanvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("p",[a._v("Example worker code, in "),s("code",[a._v("worker.js")]),a._v(":")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token function-variable function"}},[a._v("onmessage")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[a._v("event")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" config"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" event"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),a._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" config"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// Resizing the chart must be done manually, since OffscreenCanvas does not include event listeners.")]),a._v("\n canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),a._v("width "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("100")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),a._v("height "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("100")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[a._v("resize")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h2",{attrs:{id:"line-charts"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#line-charts"}},[a._v("#")]),a._v(" Line Charts")]),a._v(" "),s("h3",{attrs:{id:"leave-bezier-curves-disabled"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#leave-bezier-curves-disabled"}},[a._v("#")]),a._v(" Leave Bézier curves disabled")]),a._v(" "),s("p",[a._v("If you are drawing lines on your chart, disabling Bézier curves will improve render times since drawing a straight line is more performant than a Bézier curve. Bézier curves are disabled by default.")]),a._v(" "),s("h3",{attrs:{id:"automatic-data-decimation-during-draw"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#automatic-data-decimation-during-draw"}},[a._v("#")]),a._v(" Automatic data decimation during draw")]),a._v(" "),s("p",[a._v("Line element will automatically decimate data, when "),s("code",[a._v("tension")]),a._v(", "),s("code",[a._v("stepped")]),a._v(", and "),s("code",[a._v("borderDash")]),a._v(" are left set to their default values ("),s("code",[a._v("false")]),a._v(", "),s("code",[a._v("0")]),a._v(", and "),s("code",[a._v("[]")]),a._v(" respectively). This improves rendering speed by skipping drawing of invisible line segments.")]),a._v(" "),s("h3",{attrs:{id:"enable-spangaps"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#enable-spangaps"}},[a._v("#")]),a._v(" Enable spanGaps")]),a._v(" "),s("p",[a._v("If you have a lot of data points, it can be more performant to enable "),s("code",[a._v("spanGaps")]),a._v(". This disables segmentation of the line, which can be an unneeded step.")]),a._v(" "),s("p",[a._v("To enable "),s("code",[a._v("spanGaps")]),a._v(":")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n spanGaps"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("true")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// enable for a single dataset")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("]")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n spanGaps"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("true")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// enable for all datasets")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h3",{attrs:{id:"disable-line-drawing"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#disable-line-drawing"}},[a._v("#")]),a._v(" Disable Line Drawing")]),a._v(" "),s("p",[a._v("If you have a lot of data points, it can be more performant to disable rendering of the line for a dataset and only draw points. Doing this means that there is less to draw on the canvas which will improve render performance.")]),a._v(" "),s("p",[a._v("To disable lines:")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n showLine"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("false")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// disable for a single dataset")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("]")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n showLine"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("false")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// disable for all datasets")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h3",{attrs:{id:"disable-point-drawing"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#disable-point-drawing"}},[a._v("#")]),a._v(" Disable Point Drawing")]),a._v(" "),s("p",[a._v("If you have a lot of data points, it can be more performant to disable rendering of the points for a dataset and only draw line. Doing this means that there is less to draw on the canvas which will improve render performance.")]),a._v(" "),s("p",[a._v("To disable point drawing:")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n pointRadius"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("0")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// disable for a single dataset")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("]")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n line"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n pointRadius"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("0")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// disable for all `'line'` datasets")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n elements"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n point"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n radius"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("0")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// default to disabled in all datasets")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h2",{attrs:{id:"when-transpiling-with-babel-consider-using-loose-mode"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#when-transpiling-with-babel-consider-using-loose-mode"}},[a._v("#")]),a._v(" When transpiling with Babel, consider using "),s("code",[a._v("loose")]),a._v(" mode")]),a._v(" "),s("p",[a._v("Babel 7.9 changed the way classes are constructed. It is slow, unless used with "),s("code",[a._v("loose")]),a._v(" mode.\n"),s("a",{attrs:{href:"https://github.com/babel/babel/issues/11356",target:"_blank",rel:"noopener noreferrer"}},[a._v("More information"),s("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[169],{494:function(a,t,s){"use strict";s.r(t);var n=s(7),e=Object(n.a)({},(function(){var a=this,t=a.$createElement,s=a._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[s("h1",{attrs:{id:"performance"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#performance"}},[a._v("#")]),a._v(" Performance")]),a._v(" "),s("p",[a._v("Chart.js charts are rendered on "),s("code",[a._v("canvas")]),a._v(" elements, which makes rendering quite fast. For large datasets or performance sensitive applications, you may wish to consider the tips below.")]),a._v(" "),s("h2",{attrs:{id:"data-structure-and-format"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#data-structure-and-format"}},[a._v("#")]),a._v(" Data structure and format")]),a._v(" "),s("h3",{attrs:{id:"parsing"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[a._v("#")]),a._v(" Parsing")]),a._v(" "),s("p",[a._v("Provide prepared data in the internal format accepted by the dataset and scales, and set "),s("code",[a._v("parsing: false")]),a._v(". See "),s("RouterLink",{attrs:{to:"/general/data-structures.html"}},[a._v("Data structures")]),a._v(" for more information.")],1),a._v(" "),s("h3",{attrs:{id:"data-normalization"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#data-normalization"}},[a._v("#")]),a._v(" Data normalization")]),a._v(" "),s("p",[a._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the "),s("code",[a._v("normalized: true")]),a._v(" option to let Chart.js know that you have done so. Even without this option, it can sometimes still be faster to provide sorted data.")]),a._v(" "),s("h3",{attrs:{id:"decimation"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#decimation"}},[a._v("#")]),a._v(" Decimation")]),a._v(" "),s("p",[a._v("Decimating your data will achieve the best results. When there is a lot of data to display on the graph, it doesn't make sense to show tens of thousands of data points on a graph that is only a few hundred pixels wide.")]),a._v(" "),s("p",[a._v("The "),s("RouterLink",{attrs:{to:"/general/configuration/decimation.html"}},[a._v("decimation plugin")]),a._v(" can be used with line charts to decimate data before the chart is rendered. This will provide the best performance since it will reduce the memory needed to render the chart.")],1),a._v(" "),s("p",[a._v("Line charts are able to do "),s("a",{attrs:{href:"#automatic-data-decimation-during-draw"}},[a._v("automatic data decimation during draw")]),a._v(", when certain conditions are met. You should still consider decimating data yourself before passing it in for maximum performance since the automatic decimation occurs late in the chart life cycle.")]),a._v(" "),s("h2",{attrs:{id:"tick-calculation"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tick-calculation"}},[a._v("#")]),a._v(" Tick Calculation")]),a._v(" "),s("h3",{attrs:{id:"rotation"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[a._v("#")]),a._v(" Rotation")]),a._v(" "),s("p",[s("RouterLink",{attrs:{to:"/general/axes/cartesian/#tick-configuration"}},[a._v("Specify a rotation value")]),a._v(" by setting "),s("code",[a._v("minRotation")]),a._v(" and "),s("code",[a._v("maxRotation")]),a._v(" to the same value, which avoids the chart from having to automatically determine a value to use.")],1),a._v(" "),s("h3",{attrs:{id:"sampling"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#sampling"}},[a._v("#")]),a._v(" Sampling")]),a._v(" "),s("p",[a._v("Set the "),s("RouterLink",{attrs:{to:"/general/axes/cartesian/#tick-configuration"}},[s("code",[a._v("ticks.sampleSize")])]),a._v(" option. This will determine how large your labels are by looking at only a subset of them in order to render axes more quickly. This works best if there is not a large variance in the size of your labels.")],1),a._v(" "),s("h2",{attrs:{id:"disable-animations"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#disable-animations"}},[a._v("#")]),a._v(" Disable Animations")]),a._v(" "),s("p",[a._v("If your charts have long render times, it is a good idea to disable animations. Doing so will mean that the chart needs to only be rendered once during an update instead of multiple times. This will have the effect of reducing CPU usage and improving general page performance.\nLine charts use Path2D caching when animations are disabled and Path2D is available.")]),a._v(" "),s("p",[a._v("To disable animations")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n animation"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("false")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h2",{attrs:{id:"specify-min-and-max-for-scales"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#specify-min-and-max-for-scales"}},[a._v("#")]),a._v(" Specify "),s("code",[a._v("min")]),a._v(" and "),s("code",[a._v("max")]),a._v(" for scales")]),a._v(" "),s("p",[a._v("If you specify the "),s("code",[a._v("min")]),a._v(" and "),s("code",[a._v("max")]),a._v(", the scale does not have to compute the range from the data.")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n scales"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n x"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'time'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n min"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Date")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'2019-01-01'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[a._v("valueOf")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n max"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Date")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'2019-12-31'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[a._v("valueOf")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'linear'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n min"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n max"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("100")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h2",{attrs:{id:"parallel-rendering-with-web-workers-chromium-only"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#parallel-rendering-with-web-workers-chromium-only"}},[a._v("#")]),a._v(" Parallel rendering with web workers (Chromium only)")]),a._v(" "),s("p",[a._v("Chromium (Chrome: version 69, Edge: 79, Opera: 56) added the ability to "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen",target:"_blank",rel:"noopener noreferrer"}},[a._v("transfer rendering control of a canvas"),s("OutboundLink")],1),a._v(" to a web worker. Web workers can use the "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas",target:"_blank",rel:"noopener noreferrer"}},[a._v("OffscreenCanvas API"),s("OutboundLink")],1),a._v(" to render from a web worker onto canvases in the DOM. Chart.js is a canvas-based library and supports rendering in a web worker - just pass an OffscreenCanvas into the Chart constructor instead of a Canvas element. Note that as of today, this API is only supported in Chromium based browsers.")]),a._v(" "),s("p",[a._v("By moving all Chart.js calculations onto a separate thread, the main thread can be freed up for other uses. Some tips and tricks when using Chart.js in a web worker:")]),a._v(" "),s("ul",[s("li",[a._v("Transferring data between threads can be expensive, so ensure that your config and data objects are as small as possible. Try generating them on the worker side if you can (workers can make HTTP requests!) or passing them to your worker as ArrayBuffers, which can be transferred quickly from one thread to another.")]),a._v(" "),s("li",[a._v("You can't transfer functions between threads, so if your config object includes functions you'll have to strip them out before transferring and then add them back later.")]),a._v(" "),s("li",[a._v("You can't access the DOM from worker threads, so Chart.js plugins that use the DOM (including any mouse interactions) will likely not work.")]),a._v(" "),s("li",[a._v("Ensure that you have a fallback if you support browsers other than the most modern Chromium browsers.")]),a._v(" "),s("li",[a._v("Resizing the chart must be done manually. See an example in the worker code below.")])]),a._v(" "),s("p",[a._v("Example main thread code:")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" config "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" canvas "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("HTMLCanvasElement")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" offscreenCanvas "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[a._v("transferControlToOffscreen")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" worker "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Worker")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'worker.js'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\nworker"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[a._v("postMessage")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("canvas"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" offscreenCanvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" config"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("[")]),a._v("offscreenCanvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("p",[a._v("Example worker code, in "),s("code",[a._v("worker.js")]),a._v(":")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token function-variable function"}},[a._v("onmessage")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[a._v("event")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" config"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" event"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),a._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" config"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// Resizing the chart must be done manually, since OffscreenCanvas does not include event listeners.")]),a._v("\n canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),a._v("width "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("100")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),a._v("height "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("100")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[a._v("resize")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h2",{attrs:{id:"line-charts"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#line-charts"}},[a._v("#")]),a._v(" Line Charts")]),a._v(" "),s("h3",{attrs:{id:"leave-bezier-curves-disabled"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#leave-bezier-curves-disabled"}},[a._v("#")]),a._v(" Leave Bézier curves disabled")]),a._v(" "),s("p",[a._v("If you are drawing lines on your chart, disabling Bézier curves will improve render times since drawing a straight line is more performant than a Bézier curve. Bézier curves are disabled by default.")]),a._v(" "),s("h3",{attrs:{id:"automatic-data-decimation-during-draw"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#automatic-data-decimation-during-draw"}},[a._v("#")]),a._v(" Automatic data decimation during draw")]),a._v(" "),s("p",[a._v("Line element will automatically decimate data, when "),s("code",[a._v("tension")]),a._v(", "),s("code",[a._v("stepped")]),a._v(", and "),s("code",[a._v("borderDash")]),a._v(" are left set to their default values ("),s("code",[a._v("false")]),a._v(", "),s("code",[a._v("0")]),a._v(", and "),s("code",[a._v("[]")]),a._v(" respectively). This improves rendering speed by skipping drawing of invisible line segments.")]),a._v(" "),s("h3",{attrs:{id:"enable-spangaps"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#enable-spangaps"}},[a._v("#")]),a._v(" Enable spanGaps")]),a._v(" "),s("p",[a._v("If you have a lot of data points, it can be more performant to enable "),s("code",[a._v("spanGaps")]),a._v(". This disables segmentation of the line, which can be an unneeded step.")]),a._v(" "),s("p",[a._v("To enable "),s("code",[a._v("spanGaps")]),a._v(":")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n spanGaps"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("true")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// enable for a single dataset")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("]")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n spanGaps"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("true")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// enable for all datasets")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h3",{attrs:{id:"disable-line-drawing"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#disable-line-drawing"}},[a._v("#")]),a._v(" Disable Line Drawing")]),a._v(" "),s("p",[a._v("If you have a lot of data points, it can be more performant to disable rendering of the line for a dataset and only draw points. Doing this means that there is less to draw on the canvas which will improve render performance.")]),a._v(" "),s("p",[a._v("To disable lines:")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n showLine"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("false")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// disable for a single dataset")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("]")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n showLine"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("false")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// disable for all datasets")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h3",{attrs:{id:"disable-point-drawing"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#disable-point-drawing"}},[a._v("#")]),a._v(" Disable Point Drawing")]),a._v(" "),s("p",[a._v("If you have a lot of data points, it can be more performant to disable rendering of the points for a dataset and only draw line. Doing this means that there is less to draw on the canvas which will improve render performance.")]),a._v(" "),s("p",[a._v("To disable point drawing:")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n pointRadius"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("0")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// disable for a single dataset")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("]")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n line"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n pointRadius"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("0")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// disable for all `'line'` datasets")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n elements"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n point"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n radius"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("0")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// default to disabled in all datasets")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h2",{attrs:{id:"when-transpiling-with-babel-consider-using-loose-mode"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#when-transpiling-with-babel-consider-using-loose-mode"}},[a._v("#")]),a._v(" When transpiling with Babel, consider using "),s("code",[a._v("loose")]),a._v(" mode")]),a._v(" "),s("p",[a._v("Babel 7.9 changed the way classes are constructed. It is slow, unless used with "),s("code",[a._v("loose")]),a._v(" mode.\n"),s("a",{attrs:{href:"https://github.com/babel/babel/issues/11356",target:"_blank",rel:"noopener noreferrer"}},[a._v("More information"),s("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/17.9899e86e.js b/docs/latest/assets/js/17.9899e86e.js new file mode 100644 index 0000000000..739c3fc169 --- /dev/null +++ b/docs/latest/assets/js/17.9899e86e.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{341:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-domplatform"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-domplatform"}},[t._v("#")]),t._v(" Class: DomPlatform")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[a("em",[t._v("BasePlatform")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("DomPlatform")])])])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new DomPlatform")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/domplatform.html"}},[a("em",[t._v("DomPlatform")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/domplatform.html"}},[a("em",[t._v("DomPlatform")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"acquirecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#acquirecontext"}},[t._v("#")]),t._v(" acquireContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("acquireContext")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("options?")]),t._v(": CanvasRenderingContext2DSettings): CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Called at chart construction time, returns a context2d instance implementing\nthe "),a("a",{attrs:{href:"https://www.w3.org/TR/2dcontext/",target:"_blank",rel:"noopener noreferrer"}},[t._v("W3C Canvas 2D Context API standard"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas from which to acquire context (platform specific)")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2DSettings")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart options")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1907",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1907"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addeventlistener"}},[t._v("#")]),t._v(" addEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Registers the specified listener on the given chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to listen for event")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to listen for")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Receives a notification (an object that implements the "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(" interface) when an event of the specified type occurs.")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1925",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1925"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdevicepixelratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdevicepixelratio"}},[t._v("#")]),t._v(" getDevicePixelRatio")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDevicePixelRatio")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("the current devicePixelRatio of the device this platform is connected to.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1936",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1936"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaximumsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaximumsize"}},[t._v("#")]),t._v(" getMaximumSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMaximumSize")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("width?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("aspectRatio?")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas for which to calculate the maximum size")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("aspectRatio?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("the maximum size available.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1944",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1944"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isattached"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isattached"}},[t._v("#")]),t._v(" isAttached")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isAttached")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the canvas is attached to the platform, false if not.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1949",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1949"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"releasecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#releasecontext"}},[t._v("#")]),t._v(" releaseContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("releaseContext")]),t._v("("),a("code",[t._v("context")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Called at chart destruction time, releases any resources associated to the context\npreviously returned by the acquireContext() method.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("context")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The context2d instance")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the method succeeded, else false")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1917",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1917"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removeeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removeeventlistener"}},[t._v("#")]),t._v(" removeEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Removes the specified listener previously registered with addEventListener.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to remove the listener")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to remove")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The listener function to remove from the event target.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1932",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1932"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/17.a7672df0.js b/docs/latest/assets/js/17.a7672df0.js deleted file mode 100644 index fe18c82492..0000000000 --- a/docs/latest/assets/js/17.a7672df0.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{344:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-domplatform"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-domplatform"}},[t._v("#")]),t._v(" Class: DomPlatform")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[a("em",[t._v("BasePlatform")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("DomPlatform")])])])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new DomPlatform")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/domplatform.html"}},[a("em",[t._v("DomPlatform")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/domplatform.html"}},[a("em",[t._v("DomPlatform")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"acquirecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#acquirecontext"}},[t._v("#")]),t._v(" acquireContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("acquireContext")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("options?")]),t._v(": CanvasRenderingContext2DSettings): CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Called at chart construction time, returns a context2d instance implementing\nthe "),a("a",{attrs:{href:"https://www.w3.org/TR/2dcontext/",target:"_blank",rel:"noopener noreferrer"}},[t._v("W3C Canvas 2D Context API standard"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas from which to acquire context (platform specific)")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2DSettings")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart options")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1907",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1907"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addeventlistener"}},[t._v("#")]),t._v(" addEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Registers the specified listener on the given chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to listen for event")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to listen for")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Receives a notification (an object that implements the "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(" interface) when an event of the specified type occurs.")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1925",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1925"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdevicepixelratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdevicepixelratio"}},[t._v("#")]),t._v(" getDevicePixelRatio")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDevicePixelRatio")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("the current devicePixelRatio of the device this platform is connected to.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1936",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1936"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaximumsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaximumsize"}},[t._v("#")]),t._v(" getMaximumSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMaximumSize")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("width?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("aspectRatio?")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas for which to calculate the maximum size")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("aspectRatio?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("the maximum size available.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1944",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1944"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isattached"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isattached"}},[t._v("#")]),t._v(" isAttached")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isAttached")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the canvas is attached to the platform, false if not.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1949",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1949"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"releasecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#releasecontext"}},[t._v("#")]),t._v(" releaseContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("releaseContext")]),t._v("("),a("code",[t._v("context")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Called at chart destruction time, releases any resources associated to the context\npreviously returned by the acquireContext() method.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("context")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The context2d instance")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the method succeeded, else false")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1917",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1917"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removeeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removeeventlistener"}},[t._v("#")]),t._v(" removeEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Removes the specified listener previously registered with addEventListener.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to remove the listener")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to remove")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The listener function to remove from the event target.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1932",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1932"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/170.bba58735.js b/docs/latest/assets/js/170.e9f5c38d.js similarity index 99% rename from docs/latest/assets/js/170.bba58735.js rename to docs/latest/assets/js/170.e9f5c38d.js index d9c0f66cdf..1a23e7078f 100644 --- a/docs/latest/assets/js/170.bba58735.js +++ b/docs/latest/assets/js/170.e9f5c38d.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[170],{496:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"getting-started"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#getting-started"}},[t._v("#")]),t._v(" Getting Started")]),t._v(" "),s("p",[t._v("Let's get started using Chart.js!")]),t._v(" "),s("p",[t._v("First, we need to have a canvas in our page. It's recommended to give the chart its own container for "),s("RouterLink",{attrs:{to:"/configuration/responsive.html"}},[t._v("responsiveness")]),t._v(".")],1),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("div")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("Now that we have a canvas we can use, we need to include Chart.js in our page.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("src")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("https://cdn.jsdelivr.net/npm/chart.js"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}}),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("Now, we can create a chart. We add a script to our page:")]),t._v(" "),s("chart-editor",{attrs:{code:"// \nconst labels = [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n];\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgb(255, 99, 132)',\n borderColor: 'rgb(255, 99, 132)',\n data: [0, 10, 5, 2, 20, 30, 45],\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data,\n options: {}\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),s("p",[t._v("Finally, render the chart using our configuration:")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}},[s("span",{pre:!0,attrs:{class:"token language-javascript"}},[t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// === include 'setup' then 'config' above ===")]),t._v("\n \n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("\n document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n config\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("It's that easy to get started using Chart.js! From here you can explore the many options that can help you customise your charts with scales, tooltips, labels, colors, custom actions, and much more.")]),t._v(" "),s("p",[t._v("All our examples are "),s("a",{attrs:{href:"https://www.chartjs.org/samples/latest/",target:"_blank",rel:"noopener noreferrer"}},[t._v("available online"),s("OutboundLink")],1),t._v(" but you can also download the "),s("code",[t._v("Chart.js.zip")]),t._v(" archive attached to every "),s("a",{attrs:{href:"https://github.com/chartjs/Chart.js/releases",target:"_blank",rel:"noopener noreferrer"}},[t._v("release"),s("OutboundLink")],1),t._v(" to experiment with our samples locally from the "),s("code",[t._v("/samples")]),t._v(" folder.")])],1)}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[170],{495:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"getting-started"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#getting-started"}},[t._v("#")]),t._v(" Getting Started")]),t._v(" "),s("p",[t._v("Let's get started using Chart.js!")]),t._v(" "),s("p",[t._v("First, we need to have a canvas in our page. It's recommended to give the chart its own container for "),s("RouterLink",{attrs:{to:"/configuration/responsive.html"}},[t._v("responsiveness")]),t._v(".")],1),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("div")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("Now that we have a canvas we can use, we need to include Chart.js in our page.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("src")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("https://cdn.jsdelivr.net/npm/chart.js"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}}),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("Now, we can create a chart. We add a script to our page:")]),t._v(" "),s("chart-editor",{attrs:{code:"// \nconst labels = [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n];\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgb(255, 99, 132)',\n borderColor: 'rgb(255, 99, 132)',\n data: [0, 10, 5, 2, 20, 30, 45],\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data,\n options: {}\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),s("p",[t._v("Finally, render the chart using our configuration:")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}},[s("span",{pre:!0,attrs:{class:"token language-javascript"}},[t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// === include 'setup' then 'config' above ===")]),t._v("\n \n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("\n document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n config\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("It's that easy to get started using Chart.js! From here you can explore the many options that can help you customise your charts with scales, tooltips, labels, colors, custom actions, and much more.")]),t._v(" "),s("p",[t._v("All our examples are "),s("a",{attrs:{href:"https://www.chartjs.org/samples/latest/",target:"_blank",rel:"noopener noreferrer"}},[t._v("available online"),s("OutboundLink")],1),t._v(" but you can also download the "),s("code",[t._v("Chart.js.zip")]),t._v(" archive attached to every "),s("a",{attrs:{href:"https://github.com/chartjs/Chart.js/releases",target:"_blank",rel:"noopener noreferrer"}},[t._v("release"),s("OutboundLink")],1),t._v(" to experiment with our samples locally from the "),s("code",[t._v("/samples")]),t._v(" folder.")])],1)}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/171.4d62757a.js b/docs/latest/assets/js/171.eb56ef96.js similarity index 100% rename from docs/latest/assets/js/171.4d62757a.js rename to docs/latest/assets/js/171.eb56ef96.js diff --git a/docs/latest/assets/js/172.991b5a96.js b/docs/latest/assets/js/172.4d5bf00c.js similarity index 99% rename from docs/latest/assets/js/172.991b5a96.js rename to docs/latest/assets/js/172.4d5bf00c.js index 8fdecf8682..206cbaf6fe 100644 --- a/docs/latest/assets/js/172.991b5a96.js +++ b/docs/latest/assets/js/172.4d5bf00c.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[172],{498:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"integration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#integration"}},[t._v("#")]),t._v(" Integration")]),t._v(" "),s("p",[t._v("Chart.js can be integrated with plain JavaScript or with different module loaders. The examples below show how to load Chart.js in different systems.")]),t._v(" "),s("h2",{attrs:{id:"script-tag"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#script-tag"}},[t._v("#")]),t._v(" Script Tag")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("src")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("path/to/chartjs/dist/chart.js"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}}),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}},[s("span",{pre:!0,attrs:{class:"token language-javascript"}},[t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("h2",{attrs:{id:"common-js"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#common-js"}},[t._v("#")]),t._v(" Common JS")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" Chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("require")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"bundlers-webpack-rollup-etc"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#bundlers-webpack-rollup-etc"}},[t._v("#")]),t._v(" Bundlers (Webpack, Rollup, etc.)")]),t._v(" "),s("p",[t._v("Chart.js 3 is tree-shakeable, so it is necessary to import and register the controllers, elements, scales and plugins you are going to use.")]),t._v(" "),s("p",[t._v("For all available imports see the example below.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n ArcElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LineElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BarElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PointElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BarController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BubbleController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n DoughnutController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LineController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PieController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PolarAreaController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n RadarController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n ScatterController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n CategoryScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LinearScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LogarithmicScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n RadialLinearScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n TimeScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n TimeSeriesScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Decimation"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Filler"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Legend"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Title"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Tooltip\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\nChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("register")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("\n ArcElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LineElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BarElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PointElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BarController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BubbleController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n DoughnutController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LineController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PieController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PolarAreaController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n RadarController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n ScatterController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n CategoryScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LinearScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LogarithmicScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n RadialLinearScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n TimeScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n TimeSeriesScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Decimation"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Filler"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Legend"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Title"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Tooltip\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("A short registration format is also available to quickly register everything.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" registerables "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("register")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),t._v("registerables"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("And finally there is an separate path to do just the above for you, in one line:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" Chart "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js/auto'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"require-js"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#require-js"}},[t._v("#")]),t._v(" Require JS")]),t._v(" "),s("p",[s("strong",[t._v("Important:")]),t._v(" RequireJS "),s("a",{attrs:{href:"https://requirejs.org/docs/commonjs.html#intro",target:"_blank",rel:"noopener noreferrer"}},[t._v("can "),s("strong",[t._v("not")]),t._v(" load CommonJS module as is"),s("OutboundLink")],1),t._v(", so be sure to require one of the UMD builds instead (i.e. "),s("code",[t._v("dist/chart.js")]),t._v(", "),s("code",[t._v("dist/chart.min.js")]),t._v(", etc.).")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token function"}},[t._v("require")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'path/to/chartjs/dist/chart.min.js'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[s("strong",[t._v("Note:")]),t._v(" in order to use the time scale, you need to make sure "),s("a",{attrs:{href:"https://github.com/chartjs/awesome#adapters",target:"_blank",rel:"noopener noreferrer"}},[t._v("one of the available date adapters"),s("OutboundLink")],1),t._v(" and corresponding date library are fully loaded "),s("strong",[t._v("after")]),t._v(" requiring Chart.js. For this you can use nested requires:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token function"}},[t._v("require")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chartjs'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("require")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'moment'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("require")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chartjs-adapter-moment'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[172],{496:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"integration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#integration"}},[t._v("#")]),t._v(" Integration")]),t._v(" "),s("p",[t._v("Chart.js can be integrated with plain JavaScript or with different module loaders. The examples below show how to load Chart.js in different systems.")]),t._v(" "),s("h2",{attrs:{id:"script-tag"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#script-tag"}},[t._v("#")]),t._v(" Script Tag")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("src")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("path/to/chartjs/dist/chart.js"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}}),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}},[s("span",{pre:!0,attrs:{class:"token language-javascript"}},[t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("h2",{attrs:{id:"common-js"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#common-js"}},[t._v("#")]),t._v(" Common JS")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" Chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("require")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"bundlers-webpack-rollup-etc"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#bundlers-webpack-rollup-etc"}},[t._v("#")]),t._v(" Bundlers (Webpack, Rollup, etc.)")]),t._v(" "),s("p",[t._v("Chart.js 3 is tree-shakeable, so it is necessary to import and register the controllers, elements, scales and plugins you are going to use.")]),t._v(" "),s("p",[t._v("For all available imports see the example below.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n ArcElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LineElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BarElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PointElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BarController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BubbleController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n DoughnutController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LineController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PieController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PolarAreaController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n RadarController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n ScatterController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n CategoryScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LinearScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LogarithmicScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n RadialLinearScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n TimeScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n TimeSeriesScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Decimation"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Filler"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Legend"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Title"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Tooltip\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\nChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("register")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("\n ArcElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LineElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BarElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PointElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BarController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BubbleController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n DoughnutController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LineController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PieController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PolarAreaController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n RadarController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n ScatterController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n CategoryScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LinearScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LogarithmicScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n RadialLinearScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n TimeScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n TimeSeriesScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Decimation"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Filler"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Legend"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Title"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Tooltip\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("A short registration format is also available to quickly register everything.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" registerables "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("register")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),t._v("registerables"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("And finally there is an separate path to do just the above for you, in one line:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" Chart "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js/auto'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"require-js"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#require-js"}},[t._v("#")]),t._v(" Require JS")]),t._v(" "),s("p",[s("strong",[t._v("Important:")]),t._v(" RequireJS "),s("a",{attrs:{href:"https://requirejs.org/docs/commonjs.html#intro",target:"_blank",rel:"noopener noreferrer"}},[t._v("can "),s("strong",[t._v("not")]),t._v(" load CommonJS module as is"),s("OutboundLink")],1),t._v(", so be sure to require one of the UMD builds instead (i.e. "),s("code",[t._v("dist/chart.js")]),t._v(", "),s("code",[t._v("dist/chart.min.js")]),t._v(", etc.).")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token function"}},[t._v("require")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'path/to/chartjs/dist/chart.min.js'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[s("strong",[t._v("Note:")]),t._v(" in order to use the time scale, you need to make sure "),s("a",{attrs:{href:"https://github.com/chartjs/awesome#adapters",target:"_blank",rel:"noopener noreferrer"}},[t._v("one of the available date adapters"),s("OutboundLink")],1),t._v(" and corresponding date library are fully loaded "),s("strong",[t._v("after")]),t._v(" requiring Chart.js. For this you can use nested requires:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token function"}},[t._v("require")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chartjs'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("require")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'moment'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("require")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chartjs-adapter-moment'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/173.f1af4af7.js b/docs/latest/assets/js/173.887a5d68.js similarity index 99% rename from docs/latest/assets/js/173.f1af4af7.js rename to docs/latest/assets/js/173.887a5d68.js index 5d6a641491..2355b05fb7 100644 --- a/docs/latest/assets/js/173.f1af4af7.js +++ b/docs/latest/assets/js/173.887a5d68.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[173],{499:function(t,a,s){"use strict";s.r(a);var n=s(7),r=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"usage"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#usage"}},[t._v("#")]),t._v(" Usage")]),t._v(" "),s("p",[t._v("Chart.js can be used with ES6 modules, plain JavaScript, and module loaders.")]),t._v(" "),s("h2",{attrs:{id:"creating-a-chart"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#creating-a-chart"}},[t._v("#")]),t._v(" Creating a Chart")]),t._v(" "),s("p",[t._v("To create a chart, we need to instantiate the "),s("code",[t._v("Chart")]),t._v(" class. To do this, we need to pass in the node, jQuery instance, or 2d context of the canvas of where we want to draw the chart. Here's an example.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Any of the following formats may be used")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getContext")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'2d'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("$")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("Once you have the element or context, you're ready to instantiate a pre-defined chart-type or create your own!")]),t._v(" "),s("p",[t._v("The following example instantiates a bar chart showing the number of votes for different colors and the y-axis starting at 0.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}},[s("span",{pre:!0,attrs:{class:"token language-javascript"}},[t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Red'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Blue'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Yellow'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Green'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Purple'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Orange'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'# of Votes'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("12")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("19")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("3")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("5")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("3")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n backgroundColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 99, 132, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(54, 162, 235, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 206, 86, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(75, 192, 192, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(153, 102, 255, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 159, 64, 0.2)'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 99, 132, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(54, 162, 235, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 206, 86, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(75, 192, 192, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(153, 102, 255, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 159, 64, 1)'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderWidth"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n beginAtZero"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[173],{498:function(t,a,s){"use strict";s.r(a);var n=s(7),r=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"usage"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#usage"}},[t._v("#")]),t._v(" Usage")]),t._v(" "),s("p",[t._v("Chart.js can be used with ES6 modules, plain JavaScript, and module loaders.")]),t._v(" "),s("h2",{attrs:{id:"creating-a-chart"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#creating-a-chart"}},[t._v("#")]),t._v(" Creating a Chart")]),t._v(" "),s("p",[t._v("To create a chart, we need to instantiate the "),s("code",[t._v("Chart")]),t._v(" class. To do this, we need to pass in the node, jQuery instance, or 2d context of the canvas of where we want to draw the chart. Here's an example.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Any of the following formats may be used")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getContext")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'2d'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("$")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("Once you have the element or context, you're ready to instantiate a pre-defined chart-type or create your own!")]),t._v(" "),s("p",[t._v("The following example instantiates a bar chart showing the number of votes for different colors and the y-axis starting at 0.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}},[s("span",{pre:!0,attrs:{class:"token language-javascript"}},[t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Red'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Blue'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Yellow'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Green'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Purple'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Orange'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'# of Votes'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("12")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("19")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("3")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("5")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("3")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n backgroundColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 99, 132, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(54, 162, 235, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 206, 86, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(75, 192, 192, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(153, 102, 255, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 159, 64, 0.2)'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 99, 132, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(54, 162, 235, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 206, 86, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(75, 192, 192, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(153, 102, 255, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 159, 64, 1)'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderWidth"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n beginAtZero"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/174.a560ad71.js b/docs/latest/assets/js/174.c5e90344.js similarity index 99% rename from docs/latest/assets/js/174.a560ad71.js rename to docs/latest/assets/js/174.c5e90344.js index 6ee3c7d2f1..e9df8863b7 100644 --- a/docs/latest/assets/js/174.a560ad71.js +++ b/docs/latest/assets/js/174.c5e90344.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[174],{500:function(e,t,a){"use strict";a.r(t);var o=a(7),s=Object(o.a)({},(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[a("h1",{attrs:{id:"_3-x-migration-guide"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_3-x-migration-guide"}},[e._v("#")]),e._v(" 3.x Migration Guide")]),e._v(" "),a("p",[e._v("Chart.js 3.0 introduces a number of breaking changes. Chart.js 2.0 was released in April 2016. In the years since then, as Chart.js has grown in popularity and feature set, we've learned some lessons about how to better create a charting library. In order to improve performance, offer new features, and improve maintainability, it was necessary to break backwards compatibility, but we aimed to do so only when worth the benefit. Some major highlights of v3 include:")]),e._v(" "),a("ul",[a("li",[e._v("Large "),a("RouterLink",{attrs:{to:"/general/performance.html"}},[e._v("performance")]),e._v(" improvements including the ability to skip data parsing and render charts in parallel via webworkers")],1),e._v(" "),a("li",[e._v("Additional configurability and scriptable options with better defaults")]),e._v(" "),a("li",[e._v("Completely rewritten animation system")]),e._v(" "),a("li",[e._v("Rewritten filler plugin with numerous bug fixes")]),e._v(" "),a("li",[e._v("Documentation migrated from GitBook to Vuepress")]),e._v(" "),a("li",[e._v("API documentation generated and verified by TypeDoc")]),e._v(" "),a("li",[e._v("No more CSS injection")]),e._v(" "),a("li",[e._v("Tons of bug fixes")]),e._v(" "),a("li",[e._v("Tree shaking")])]),e._v(" "),a("h2",{attrs:{id:"end-user-migration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#end-user-migration"}},[e._v("#")]),e._v(" End user migration")]),e._v(" "),a("h3",{attrs:{id:"setup-and-installation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setup-and-installation"}},[e._v("#")]),e._v(" Setup and installation")]),e._v(" "),a("ul",[a("li",[e._v("Distributed files are now in lower case. For example: "),a("code",[e._v("dist/chart.js")]),e._v(".")]),e._v(" "),a("li",[e._v("Chart.js is no longer providing the "),a("code",[e._v("Chart.bundle.js")]),e._v(" and "),a("code",[e._v("Chart.bundle.min.js")]),e._v(". Please see the "),a("RouterLink",{attrs:{to:"/getting-started/installation.html"}},[e._v("installation")]),e._v(" and "),a("RouterLink",{attrs:{to:"/getting-started/integration.html"}},[e._v("integration")]),e._v(" docs for details on the recommended way to setup Chart.js if you were using these builds.")],1),e._v(" "),a("li",[a("code",[e._v("moment")]),e._v(" is no longer specified as an npm dependency. If you are using the "),a("code",[e._v("time")]),e._v(" or "),a("code",[e._v("timeseries")]),e._v(" scales, you must include one of "),a("a",{attrs:{href:"https://github.com/chartjs/awesome#adapters",target:"_blank",rel:"noopener noreferrer"}},[e._v("the available adapters"),a("OutboundLink")],1),e._v(" and corresponding date library. You no longer need to exclude moment from your build.")]),e._v(" "),a("li",[e._v("The "),a("code",[e._v("Chart")]),e._v(" constructor will throw an error if the canvas/context provided is already in use")]),e._v(" "),a("li",[e._v("Chart.js 3 is tree-shakeable. So if you are using it as an "),a("code",[e._v("npm")]),e._v(" module in a project and want to make use of this feature, you need to import and register the controllers, elements, scales and plugins you want to use, for a list of all the available items to import see "),a("RouterLink",{attrs:{to:"/getting-started/integration.html#bundlers-webpack-rollup-etc"}},[e._v("integration")]),e._v(". You will not have to call "),a("code",[e._v("register")]),e._v(" if importing Chart.js via a "),a("code",[e._v("script")]),e._v(" tag or from the "),a("RouterLink",{attrs:{to:"/getting-started/integration.html#bundlers-webpack-rollup-etc"}},[a("code",[e._v("auto")])]),e._v(" register path as an "),a("code",[e._v("npm")]),e._v(" module, in this case you will not get the tree shaking benefits. Here is an example of registering components:")],1)]),e._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("import")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v(" Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v(" LineController"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v(" LineElement"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v(" PointElement"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v(" LinearScale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v(" Title "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("from")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token template-string"}},[a("span",{pre:!0,attrs:{class:"token template-punctuation string"}},[e._v("`")]),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("chart.js")]),a("span",{pre:!0,attrs:{class:"token template-punctuation string"}},[e._v("`")])]),e._v("\n\nChart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("register")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),e._v("LineController"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v(" LineElement"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v(" PointElement"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v(" LinearScale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v(" Title"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v("\n\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("const")]),e._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v("=")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("new")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[e._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),e._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[e._v("// data: ...")]),e._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n plugins"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n title"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[e._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n text"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'Chart Title'")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'linear'")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n y"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'linear'")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),e._v("\n")])])]),a("h3",{attrs:{id:"chart-types"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-types"}},[e._v("#")]),e._v(" Chart types")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("horizontalBar")]),e._v(" chart type was removed. Horizontal bar charts can be configured using the new "),a("RouterLink",{attrs:{to:"/getting-started/charts/bar.html#horizontal-bar-chart"}},[a("code",[e._v("indexAxis")])]),e._v(" option")],1)]),e._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[e._v("#")]),e._v(" Options")]),e._v(" "),a("p",[e._v("A number of changes were made to the configuration options passed to the "),a("code",[e._v("Chart")]),e._v(" constructor. Those changes are documented below.")]),e._v(" "),a("h4",{attrs:{id:"generic-changes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#generic-changes"}},[e._v("#")]),e._v(" Generic changes")]),e._v(" "),a("ul",[a("li",[e._v("Indexable options are now looping. "),a("code",[e._v("backgroundColor: ['red', 'green']")]),e._v(" will result in alternating "),a("code",[e._v("'red'")]),e._v(" / "),a("code",[e._v("'green'")]),e._v(" if there are more than 2 data points.")]),e._v(" "),a("li",[e._v("The input properties of object data can now be freely specified, see "),a("RouterLink",{attrs:{to:"/general/data-structures.html"}},[e._v("data structures")]),e._v(" for details.")],1),e._v(" "),a("li",[e._v("Most options are resolved utilizing proxies, instead of merging with defaults. In addition to easily enabling different resolution routes for different contexts, it allows using other resolved options in scriptable options.\n"),a("ul",[a("li",[e._v("Options are by default scriptable and indexable, unless disabled for some reason.")]),e._v(" "),a("li",[e._v("Scriptable options receive a option reolver as second parameter for accessing other options in same context.")]),e._v(" "),a("li",[e._v("Resolution falls to upper scopes, if no match is found earlier. See "),a("RouterLink",{attrs:{to:"/getting-started/general/options.html"}},[e._v("options")]),e._v(" for details.")],1)])])]),e._v(" "),a("h4",{attrs:{id:"specific-changes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#specific-changes"}},[e._v("#")]),e._v(" Specific changes")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("elements.rectangle")]),e._v(" is now "),a("code",[e._v("elements.bar")])]),e._v(" "),a("li",[a("code",[e._v("hover.animationDuration")]),e._v(" is now configured in "),a("code",[e._v("animation.active.duration")])]),e._v(" "),a("li",[a("code",[e._v("responsiveAnimationDuration")]),e._v(" is now configured in "),a("code",[e._v("animation.resize.duration")])]),e._v(" "),a("li",[e._v("Polar area "),a("code",[e._v("elements.arc.angle")]),e._v(" is now configured in degrees instead of radians.")]),e._v(" "),a("li",[e._v("Polar area "),a("code",[e._v("startAngle")]),e._v(" option is now consistent with "),a("code",[e._v("Radar")]),e._v(", 0 is at top and value is in degrees. Default is changed from "),a("code",[e._v("-½π")]),e._v(" to "),a("code",[e._v("0")]),e._v(".")]),e._v(" "),a("li",[e._v("Doughnut "),a("code",[e._v("rotation")]),e._v(" option is now in degrees and 0 is at top. Default is changed from "),a("code",[e._v("-½π")]),e._v(" to "),a("code",[e._v("0")]),e._v(".")]),e._v(" "),a("li",[e._v("Doughnut "),a("code",[e._v("circumference")]),e._v(" option is now in degrees. Default is changed from "),a("code",[e._v("2π")]),e._v(" to "),a("code",[e._v("360")]),e._v(".")]),e._v(" "),a("li",[e._v("Doughnut "),a("code",[e._v("cutoutPercentage")]),e._v(" was renamed to "),a("code",[e._v("cutout")]),e._v("and accepts pixels as numer and percent as string ending with "),a("code",[e._v("%")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("scale")]),e._v(" option was removed in favor of "),a("code",[e._v("options.scales.r")]),e._v(" (or any other scale id, with "),a("code",[e._v("axis: 'r'")]),e._v(")")]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes")]),e._v(" arrays were removed. Scales are now configured directly to "),a("code",[e._v("options.scales")]),e._v(" object with the object key being the scale Id.")]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.barPercentage")]),e._v(" was moved to dataset option "),a("code",[e._v("barPercentage")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.barThickness")]),e._v(" was moved to dataset option "),a("code",[e._v("barThickness")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.categoryPercentage")]),e._v(" was moved to dataset option "),a("code",[e._v("categoryPercentage")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.maxBarThickness")]),e._v(" was moved to dataset option "),a("code",[e._v("maxBarThickness")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.minBarLength")]),e._v(" was moved to dataset option "),a("code",[e._v("minBarLength")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.scaleLabel")]),e._v(" was renamed to "),a("code",[e._v("scales[id].title")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.scaleLabel.labelString")]),e._v(" was renamed to "),a("code",[e._v("scales[id].title.text")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.ticks.beginAtZero")]),e._v(" was renamed to "),a("code",[e._v("scales[id].beginAtZero")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.ticks.max")]),e._v(" was renamed to "),a("code",[e._v("scales[id].max")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.ticks.min")]),e._v(" was renamed to "),a("code",[e._v("scales[id].min")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.ticks.reverse")]),e._v(" was renamed to "),a("code",[e._v("scales[id].reverse")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.ticks.suggestedMax")]),e._v(" was renamed to "),a("code",[e._v("scales[id].suggestedMax")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.ticks.suggestedMin")]),e._v(" was renamed to "),a("code",[e._v("scales[id].suggestedMin")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.ticks.unitStepSize")]),e._v(" was removed. Use "),a("code",[e._v("scales[id].ticks.stepSize")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.ticks.userCallback")]),e._v(" was renamed to "),a("code",[e._v("scales[id].ticks.callback")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.time.format")]),e._v(" was renamed to "),a("code",[e._v("scales[id].time.parser")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.time.max")]),e._v(" was renamed to "),a("code",[e._v("scales[id].max")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.time.min")]),e._v(" was renamed to "),a("code",[e._v("scales[id].min")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.zeroLine*")]),e._v(" options of axes were removed. Use scriptable scale options instead.")]),e._v(" "),a("li",[e._v("The dataset option "),a("code",[e._v("steppedLine")]),e._v(" was removed. Use "),a("code",[e._v("stepped")])]),e._v(" "),a("li",[e._v("The chart option "),a("code",[e._v("showLines")]),e._v(" was renamed to "),a("code",[e._v("showLine")]),e._v(" to match the dataset option.")]),e._v(" "),a("li",[e._v("The chart option "),a("code",[e._v("startAngle")]),e._v(" was moved to "),a("code",[e._v("radial")]),e._v(" scale options.")]),e._v(" "),a("li",[e._v("To override the platform class used in a chart instance, pass "),a("code",[e._v("platform: PlatformClass")]),e._v(" in the config object. Note that the class should be passed, not an instance of the class.")]),e._v(" "),a("li",[a("code",[e._v("aspectRatio")]),e._v(" defaults to 1 for doughnut, pie, polarArea, and radar charts")]),e._v(" "),a("li",[a("code",[e._v("TimeScale")]),e._v(" does not read "),a("code",[e._v("t")]),e._v(" from object data by default anymore. The default property is "),a("code",[e._v("x")]),e._v(" or "),a("code",[e._v("y")]),e._v(", depending on the orientation. See "),a("RouterLink",{attrs:{to:"/general/data-structures.html"}},[e._v("data structures")]),e._v(" for details on how to change the default.")],1),e._v(" "),a("li",[a("code",[e._v("tooltips")]),e._v(" namespace was renamed to "),a("code",[e._v("tooltip")]),e._v(" to match the plugin name")]),e._v(" "),a("li",[a("code",[e._v("legend")]),e._v(", "),a("code",[e._v("title")]),e._v(" and "),a("code",[e._v("tooltip")]),e._v(" namespaces were moved from "),a("code",[e._v("options")]),e._v(" to "),a("code",[e._v("options.plugins")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("tooltips.custom")]),e._v(" was renamed to "),a("code",[e._v("plugins.tooltip.external")])])]),e._v(" "),a("h4",{attrs:{id:"defaults"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defaults"}},[e._v("#")]),e._v(" Defaults")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("global")]),e._v(" namespace was removed from "),a("code",[e._v("defaults")]),e._v(". So "),a("code",[e._v("Chart.defaults.global")]),e._v(" is now "),a("code",[e._v("Chart.defaults")])]),e._v(" "),a("li",[e._v("Dataset controller defaults were relocate to "),a("code",[e._v("overrides")]),e._v(". For example "),a("code",[e._v("Chart.defaults.line")]),e._v(" is now "),a("code",[e._v("Chart.overrides.line")])]),e._v(" "),a("li",[a("code",[e._v("default")]),e._v(" prefix was removed from defaults. For example "),a("code",[e._v("Chart.defaults.global.defaultColor")]),e._v(" is now "),a("code",[e._v("Chart.defaults.color")])]),e._v(" "),a("li",[a("code",[e._v("defaultColor")]),e._v(" was split to "),a("code",[e._v("color")]),e._v(", "),a("code",[e._v("borderColor")]),e._v(" and "),a("code",[e._v("backgroundColor")])]),e._v(" "),a("li",[a("code",[e._v("defaultFontColor")]),e._v(" was renamed to "),a("code",[e._v("color")])]),e._v(" "),a("li",[a("code",[e._v("defaultFontFamily")]),e._v(" was renamed to "),a("code",[e._v("font.family")])]),e._v(" "),a("li",[a("code",[e._v("defaultFontSize")]),e._v(" was renamed to "),a("code",[e._v("font.size")])]),e._v(" "),a("li",[a("code",[e._v("defaultFontStyle")]),e._v(" was renamed to "),a("code",[e._v("font.style")])]),e._v(" "),a("li",[a("code",[e._v("defaultLineHeight")]),e._v(" was renamed to "),a("code",[e._v("font.lineHeight")])]),e._v(" "),a("li",[e._v("Horizontal Bar default tooltip mode was changed from "),a("code",[e._v("'index'")]),e._v(" to "),a("code",[e._v("'nearest'")]),e._v(" to match vertical bar charts")]),e._v(" "),a("li",[a("code",[e._v("legend")]),e._v(", "),a("code",[e._v("title")]),e._v(" and "),a("code",[e._v("tooltip")]),e._v(" namespaces were moved from "),a("code",[e._v("Chart.defaults")]),e._v(" to "),a("code",[e._v("Chart.defaults.plugins")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("elements.line.fill")]),e._v(" default changed from "),a("code",[e._v("true")]),e._v(" to "),a("code",[e._v("false")]),e._v(".")]),e._v(" "),a("li",[e._v("Line charts no longer override the default "),a("code",[e._v("interaction")]),e._v(" mode. Default is changed from "),a("code",[e._v("'index'")]),e._v(" to "),a("code",[e._v("'nearest'")]),e._v(".")])]),e._v(" "),a("h4",{attrs:{id:"scales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scales"}},[e._v("#")]),e._v(" Scales")]),e._v(" "),a("p",[e._v("The configuration options for scales is the largest change in v3. The "),a("code",[e._v("xAxes")]),e._v(" and "),a("code",[e._v("yAxes")]),e._v(" arrays were removed and axis options are individual scales now keyed by scale ID.")]),e._v(" "),a("p",[e._v("The v2 configuration below is shown with it's new v3 configuration")]),e._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[e._v("options"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n xAxes"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n id"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'x'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'time'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[e._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n title"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[e._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n text"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'Date'")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n ticks"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n major"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n enabled"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[e._v("true")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[e._v("font")]),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[e._v("context")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("if")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),e._v("context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("tick "),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v("&&")]),e._v(" context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("tick"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("major"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("return")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n weight"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'bold'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n color"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'#FF0000'")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n yAxes"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n id"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'y'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[e._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n title"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[e._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n text"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'value'")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("]")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n")])])]),a("p",[e._v("And now, in v3:")]),e._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[e._v("options"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'time'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[e._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n title"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[e._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n text"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'Date'")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n ticks"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n major"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n enabled"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[e._v("true")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[e._v("color")]),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[e._v("context")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v("=>")]),e._v(" context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("tick "),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v("&&")]),e._v(" context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("tick"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("major "),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v("&&")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'#FF0000'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[e._v("font")]),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[e._v("context")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("if")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),e._v("context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("tick "),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v("&&")]),e._v(" context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("tick"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("major"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("return")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n weight"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'bold'")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n y"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[e._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n title"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[e._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n text"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'value'")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n")])])]),a("ul",[a("li",[e._v("The time scale option "),a("code",[e._v("distribution: 'series'")]),e._v(" was removed and a new scale type "),a("code",[e._v("timeseries")]),e._v(" was introduced in its place")]),e._v(" "),a("li",[e._v("In the time scale, "),a("code",[e._v("autoSkip")]),e._v(" is now enabled by default for consistency with the other scales")])]),e._v(" "),a("h4",{attrs:{id:"animations"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[e._v("#")]),e._v(" Animations")]),e._v(" "),a("p",[e._v("Animation system was completely rewritten in Chart.js v3. Each property can now be animated separately. Please see "),a("RouterLink",{attrs:{to:"/configuration/animations.html"}},[e._v("animations")]),e._v(" docs for details.")],1),e._v(" "),a("h4",{attrs:{id:"customizability"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#customizability"}},[e._v("#")]),e._v(" Customizability")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("custom")]),e._v(" attribute of elements was removed. Please use scriptable options")]),e._v(" "),a("li",[e._v("The "),a("code",[e._v("hover")]),e._v(" property of scriptable options "),a("code",[e._v("context")]),e._v(" object was renamed to "),a("code",[e._v("active")]),e._v(" to align it with the datalabels plugin.")])]),e._v(" "),a("h4",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[e._v("#")]),e._v(" Interactions")]),e._v(" "),a("ul",[a("li",[e._v("To allow DRY configuration, a root options scope for common interaction options was added. "),a("code",[e._v("options.hover")]),e._v(" and "),a("code",[e._v("options.plugins.tooltip")]),e._v(" now both extend from "),a("code",[e._v("options.interaction")]),e._v(". Defaults are defined at "),a("code",[e._v("defaults.interaction")]),e._v(" level, so by default hover and tooltip interactions share the same mode etc.")]),e._v(" "),a("li",[a("code",[e._v("interactions")]),e._v(" are now limited to the chart area + allowed overflow")]),e._v(" "),a("li",[a("code",[e._v("{mode: 'label'}")]),e._v(" was replaced with "),a("code",[e._v("{mode: 'index'}")])]),e._v(" "),a("li",[a("code",[e._v("{mode: 'single'}")]),e._v(" was replaced with "),a("code",[e._v("{mode: 'nearest', intersect: true}")])]),e._v(" "),a("li",[a("code",[e._v("modes['X-axis']")]),e._v(" was replaced with "),a("code",[e._v("{mode: 'index', intersect: false}")])]),e._v(" "),a("li",[a("code",[e._v("options.onClick")]),e._v(" is now limited to the chart area")]),e._v(" "),a("li",[a("code",[e._v("options.onClick")]),e._v(" and "),a("code",[e._v("options.onHover")]),e._v(" now receive the "),a("code",[e._v("chart")]),e._v(" instance as a 3rd argument")]),e._v(" "),a("li",[a("code",[e._v("options.onHover")]),e._v(" now receives a wrapped "),a("code",[e._v("event")]),e._v(" as the first parameter. The previous first parameter value is accessible via "),a("code",[e._v("event.native")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("options.hover.onHover")]),e._v(" was removed, use "),a("code",[e._v("options.onHover")]),e._v(".")])]),e._v(" "),a("h4",{attrs:{id:"ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[e._v("#")]),e._v(" Ticks")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("options.gridLines")]),e._v(" was renamed to "),a("code",[e._v("options.grid")])]),e._v(" "),a("li",[a("code",[e._v("options.gridLines.offsetGridLines")]),e._v(" was renamed to "),a("code",[e._v("options.grid.offset")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("options.gridLines.tickMarkLength")]),e._v(" was renamed to "),a("code",[e._v("options.grid.tickLength")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("options.ticks.fixedStepSize")]),e._v(" is no longer used. Use "),a("code",[e._v("options.ticks.stepSize")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("options.ticks.major")]),e._v(" and "),a("code",[e._v("options.ticks.minor")]),e._v(" were replaced with scriptable options for tick fonts.")]),e._v(" "),a("li",[a("code",[e._v("Chart.Ticks.formatters.linear")]),e._v(" was renamed to "),a("code",[e._v("Chart.Ticks.formatters.numeric")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("options.ticks.backdropPaddingX")]),e._v(" and "),a("code",[e._v("options.ticks.backdropPaddingY")]),e._v(" were replaced with "),a("code",[e._v("options.ticks.backdropPadding")]),e._v(" in the radial linear scale.")])]),e._v(" "),a("h4",{attrs:{id:"tooltip"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltip"}},[e._v("#")]),e._v(" Tooltip")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("xLabel")]),e._v(" and "),a("code",[e._v("yLabel")]),e._v(" were removed. Please use "),a("code",[e._v("label")]),e._v(" and "),a("code",[e._v("formattedValue")])]),e._v(" "),a("li",[e._v("The "),a("code",[e._v("filter")]),e._v(" option will now be passed additional parameters when called and should have the method signature "),a("code",[e._v("function(tooltipItem, index, tooltipItems, data)")])]),e._v(" "),a("li",[e._v("The "),a("code",[e._v("custom")]),e._v(" callback now takes a context object that has "),a("code",[e._v("tooltip")]),e._v(" and "),a("code",[e._v("chart")]),e._v(" properties")]),e._v(" "),a("li",[e._v("All properties of tooltip model related to the tooltip options have been moved to reside within the "),a("code",[e._v("options")]),e._v(" property.")]),e._v(" "),a("li",[e._v("The callbacks no longer are given a "),a("code",[e._v("data")]),e._v(" parameter. The tooltip item parameter contains the chart and dataset instead")]),e._v(" "),a("li",[e._v("The tooltip item's "),a("code",[e._v("index")]),e._v(" parameter was renamed to "),a("code",[e._v("dataIndex")]),e._v(" and "),a("code",[e._v("value")]),e._v(" was renamed to "),a("code",[e._v("formattedValue")])]),e._v(" "),a("li",[e._v("The "),a("code",[e._v("xPadding")]),e._v(" and "),a("code",[e._v("yPadding")]),e._v(" options were merged into a single "),a("code",[e._v("padding")]),e._v(" object")])]),e._v(" "),a("h2",{attrs:{id:"developer-migration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#developer-migration"}},[e._v("#")]),e._v(" Developer migration")]),e._v(" "),a("p",[e._v("While the end-user migration for Chart.js 3 is fairly straight-forward, the developer migration can be more complicated. Please reach out for help in the #dev "),a("a",{attrs:{href:"https://chartjs-slack.herokuapp.com/",target:"_blank",rel:"noopener noreferrer"}},[e._v("Slack"),a("OutboundLink")],1),e._v(" channel if tips on migrating would be helpful.")]),e._v(" "),a("p",[e._v("Some of the biggest things that have changed:")]),e._v(" "),a("ul",[a("li",[e._v("There is a completely rewritten and more performant animation system.\n"),a("ul",[a("li",[a("code",[e._v("Element._model")]),e._v(" and "),a("code",[e._v("Element._view")]),e._v(" are no longer used and properties are now set directly on the elements. You will have to use the method "),a("code",[e._v("getProps")]),e._v(" to access these properties inside most methods such as "),a("code",[e._v("inXRange")]),e._v("/"),a("code",[e._v("inYRange")]),e._v(" and "),a("code",[e._v("getCenterPoint")]),e._v(". Please take a look at "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/tree/master/src/elements",target:"_blank",rel:"noopener noreferrer"}},[e._v("the Chart.js-provided elements"),a("OutboundLink")],1),e._v(" for examples.")]),e._v(" "),a("li",[e._v("When building the elements in a controller, it's now suggested to call "),a("code",[e._v("updateElement")]),e._v(" to provide the element properties. There are also methods such as "),a("code",[e._v("getSharedOptions")]),e._v(" and "),a("code",[e._v("includeOptions")]),e._v(" that have been added to skip redundant computation. Please take a look at "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/tree/master/src/controllers",target:"_blank",rel:"noopener noreferrer"}},[e._v("the Chart.js-provided controllers"),a("OutboundLink")],1),e._v(" for examples.")])])]),e._v(" "),a("li",[e._v("Scales introduced a new parsing API. This API takes user data and converts it into a more standard format. E.g. it allows users to provide numeric data as a "),a("code",[e._v("string")]),e._v(" and converts it to a "),a("code",[e._v("number")]),e._v(" where necessary. Previously this was done on the fly as charts were rendered. Now it's done up front with the ability to skip it for better performance if users provide data in the correct format. If you're using standard data format like "),a("code",[e._v("x")]),e._v("/"),a("code",[e._v("y")]),e._v(" you may not need to do anything. If you're using a custom data format you will have to override some of the parse methods in "),a("code",[e._v("core.datasetController.js")]),e._v(". An example can be found in "),a("a",{attrs:{href:"https://github.com/chartjs/chartjs-chart-financial",target:"_blank",rel:"noopener noreferrer"}},[e._v("chartjs-chart-financial"),a("OutboundLink")],1),e._v(", which uses an "),a("code",[e._v("{o, h, l, c}")]),e._v(" data format.")])]),e._v(" "),a("p",[e._v("A few changes were made to controllers that are more straight-forward, but will affect all controllers:")]),e._v(" "),a("ul",[a("li",[e._v("Options:\n"),a("ul",[a("li",[a("code",[e._v("global")]),e._v(" was removed from the defaults namespace as it was unnecessary and sometimes inconsistent")]),e._v(" "),a("li",[e._v("Dataset defaults are now under the chart type options instead of vice-versa. This was not able to be done when introduced in 2.x for backwards compatibility. Fixing it removes the biggest stumbling block that new chart developers encountered")]),e._v(" "),a("li",[e._v("Scale default options need to be updated as described in the end user migration section (e.g. "),a("code",[e._v("x")]),e._v(" instead of "),a("code",[e._v("xAxes")]),e._v(" and "),a("code",[e._v("y")]),e._v(" instead of "),a("code",[e._v("yAxes")]),e._v(")")])])]),e._v(" "),a("li",[a("code",[e._v("updateElement")]),e._v(" was changed to "),a("code",[e._v("updateElements")]),e._v(" and has a new method signature as described below. This provides performance enhancements such as allowing easier reuse of computations that are common to all elements and reducing the number of function calls")])]),e._v(" "),a("h3",{attrs:{id:"removed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removed"}},[e._v("#")]),e._v(" Removed")]),e._v(" "),a("p",[e._v("The following properties and methods were removed:")]),e._v(" "),a("h4",{attrs:{id:"removed-from-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removed-from-chart"}},[e._v("#")]),e._v(" Removed from Chart")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("Chart.animationService")])]),e._v(" "),a("li",[a("code",[e._v("Chart.active")])]),e._v(" "),a("li",[a("code",[e._v("Chart.borderWidth")])]),e._v(" "),a("li",[a("code",[e._v("Chart.chart.chart")])]),e._v(" "),a("li",[a("code",[e._v("Chart.Bar")]),e._v(". New charts are created via "),a("code",[e._v("new Chart")]),e._v(" and providing the appropriate "),a("code",[e._v("type")]),e._v(" parameter")]),e._v(" "),a("li",[a("code",[e._v("Chart.Bubble")]),e._v(". New charts are created via "),a("code",[e._v("new Chart")]),e._v(" and providing the appropriate "),a("code",[e._v("type")]),e._v(" parameter")]),e._v(" "),a("li",[a("code",[e._v("Chart.Chart")])]),e._v(" "),a("li",[a("code",[e._v("Chart.Controller")])]),e._v(" "),a("li",[a("code",[e._v("Chart.Doughnut")]),e._v(". New charts are created via "),a("code",[e._v("new Chart")]),e._v(" and providing the appropriate "),a("code",[e._v("type")]),e._v(" parameter")]),e._v(" "),a("li",[a("code",[e._v("Chart.innerRadius")]),e._v(" now lives on doughnut, pie, and polarArea controllers")]),e._v(" "),a("li",[a("code",[e._v("Chart.lastActive")])]),e._v(" "),a("li",[a("code",[e._v("Chart.Legend")]),e._v(" was moved to "),a("code",[e._v("Chart.plugins.legend._element")]),e._v(" and made private")]),e._v(" "),a("li",[a("code",[e._v("Chart.Line")]),e._v(". New charts are created via "),a("code",[e._v("new Chart")]),e._v(" and providing the appropriate "),a("code",[e._v("type")]),e._v(" parameter")]),e._v(" "),a("li",[a("code",[e._v("Chart.LinearScaleBase")]),e._v(" now must be imported and cannot be accessed off the "),a("code",[e._v("Chart")]),e._v(" object")]),e._v(" "),a("li",[a("code",[e._v("Chart.offsetX")])]),e._v(" "),a("li",[a("code",[e._v("Chart.offsetY")])]),e._v(" "),a("li",[a("code",[e._v("Chart.outerRadius")]),e._v(" now lives on doughnut, pie, and polarArea controllers")]),e._v(" "),a("li",[a("code",[e._v("Chart.plugins")]),e._v(" was replaced with "),a("code",[e._v("Chart.registry")]),e._v(". Plugin defaults are now in "),a("code",[e._v("Chart.defaults.plugins[id]")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("Chart.plugins.register")]),e._v(" was replaced by "),a("code",[e._v("Chart.register")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("Chart.PolarArea")]),e._v(". New charts are created via "),a("code",[e._v("new Chart")]),e._v(" and providing the appropriate "),a("code",[e._v("type")]),e._v(" parameter")]),e._v(" "),a("li",[a("code",[e._v("Chart.prototype.generateLegend")])]),e._v(" "),a("li",[a("code",[e._v("Chart.platform")]),e._v(". It only contained "),a("code",[e._v("disableCSSInjection")]),e._v(". CSS is never injected in v3.")]),e._v(" "),a("li",[a("code",[e._v("Chart.PluginBase")])]),e._v(" "),a("li",[a("code",[e._v("Chart.Radar")]),e._v(". New charts are created via "),a("code",[e._v("new Chart")]),e._v(" and providing the appropriate "),a("code",[e._v("type")]),e._v(" parameter")]),e._v(" "),a("li",[a("code",[e._v("Chart.radiusLength")])]),e._v(" "),a("li",[a("code",[e._v("Chart.scaleService")]),e._v(" was replaced with "),a("code",[e._v("Chart.registry")]),e._v(". Scale defaults are now in "),a("code",[e._v("Chart.defaults.scales[type]")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("Chart.Scatter")]),e._v(". New charts are created via "),a("code",[e._v("new Chart")]),e._v(" and providing the appropriate "),a("code",[e._v("type")]),e._v(" parameter")]),e._v(" "),a("li",[a("code",[e._v("Chart.types")])]),e._v(" "),a("li",[a("code",[e._v("Chart.Title")]),e._v(" was moved to "),a("code",[e._v("Chart.plugins.title._element")]),e._v(" and made private")]),e._v(" "),a("li",[a("code",[e._v("Chart.Tooltip")]),e._v(" is now provided by the tooltip plugin. The positioners can be accessed from "),a("code",[e._v("tooltipPlugin.positioners")])]),e._v(" "),a("li",[a("code",[e._v("ILayoutItem.minSize")])])]),e._v(" "),a("h4",{attrs:{id:"removed-from-dataset-controllers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removed-from-dataset-controllers"}},[e._v("#")]),e._v(" Removed from Dataset Controllers")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("BarController.getDatasetMeta().bar")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.addElementAndReset")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.createMetaData")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.createMetaDataset")])]),e._v(" "),a("li",[a("code",[e._v("DoughnutController.getRingIndex")])])]),e._v(" "),a("h4",{attrs:{id:"removed-from-elements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removed-from-elements"}},[e._v("#")]),e._v(" Removed from Elements")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("Element.getArea")])]),e._v(" "),a("li",[a("code",[e._v("Element.height")])]),e._v(" "),a("li",[a("code",[e._v("Element.hidden")]),e._v(" was replaced by chart level status, usable with "),a("code",[e._v("getDataVisibility(index)")]),e._v(" / "),a("code",[e._v("toggleDataVisibility(index)")])]),e._v(" "),a("li",[a("code",[e._v("Element.initialize")])]),e._v(" "),a("li",[a("code",[e._v("Element.inLabelRange")])]),e._v(" "),a("li",[a("code",[e._v("Line.calculatePointY")])])]),e._v(" "),a("h4",{attrs:{id:"removed-from-helpers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removed-from-helpers"}},[e._v("#")]),e._v(" Removed from Helpers")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("helpers.addEvent")])]),e._v(" "),a("li",[a("code",[e._v("helpers.aliasPixel")])]),e._v(" "),a("li",[a("code",[e._v("helpers.arrayEquals")])]),e._v(" "),a("li",[a("code",[e._v("helpers.configMerge")])]),e._v(" "),a("li",[a("code",[e._v("helpers.findIndex")])]),e._v(" "),a("li",[a("code",[e._v("helpers.findNextWhere")])]),e._v(" "),a("li",[a("code",[e._v("helpers.findPreviousWhere")])]),e._v(" "),a("li",[a("code",[e._v("helpers.extend")]),e._v(". Use "),a("code",[e._v("Object.assign")]),e._v(" instead")]),e._v(" "),a("li",[a("code",[e._v("helpers.getValueAtIndexOrDefault")]),e._v(". Use "),a("code",[e._v("helpers.resolve")]),e._v(" instead.")]),e._v(" "),a("li",[a("code",[e._v("helpers.indexOf")])]),e._v(" "),a("li",[a("code",[e._v("helpers.lineTo")])]),e._v(" "),a("li",[a("code",[e._v("helpers.longestText")]),e._v(" was made private")]),e._v(" "),a("li",[a("code",[e._v("helpers.max")])]),e._v(" "),a("li",[a("code",[e._v("helpers.measureText")]),e._v(" was made private")]),e._v(" "),a("li",[a("code",[e._v("helpers.min")])]),e._v(" "),a("li",[a("code",[e._v("helpers.nextItem")])]),e._v(" "),a("li",[a("code",[e._v("helpers.niceNum")])]),e._v(" "),a("li",[a("code",[e._v("helpers.numberOfLabelLines")])]),e._v(" "),a("li",[a("code",[e._v("helpers.previousItem")])]),e._v(" "),a("li",[a("code",[e._v("helpers.removeEvent")])]),e._v(" "),a("li",[a("code",[e._v("helpers.roundedRect")])]),e._v(" "),a("li",[a("code",[e._v("helpers.scaleMerge")])]),e._v(" "),a("li",[a("code",[e._v("helpers.where")])])]),e._v(" "),a("h4",{attrs:{id:"removed-from-layout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removed-from-layout"}},[e._v("#")]),e._v(" Removed from Layout")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("Layout.defaults")])])]),e._v(" "),a("h4",{attrs:{id:"removed-from-scales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removed-from-scales"}},[e._v("#")]),e._v(" Removed from Scales")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("LinearScaleBase.handleDirectionalChanges")])]),e._v(" "),a("li",[a("code",[e._v("LogarithmicScale.minNotZero")])]),e._v(" "),a("li",[a("code",[e._v("Scale.getRightValue")])]),e._v(" "),a("li",[a("code",[e._v("Scale.longestLabelWidth")])]),e._v(" "),a("li",[a("code",[e._v("Scale.longestTextCache")]),e._v(" is now private")]),e._v(" "),a("li",[a("code",[e._v("Scale.margins")]),e._v(" is now private")]),e._v(" "),a("li",[a("code",[e._v("Scale.mergeTicksOptions")])]),e._v(" "),a("li",[a("code",[e._v("Scale.ticksAsNumbers")])]),e._v(" "),a("li",[a("code",[e._v("Scale.tickValues")]),e._v(" is now private")]),e._v(" "),a("li",[a("code",[e._v("TimeScale.getLabelCapacity")]),e._v(" is now private")]),e._v(" "),a("li",[a("code",[e._v("TimeScale.tickFormatFunction")]),e._v(" is now private")])]),e._v(" "),a("h4",{attrs:{id:"removed-from-plugins-legend-title-and-tooltip"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removed-from-plugins-legend-title-and-tooltip"}},[e._v("#")]),e._v(" Removed from Plugins (Legend, Title, and Tooltip)")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("IPlugin.afterScaleUpdate")]),e._v(". Use "),a("code",[e._v("afterLayout")]),e._v(" instead")]),e._v(" "),a("li",[a("code",[e._v("Legend.margins")]),e._v(" is now private")]),e._v(" "),a("li",[e._v("Legend "),a("code",[e._v("onClick")]),e._v(", "),a("code",[e._v("onHover")]),e._v(", and "),a("code",[e._v("onLeave")]),e._v(" options now receive the legend as the 3rd argument in addition to implicitly via "),a("code",[e._v("this")])]),e._v(" "),a("li",[e._v("Legend "),a("code",[e._v("onClick")]),e._v(", "),a("code",[e._v("onHover")]),e._v(", and "),a("code",[e._v("onLeave")]),e._v(" options now receive a wrapped "),a("code",[e._v("event")]),e._v(" as the first parameter. The previous first parameter value is accessible via "),a("code",[e._v("event.native")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("Title.margins")]),e._v(" is now private")]),e._v(" "),a("li",[e._v("The tooltip item's "),a("code",[e._v("x")]),e._v(" and "),a("code",[e._v("y")]),e._v(" attributes were replaced by "),a("code",[e._v("element")]),e._v(". You can use "),a("code",[e._v("element.x")]),e._v(" and "),a("code",[e._v("element.y")]),e._v(" or "),a("code",[e._v("element.tooltipPosition()")]),e._v(" instead.")])]),e._v(" "),a("h4",{attrs:{id:"removal-of-public-apis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removal-of-public-apis"}},[e._v("#")]),e._v(" Removal of Public APIs")]),e._v(" "),a("p",[e._v("The following public APIs were removed.")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("getElementAtEvent")]),e._v(" is replaced with "),a("code",[e._v("chart.getElementsAtEventForMode(e, 'nearest', { intersect: true }, false)")])]),e._v(" "),a("li",[a("code",[e._v("getElementsAtEvent")]),e._v(" is replaced with "),a("code",[e._v("chart.getElementsAtEventForMode(e, 'index', { intersect: true }, false)")])]),e._v(" "),a("li",[a("code",[e._v("getElementsAtXAxis")]),e._v(" is replaced with "),a("code",[e._v("chart.getElementsAtEventForMode(e, 'index', { intersect: false }, false)")])]),e._v(" "),a("li",[a("code",[e._v("getDatasetAtEvent")]),e._v(" is replaced with "),a("code",[e._v("chart.getElementsAtEventForMode(e, 'dataset', { intersect: true }, false)")])])]),e._v(" "),a("h4",{attrs:{id:"removal-of-private-apis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removal-of-private-apis"}},[e._v("#")]),e._v(" Removal of private APIs")]),e._v(" "),a("p",[e._v("The following private APIs were removed.")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("Chart._bufferedRender")])]),e._v(" "),a("li",[a("code",[e._v("Chart._updating")])]),e._v(" "),a("li",[a("code",[e._v("Chart.data.datasets[datasetIndex]._meta")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController._getIndexScaleId")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController._getIndexScale")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController._getValueScaleId")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController._getValueScale")])]),e._v(" "),a("li",[a("code",[e._v("Element._ctx")])]),e._v(" "),a("li",[a("code",[e._v("Element._model")])]),e._v(" "),a("li",[a("code",[e._v("Element._view")])]),e._v(" "),a("li",[a("code",[e._v("LogarithmicScale._valueOffset")])]),e._v(" "),a("li",[a("code",[e._v("TimeScale.getPixelForOffset")])]),e._v(" "),a("li",[a("code",[e._v("TimeScale.getLabelWidth")])]),e._v(" "),a("li",[a("code",[e._v("Tooltip._lastActive")])])]),e._v(" "),a("h3",{attrs:{id:"renamed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#renamed"}},[e._v("#")]),e._v(" Renamed")]),e._v(" "),a("p",[e._v("The following properties were renamed during v3 development:")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("Chart.Animation.animationObject")]),e._v(" was renamed to "),a("code",[e._v("Chart.Animation")])]),e._v(" "),a("li",[a("code",[e._v("Chart.Animation.chartInstance")]),e._v(" was renamed to "),a("code",[e._v("Chart.Animation.chart")])]),e._v(" "),a("li",[a("code",[e._v("Chart.canvasHelpers")]),e._v(" was merged with "),a("code",[e._v("Chart.helpers")])]),e._v(" "),a("li",[a("code",[e._v("Chart.elements.Arc")]),e._v(" was renamed to "),a("code",[e._v("Chart.elements.ArcElement")])]),e._v(" "),a("li",[a("code",[e._v("Chart.elements.Line")]),e._v(" was renamed to "),a("code",[e._v("Chart.elements.LineElement")])]),e._v(" "),a("li",[a("code",[e._v("Chart.elements.Point")]),e._v(" was renamed to "),a("code",[e._v("Chart.elements.PointElement")])]),e._v(" "),a("li",[a("code",[e._v("Chart.elements.Rectangle")]),e._v(" was renamed to "),a("code",[e._v("Chart.elements.BarElement")])]),e._v(" "),a("li",[a("code",[e._v("Chart.layoutService")]),e._v(" was renamed to "),a("code",[e._v("Chart.layouts")])]),e._v(" "),a("li",[a("code",[e._v("Chart.pluginService")]),e._v(" was renamed to "),a("code",[e._v("Chart.plugins")])]),e._v(" "),a("li",[a("code",[e._v("helpers.callCallback")]),e._v(" was renamed to "),a("code",[e._v("helpers.callback")])]),e._v(" "),a("li",[a("code",[e._v("helpers.drawRoundedRectangle")]),e._v(" was renamed to "),a("code",[e._v("helpers.roundedRect")])]),e._v(" "),a("li",[a("code",[e._v("helpers.getValueOrDefault")]),e._v(" was renamed to "),a("code",[e._v("helpers.valueOrDefault")])]),e._v(" "),a("li",[a("code",[e._v("LayoutItem.fullWidth")]),e._v(" was renamed to "),a("code",[e._v("LayoutItem.fullSize")])]),e._v(" "),a("li",[a("code",[e._v("Point.controlPointPreviousX")]),e._v(" was renamed to "),a("code",[e._v("Point.cp1x")])]),e._v(" "),a("li",[a("code",[e._v("Point.controlPointPreviousY")]),e._v(" was renamed to "),a("code",[e._v("Point.cp1y")])]),e._v(" "),a("li",[a("code",[e._v("Point.controlPointNextX")]),e._v(" was renamed to "),a("code",[e._v("Point.cp2x")])]),e._v(" "),a("li",[a("code",[e._v("Point.controlPointNextY")]),e._v(" was renamed to "),a("code",[e._v("Point.cp2y")])]),e._v(" "),a("li",[a("code",[e._v("Scale.calculateTickRotation")]),e._v(" was renamed to "),a("code",[e._v("Scale.calculateLabelRotation")])]),e._v(" "),a("li",[a("code",[e._v("Tooltip.options.legendColorBackgroupd")]),e._v(" was renamed to "),a("code",[e._v("Tooltip.options.multiKeyBackground")])])]),e._v(" "),a("h4",{attrs:{id:"renamed-private-apis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#renamed-private-apis"}},[e._v("#")]),e._v(" Renamed private APIs")]),e._v(" "),a("p",[e._v("The private APIs listed below were renamed:")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("BarController.calculateBarIndexPixels")]),e._v(" was renamed to "),a("code",[e._v("BarController._calculateBarIndexPixels")])]),e._v(" "),a("li",[a("code",[e._v("BarController.calculateBarValuePixels")]),e._v(" was renamed to "),a("code",[e._v("BarController._calculateBarValuePixels")])]),e._v(" "),a("li",[a("code",[e._v("BarController.getStackCount")]),e._v(" was renamed to "),a("code",[e._v("BarController._getStackCount")])]),e._v(" "),a("li",[a("code",[e._v("BarController.getStackIndex")]),e._v(" was renamed to "),a("code",[e._v("BarController._getStackIndex")])]),e._v(" "),a("li",[a("code",[e._v("BarController.getRuler")]),e._v(" was renamed to "),a("code",[e._v("BarController._getRuler")])]),e._v(" "),a("li",[a("code",[e._v("Chart.destroyDatasetMeta")]),e._v(" was renamed to "),a("code",[e._v("Chart._destroyDatasetMeta")])]),e._v(" "),a("li",[a("code",[e._v("Chart.drawDataset")]),e._v(" was renamed to "),a("code",[e._v("Chart._drawDataset")])]),e._v(" "),a("li",[a("code",[e._v("Chart.drawDatasets")]),e._v(" was renamed to "),a("code",[e._v("Chart._drawDatasets")])]),e._v(" "),a("li",[a("code",[e._v("Chart.eventHandler")]),e._v(" was renamed to "),a("code",[e._v("Chart._eventHandler")])]),e._v(" "),a("li",[a("code",[e._v("Chart.handleEvent")]),e._v(" was renamed to "),a("code",[e._v("Chart._handleEvent")])]),e._v(" "),a("li",[a("code",[e._v("Chart.initialize")]),e._v(" was renamed to "),a("code",[e._v("Chart._initialize")])]),e._v(" "),a("li",[a("code",[e._v("Chart.resetElements")]),e._v(" was renamed to "),a("code",[e._v("Chart._resetElements")])]),e._v(" "),a("li",[a("code",[e._v("Chart.unbindEvents")]),e._v(" was renamed to "),a("code",[e._v("Chart._unbindEvents")])]),e._v(" "),a("li",[a("code",[e._v("Chart.updateDataset")]),e._v(" was renamed to "),a("code",[e._v("Chart._updateDataset")])]),e._v(" "),a("li",[a("code",[e._v("Chart.updateDatasets")]),e._v(" was renamed to "),a("code",[e._v("Chart._updateDatasets")])]),e._v(" "),a("li",[a("code",[e._v("Chart.updateLayout")]),e._v(" was renamed to "),a("code",[e._v("Chart._updateLayout")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.destroy")]),e._v(" was renamed to "),a("code",[e._v("DatasetController._destroy")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.insertElements")]),e._v(" was renamed to "),a("code",[e._v("DatasetController._insertElements")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.onDataPop")]),e._v(" was renamed to "),a("code",[e._v("DatasetController._onDataPop")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.onDataPush")]),e._v(" was renamed to "),a("code",[e._v("DatasetController._onDataPush")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.onDataShift")]),e._v(" was renamed to "),a("code",[e._v("DatasetController._onDataShift")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.onDataSplice")]),e._v(" was renamed to "),a("code",[e._v("DatasetController._onDataSplice")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.onDataUnshift")]),e._v(" was renamed to "),a("code",[e._v("DatasetController._onDataUnshift")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.removeElements")]),e._v(" was renamed to "),a("code",[e._v("DatasetController._removeElements")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.resyncElements")]),e._v(" was renamed to "),a("code",[e._v("DatasetController._resyncElements")])]),e._v(" "),a("li",[a("code",[e._v("LayoutItem.isFullWidth")]),e._v(" was renamed to "),a("code",[e._v("LayoutItem.isFullSize")])]),e._v(" "),a("li",[a("code",[e._v("RadialLinearScale.setReductions")]),e._v(" was renamed to "),a("code",[e._v("RadialLinearScale._setReductions")])]),e._v(" "),a("li",[a("code",[e._v("RadialLinearScale.pointLabels")]),e._v(" was renamed to "),a("code",[e._v("RadialLinearScale._pointLabels")])]),e._v(" "),a("li",[a("code",[e._v("Scale.handleMargins")]),e._v(" was renamed to "),a("code",[e._v("Scale._handleMargins")])])]),e._v(" "),a("h3",{attrs:{id:"changed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#changed"}},[e._v("#")]),e._v(" Changed")]),e._v(" "),a("p",[e._v("The APIs listed in this section have changed in signature or behaviour from version 2.")]),e._v(" "),a("h4",{attrs:{id:"changed-in-scales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#changed-in-scales"}},[e._v("#")]),e._v(" Changed in Scales")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("Scale.getLabelForIndex")]),e._v(" was replaced by "),a("code",[e._v("scale.getLabelForValue")])]),e._v(" "),a("li",[a("code",[e._v("Scale.getPixelForValue")]),e._v(" now has only one parameter. For the "),a("code",[e._v("TimeScale")]),e._v(" that parameter must be millis since the epoch")])]),e._v(" "),a("h5",{attrs:{id:"changed-in-ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#changed-in-ticks"}},[e._v("#")]),e._v(" Changed in Ticks")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("Scale.afterBuildTicks")]),e._v(" now has no parameters like the other callbacks")]),e._v(" "),a("li",[a("code",[e._v("Scale.buildTicks")]),e._v(" is now expected to return tick objects")]),e._v(" "),a("li",[a("code",[e._v("Scale.convertTicksToLabels")]),e._v(" was renamed to "),a("code",[e._v("generateTickLabels")]),e._v(". It is now expected to set the label property on the ticks given as input")]),e._v(" "),a("li",[a("code",[e._v("Scale.ticks")]),e._v(" now contains objects instead of strings")]),e._v(" "),a("li",[e._v("When the "),a("code",[e._v("autoSkip")]),e._v(" option is enabled, "),a("code",[e._v("Scale.ticks")]),e._v(" now contains only the non-skipped ticks instead of all ticks.")]),e._v(" "),a("li",[e._v("Ticks are now always generated in monotonically increasing order")])]),e._v(" "),a("h5",{attrs:{id:"changed-in-time-scale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#changed-in-time-scale"}},[e._v("#")]),e._v(" Changed in Time Scale")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("getValueForPixel")]),e._v(" now returns milliseconds since the epoch")])]),e._v(" "),a("h4",{attrs:{id:"changed-in-controllers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#changed-in-controllers"}},[e._v("#")]),e._v(" Changed in Controllers")]),e._v(" "),a("h5",{attrs:{id:"core-controller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#core-controller"}},[e._v("#")]),e._v(" Core Controller")]),e._v(" "),a("ul",[a("li",[e._v("The first parameter to "),a("code",[e._v("updateHoverStyle")]),e._v(" is now an array of objects containing the "),a("code",[e._v("element")]),e._v(", "),a("code",[e._v("datasetIndex")]),e._v(", and "),a("code",[e._v("index")])]),e._v(" "),a("li",[e._v("The signature or "),a("code",[e._v("resize")]),e._v(" changed, the first "),a("code",[e._v("silent")]),e._v(" parameter was removed.")])]),e._v(" "),a("h5",{attrs:{id:"dataset-controllers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-controllers"}},[e._v("#")]),e._v(" Dataset Controllers")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("updateElement")]),e._v(" was replaced with "),a("code",[e._v("updateElements")]),e._v(" now taking the elements to update, the "),a("code",[e._v("start")]),e._v(" index, "),a("code",[e._v("count")]),e._v(", and "),a("code",[e._v("mode")])]),e._v(" "),a("li",[a("code",[e._v("setHoverStyle")]),e._v(" and "),a("code",[e._v("removeHoverStyle")]),e._v(" now additionally take the "),a("code",[e._v("datasetIndex")]),e._v(" and "),a("code",[e._v("index")])])]),e._v(" "),a("h4",{attrs:{id:"changed-in-interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#changed-in-interactions"}},[e._v("#")]),e._v(" Changed in Interactions")]),e._v(" "),a("ul",[a("li",[e._v("Interaction mode methods now return an array of objects containing the "),a("code",[e._v("element")]),e._v(", "),a("code",[e._v("datasetIndex")]),e._v(", and "),a("code",[e._v("index")])])]),e._v(" "),a("h4",{attrs:{id:"changed-in-layout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#changed-in-layout"}},[e._v("#")]),e._v(" Changed in Layout")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("ILayoutItem.update")]),e._v(" no longer has a return value")])]),e._v(" "),a("h4",{attrs:{id:"changed-in-helpers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#changed-in-helpers"}},[e._v("#")]),e._v(" Changed in Helpers")]),e._v(" "),a("p",[e._v("All helpers are now exposed in a flat hierarchy, e.g., "),a("code",[e._v("Chart.helpers.canvas.clipArea")]),e._v(" -> "),a("code",[e._v("Chart.helpers.clipArea")])]),e._v(" "),a("h5",{attrs:{id:"canvas-helper"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#canvas-helper"}},[e._v("#")]),e._v(" Canvas Helper")]),e._v(" "),a("ul",[a("li",[e._v("The second parameter to "),a("code",[e._v("drawPoint")]),e._v(" is now the full options object, so "),a("code",[e._v("style")]),e._v(", "),a("code",[e._v("rotation")]),e._v(", and "),a("code",[e._v("radius")]),e._v(" are no longer passed explicitly")]),e._v(" "),a("li",[a("code",[e._v("helpers.getMaximumHeight")]),e._v(" was replaced by "),a("code",[e._v("helpers.dom.getMaximumSize")])]),e._v(" "),a("li",[a("code",[e._v("helpers.getMaximumWidth")]),e._v(" was replaced by "),a("code",[e._v("helpers.dom.getMaximumSize")])]),e._v(" "),a("li",[a("code",[e._v("helpers.clear")]),e._v(" was renamed to "),a("code",[e._v("helpers.clearCanvas")]),e._v(" and now takes "),a("code",[e._v("canvas")]),e._v(" and optionally "),a("code",[e._v("ctx")]),e._v(" as parameter(s).")]),e._v(" "),a("li",[a("code",[e._v("helpers.retinaScale")]),e._v(" accepts optional third parameter "),a("code",[e._v("forceStyle")]),e._v(", which forces overriding current canvas style. "),a("code",[e._v("forceRatio")]),e._v(" no longer falls back to "),a("code",[e._v("window.devicePixelRatio")]),e._v(", instead it defaults to "),a("code",[e._v("1")]),e._v(".")])]),e._v(" "),a("h4",{attrs:{id:"changed-in-platform"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#changed-in-platform"}},[e._v("#")]),e._v(" Changed in Platform")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("Chart.platform")]),e._v(" is no longer the platform object used by charts. Every chart instance now has a separate platform instance.")]),e._v(" "),a("li",[a("code",[e._v("Chart.platforms")]),e._v(" is an object that contains two usable platform classes, "),a("code",[e._v("BasicPlatform")]),e._v(" and "),a("code",[e._v("DomPlatform")]),e._v(". It also contains "),a("code",[e._v("BasePlatform")]),e._v(", a class that all platforms must extend from.")]),e._v(" "),a("li",[e._v("If the canvas passed in is an instance of "),a("code",[e._v("OffscreenCanvas")]),e._v(", the "),a("code",[e._v("BasicPlatform")]),e._v(" is automatically used.")]),e._v(" "),a("li",[a("code",[e._v("isAttached")]),e._v(" method was added to platform.")])]),e._v(" "),a("h4",{attrs:{id:"changed-in-iplugin-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#changed-in-iplugin-interface"}},[e._v("#")]),e._v(" Changed in IPlugin interface")]),e._v(" "),a("ul",[a("li",[e._v("All plugin hooks have unified signature with 3 arguments: "),a("code",[e._v("chart")]),e._v(", "),a("code",[e._v("args")]),e._v(" and "),a("code",[e._v("options")]),e._v(". This means change in signature for these hooks: "),a("code",[e._v("beforeInit")]),e._v(", "),a("code",[e._v("afterInit")]),e._v(", "),a("code",[e._v("reset")]),e._v(", "),a("code",[e._v("beforeLayout")]),e._v(", "),a("code",[e._v("afterLayout")]),e._v(", "),a("code",[e._v("beforeRender")]),e._v(", "),a("code",[e._v("afterRender")]),e._v(", "),a("code",[e._v("beforeDraw")]),e._v(", "),a("code",[e._v("afterDraw")]),e._v(", "),a("code",[e._v("beforeDatasetsDraw")]),e._v(", "),a("code",[e._v("afterDatasetsDraw")]),e._v(", "),a("code",[e._v("beforeEvent")]),e._v(", "),a("code",[e._v("afterEvent")]),e._v(", "),a("code",[e._v("resize")]),e._v(", "),a("code",[e._v("destroy")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("afterDatasetsUpdate")]),e._v(", "),a("code",[e._v("afterUpdate")]),e._v(", "),a("code",[e._v("beforeDatasetsUpdate")]),e._v(", and "),a("code",[e._v("beforeUpdate")]),e._v(" now receive "),a("code",[e._v("args")]),e._v(" object as second argument. "),a("code",[e._v("options")]),e._v(" argument is always the last and thus was moved from 2nd to 3rd place.")]),e._v(" "),a("li",[a("code",[e._v("afterEvent")]),e._v(" and "),a("code",[e._v("beforeEvent")]),e._v(" now receive a wrapped "),a("code",[e._v("event")]),e._v(" as the "),a("code",[e._v("event")]),e._v(" property of the second argument. The native event is available via "),a("code",[e._v("args.event.native")]),e._v(".")]),e._v(" "),a("li",[e._v("Initial "),a("code",[e._v("resize")]),e._v(" is no longer silent. Meaning that "),a("code",[e._v("resize")]),e._v(" event can fire between "),a("code",[e._v("beforeInit")]),e._v(" and "),a("code",[e._v("afterInit")])]),e._v(" "),a("li",[e._v("New hooks: "),a("code",[e._v("install")]),e._v(", "),a("code",[e._v("start")]),e._v(", "),a("code",[e._v("stop")]),e._v(", and "),a("code",[e._v("uninstall")])]),e._v(" "),a("li",[a("code",[e._v("afterEvent")]),e._v(" should notify about changes that need a render by setting "),a("code",[e._v("args.changed")]),e._v(" to true. Because the "),a("code",[e._v("args")]),e._v(" are shared with all plugins, it should only be set to true and not false.")])])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[174],{499:function(e,t,a){"use strict";a.r(t);var o=a(7),s=Object(o.a)({},(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[a("h1",{attrs:{id:"_3-x-migration-guide"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#_3-x-migration-guide"}},[e._v("#")]),e._v(" 3.x Migration Guide")]),e._v(" "),a("p",[e._v("Chart.js 3.0 introduces a number of breaking changes. Chart.js 2.0 was released in April 2016. In the years since then, as Chart.js has grown in popularity and feature set, we've learned some lessons about how to better create a charting library. In order to improve performance, offer new features, and improve maintainability, it was necessary to break backwards compatibility, but we aimed to do so only when worth the benefit. Some major highlights of v3 include:")]),e._v(" "),a("ul",[a("li",[e._v("Large "),a("RouterLink",{attrs:{to:"/general/performance.html"}},[e._v("performance")]),e._v(" improvements including the ability to skip data parsing and render charts in parallel via webworkers")],1),e._v(" "),a("li",[e._v("Additional configurability and scriptable options with better defaults")]),e._v(" "),a("li",[e._v("Completely rewritten animation system")]),e._v(" "),a("li",[e._v("Rewritten filler plugin with numerous bug fixes")]),e._v(" "),a("li",[e._v("Documentation migrated from GitBook to Vuepress")]),e._v(" "),a("li",[e._v("API documentation generated and verified by TypeDoc")]),e._v(" "),a("li",[e._v("No more CSS injection")]),e._v(" "),a("li",[e._v("Tons of bug fixes")]),e._v(" "),a("li",[e._v("Tree shaking")])]),e._v(" "),a("h2",{attrs:{id:"end-user-migration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#end-user-migration"}},[e._v("#")]),e._v(" End user migration")]),e._v(" "),a("h3",{attrs:{id:"setup-and-installation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setup-and-installation"}},[e._v("#")]),e._v(" Setup and installation")]),e._v(" "),a("ul",[a("li",[e._v("Distributed files are now in lower case. For example: "),a("code",[e._v("dist/chart.js")]),e._v(".")]),e._v(" "),a("li",[e._v("Chart.js is no longer providing the "),a("code",[e._v("Chart.bundle.js")]),e._v(" and "),a("code",[e._v("Chart.bundle.min.js")]),e._v(". Please see the "),a("RouterLink",{attrs:{to:"/getting-started/installation.html"}},[e._v("installation")]),e._v(" and "),a("RouterLink",{attrs:{to:"/getting-started/integration.html"}},[e._v("integration")]),e._v(" docs for details on the recommended way to setup Chart.js if you were using these builds.")],1),e._v(" "),a("li",[a("code",[e._v("moment")]),e._v(" is no longer specified as an npm dependency. If you are using the "),a("code",[e._v("time")]),e._v(" or "),a("code",[e._v("timeseries")]),e._v(" scales, you must include one of "),a("a",{attrs:{href:"https://github.com/chartjs/awesome#adapters",target:"_blank",rel:"noopener noreferrer"}},[e._v("the available adapters"),a("OutboundLink")],1),e._v(" and corresponding date library. You no longer need to exclude moment from your build.")]),e._v(" "),a("li",[e._v("The "),a("code",[e._v("Chart")]),e._v(" constructor will throw an error if the canvas/context provided is already in use")]),e._v(" "),a("li",[e._v("Chart.js 3 is tree-shakeable. So if you are using it as an "),a("code",[e._v("npm")]),e._v(" module in a project and want to make use of this feature, you need to import and register the controllers, elements, scales and plugins you want to use, for a list of all the available items to import see "),a("RouterLink",{attrs:{to:"/getting-started/integration.html#bundlers-webpack-rollup-etc"}},[e._v("integration")]),e._v(". You will not have to call "),a("code",[e._v("register")]),e._v(" if importing Chart.js via a "),a("code",[e._v("script")]),e._v(" tag or from the "),a("RouterLink",{attrs:{to:"/getting-started/integration.html#bundlers-webpack-rollup-etc"}},[a("code",[e._v("auto")])]),e._v(" register path as an "),a("code",[e._v("npm")]),e._v(" module, in this case you will not get the tree shaking benefits. Here is an example of registering components:")],1)]),e._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("import")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v(" Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v(" LineController"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v(" LineElement"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v(" PointElement"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v(" LinearScale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v(" Title "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("from")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token template-string"}},[a("span",{pre:!0,attrs:{class:"token template-punctuation string"}},[e._v("`")]),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("chart.js")]),a("span",{pre:!0,attrs:{class:"token template-punctuation string"}},[e._v("`")])]),e._v("\n\nChart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("register")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),e._v("LineController"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v(" LineElement"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v(" PointElement"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v(" LinearScale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v(" Title"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v("\n\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("const")]),e._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v("=")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("new")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[e._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),e._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[e._v("// data: ...")]),e._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n plugins"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n title"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[e._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n text"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'Chart Title'")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'linear'")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n y"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'linear'")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),e._v("\n")])])]),a("h3",{attrs:{id:"chart-types"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-types"}},[e._v("#")]),e._v(" Chart types")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("horizontalBar")]),e._v(" chart type was removed. Horizontal bar charts can be configured using the new "),a("RouterLink",{attrs:{to:"/getting-started/charts/bar.html#horizontal-bar-chart"}},[a("code",[e._v("indexAxis")])]),e._v(" option")],1)]),e._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[e._v("#")]),e._v(" Options")]),e._v(" "),a("p",[e._v("A number of changes were made to the configuration options passed to the "),a("code",[e._v("Chart")]),e._v(" constructor. Those changes are documented below.")]),e._v(" "),a("h4",{attrs:{id:"generic-changes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#generic-changes"}},[e._v("#")]),e._v(" Generic changes")]),e._v(" "),a("ul",[a("li",[e._v("Indexable options are now looping. "),a("code",[e._v("backgroundColor: ['red', 'green']")]),e._v(" will result in alternating "),a("code",[e._v("'red'")]),e._v(" / "),a("code",[e._v("'green'")]),e._v(" if there are more than 2 data points.")]),e._v(" "),a("li",[e._v("The input properties of object data can now be freely specified, see "),a("RouterLink",{attrs:{to:"/general/data-structures.html"}},[e._v("data structures")]),e._v(" for details.")],1),e._v(" "),a("li",[e._v("Most options are resolved utilizing proxies, instead of merging with defaults. In addition to easily enabling different resolution routes for different contexts, it allows using other resolved options in scriptable options.\n"),a("ul",[a("li",[e._v("Options are by default scriptable and indexable, unless disabled for some reason.")]),e._v(" "),a("li",[e._v("Scriptable options receive a option reolver as second parameter for accessing other options in same context.")]),e._v(" "),a("li",[e._v("Resolution falls to upper scopes, if no match is found earlier. See "),a("RouterLink",{attrs:{to:"/getting-started/general/options.html"}},[e._v("options")]),e._v(" for details.")],1)])])]),e._v(" "),a("h4",{attrs:{id:"specific-changes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#specific-changes"}},[e._v("#")]),e._v(" Specific changes")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("elements.rectangle")]),e._v(" is now "),a("code",[e._v("elements.bar")])]),e._v(" "),a("li",[a("code",[e._v("hover.animationDuration")]),e._v(" is now configured in "),a("code",[e._v("animation.active.duration")])]),e._v(" "),a("li",[a("code",[e._v("responsiveAnimationDuration")]),e._v(" is now configured in "),a("code",[e._v("animation.resize.duration")])]),e._v(" "),a("li",[e._v("Polar area "),a("code",[e._v("elements.arc.angle")]),e._v(" is now configured in degrees instead of radians.")]),e._v(" "),a("li",[e._v("Polar area "),a("code",[e._v("startAngle")]),e._v(" option is now consistent with "),a("code",[e._v("Radar")]),e._v(", 0 is at top and value is in degrees. Default is changed from "),a("code",[e._v("-½π")]),e._v(" to "),a("code",[e._v("0")]),e._v(".")]),e._v(" "),a("li",[e._v("Doughnut "),a("code",[e._v("rotation")]),e._v(" option is now in degrees and 0 is at top. Default is changed from "),a("code",[e._v("-½π")]),e._v(" to "),a("code",[e._v("0")]),e._v(".")]),e._v(" "),a("li",[e._v("Doughnut "),a("code",[e._v("circumference")]),e._v(" option is now in degrees. Default is changed from "),a("code",[e._v("2π")]),e._v(" to "),a("code",[e._v("360")]),e._v(".")]),e._v(" "),a("li",[e._v("Doughnut "),a("code",[e._v("cutoutPercentage")]),e._v(" was renamed to "),a("code",[e._v("cutout")]),e._v("and accepts pixels as numer and percent as string ending with "),a("code",[e._v("%")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("scale")]),e._v(" option was removed in favor of "),a("code",[e._v("options.scales.r")]),e._v(" (or any other scale id, with "),a("code",[e._v("axis: 'r'")]),e._v(")")]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes")]),e._v(" arrays were removed. Scales are now configured directly to "),a("code",[e._v("options.scales")]),e._v(" object with the object key being the scale Id.")]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.barPercentage")]),e._v(" was moved to dataset option "),a("code",[e._v("barPercentage")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.barThickness")]),e._v(" was moved to dataset option "),a("code",[e._v("barThickness")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.categoryPercentage")]),e._v(" was moved to dataset option "),a("code",[e._v("categoryPercentage")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.maxBarThickness")]),e._v(" was moved to dataset option "),a("code",[e._v("maxBarThickness")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.minBarLength")]),e._v(" was moved to dataset option "),a("code",[e._v("minBarLength")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.scaleLabel")]),e._v(" was renamed to "),a("code",[e._v("scales[id].title")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.scaleLabel.labelString")]),e._v(" was renamed to "),a("code",[e._v("scales[id].title.text")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.ticks.beginAtZero")]),e._v(" was renamed to "),a("code",[e._v("scales[id].beginAtZero")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.ticks.max")]),e._v(" was renamed to "),a("code",[e._v("scales[id].max")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.ticks.min")]),e._v(" was renamed to "),a("code",[e._v("scales[id].min")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.ticks.reverse")]),e._v(" was renamed to "),a("code",[e._v("scales[id].reverse")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.ticks.suggestedMax")]),e._v(" was renamed to "),a("code",[e._v("scales[id].suggestedMax")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.ticks.suggestedMin")]),e._v(" was renamed to "),a("code",[e._v("scales[id].suggestedMin")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.ticks.unitStepSize")]),e._v(" was removed. Use "),a("code",[e._v("scales[id].ticks.stepSize")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.ticks.userCallback")]),e._v(" was renamed to "),a("code",[e._v("scales[id].ticks.callback")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.time.format")]),e._v(" was renamed to "),a("code",[e._v("scales[id].time.parser")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.time.max")]),e._v(" was renamed to "),a("code",[e._v("scales[id].max")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.time.min")]),e._v(" was renamed to "),a("code",[e._v("scales[id].min")])]),e._v(" "),a("li",[a("code",[e._v("scales.[x/y]Axes.zeroLine*")]),e._v(" options of axes were removed. Use scriptable scale options instead.")]),e._v(" "),a("li",[e._v("The dataset option "),a("code",[e._v("steppedLine")]),e._v(" was removed. Use "),a("code",[e._v("stepped")])]),e._v(" "),a("li",[e._v("The chart option "),a("code",[e._v("showLines")]),e._v(" was renamed to "),a("code",[e._v("showLine")]),e._v(" to match the dataset option.")]),e._v(" "),a("li",[e._v("The chart option "),a("code",[e._v("startAngle")]),e._v(" was moved to "),a("code",[e._v("radial")]),e._v(" scale options.")]),e._v(" "),a("li",[e._v("To override the platform class used in a chart instance, pass "),a("code",[e._v("platform: PlatformClass")]),e._v(" in the config object. Note that the class should be passed, not an instance of the class.")]),e._v(" "),a("li",[a("code",[e._v("aspectRatio")]),e._v(" defaults to 1 for doughnut, pie, polarArea, and radar charts")]),e._v(" "),a("li",[a("code",[e._v("TimeScale")]),e._v(" does not read "),a("code",[e._v("t")]),e._v(" from object data by default anymore. The default property is "),a("code",[e._v("x")]),e._v(" or "),a("code",[e._v("y")]),e._v(", depending on the orientation. See "),a("RouterLink",{attrs:{to:"/general/data-structures.html"}},[e._v("data structures")]),e._v(" for details on how to change the default.")],1),e._v(" "),a("li",[a("code",[e._v("tooltips")]),e._v(" namespace was renamed to "),a("code",[e._v("tooltip")]),e._v(" to match the plugin name")]),e._v(" "),a("li",[a("code",[e._v("legend")]),e._v(", "),a("code",[e._v("title")]),e._v(" and "),a("code",[e._v("tooltip")]),e._v(" namespaces were moved from "),a("code",[e._v("options")]),e._v(" to "),a("code",[e._v("options.plugins")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("tooltips.custom")]),e._v(" was renamed to "),a("code",[e._v("plugins.tooltip.external")])])]),e._v(" "),a("h4",{attrs:{id:"defaults"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defaults"}},[e._v("#")]),e._v(" Defaults")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("global")]),e._v(" namespace was removed from "),a("code",[e._v("defaults")]),e._v(". So "),a("code",[e._v("Chart.defaults.global")]),e._v(" is now "),a("code",[e._v("Chart.defaults")])]),e._v(" "),a("li",[e._v("Dataset controller defaults were relocate to "),a("code",[e._v("overrides")]),e._v(". For example "),a("code",[e._v("Chart.defaults.line")]),e._v(" is now "),a("code",[e._v("Chart.overrides.line")])]),e._v(" "),a("li",[a("code",[e._v("default")]),e._v(" prefix was removed from defaults. For example "),a("code",[e._v("Chart.defaults.global.defaultColor")]),e._v(" is now "),a("code",[e._v("Chart.defaults.color")])]),e._v(" "),a("li",[a("code",[e._v("defaultColor")]),e._v(" was split to "),a("code",[e._v("color")]),e._v(", "),a("code",[e._v("borderColor")]),e._v(" and "),a("code",[e._v("backgroundColor")])]),e._v(" "),a("li",[a("code",[e._v("defaultFontColor")]),e._v(" was renamed to "),a("code",[e._v("color")])]),e._v(" "),a("li",[a("code",[e._v("defaultFontFamily")]),e._v(" was renamed to "),a("code",[e._v("font.family")])]),e._v(" "),a("li",[a("code",[e._v("defaultFontSize")]),e._v(" was renamed to "),a("code",[e._v("font.size")])]),e._v(" "),a("li",[a("code",[e._v("defaultFontStyle")]),e._v(" was renamed to "),a("code",[e._v("font.style")])]),e._v(" "),a("li",[a("code",[e._v("defaultLineHeight")]),e._v(" was renamed to "),a("code",[e._v("font.lineHeight")])]),e._v(" "),a("li",[e._v("Horizontal Bar default tooltip mode was changed from "),a("code",[e._v("'index'")]),e._v(" to "),a("code",[e._v("'nearest'")]),e._v(" to match vertical bar charts")]),e._v(" "),a("li",[a("code",[e._v("legend")]),e._v(", "),a("code",[e._v("title")]),e._v(" and "),a("code",[e._v("tooltip")]),e._v(" namespaces were moved from "),a("code",[e._v("Chart.defaults")]),e._v(" to "),a("code",[e._v("Chart.defaults.plugins")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("elements.line.fill")]),e._v(" default changed from "),a("code",[e._v("true")]),e._v(" to "),a("code",[e._v("false")]),e._v(".")]),e._v(" "),a("li",[e._v("Line charts no longer override the default "),a("code",[e._v("interaction")]),e._v(" mode. Default is changed from "),a("code",[e._v("'index'")]),e._v(" to "),a("code",[e._v("'nearest'")]),e._v(".")])]),e._v(" "),a("h4",{attrs:{id:"scales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scales"}},[e._v("#")]),e._v(" Scales")]),e._v(" "),a("p",[e._v("The configuration options for scales is the largest change in v3. The "),a("code",[e._v("xAxes")]),e._v(" and "),a("code",[e._v("yAxes")]),e._v(" arrays were removed and axis options are individual scales now keyed by scale ID.")]),e._v(" "),a("p",[e._v("The v2 configuration below is shown with it's new v3 configuration")]),e._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[e._v("options"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n xAxes"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n id"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'x'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'time'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[e._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n title"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[e._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n text"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'Date'")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n ticks"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n major"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n enabled"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[e._v("true")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[e._v("font")]),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[e._v("context")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("if")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),e._v("context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("tick "),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v("&&")]),e._v(" context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("tick"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("major"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("return")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n weight"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'bold'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n color"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'#FF0000'")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n yAxes"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n id"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'y'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[e._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n title"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[e._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n text"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'value'")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("]")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n")])])]),a("p",[e._v("And now, in v3:")]),e._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[e._v("options"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'time'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[e._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n title"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[e._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n text"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'Date'")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n ticks"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n major"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n enabled"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[e._v("true")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[e._v("color")]),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[e._v("context")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v("=>")]),e._v(" context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("tick "),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v("&&")]),e._v(" context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("tick"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("major "),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v("&&")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'#FF0000'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[e._v("font")]),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[e._v("context")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("if")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),e._v("context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("tick "),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v("&&")]),e._v(" context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("tick"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(".")]),e._v("major"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("return")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n weight"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'bold'")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(";")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n y"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[e._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n title"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("{")]),e._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[e._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(",")]),e._v("\n text"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(":")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[e._v("'value'")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("}")]),e._v("\n")])])]),a("ul",[a("li",[e._v("The time scale option "),a("code",[e._v("distribution: 'series'")]),e._v(" was removed and a new scale type "),a("code",[e._v("timeseries")]),e._v(" was introduced in its place")]),e._v(" "),a("li",[e._v("In the time scale, "),a("code",[e._v("autoSkip")]),e._v(" is now enabled by default for consistency with the other scales")])]),e._v(" "),a("h4",{attrs:{id:"animations"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[e._v("#")]),e._v(" Animations")]),e._v(" "),a("p",[e._v("Animation system was completely rewritten in Chart.js v3. Each property can now be animated separately. Please see "),a("RouterLink",{attrs:{to:"/configuration/animations.html"}},[e._v("animations")]),e._v(" docs for details.")],1),e._v(" "),a("h4",{attrs:{id:"customizability"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#customizability"}},[e._v("#")]),e._v(" Customizability")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("custom")]),e._v(" attribute of elements was removed. Please use scriptable options")]),e._v(" "),a("li",[e._v("The "),a("code",[e._v("hover")]),e._v(" property of scriptable options "),a("code",[e._v("context")]),e._v(" object was renamed to "),a("code",[e._v("active")]),e._v(" to align it with the datalabels plugin.")])]),e._v(" "),a("h4",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[e._v("#")]),e._v(" Interactions")]),e._v(" "),a("ul",[a("li",[e._v("To allow DRY configuration, a root options scope for common interaction options was added. "),a("code",[e._v("options.hover")]),e._v(" and "),a("code",[e._v("options.plugins.tooltip")]),e._v(" now both extend from "),a("code",[e._v("options.interaction")]),e._v(". Defaults are defined at "),a("code",[e._v("defaults.interaction")]),e._v(" level, so by default hover and tooltip interactions share the same mode etc.")]),e._v(" "),a("li",[a("code",[e._v("interactions")]),e._v(" are now limited to the chart area + allowed overflow")]),e._v(" "),a("li",[a("code",[e._v("{mode: 'label'}")]),e._v(" was replaced with "),a("code",[e._v("{mode: 'index'}")])]),e._v(" "),a("li",[a("code",[e._v("{mode: 'single'}")]),e._v(" was replaced with "),a("code",[e._v("{mode: 'nearest', intersect: true}")])]),e._v(" "),a("li",[a("code",[e._v("modes['X-axis']")]),e._v(" was replaced with "),a("code",[e._v("{mode: 'index', intersect: false}")])]),e._v(" "),a("li",[a("code",[e._v("options.onClick")]),e._v(" is now limited to the chart area")]),e._v(" "),a("li",[a("code",[e._v("options.onClick")]),e._v(" and "),a("code",[e._v("options.onHover")]),e._v(" now receive the "),a("code",[e._v("chart")]),e._v(" instance as a 3rd argument")]),e._v(" "),a("li",[a("code",[e._v("options.onHover")]),e._v(" now receives a wrapped "),a("code",[e._v("event")]),e._v(" as the first parameter. The previous first parameter value is accessible via "),a("code",[e._v("event.native")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("options.hover.onHover")]),e._v(" was removed, use "),a("code",[e._v("options.onHover")]),e._v(".")])]),e._v(" "),a("h4",{attrs:{id:"ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[e._v("#")]),e._v(" Ticks")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("options.gridLines")]),e._v(" was renamed to "),a("code",[e._v("options.grid")])]),e._v(" "),a("li",[a("code",[e._v("options.gridLines.offsetGridLines")]),e._v(" was renamed to "),a("code",[e._v("options.grid.offset")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("options.gridLines.tickMarkLength")]),e._v(" was renamed to "),a("code",[e._v("options.grid.tickLength")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("options.ticks.fixedStepSize")]),e._v(" is no longer used. Use "),a("code",[e._v("options.ticks.stepSize")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("options.ticks.major")]),e._v(" and "),a("code",[e._v("options.ticks.minor")]),e._v(" were replaced with scriptable options for tick fonts.")]),e._v(" "),a("li",[a("code",[e._v("Chart.Ticks.formatters.linear")]),e._v(" was renamed to "),a("code",[e._v("Chart.Ticks.formatters.numeric")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("options.ticks.backdropPaddingX")]),e._v(" and "),a("code",[e._v("options.ticks.backdropPaddingY")]),e._v(" were replaced with "),a("code",[e._v("options.ticks.backdropPadding")]),e._v(" in the radial linear scale.")])]),e._v(" "),a("h4",{attrs:{id:"tooltip"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltip"}},[e._v("#")]),e._v(" Tooltip")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("xLabel")]),e._v(" and "),a("code",[e._v("yLabel")]),e._v(" were removed. Please use "),a("code",[e._v("label")]),e._v(" and "),a("code",[e._v("formattedValue")])]),e._v(" "),a("li",[e._v("The "),a("code",[e._v("filter")]),e._v(" option will now be passed additional parameters when called and should have the method signature "),a("code",[e._v("function(tooltipItem, index, tooltipItems, data)")])]),e._v(" "),a("li",[e._v("The "),a("code",[e._v("custom")]),e._v(" callback now takes a context object that has "),a("code",[e._v("tooltip")]),e._v(" and "),a("code",[e._v("chart")]),e._v(" properties")]),e._v(" "),a("li",[e._v("All properties of tooltip model related to the tooltip options have been moved to reside within the "),a("code",[e._v("options")]),e._v(" property.")]),e._v(" "),a("li",[e._v("The callbacks no longer are given a "),a("code",[e._v("data")]),e._v(" parameter. The tooltip item parameter contains the chart and dataset instead")]),e._v(" "),a("li",[e._v("The tooltip item's "),a("code",[e._v("index")]),e._v(" parameter was renamed to "),a("code",[e._v("dataIndex")]),e._v(" and "),a("code",[e._v("value")]),e._v(" was renamed to "),a("code",[e._v("formattedValue")])]),e._v(" "),a("li",[e._v("The "),a("code",[e._v("xPadding")]),e._v(" and "),a("code",[e._v("yPadding")]),e._v(" options were merged into a single "),a("code",[e._v("padding")]),e._v(" object")])]),e._v(" "),a("h2",{attrs:{id:"developer-migration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#developer-migration"}},[e._v("#")]),e._v(" Developer migration")]),e._v(" "),a("p",[e._v("While the end-user migration for Chart.js 3 is fairly straight-forward, the developer migration can be more complicated. Please reach out for help in the #dev "),a("a",{attrs:{href:"https://chartjs-slack.herokuapp.com/",target:"_blank",rel:"noopener noreferrer"}},[e._v("Slack"),a("OutboundLink")],1),e._v(" channel if tips on migrating would be helpful.")]),e._v(" "),a("p",[e._v("Some of the biggest things that have changed:")]),e._v(" "),a("ul",[a("li",[e._v("There is a completely rewritten and more performant animation system.\n"),a("ul",[a("li",[a("code",[e._v("Element._model")]),e._v(" and "),a("code",[e._v("Element._view")]),e._v(" are no longer used and properties are now set directly on the elements. You will have to use the method "),a("code",[e._v("getProps")]),e._v(" to access these properties inside most methods such as "),a("code",[e._v("inXRange")]),e._v("/"),a("code",[e._v("inYRange")]),e._v(" and "),a("code",[e._v("getCenterPoint")]),e._v(". Please take a look at "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/tree/master/src/elements",target:"_blank",rel:"noopener noreferrer"}},[e._v("the Chart.js-provided elements"),a("OutboundLink")],1),e._v(" for examples.")]),e._v(" "),a("li",[e._v("When building the elements in a controller, it's now suggested to call "),a("code",[e._v("updateElement")]),e._v(" to provide the element properties. There are also methods such as "),a("code",[e._v("getSharedOptions")]),e._v(" and "),a("code",[e._v("includeOptions")]),e._v(" that have been added to skip redundant computation. Please take a look at "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/tree/master/src/controllers",target:"_blank",rel:"noopener noreferrer"}},[e._v("the Chart.js-provided controllers"),a("OutboundLink")],1),e._v(" for examples.")])])]),e._v(" "),a("li",[e._v("Scales introduced a new parsing API. This API takes user data and converts it into a more standard format. E.g. it allows users to provide numeric data as a "),a("code",[e._v("string")]),e._v(" and converts it to a "),a("code",[e._v("number")]),e._v(" where necessary. Previously this was done on the fly as charts were rendered. Now it's done up front with the ability to skip it for better performance if users provide data in the correct format. If you're using standard data format like "),a("code",[e._v("x")]),e._v("/"),a("code",[e._v("y")]),e._v(" you may not need to do anything. If you're using a custom data format you will have to override some of the parse methods in "),a("code",[e._v("core.datasetController.js")]),e._v(". An example can be found in "),a("a",{attrs:{href:"https://github.com/chartjs/chartjs-chart-financial",target:"_blank",rel:"noopener noreferrer"}},[e._v("chartjs-chart-financial"),a("OutboundLink")],1),e._v(", which uses an "),a("code",[e._v("{o, h, l, c}")]),e._v(" data format.")])]),e._v(" "),a("p",[e._v("A few changes were made to controllers that are more straight-forward, but will affect all controllers:")]),e._v(" "),a("ul",[a("li",[e._v("Options:\n"),a("ul",[a("li",[a("code",[e._v("global")]),e._v(" was removed from the defaults namespace as it was unnecessary and sometimes inconsistent")]),e._v(" "),a("li",[e._v("Dataset defaults are now under the chart type options instead of vice-versa. This was not able to be done when introduced in 2.x for backwards compatibility. Fixing it removes the biggest stumbling block that new chart developers encountered")]),e._v(" "),a("li",[e._v("Scale default options need to be updated as described in the end user migration section (e.g. "),a("code",[e._v("x")]),e._v(" instead of "),a("code",[e._v("xAxes")]),e._v(" and "),a("code",[e._v("y")]),e._v(" instead of "),a("code",[e._v("yAxes")]),e._v(")")])])]),e._v(" "),a("li",[a("code",[e._v("updateElement")]),e._v(" was changed to "),a("code",[e._v("updateElements")]),e._v(" and has a new method signature as described below. This provides performance enhancements such as allowing easier reuse of computations that are common to all elements and reducing the number of function calls")])]),e._v(" "),a("h3",{attrs:{id:"removed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removed"}},[e._v("#")]),e._v(" Removed")]),e._v(" "),a("p",[e._v("The following properties and methods were removed:")]),e._v(" "),a("h4",{attrs:{id:"removed-from-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removed-from-chart"}},[e._v("#")]),e._v(" Removed from Chart")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("Chart.animationService")])]),e._v(" "),a("li",[a("code",[e._v("Chart.active")])]),e._v(" "),a("li",[a("code",[e._v("Chart.borderWidth")])]),e._v(" "),a("li",[a("code",[e._v("Chart.chart.chart")])]),e._v(" "),a("li",[a("code",[e._v("Chart.Bar")]),e._v(". New charts are created via "),a("code",[e._v("new Chart")]),e._v(" and providing the appropriate "),a("code",[e._v("type")]),e._v(" parameter")]),e._v(" "),a("li",[a("code",[e._v("Chart.Bubble")]),e._v(". New charts are created via "),a("code",[e._v("new Chart")]),e._v(" and providing the appropriate "),a("code",[e._v("type")]),e._v(" parameter")]),e._v(" "),a("li",[a("code",[e._v("Chart.Chart")])]),e._v(" "),a("li",[a("code",[e._v("Chart.Controller")])]),e._v(" "),a("li",[a("code",[e._v("Chart.Doughnut")]),e._v(". New charts are created via "),a("code",[e._v("new Chart")]),e._v(" and providing the appropriate "),a("code",[e._v("type")]),e._v(" parameter")]),e._v(" "),a("li",[a("code",[e._v("Chart.innerRadius")]),e._v(" now lives on doughnut, pie, and polarArea controllers")]),e._v(" "),a("li",[a("code",[e._v("Chart.lastActive")])]),e._v(" "),a("li",[a("code",[e._v("Chart.Legend")]),e._v(" was moved to "),a("code",[e._v("Chart.plugins.legend._element")]),e._v(" and made private")]),e._v(" "),a("li",[a("code",[e._v("Chart.Line")]),e._v(". New charts are created via "),a("code",[e._v("new Chart")]),e._v(" and providing the appropriate "),a("code",[e._v("type")]),e._v(" parameter")]),e._v(" "),a("li",[a("code",[e._v("Chart.LinearScaleBase")]),e._v(" now must be imported and cannot be accessed off the "),a("code",[e._v("Chart")]),e._v(" object")]),e._v(" "),a("li",[a("code",[e._v("Chart.offsetX")])]),e._v(" "),a("li",[a("code",[e._v("Chart.offsetY")])]),e._v(" "),a("li",[a("code",[e._v("Chart.outerRadius")]),e._v(" now lives on doughnut, pie, and polarArea controllers")]),e._v(" "),a("li",[a("code",[e._v("Chart.plugins")]),e._v(" was replaced with "),a("code",[e._v("Chart.registry")]),e._v(". Plugin defaults are now in "),a("code",[e._v("Chart.defaults.plugins[id]")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("Chart.plugins.register")]),e._v(" was replaced by "),a("code",[e._v("Chart.register")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("Chart.PolarArea")]),e._v(". New charts are created via "),a("code",[e._v("new Chart")]),e._v(" and providing the appropriate "),a("code",[e._v("type")]),e._v(" parameter")]),e._v(" "),a("li",[a("code",[e._v("Chart.prototype.generateLegend")])]),e._v(" "),a("li",[a("code",[e._v("Chart.platform")]),e._v(". It only contained "),a("code",[e._v("disableCSSInjection")]),e._v(". CSS is never injected in v3.")]),e._v(" "),a("li",[a("code",[e._v("Chart.PluginBase")])]),e._v(" "),a("li",[a("code",[e._v("Chart.Radar")]),e._v(". New charts are created via "),a("code",[e._v("new Chart")]),e._v(" and providing the appropriate "),a("code",[e._v("type")]),e._v(" parameter")]),e._v(" "),a("li",[a("code",[e._v("Chart.radiusLength")])]),e._v(" "),a("li",[a("code",[e._v("Chart.scaleService")]),e._v(" was replaced with "),a("code",[e._v("Chart.registry")]),e._v(". Scale defaults are now in "),a("code",[e._v("Chart.defaults.scales[type]")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("Chart.Scatter")]),e._v(". New charts are created via "),a("code",[e._v("new Chart")]),e._v(" and providing the appropriate "),a("code",[e._v("type")]),e._v(" parameter")]),e._v(" "),a("li",[a("code",[e._v("Chart.types")])]),e._v(" "),a("li",[a("code",[e._v("Chart.Title")]),e._v(" was moved to "),a("code",[e._v("Chart.plugins.title._element")]),e._v(" and made private")]),e._v(" "),a("li",[a("code",[e._v("Chart.Tooltip")]),e._v(" is now provided by the tooltip plugin. The positioners can be accessed from "),a("code",[e._v("tooltipPlugin.positioners")])]),e._v(" "),a("li",[a("code",[e._v("ILayoutItem.minSize")])])]),e._v(" "),a("h4",{attrs:{id:"removed-from-dataset-controllers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removed-from-dataset-controllers"}},[e._v("#")]),e._v(" Removed from Dataset Controllers")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("BarController.getDatasetMeta().bar")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.addElementAndReset")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.createMetaData")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.createMetaDataset")])]),e._v(" "),a("li",[a("code",[e._v("DoughnutController.getRingIndex")])])]),e._v(" "),a("h4",{attrs:{id:"removed-from-elements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removed-from-elements"}},[e._v("#")]),e._v(" Removed from Elements")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("Element.getArea")])]),e._v(" "),a("li",[a("code",[e._v("Element.height")])]),e._v(" "),a("li",[a("code",[e._v("Element.hidden")]),e._v(" was replaced by chart level status, usable with "),a("code",[e._v("getDataVisibility(index)")]),e._v(" / "),a("code",[e._v("toggleDataVisibility(index)")])]),e._v(" "),a("li",[a("code",[e._v("Element.initialize")])]),e._v(" "),a("li",[a("code",[e._v("Element.inLabelRange")])]),e._v(" "),a("li",[a("code",[e._v("Line.calculatePointY")])])]),e._v(" "),a("h4",{attrs:{id:"removed-from-helpers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removed-from-helpers"}},[e._v("#")]),e._v(" Removed from Helpers")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("helpers.addEvent")])]),e._v(" "),a("li",[a("code",[e._v("helpers.aliasPixel")])]),e._v(" "),a("li",[a("code",[e._v("helpers.arrayEquals")])]),e._v(" "),a("li",[a("code",[e._v("helpers.configMerge")])]),e._v(" "),a("li",[a("code",[e._v("helpers.findIndex")])]),e._v(" "),a("li",[a("code",[e._v("helpers.findNextWhere")])]),e._v(" "),a("li",[a("code",[e._v("helpers.findPreviousWhere")])]),e._v(" "),a("li",[a("code",[e._v("helpers.extend")]),e._v(". Use "),a("code",[e._v("Object.assign")]),e._v(" instead")]),e._v(" "),a("li",[a("code",[e._v("helpers.getValueAtIndexOrDefault")]),e._v(". Use "),a("code",[e._v("helpers.resolve")]),e._v(" instead.")]),e._v(" "),a("li",[a("code",[e._v("helpers.indexOf")])]),e._v(" "),a("li",[a("code",[e._v("helpers.lineTo")])]),e._v(" "),a("li",[a("code",[e._v("helpers.longestText")]),e._v(" was made private")]),e._v(" "),a("li",[a("code",[e._v("helpers.max")])]),e._v(" "),a("li",[a("code",[e._v("helpers.measureText")]),e._v(" was made private")]),e._v(" "),a("li",[a("code",[e._v("helpers.min")])]),e._v(" "),a("li",[a("code",[e._v("helpers.nextItem")])]),e._v(" "),a("li",[a("code",[e._v("helpers.niceNum")])]),e._v(" "),a("li",[a("code",[e._v("helpers.numberOfLabelLines")])]),e._v(" "),a("li",[a("code",[e._v("helpers.previousItem")])]),e._v(" "),a("li",[a("code",[e._v("helpers.removeEvent")])]),e._v(" "),a("li",[a("code",[e._v("helpers.roundedRect")])]),e._v(" "),a("li",[a("code",[e._v("helpers.scaleMerge")])]),e._v(" "),a("li",[a("code",[e._v("helpers.where")])])]),e._v(" "),a("h4",{attrs:{id:"removed-from-layout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removed-from-layout"}},[e._v("#")]),e._v(" Removed from Layout")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("Layout.defaults")])])]),e._v(" "),a("h4",{attrs:{id:"removed-from-scales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removed-from-scales"}},[e._v("#")]),e._v(" Removed from Scales")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("LinearScaleBase.handleDirectionalChanges")])]),e._v(" "),a("li",[a("code",[e._v("LogarithmicScale.minNotZero")])]),e._v(" "),a("li",[a("code",[e._v("Scale.getRightValue")])]),e._v(" "),a("li",[a("code",[e._v("Scale.longestLabelWidth")])]),e._v(" "),a("li",[a("code",[e._v("Scale.longestTextCache")]),e._v(" is now private")]),e._v(" "),a("li",[a("code",[e._v("Scale.margins")]),e._v(" is now private")]),e._v(" "),a("li",[a("code",[e._v("Scale.mergeTicksOptions")])]),e._v(" "),a("li",[a("code",[e._v("Scale.ticksAsNumbers")])]),e._v(" "),a("li",[a("code",[e._v("Scale.tickValues")]),e._v(" is now private")]),e._v(" "),a("li",[a("code",[e._v("TimeScale.getLabelCapacity")]),e._v(" is now private")]),e._v(" "),a("li",[a("code",[e._v("TimeScale.tickFormatFunction")]),e._v(" is now private")])]),e._v(" "),a("h4",{attrs:{id:"removed-from-plugins-legend-title-and-tooltip"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removed-from-plugins-legend-title-and-tooltip"}},[e._v("#")]),e._v(" Removed from Plugins (Legend, Title, and Tooltip)")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("IPlugin.afterScaleUpdate")]),e._v(". Use "),a("code",[e._v("afterLayout")]),e._v(" instead")]),e._v(" "),a("li",[a("code",[e._v("Legend.margins")]),e._v(" is now private")]),e._v(" "),a("li",[e._v("Legend "),a("code",[e._v("onClick")]),e._v(", "),a("code",[e._v("onHover")]),e._v(", and "),a("code",[e._v("onLeave")]),e._v(" options now receive the legend as the 3rd argument in addition to implicitly via "),a("code",[e._v("this")])]),e._v(" "),a("li",[e._v("Legend "),a("code",[e._v("onClick")]),e._v(", "),a("code",[e._v("onHover")]),e._v(", and "),a("code",[e._v("onLeave")]),e._v(" options now receive a wrapped "),a("code",[e._v("event")]),e._v(" as the first parameter. The previous first parameter value is accessible via "),a("code",[e._v("event.native")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("Title.margins")]),e._v(" is now private")]),e._v(" "),a("li",[e._v("The tooltip item's "),a("code",[e._v("x")]),e._v(" and "),a("code",[e._v("y")]),e._v(" attributes were replaced by "),a("code",[e._v("element")]),e._v(". You can use "),a("code",[e._v("element.x")]),e._v(" and "),a("code",[e._v("element.y")]),e._v(" or "),a("code",[e._v("element.tooltipPosition()")]),e._v(" instead.")])]),e._v(" "),a("h4",{attrs:{id:"removal-of-public-apis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removal-of-public-apis"}},[e._v("#")]),e._v(" Removal of Public APIs")]),e._v(" "),a("p",[e._v("The following public APIs were removed.")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("getElementAtEvent")]),e._v(" is replaced with "),a("code",[e._v("chart.getElementsAtEventForMode(e, 'nearest', { intersect: true }, false)")])]),e._v(" "),a("li",[a("code",[e._v("getElementsAtEvent")]),e._v(" is replaced with "),a("code",[e._v("chart.getElementsAtEventForMode(e, 'index', { intersect: true }, false)")])]),e._v(" "),a("li",[a("code",[e._v("getElementsAtXAxis")]),e._v(" is replaced with "),a("code",[e._v("chart.getElementsAtEventForMode(e, 'index', { intersect: false }, false)")])]),e._v(" "),a("li",[a("code",[e._v("getDatasetAtEvent")]),e._v(" is replaced with "),a("code",[e._v("chart.getElementsAtEventForMode(e, 'dataset', { intersect: true }, false)")])])]),e._v(" "),a("h4",{attrs:{id:"removal-of-private-apis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removal-of-private-apis"}},[e._v("#")]),e._v(" Removal of private APIs")]),e._v(" "),a("p",[e._v("The following private APIs were removed.")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("Chart._bufferedRender")])]),e._v(" "),a("li",[a("code",[e._v("Chart._updating")])]),e._v(" "),a("li",[a("code",[e._v("Chart.data.datasets[datasetIndex]._meta")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController._getIndexScaleId")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController._getIndexScale")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController._getValueScaleId")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController._getValueScale")])]),e._v(" "),a("li",[a("code",[e._v("Element._ctx")])]),e._v(" "),a("li",[a("code",[e._v("Element._model")])]),e._v(" "),a("li",[a("code",[e._v("Element._view")])]),e._v(" "),a("li",[a("code",[e._v("LogarithmicScale._valueOffset")])]),e._v(" "),a("li",[a("code",[e._v("TimeScale.getPixelForOffset")])]),e._v(" "),a("li",[a("code",[e._v("TimeScale.getLabelWidth")])]),e._v(" "),a("li",[a("code",[e._v("Tooltip._lastActive")])])]),e._v(" "),a("h3",{attrs:{id:"renamed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#renamed"}},[e._v("#")]),e._v(" Renamed")]),e._v(" "),a("p",[e._v("The following properties were renamed during v3 development:")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("Chart.Animation.animationObject")]),e._v(" was renamed to "),a("code",[e._v("Chart.Animation")])]),e._v(" "),a("li",[a("code",[e._v("Chart.Animation.chartInstance")]),e._v(" was renamed to "),a("code",[e._v("Chart.Animation.chart")])]),e._v(" "),a("li",[a("code",[e._v("Chart.canvasHelpers")]),e._v(" was merged with "),a("code",[e._v("Chart.helpers")])]),e._v(" "),a("li",[a("code",[e._v("Chart.elements.Arc")]),e._v(" was renamed to "),a("code",[e._v("Chart.elements.ArcElement")])]),e._v(" "),a("li",[a("code",[e._v("Chart.elements.Line")]),e._v(" was renamed to "),a("code",[e._v("Chart.elements.LineElement")])]),e._v(" "),a("li",[a("code",[e._v("Chart.elements.Point")]),e._v(" was renamed to "),a("code",[e._v("Chart.elements.PointElement")])]),e._v(" "),a("li",[a("code",[e._v("Chart.elements.Rectangle")]),e._v(" was renamed to "),a("code",[e._v("Chart.elements.BarElement")])]),e._v(" "),a("li",[a("code",[e._v("Chart.layoutService")]),e._v(" was renamed to "),a("code",[e._v("Chart.layouts")])]),e._v(" "),a("li",[a("code",[e._v("Chart.pluginService")]),e._v(" was renamed to "),a("code",[e._v("Chart.plugins")])]),e._v(" "),a("li",[a("code",[e._v("helpers.callCallback")]),e._v(" was renamed to "),a("code",[e._v("helpers.callback")])]),e._v(" "),a("li",[a("code",[e._v("helpers.drawRoundedRectangle")]),e._v(" was renamed to "),a("code",[e._v("helpers.roundedRect")])]),e._v(" "),a("li",[a("code",[e._v("helpers.getValueOrDefault")]),e._v(" was renamed to "),a("code",[e._v("helpers.valueOrDefault")])]),e._v(" "),a("li",[a("code",[e._v("LayoutItem.fullWidth")]),e._v(" was renamed to "),a("code",[e._v("LayoutItem.fullSize")])]),e._v(" "),a("li",[a("code",[e._v("Point.controlPointPreviousX")]),e._v(" was renamed to "),a("code",[e._v("Point.cp1x")])]),e._v(" "),a("li",[a("code",[e._v("Point.controlPointPreviousY")]),e._v(" was renamed to "),a("code",[e._v("Point.cp1y")])]),e._v(" "),a("li",[a("code",[e._v("Point.controlPointNextX")]),e._v(" was renamed to "),a("code",[e._v("Point.cp2x")])]),e._v(" "),a("li",[a("code",[e._v("Point.controlPointNextY")]),e._v(" was renamed to "),a("code",[e._v("Point.cp2y")])]),e._v(" "),a("li",[a("code",[e._v("Scale.calculateTickRotation")]),e._v(" was renamed to "),a("code",[e._v("Scale.calculateLabelRotation")])]),e._v(" "),a("li",[a("code",[e._v("Tooltip.options.legendColorBackgroupd")]),e._v(" was renamed to "),a("code",[e._v("Tooltip.options.multiKeyBackground")])])]),e._v(" "),a("h4",{attrs:{id:"renamed-private-apis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#renamed-private-apis"}},[e._v("#")]),e._v(" Renamed private APIs")]),e._v(" "),a("p",[e._v("The private APIs listed below were renamed:")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("BarController.calculateBarIndexPixels")]),e._v(" was renamed to "),a("code",[e._v("BarController._calculateBarIndexPixels")])]),e._v(" "),a("li",[a("code",[e._v("BarController.calculateBarValuePixels")]),e._v(" was renamed to "),a("code",[e._v("BarController._calculateBarValuePixels")])]),e._v(" "),a("li",[a("code",[e._v("BarController.getStackCount")]),e._v(" was renamed to "),a("code",[e._v("BarController._getStackCount")])]),e._v(" "),a("li",[a("code",[e._v("BarController.getStackIndex")]),e._v(" was renamed to "),a("code",[e._v("BarController._getStackIndex")])]),e._v(" "),a("li",[a("code",[e._v("BarController.getRuler")]),e._v(" was renamed to "),a("code",[e._v("BarController._getRuler")])]),e._v(" "),a("li",[a("code",[e._v("Chart.destroyDatasetMeta")]),e._v(" was renamed to "),a("code",[e._v("Chart._destroyDatasetMeta")])]),e._v(" "),a("li",[a("code",[e._v("Chart.drawDataset")]),e._v(" was renamed to "),a("code",[e._v("Chart._drawDataset")])]),e._v(" "),a("li",[a("code",[e._v("Chart.drawDatasets")]),e._v(" was renamed to "),a("code",[e._v("Chart._drawDatasets")])]),e._v(" "),a("li",[a("code",[e._v("Chart.eventHandler")]),e._v(" was renamed to "),a("code",[e._v("Chart._eventHandler")])]),e._v(" "),a("li",[a("code",[e._v("Chart.handleEvent")]),e._v(" was renamed to "),a("code",[e._v("Chart._handleEvent")])]),e._v(" "),a("li",[a("code",[e._v("Chart.initialize")]),e._v(" was renamed to "),a("code",[e._v("Chart._initialize")])]),e._v(" "),a("li",[a("code",[e._v("Chart.resetElements")]),e._v(" was renamed to "),a("code",[e._v("Chart._resetElements")])]),e._v(" "),a("li",[a("code",[e._v("Chart.unbindEvents")]),e._v(" was renamed to "),a("code",[e._v("Chart._unbindEvents")])]),e._v(" "),a("li",[a("code",[e._v("Chart.updateDataset")]),e._v(" was renamed to "),a("code",[e._v("Chart._updateDataset")])]),e._v(" "),a("li",[a("code",[e._v("Chart.updateDatasets")]),e._v(" was renamed to "),a("code",[e._v("Chart._updateDatasets")])]),e._v(" "),a("li",[a("code",[e._v("Chart.updateLayout")]),e._v(" was renamed to "),a("code",[e._v("Chart._updateLayout")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.destroy")]),e._v(" was renamed to "),a("code",[e._v("DatasetController._destroy")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.insertElements")]),e._v(" was renamed to "),a("code",[e._v("DatasetController._insertElements")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.onDataPop")]),e._v(" was renamed to "),a("code",[e._v("DatasetController._onDataPop")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.onDataPush")]),e._v(" was renamed to "),a("code",[e._v("DatasetController._onDataPush")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.onDataShift")]),e._v(" was renamed to "),a("code",[e._v("DatasetController._onDataShift")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.onDataSplice")]),e._v(" was renamed to "),a("code",[e._v("DatasetController._onDataSplice")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.onDataUnshift")]),e._v(" was renamed to "),a("code",[e._v("DatasetController._onDataUnshift")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.removeElements")]),e._v(" was renamed to "),a("code",[e._v("DatasetController._removeElements")])]),e._v(" "),a("li",[a("code",[e._v("DatasetController.resyncElements")]),e._v(" was renamed to "),a("code",[e._v("DatasetController._resyncElements")])]),e._v(" "),a("li",[a("code",[e._v("LayoutItem.isFullWidth")]),e._v(" was renamed to "),a("code",[e._v("LayoutItem.isFullSize")])]),e._v(" "),a("li",[a("code",[e._v("RadialLinearScale.setReductions")]),e._v(" was renamed to "),a("code",[e._v("RadialLinearScale._setReductions")])]),e._v(" "),a("li",[a("code",[e._v("RadialLinearScale.pointLabels")]),e._v(" was renamed to "),a("code",[e._v("RadialLinearScale._pointLabels")])]),e._v(" "),a("li",[a("code",[e._v("Scale.handleMargins")]),e._v(" was renamed to "),a("code",[e._v("Scale._handleMargins")])])]),e._v(" "),a("h3",{attrs:{id:"changed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#changed"}},[e._v("#")]),e._v(" Changed")]),e._v(" "),a("p",[e._v("The APIs listed in this section have changed in signature or behaviour from version 2.")]),e._v(" "),a("h4",{attrs:{id:"changed-in-scales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#changed-in-scales"}},[e._v("#")]),e._v(" Changed in Scales")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("Scale.getLabelForIndex")]),e._v(" was replaced by "),a("code",[e._v("scale.getLabelForValue")])]),e._v(" "),a("li",[a("code",[e._v("Scale.getPixelForValue")]),e._v(" now has only one parameter. For the "),a("code",[e._v("TimeScale")]),e._v(" that parameter must be millis since the epoch")])]),e._v(" "),a("h5",{attrs:{id:"changed-in-ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#changed-in-ticks"}},[e._v("#")]),e._v(" Changed in Ticks")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("Scale.afterBuildTicks")]),e._v(" now has no parameters like the other callbacks")]),e._v(" "),a("li",[a("code",[e._v("Scale.buildTicks")]),e._v(" is now expected to return tick objects")]),e._v(" "),a("li",[a("code",[e._v("Scale.convertTicksToLabels")]),e._v(" was renamed to "),a("code",[e._v("generateTickLabels")]),e._v(". It is now expected to set the label property on the ticks given as input")]),e._v(" "),a("li",[a("code",[e._v("Scale.ticks")]),e._v(" now contains objects instead of strings")]),e._v(" "),a("li",[e._v("When the "),a("code",[e._v("autoSkip")]),e._v(" option is enabled, "),a("code",[e._v("Scale.ticks")]),e._v(" now contains only the non-skipped ticks instead of all ticks.")]),e._v(" "),a("li",[e._v("Ticks are now always generated in monotonically increasing order")])]),e._v(" "),a("h5",{attrs:{id:"changed-in-time-scale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#changed-in-time-scale"}},[e._v("#")]),e._v(" Changed in Time Scale")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("getValueForPixel")]),e._v(" now returns milliseconds since the epoch")])]),e._v(" "),a("h4",{attrs:{id:"changed-in-controllers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#changed-in-controllers"}},[e._v("#")]),e._v(" Changed in Controllers")]),e._v(" "),a("h5",{attrs:{id:"core-controller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#core-controller"}},[e._v("#")]),e._v(" Core Controller")]),e._v(" "),a("ul",[a("li",[e._v("The first parameter to "),a("code",[e._v("updateHoverStyle")]),e._v(" is now an array of objects containing the "),a("code",[e._v("element")]),e._v(", "),a("code",[e._v("datasetIndex")]),e._v(", and "),a("code",[e._v("index")])]),e._v(" "),a("li",[e._v("The signature or "),a("code",[e._v("resize")]),e._v(" changed, the first "),a("code",[e._v("silent")]),e._v(" parameter was removed.")])]),e._v(" "),a("h5",{attrs:{id:"dataset-controllers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-controllers"}},[e._v("#")]),e._v(" Dataset Controllers")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("updateElement")]),e._v(" was replaced with "),a("code",[e._v("updateElements")]),e._v(" now taking the elements to update, the "),a("code",[e._v("start")]),e._v(" index, "),a("code",[e._v("count")]),e._v(", and "),a("code",[e._v("mode")])]),e._v(" "),a("li",[a("code",[e._v("setHoverStyle")]),e._v(" and "),a("code",[e._v("removeHoverStyle")]),e._v(" now additionally take the "),a("code",[e._v("datasetIndex")]),e._v(" and "),a("code",[e._v("index")])])]),e._v(" "),a("h4",{attrs:{id:"changed-in-interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#changed-in-interactions"}},[e._v("#")]),e._v(" Changed in Interactions")]),e._v(" "),a("ul",[a("li",[e._v("Interaction mode methods now return an array of objects containing the "),a("code",[e._v("element")]),e._v(", "),a("code",[e._v("datasetIndex")]),e._v(", and "),a("code",[e._v("index")])])]),e._v(" "),a("h4",{attrs:{id:"changed-in-layout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#changed-in-layout"}},[e._v("#")]),e._v(" Changed in Layout")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("ILayoutItem.update")]),e._v(" no longer has a return value")])]),e._v(" "),a("h4",{attrs:{id:"changed-in-helpers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#changed-in-helpers"}},[e._v("#")]),e._v(" Changed in Helpers")]),e._v(" "),a("p",[e._v("All helpers are now exposed in a flat hierarchy, e.g., "),a("code",[e._v("Chart.helpers.canvas.clipArea")]),e._v(" -> "),a("code",[e._v("Chart.helpers.clipArea")])]),e._v(" "),a("h5",{attrs:{id:"canvas-helper"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#canvas-helper"}},[e._v("#")]),e._v(" Canvas Helper")]),e._v(" "),a("ul",[a("li",[e._v("The second parameter to "),a("code",[e._v("drawPoint")]),e._v(" is now the full options object, so "),a("code",[e._v("style")]),e._v(", "),a("code",[e._v("rotation")]),e._v(", and "),a("code",[e._v("radius")]),e._v(" are no longer passed explicitly")]),e._v(" "),a("li",[a("code",[e._v("helpers.getMaximumHeight")]),e._v(" was replaced by "),a("code",[e._v("helpers.dom.getMaximumSize")])]),e._v(" "),a("li",[a("code",[e._v("helpers.getMaximumWidth")]),e._v(" was replaced by "),a("code",[e._v("helpers.dom.getMaximumSize")])]),e._v(" "),a("li",[a("code",[e._v("helpers.clear")]),e._v(" was renamed to "),a("code",[e._v("helpers.clearCanvas")]),e._v(" and now takes "),a("code",[e._v("canvas")]),e._v(" and optionally "),a("code",[e._v("ctx")]),e._v(" as parameter(s).")]),e._v(" "),a("li",[a("code",[e._v("helpers.retinaScale")]),e._v(" accepts optional third parameter "),a("code",[e._v("forceStyle")]),e._v(", which forces overriding current canvas style. "),a("code",[e._v("forceRatio")]),e._v(" no longer falls back to "),a("code",[e._v("window.devicePixelRatio")]),e._v(", instead it defaults to "),a("code",[e._v("1")]),e._v(".")])]),e._v(" "),a("h4",{attrs:{id:"changed-in-platform"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#changed-in-platform"}},[e._v("#")]),e._v(" Changed in Platform")]),e._v(" "),a("ul",[a("li",[a("code",[e._v("Chart.platform")]),e._v(" is no longer the platform object used by charts. Every chart instance now has a separate platform instance.")]),e._v(" "),a("li",[a("code",[e._v("Chart.platforms")]),e._v(" is an object that contains two usable platform classes, "),a("code",[e._v("BasicPlatform")]),e._v(" and "),a("code",[e._v("DomPlatform")]),e._v(". It also contains "),a("code",[e._v("BasePlatform")]),e._v(", a class that all platforms must extend from.")]),e._v(" "),a("li",[e._v("If the canvas passed in is an instance of "),a("code",[e._v("OffscreenCanvas")]),e._v(", the "),a("code",[e._v("BasicPlatform")]),e._v(" is automatically used.")]),e._v(" "),a("li",[a("code",[e._v("isAttached")]),e._v(" method was added to platform.")])]),e._v(" "),a("h4",{attrs:{id:"changed-in-iplugin-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#changed-in-iplugin-interface"}},[e._v("#")]),e._v(" Changed in IPlugin interface")]),e._v(" "),a("ul",[a("li",[e._v("All plugin hooks have unified signature with 3 arguments: "),a("code",[e._v("chart")]),e._v(", "),a("code",[e._v("args")]),e._v(" and "),a("code",[e._v("options")]),e._v(". This means change in signature for these hooks: "),a("code",[e._v("beforeInit")]),e._v(", "),a("code",[e._v("afterInit")]),e._v(", "),a("code",[e._v("reset")]),e._v(", "),a("code",[e._v("beforeLayout")]),e._v(", "),a("code",[e._v("afterLayout")]),e._v(", "),a("code",[e._v("beforeRender")]),e._v(", "),a("code",[e._v("afterRender")]),e._v(", "),a("code",[e._v("beforeDraw")]),e._v(", "),a("code",[e._v("afterDraw")]),e._v(", "),a("code",[e._v("beforeDatasetsDraw")]),e._v(", "),a("code",[e._v("afterDatasetsDraw")]),e._v(", "),a("code",[e._v("beforeEvent")]),e._v(", "),a("code",[e._v("afterEvent")]),e._v(", "),a("code",[e._v("resize")]),e._v(", "),a("code",[e._v("destroy")]),e._v(".")]),e._v(" "),a("li",[a("code",[e._v("afterDatasetsUpdate")]),e._v(", "),a("code",[e._v("afterUpdate")]),e._v(", "),a("code",[e._v("beforeDatasetsUpdate")]),e._v(", and "),a("code",[e._v("beforeUpdate")]),e._v(" now receive "),a("code",[e._v("args")]),e._v(" object as second argument. "),a("code",[e._v("options")]),e._v(" argument is always the last and thus was moved from 2nd to 3rd place.")]),e._v(" "),a("li",[a("code",[e._v("afterEvent")]),e._v(" and "),a("code",[e._v("beforeEvent")]),e._v(" now receive a wrapped "),a("code",[e._v("event")]),e._v(" as the "),a("code",[e._v("event")]),e._v(" property of the second argument. The native event is available via "),a("code",[e._v("args.event.native")]),e._v(".")]),e._v(" "),a("li",[e._v("Initial "),a("code",[e._v("resize")]),e._v(" is no longer silent. Meaning that "),a("code",[e._v("resize")]),e._v(" event can fire between "),a("code",[e._v("beforeInit")]),e._v(" and "),a("code",[e._v("afterInit")])]),e._v(" "),a("li",[e._v("New hooks: "),a("code",[e._v("install")]),e._v(", "),a("code",[e._v("start")]),e._v(", "),a("code",[e._v("stop")]),e._v(", and "),a("code",[e._v("uninstall")])]),e._v(" "),a("li",[a("code",[e._v("afterEvent")]),e._v(" should notify about changes that need a render by setting "),a("code",[e._v("args.changed")]),e._v(" to true. Because the "),a("code",[e._v("args")]),e._v(" are shared with all plugins, it should only be set to true and not false.")])])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/175.3af24d58.js b/docs/latest/assets/js/175.97c4af8b.js similarity index 99% rename from docs/latest/assets/js/175.3af24d58.js rename to docs/latest/assets/js/175.97c4af8b.js index 9b298aba42..eea4ecdea5 100644 --- a/docs/latest/assets/js/175.3af24d58.js +++ b/docs/latest/assets/js/175.97c4af8b.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[175],{501:function(t,a,s){"use strict";s.r(a);var n=s(7),r=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"chart-js"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#chart-js"}},[t._v("#")]),t._v(" Chart.js")]),t._v(" "),s("p",[s("a",{attrs:{href:"https://chartjs-slack.herokuapp.com/",target:"_blank",rel:"noopener noreferrer"}},[s("img",{attrs:{src:"https://img.shields.io/badge/slack-chartjs-blue.svg?style=flat-square&maxAge=3600",alt:"slack"}}),s("OutboundLink")],1)]),t._v(" "),s("h2",{attrs:{id:"installation"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#installation"}},[t._v("#")]),t._v(" Installation")]),t._v(" "),s("p",[t._v("You can get the latest version of Chart.js from "),s("a",{attrs:{href:"https://npmjs.com/package/chart.js",target:"_blank",rel:"noopener noreferrer"}},[t._v("npm"),s("OutboundLink")],1),t._v(", the "),s("a",{attrs:{href:"https://github.com/chartjs/Chart.js/releases/latest",target:"_blank",rel:"noopener noreferrer"}},[t._v("GitHub releases"),s("OutboundLink")],1),t._v(", or use a "),s("a",{attrs:{href:"https://www.jsdelivr.com/package/npm/chart.js",target:"_blank",rel:"noopener noreferrer"}},[t._v("Chart.js CDN"),s("OutboundLink")],1),t._v(". Detailed installation instructions can be found on the "),s("RouterLink",{attrs:{to:"/getting-started/installation.html"}},[t._v("installation")]),t._v(" page.")],1),t._v(" "),s("h2",{attrs:{id:"creating-a-chart"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#creating-a-chart"}},[t._v("#")]),t._v(" Creating a Chart")]),t._v(" "),s("p",[t._v("It's easy to get started with Chart.js. All that's required is the script included in your page along with a single "),s("code",[t._v("")]),t._v(" node to render the chart.")]),t._v(" "),s("p",[t._v("In this example, we create a bar chart for a single dataset and render that in our page. You can see all the ways to use Chart.js in the "),s("RouterLink",{attrs:{to:"/getting-started/usage.html"}},[t._v("usage documentation")]),t._v(".")],1),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}},[s("span",{pre:!0,attrs:{class:"token language-javascript"}},[t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getContext")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'2d'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Red'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Blue'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Yellow'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Green'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Purple'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Orange'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'# of Votes'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("12")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("19")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("3")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("5")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("3")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n backgroundColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 99, 132, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(54, 162, 235, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 206, 86, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(75, 192, 192, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(153, 102, 255, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 159, 64, 0.2)'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 99, 132, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(54, 162, 235, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 206, 86, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(75, 192, 192, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(153, 102, 255, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 159, 64, 1)'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderWidth"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n beginAtZero"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("h2",{attrs:{id:"contributing"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#contributing"}},[t._v("#")]),t._v(" Contributing")]),t._v(" "),s("p",[t._v("Before submitting an issue or a pull request to the project, please take a moment to look over the "),s("RouterLink",{attrs:{to:"/developers/contributing.html"}},[t._v("contributing guidelines")]),t._v(" first.")],1),t._v(" "),s("p",[t._v("For support using Chart.js, please post questions with the "),s("a",{attrs:{href:"https://stackoverflow.com/questions/tagged/chartjs",target:"_blank",rel:"noopener noreferrer"}},[s("code",[t._v("chartjs")]),t._v(" tag on Stack Overflow"),s("OutboundLink")],1),t._v(".")]),t._v(" "),s("h2",{attrs:{id:"license"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#license"}},[t._v("#")]),t._v(" License")]),t._v(" "),s("p",[t._v("Chart.js is available under the "),s("a",{attrs:{href:"https://opensource.org/licenses/MIT",target:"_blank",rel:"noopener noreferrer"}},[t._v("MIT license"),s("OutboundLink")],1),t._v(".")]),t._v(" "),s("p",[t._v("Documentation is copyright © 2014-2021 Chart.js contributors.")])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[175],{500:function(t,a,s){"use strict";s.r(a);var n=s(7),r=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"chart-js"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#chart-js"}},[t._v("#")]),t._v(" Chart.js")]),t._v(" "),s("p",[s("a",{attrs:{href:"https://chartjs-slack.herokuapp.com/",target:"_blank",rel:"noopener noreferrer"}},[s("img",{attrs:{src:"https://img.shields.io/badge/slack-chartjs-blue.svg?style=flat-square&maxAge=3600",alt:"slack"}}),s("OutboundLink")],1)]),t._v(" "),s("h2",{attrs:{id:"installation"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#installation"}},[t._v("#")]),t._v(" Installation")]),t._v(" "),s("p",[t._v("You can get the latest version of Chart.js from "),s("a",{attrs:{href:"https://npmjs.com/package/chart.js",target:"_blank",rel:"noopener noreferrer"}},[t._v("npm"),s("OutboundLink")],1),t._v(", the "),s("a",{attrs:{href:"https://github.com/chartjs/Chart.js/releases/latest",target:"_blank",rel:"noopener noreferrer"}},[t._v("GitHub releases"),s("OutboundLink")],1),t._v(", or use a "),s("a",{attrs:{href:"https://www.jsdelivr.com/package/npm/chart.js",target:"_blank",rel:"noopener noreferrer"}},[t._v("Chart.js CDN"),s("OutboundLink")],1),t._v(". Detailed installation instructions can be found on the "),s("RouterLink",{attrs:{to:"/getting-started/installation.html"}},[t._v("installation")]),t._v(" page.")],1),t._v(" "),s("h2",{attrs:{id:"creating-a-chart"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#creating-a-chart"}},[t._v("#")]),t._v(" Creating a Chart")]),t._v(" "),s("p",[t._v("It's easy to get started with Chart.js. All that's required is the script included in your page along with a single "),s("code",[t._v("")]),t._v(" node to render the chart.")]),t._v(" "),s("p",[t._v("In this example, we create a bar chart for a single dataset and render that in our page. You can see all the ways to use Chart.js in the "),s("RouterLink",{attrs:{to:"/getting-started/usage.html"}},[t._v("usage documentation")]),t._v(".")],1),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}},[s("span",{pre:!0,attrs:{class:"token language-javascript"}},[t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getContext")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'2d'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Red'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Blue'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Yellow'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Green'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Purple'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Orange'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'# of Votes'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("12")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("19")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("3")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("5")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("3")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n backgroundColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 99, 132, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(54, 162, 235, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 206, 86, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(75, 192, 192, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(153, 102, 255, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 159, 64, 0.2)'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 99, 132, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(54, 162, 235, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 206, 86, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(75, 192, 192, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(153, 102, 255, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 159, 64, 1)'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderWidth"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n beginAtZero"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("h2",{attrs:{id:"contributing"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#contributing"}},[t._v("#")]),t._v(" Contributing")]),t._v(" "),s("p",[t._v("Before submitting an issue or a pull request to the project, please take a moment to look over the "),s("RouterLink",{attrs:{to:"/developers/contributing.html"}},[t._v("contributing guidelines")]),t._v(" first.")],1),t._v(" "),s("p",[t._v("For support using Chart.js, please post questions with the "),s("a",{attrs:{href:"https://stackoverflow.com/questions/tagged/chartjs",target:"_blank",rel:"noopener noreferrer"}},[s("code",[t._v("chartjs")]),t._v(" tag on Stack Overflow"),s("OutboundLink")],1),t._v(".")]),t._v(" "),s("h2",{attrs:{id:"license"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#license"}},[t._v("#")]),t._v(" License")]),t._v(" "),s("p",[t._v("Chart.js is available under the "),s("a",{attrs:{href:"https://opensource.org/licenses/MIT",target:"_blank",rel:"noopener noreferrer"}},[t._v("MIT license"),s("OutboundLink")],1),t._v(".")]),t._v(" "),s("p",[t._v("Documentation is copyright © 2014-2021 Chart.js contributors.")])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/176.af576a74.js b/docs/latest/assets/js/176.10bb64a2.js similarity index 98% rename from docs/latest/assets/js/176.af576a74.js rename to docs/latest/assets/js/176.10bb64a2.js index cf6ae53178..5c9eab245d 100644 --- a/docs/latest/assets/js/176.af576a74.js +++ b/docs/latest/assets/js/176.10bb64a2.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[176],{502:function(n,t,a){"use strict";a.r(t);var i=a(7),e=Object(i.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"data-decimation"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#data-decimation"}},[this._v("#")]),this._v(" Data Decimation")]),this._v(" "),t("p",[this._v("This example shows how to use the built-in data decimation to reduce the number of points drawn on the graph for improved performance.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'No decimation (default)',\n handler(chart) {\n chart.options.plugins.decimation.enabled = false;\n chart.update();\n }\n },\n {\n name: 'min-max decimation',\n handler(chart) {\n chart.options.plugins.decimation.algorithm = 'min-max';\n chart.options.plugins.decimation.enabled = true;\n chart.update();\n },\n },\n {\n name: 'LTTB decimation (50 samples)',\n handler(chart) {\n chart.options.plugins.decimation.algorithm = 'lttb';\n chart.options.plugins.decimation.enabled = true;\n chart.options.plugins.decimation.samples = 50;\n chart.update();\n }\n },\n {\n name: 'LTTB decimation (500 samples)',\n handler(chart) {\n chart.options.plugins.decimation.algorithm = 'lttb';\n chart.options.plugins.decimation.enabled = true;\n chart.options.plugins.decimation.samples = 500;\n chart.update();\n }\n }\n];\n// \n\n// \nconst NUM_POINTS = 100000;\nUtils.srand(10);\n\n// parseISODate returns a luxon date object to work with in the samples\n// We will create points every 30s starting from this point in time\nconst start = Utils.parseISODate('2021-04-01T00:00:00Z').toMillis();\nconst pointData = [];\n\nfor (let i = 0; i < NUM_POINTS; ++i) {\n // Most data will be in the range [0, 20) but some rare data will be in the range [0, 100)\n const max = Math.random() < 0.001 ? 100 : 20;\n pointData.push({x: start + (i * 30000), y: Utils.rand(0, max)});\n}\n\nconst data = {\n datasets: [{\n borderColor: Utils.CHART_COLORS.red,\n borderWidth: 1,\n data: pointData,\n label: 'Large Dataset',\n radius: 0,\n }]\n};\n// \n\n// \nconst decimation = {\n enabled: false,\n algorithm: 'min-max',\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n // Turn off animations and data parsing for performance\n animation: false,\n parsing: false,\n\n interaction: {\n mode: 'nearest',\n axis: 'x',\n intersect: false\n },\n plugins: {\n decimation: decimation,\n },\n scales: {\n x: {\n type: 'time',\n ticks: {\n source: 'auto',\n // Disabled rotation for performance\n maxRotation: 0,\n autoSkip: true,\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[176],{501:function(n,t,a){"use strict";a.r(t);var i=a(7),e=Object(i.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"data-decimation"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#data-decimation"}},[this._v("#")]),this._v(" Data Decimation")]),this._v(" "),t("p",[this._v("This example shows how to use the built-in data decimation to reduce the number of points drawn on the graph for improved performance.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'No decimation (default)',\n handler(chart) {\n chart.options.plugins.decimation.enabled = false;\n chart.update();\n }\n },\n {\n name: 'min-max decimation',\n handler(chart) {\n chart.options.plugins.decimation.algorithm = 'min-max';\n chart.options.plugins.decimation.enabled = true;\n chart.update();\n },\n },\n {\n name: 'LTTB decimation (50 samples)',\n handler(chart) {\n chart.options.plugins.decimation.algorithm = 'lttb';\n chart.options.plugins.decimation.enabled = true;\n chart.options.plugins.decimation.samples = 50;\n chart.update();\n }\n },\n {\n name: 'LTTB decimation (500 samples)',\n handler(chart) {\n chart.options.plugins.decimation.algorithm = 'lttb';\n chart.options.plugins.decimation.enabled = true;\n chart.options.plugins.decimation.samples = 500;\n chart.update();\n }\n }\n];\n// \n\n// \nconst NUM_POINTS = 100000;\nUtils.srand(10);\n\n// parseISODate returns a luxon date object to work with in the samples\n// We will create points every 30s starting from this point in time\nconst start = Utils.parseISODate('2021-04-01T00:00:00Z').toMillis();\nconst pointData = [];\n\nfor (let i = 0; i < NUM_POINTS; ++i) {\n // Most data will be in the range [0, 20) but some rare data will be in the range [0, 100)\n const max = Math.random() < 0.001 ? 100 : 20;\n pointData.push({x: start + (i * 30000), y: Utils.rand(0, max)});\n}\n\nconst data = {\n datasets: [{\n borderColor: Utils.CHART_COLORS.red,\n borderWidth: 1,\n data: pointData,\n label: 'Large Dataset',\n radius: 0,\n }]\n};\n// \n\n// \nconst decimation = {\n enabled: false,\n algorithm: 'min-max',\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n // Turn off animations and data parsing for performance\n animation: false,\n parsing: false,\n\n interaction: {\n mode: 'nearest',\n axis: 'x',\n intersect: false\n },\n plugins: {\n decimation: decimation,\n },\n scales: {\n x: {\n type: 'time',\n ticks: {\n source: 'auto',\n // Disabled rotation for performance\n maxRotation: 0,\n autoSkip: true,\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/177.8d2fbf83.js b/docs/latest/assets/js/177.39202147.js similarity index 99% rename from docs/latest/assets/js/177.8d2fbf83.js rename to docs/latest/assets/js/177.39202147.js index b4c8097262..4bae6838a1 100644 --- a/docs/latest/assets/js/177.8d2fbf83.js +++ b/docs/latest/assets/js/177.39202147.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[177],{503:function(t,s,a){"use strict";a.r(s);var n=a(7),e=Object(n.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"derived-axis-type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#derived-axis-type"}},[t._v("#")]),t._v(" Derived Axis Type")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 12;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 1000};\nconst labels = Utils.months({count: DATA_COUNT});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'My First dataset',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n fill: false,\n }\n ],\n};\n// \n\n// \nconst config = {\n type: 'line',\n data,\n options: {\n responsive: true,\n scales: {\n x: {\n display: true,\n },\n y: {\n display: true,\n type: 'log2',\n }\n }\n }\n};\n\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"log2-axis-implementation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#log2-axis-implementation"}},[t._v("#")]),t._v(" Log2 axis implementation")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("Scale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" LinearScale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("export")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("default")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("class")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Log2Axis")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("extends")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Scale")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("constructor")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("cfg")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("super")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("cfg"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_startValue "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("undefined")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_valueRange "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("parse")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("raw"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" index")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("LinearScale")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("prototype"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("parse")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("apply")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("raw"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("isFinite")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("value"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("&&")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("determineDataLimits")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" max"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getMinMax")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("isFinite")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("max")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("max "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("isFinite")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("max"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("max")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" max"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("buildTicks")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" ticks "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" power "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("floor")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" maxPower "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("ceil")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("max"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("while")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("power "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<=")]),t._v(" maxPower"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n ticks"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("push")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("value"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("pow")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" power"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n power "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" ticks"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("value"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("max "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" ticks"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("ticks"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("length "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("value"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" ticks"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("/**\n * @protected\n */")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("configure")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" start "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("super")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("configure")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_startValue "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("start"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_valueRange "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("max"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("start"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getPixelForValue")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("value")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("===")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("undefined")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("||")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("===")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getPixelForDecimal")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("===")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("value"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_startValue"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("/")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_valueRange"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getValueForPixel")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("pixel")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" decimal "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getDecimalForPixel")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("pixel"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("pow")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_startValue "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" decimal "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("*")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_valueRange"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\nLog2Axis"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("id "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'log2'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nLog2Axis"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The derived axis is registered like this:")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Chart.register(Log2Axis);")]),t._v("\n")])])])],1)}),[],!1,null,null,null);s.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[177],{502:function(t,s,a){"use strict";a.r(s);var n=a(7),e=Object(n.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"derived-axis-type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#derived-axis-type"}},[t._v("#")]),t._v(" Derived Axis Type")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 12;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 1000};\nconst labels = Utils.months({count: DATA_COUNT});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'My First dataset',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n fill: false,\n }\n ],\n};\n// \n\n// \nconst config = {\n type: 'line',\n data,\n options: {\n responsive: true,\n scales: {\n x: {\n display: true,\n },\n y: {\n display: true,\n type: 'log2',\n }\n }\n }\n};\n\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"log2-axis-implementation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#log2-axis-implementation"}},[t._v("#")]),t._v(" Log2 axis implementation")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("Scale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" LinearScale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("export")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("default")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("class")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Log2Axis")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("extends")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Scale")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("constructor")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("cfg")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("super")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("cfg"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_startValue "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("undefined")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_valueRange "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("parse")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("raw"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" index")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("LinearScale")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("prototype"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("parse")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("apply")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("raw"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("isFinite")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("value"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("&&")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("determineDataLimits")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" max"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getMinMax")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("isFinite")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("max")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("max "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("isFinite")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("max"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("max")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" max"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("buildTicks")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" ticks "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" power "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("floor")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" maxPower "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("ceil")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("max"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("while")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("power "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<=")]),t._v(" maxPower"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n ticks"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("push")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("value"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("pow")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" power"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n power "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" ticks"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("value"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("max "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" ticks"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("ticks"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("length "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("value"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" ticks"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("/**\n * @protected\n */")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("configure")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" start "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("super")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("configure")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_startValue "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("start"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_valueRange "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("max"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("start"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getPixelForValue")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("value")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("===")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("undefined")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("||")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("===")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getPixelForDecimal")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("===")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("value"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_startValue"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("/")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_valueRange"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getValueForPixel")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("pixel")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" decimal "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getDecimalForPixel")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("pixel"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("pow")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_startValue "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" decimal "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("*")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_valueRange"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\nLog2Axis"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("id "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'log2'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nLog2Axis"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The derived axis is registered like this:")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Chart.register(Log2Axis);")]),t._v("\n")])])])],1)}),[],!1,null,null,null);s.default=e.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/178.8f0f5f24.js b/docs/latest/assets/js/178.55369968.js similarity index 99% rename from docs/latest/assets/js/178.8f0f5f24.js rename to docs/latest/assets/js/178.55369968.js index e2bc54c3f9..d15a166a08 100644 --- a/docs/latest/assets/js/178.8f0f5f24.js +++ b/docs/latest/assets/js/178.55369968.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[178],{504:function(t,s,a){"use strict";a.r(s);var n=a(7),e=Object(n.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"derived-chart-type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#derived-chart-type"}},[t._v("#")]),t._v(" Derived Chart Type")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100, rmin: 1, rmax: 20};\nconst data = {\n datasets: [\n {\n label: 'My First dataset',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n borderColor: Utils.CHART_COLORS.blue,\n borderWidth: 1,\n boxStrokeStyle: 'red',\n data: Utils.bubbles(NUMBER_CFG)\n }\n ],\n};\n// \n\n// \nconst config = {\n type: 'derivedBubble',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Derived Chart Type'\n },\n }\n }\n};\n\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"derivedbubble-implementation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#derivedbubble-implementation"}},[t._v("#")]),t._v(" DerivedBubble Implementation")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" BubbleController"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("class")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Custom")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("extends")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("BubbleController")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Call bubble controller method to draw all the points")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("super")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("arguments"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Now we can do some custom drawing for this dataset.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Here we'll draw a box around the first point in each dataset,")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// using `boxStrokeStyle` dataset option for color")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" meta "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getMeta")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" pt0 "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" meta"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" pt0"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getProps")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'x'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'y'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" pt0"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("save")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("strokeStyle "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("boxStrokeStyle"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("lineWidth "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("strokeRect")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("x "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("*")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("*")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("restore")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\nCustom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("id "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'derivedBubble'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nCustom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Custom defaults. Bubble defaults are inherited.")]),t._v("\n boxStrokeStyle"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'red'")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Overrides are only inherited, but not merged if defined")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Custom.overrides = Chart.overrides.bubble;")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Stores the controller so that the chart initialization routine can look it up")]),t._v("\nChart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("register")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("Custom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])],1)}),[],!1,null,null,null);s.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[178],{503:function(t,s,a){"use strict";a.r(s);var n=a(7),e=Object(n.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"derived-chart-type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#derived-chart-type"}},[t._v("#")]),t._v(" Derived Chart Type")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100, rmin: 1, rmax: 20};\nconst data = {\n datasets: [\n {\n label: 'My First dataset',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n borderColor: Utils.CHART_COLORS.blue,\n borderWidth: 1,\n boxStrokeStyle: 'red',\n data: Utils.bubbles(NUMBER_CFG)\n }\n ],\n};\n// \n\n// \nconst config = {\n type: 'derivedBubble',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Derived Chart Type'\n },\n }\n }\n};\n\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"derivedbubble-implementation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#derivedbubble-implementation"}},[t._v("#")]),t._v(" DerivedBubble Implementation")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" BubbleController"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("class")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Custom")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("extends")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("BubbleController")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Call bubble controller method to draw all the points")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("super")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("arguments"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Now we can do some custom drawing for this dataset.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Here we'll draw a box around the first point in each dataset,")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// using `boxStrokeStyle` dataset option for color")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" meta "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getMeta")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" pt0 "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" meta"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" pt0"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getProps")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'x'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'y'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" pt0"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("save")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("strokeStyle "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("boxStrokeStyle"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("lineWidth "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("strokeRect")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("x "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("*")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("*")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("restore")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\nCustom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("id "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'derivedBubble'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nCustom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Custom defaults. Bubble defaults are inherited.")]),t._v("\n boxStrokeStyle"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'red'")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Overrides are only inherited, but not merged if defined")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Custom.overrides = Chart.overrides.bubble;")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Stores the controller so that the chart initialization routine can look it up")]),t._v("\nChart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("register")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("Custom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])],1)}),[],!1,null,null,null);s.default=e.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/179.8678e43d.js b/docs/latest/assets/js/179.801e181f.js similarity index 97% rename from docs/latest/assets/js/179.8678e43d.js rename to docs/latest/assets/js/179.801e181f.js index bc6088d2f0..b8db3ecf04 100644 --- a/docs/latest/assets/js/179.8678e43d.js +++ b/docs/latest/assets/js/179.801e181f.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[179],{505:function(t,n,a){"use strict";a.r(n);var e=a(7),r=Object(e.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"linear-gradient"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#linear-gradient"}},[this._v("#")]),this._v(" Linear Gradient")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nlet width, height, gradient;\nfunction getGradient(ctx, chartArea) {\n const chartWidth = chartArea.right - chartArea.left;\n const chartHeight = chartArea.bottom - chartArea.top;\n if (gradient === null || width !== chartWidth || height !== chartHeight) {\n // Create the gradient because this is either the first render\n // or the size of the chart has changed\n width = chartWidth;\n height = chartHeight;\n gradient = ctx.createLinearGradient(0, chartArea.bottom, 0, chartArea.top);\n gradient.addColorStop(0, Utils.CHART_COLORS.blue);\n gradient.addColorStop(0.5, Utils.CHART_COLORS.yellow);\n gradient.addColorStop(1, Utils.CHART_COLORS.red);\n }\n\n return gradient;\n}\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst labels = Utils.months({count: 7});\n\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: function(context) {\n const chart = context.chart;\n const {ctx, chartArea} = chart;\n\n if (!chartArea) {\n // This case happens on initial chart load\n return null;\n }\n return getGradient(ctx, chartArea);\n },\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[179],{504:function(t,n,a){"use strict";a.r(n);var e=a(7),r=Object(e.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"linear-gradient"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#linear-gradient"}},[this._v("#")]),this._v(" Linear Gradient")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nlet width, height, gradient;\nfunction getGradient(ctx, chartArea) {\n const chartWidth = chartArea.right - chartArea.left;\n const chartHeight = chartArea.bottom - chartArea.top;\n if (gradient === null || width !== chartWidth || height !== chartHeight) {\n // Create the gradient because this is either the first render\n // or the size of the chart has changed\n width = chartWidth;\n height = chartHeight;\n gradient = ctx.createLinearGradient(0, chartArea.bottom, 0, chartArea.top);\n gradient.addColorStop(0, Utils.CHART_COLORS.blue);\n gradient.addColorStop(0.5, Utils.CHART_COLORS.yellow);\n gradient.addColorStop(1, Utils.CHART_COLORS.red);\n }\n\n return gradient;\n}\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst labels = Utils.months({count: 7});\n\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: function(context) {\n const chart = context.chart;\n const {ctx, chartArea} = chart;\n\n if (!chartArea) {\n // This case happens on initial chart load\n return null;\n }\n return getGradient(ctx, chartArea);\n },\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/18.8259392d.js b/docs/latest/assets/js/18.8259392d.js new file mode 100644 index 0000000000..47fa7cb59c --- /dev/null +++ b/docs/latest/assets/js/18.8259392d.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{342:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-scale-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-scale-o"}},[t._v("#")]),t._v(" Class: Scale")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, O>")],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("Scale")])]),t._v(" "),a("p",[t._v("↳↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/timescale.html"}},[a("em",[t._v("TimeScale")])])],1),t._v(" "),a("p",[t._v("↳↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/radiallinearscale.html"}},[a("em",[t._v("RadialLinearScale")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new Scale")]),t._v("("),a("code",[t._v("cfg")]),t._v(": { "),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown> ; "),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D ; "),a("code",[t._v("id")]),t._v(": "),a("em",[t._v("string")]),t._v(" ; "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(" }): "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg.chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg.ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg.id")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg.type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("p",[t._v("Inherited from: Element<{}, O>.constructor")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1257",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1257"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"axis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("axis")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1160",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1160"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Bottom edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#bottom"}},[t._v("bottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L41",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:41"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1150",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1150"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ctx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ctx"}},[t._v("#")]),t._v(" ctx")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("ctx")]),t._v(": CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1149",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1149"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("fullSize")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("if true, and the item is horizontal, then push vertical boxes down")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#fullsize"}},[t._v("fullSize")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"height"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("height")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Height of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#height"}},[t._v("height")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"id"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("id")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1147",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1147"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labelrotation"}},[t._v("#")]),t._v(" labelRotation")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("labelRotation")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1161",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1161"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"left"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("left")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Left edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#left"}},[t._v("left")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:29"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"max"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#max"}},[t._v("#")]),t._v(" max")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("max")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1163",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1163"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxheight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxheight"}},[t._v("#")]),t._v(" maxHeight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxHeight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1153",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1153"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxwidth"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxwidth"}},[t._v("#")]),t._v(" maxWidth")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxWidth")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1152",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1152"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"min"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#min"}},[t._v("#")]),t._v(" min")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("min")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1162",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1162"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingbottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingbottom"}},[t._v("#")]),t._v(" paddingBottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingBottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1156",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1156"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingleft"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingleft"}},[t._v("#")]),t._v(" paddingLeft")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingLeft")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1157",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1157"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingright"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingright"}},[t._v("#")]),t._v(" paddingRight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingRight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1158",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1158"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingtop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingtop"}},[t._v("#")]),t._v(" paddingTop")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingTop")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1155",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1155"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])])],1),t._v(" "),a("p",[t._v("The position of the item in the chart layout. Possible values are")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#position"}},[t._v("position")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"right"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("right")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Right edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#right"}},[t._v("right")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:37"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[t._v("#")]),t._v(" ticks")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1164",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1164"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"top"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("top")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Top edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#top"}},[t._v("top")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:33"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("type")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1148",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1148"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the item. Higher weights are further away from the chart area")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#weight"}},[t._v("weight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"width"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("width")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Width of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#width"}},[t._v("width")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1244",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1244"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftercalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftercalculatelabelrotation"}},[t._v("#")]),t._v(" afterCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1250",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1250"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1241",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1241"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfit"}},[t._v("#")]),t._v(" afterFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1253",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1253"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftersetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftersetdimensions"}},[t._v("#")]),t._v(" afterSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1238",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1238"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterticktolabelconversion"}},[t._v("#")]),t._v(" afterTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1247",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1247"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1235",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1235"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1242",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1242"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforecalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforecalculatelabelrotation"}},[t._v("#")]),t._v(" beforeCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1248",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1248"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1239",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1239"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefit"}},[t._v("#")]),t._v(" beforeFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1251",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1251"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforelayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeLayout")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Called before the layout process starts")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L46",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:46"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforesetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforesetdimensions"}},[t._v("#")]),t._v(" beforeSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1236",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1236"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeticktolabelconversion"}},[t._v("#")]),t._v(" beforeTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1245",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1245"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1233",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1233"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildticks"}},[t._v("#")]),t._v(" buildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1243",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1243"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatelabelrotation"}},[t._v("#")]),t._v(" calculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1249",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1249"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1234",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1234"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"determinedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#determinedatalimits"}},[t._v("#")]),t._v(" determineDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("determineDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1240",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1240"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Draws the element")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L50",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:50"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawgrid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawgrid"}},[t._v("#")]),t._v(" drawGrid")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawGrid")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1169",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1169"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawlabels"}},[t._v("#")]),t._v(" drawLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawLabels")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1168",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1168"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawtitle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawtitle"}},[t._v("#")]),t._v(" drawTitle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawTitle")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1167",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1167"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fit"}},[t._v("#")]),t._v(" fit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("fit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1252",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1252"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"generateticklabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#generateticklabels"}},[t._v("#")]),t._v(" generateTickLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("generateTickLabels")]),t._v("("),a("code",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ticks")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1246",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1246"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasepixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasepixel"}},[t._v("#")]),t._v(" getBasePixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBasePixel")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the pixel for the minimum chart value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1225",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1225"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasevalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasevalue"}},[t._v("#")]),t._v(" getBaseValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBaseValue")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1219",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1219"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdecimalforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdecimalforpixel"}},[t._v("#")]),t._v(" getDecimalForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDecimalForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1175",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1175"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelforvalue"}},[t._v("#")]),t._v(" getLabelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Used to get the label to display in the tooltip for the given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1195",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1195"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabels"}},[t._v("#")]),t._v(" getLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabels")]),t._v("(): "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1232",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1232"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlinewidthforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlinewidthforvalue"}},[t._v("#")]),t._v(" getLineWidthForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLineWidthForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the grid line width at given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1200",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1200"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmatchingvisiblemetas"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmatchingvisiblemetas"}},[t._v("#")]),t._v(" getMatchingVisibleMetas")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMatchingVisibleMetas")]),t._v("("),a("code",[t._v("type?")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1165",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1165"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("canStack")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1230",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1230"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpadding"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpadding"}},[t._v("#")]),t._v(" getPadding")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getPadding")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Returns an object with padding on the edges")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L54",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:54"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfordecimal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfordecimal"}},[t._v("#")]),t._v(" getPixelForDecimal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForDecimal")]),t._v("("),a("code",[t._v("decimal")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Utility for getting the pixel location of a percentage of scale\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("decimal")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1182",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1182"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfortick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfortick"}},[t._v("#")]),t._v(" getPixelForTick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForTick")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the tick at the given index\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1189",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1189"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelforvalue"}},[t._v("#")]),t._v(" getPixelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the given data point. Value can either be an index or a numerical value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1209",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1209"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-7"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": "),a("em",[t._v("never")]),t._v("[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getticks"}},[t._v("#")]),t._v(" getTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1231",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1231"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getuserbounds"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getuserbounds"}},[t._v("#")]),t._v(" getUserBounds")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getUserBounds")]),t._v("(): "),a("em",[t._v("object")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("maxDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("minDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1229",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1229"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getvalueforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getvalueforpixel"}},[t._v("#")]),t._v(" getValueForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getValueForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Used to get the data value from a given pixel. This is the inverse of getPixelForValue\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1217",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1217"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"init"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#init"}},[t._v("#")]),t._v(" init")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("init")]),t._v("("),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1227",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1227"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isfullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isfullsize"}},[t._v("#")]),t._v(" isFullSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isFullSize")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1255",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1255"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ishorizontal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ishorizontal"}},[t._v("#")]),t._v(" isHorizontal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isHorizontal")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("returns true if the layout item is horizontal (ie. top or bottom)")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("raw")]),t._v(": "),a("em",[t._v("unknown")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("unknown")])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("raw")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("unknown")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1228",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1228"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setdimensions"}},[t._v("#")]),t._v(" setDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1237",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1237"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("margins?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Takes two parameters: width and height.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("margins?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:64"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/18.d99a8955.js b/docs/latest/assets/js/18.d99a8955.js deleted file mode 100644 index ab700470db..0000000000 --- a/docs/latest/assets/js/18.d99a8955.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{345:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-scale-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-scale-o"}},[t._v("#")]),t._v(" Class: Scale")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, O>")],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("Scale")])]),t._v(" "),a("p",[t._v("↳↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/timescale.html"}},[a("em",[t._v("TimeScale")])])],1),t._v(" "),a("p",[t._v("↳↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/radiallinearscale.html"}},[a("em",[t._v("RadialLinearScale")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new Scale")]),t._v("("),a("code",[t._v("cfg")]),t._v(": { "),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown> ; "),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D ; "),a("code",[t._v("id")]),t._v(": "),a("em",[t._v("string")]),t._v(" ; "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(" }): "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg.chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg.ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg.id")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg.type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("p",[t._v("Inherited from: Element<{}, O>.constructor")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1257",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1257"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"axis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("axis")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1160",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1160"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Bottom edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#bottom"}},[t._v("bottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L41",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:41"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1150",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1150"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ctx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ctx"}},[t._v("#")]),t._v(" ctx")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("ctx")]),t._v(": CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1149",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1149"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("fullSize")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("if true, and the item is horizontal, then push vertical boxes down")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#fullsize"}},[t._v("fullSize")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"height"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("height")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Height of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#height"}},[t._v("height")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"id"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("id")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1147",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1147"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labelrotation"}},[t._v("#")]),t._v(" labelRotation")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("labelRotation")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1161",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1161"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"left"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("left")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Left edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#left"}},[t._v("left")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:29"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"max"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#max"}},[t._v("#")]),t._v(" max")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("max")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1163",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1163"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxheight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxheight"}},[t._v("#")]),t._v(" maxHeight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxHeight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1153",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1153"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxwidth"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxwidth"}},[t._v("#")]),t._v(" maxWidth")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxWidth")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1152",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1152"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"min"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#min"}},[t._v("#")]),t._v(" min")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("min")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1162",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1162"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingbottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingbottom"}},[t._v("#")]),t._v(" paddingBottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingBottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1156",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1156"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingleft"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingleft"}},[t._v("#")]),t._v(" paddingLeft")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingLeft")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1157",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1157"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingright"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingright"}},[t._v("#")]),t._v(" paddingRight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingRight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1158",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1158"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingtop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingtop"}},[t._v("#")]),t._v(" paddingTop")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingTop")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1155",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1155"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])])],1),t._v(" "),a("p",[t._v("The position of the item in the chart layout. Possible values are")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#position"}},[t._v("position")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"right"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("right")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Right edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#right"}},[t._v("right")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:37"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[t._v("#")]),t._v(" ticks")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1164",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1164"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"top"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("top")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Top edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#top"}},[t._v("top")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:33"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("type")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1148",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1148"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the item. Higher weights are further away from the chart area")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#weight"}},[t._v("weight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"width"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("width")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Width of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#width"}},[t._v("width")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1244",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1244"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftercalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftercalculatelabelrotation"}},[t._v("#")]),t._v(" afterCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1250",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1250"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1241",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1241"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfit"}},[t._v("#")]),t._v(" afterFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1253",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1253"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftersetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftersetdimensions"}},[t._v("#")]),t._v(" afterSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1238",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1238"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterticktolabelconversion"}},[t._v("#")]),t._v(" afterTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1247",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1247"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1235",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1235"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1242",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1242"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforecalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforecalculatelabelrotation"}},[t._v("#")]),t._v(" beforeCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1248",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1248"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1239",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1239"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefit"}},[t._v("#")]),t._v(" beforeFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1251",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1251"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforelayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeLayout")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Called before the layout process starts")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L46",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:46"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforesetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforesetdimensions"}},[t._v("#")]),t._v(" beforeSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1236",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1236"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeticktolabelconversion"}},[t._v("#")]),t._v(" beforeTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1245",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1245"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1233",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1233"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildticks"}},[t._v("#")]),t._v(" buildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1243",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1243"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatelabelrotation"}},[t._v("#")]),t._v(" calculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1249",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1249"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1234",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1234"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"determinedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#determinedatalimits"}},[t._v("#")]),t._v(" determineDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("determineDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1240",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1240"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Draws the element")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L50",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:50"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawgrid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawgrid"}},[t._v("#")]),t._v(" drawGrid")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawGrid")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1169",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1169"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawlabels"}},[t._v("#")]),t._v(" drawLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawLabels")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1168",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1168"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawtitle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawtitle"}},[t._v("#")]),t._v(" drawTitle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawTitle")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1167",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1167"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fit"}},[t._v("#")]),t._v(" fit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("fit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1252",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1252"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"generateticklabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#generateticklabels"}},[t._v("#")]),t._v(" generateTickLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("generateTickLabels")]),t._v("("),a("code",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ticks")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1246",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1246"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasepixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasepixel"}},[t._v("#")]),t._v(" getBasePixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBasePixel")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the pixel for the minimum chart value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1225",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1225"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasevalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasevalue"}},[t._v("#")]),t._v(" getBaseValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBaseValue")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1219",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1219"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdecimalforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdecimalforpixel"}},[t._v("#")]),t._v(" getDecimalForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDecimalForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1175",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1175"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelforvalue"}},[t._v("#")]),t._v(" getLabelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Used to get the label to display in the tooltip for the given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1195",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1195"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabels"}},[t._v("#")]),t._v(" getLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabels")]),t._v("(): "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1232",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1232"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlinewidthforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlinewidthforvalue"}},[t._v("#")]),t._v(" getLineWidthForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLineWidthForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the grid line width at given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1200",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1200"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmatchingvisiblemetas"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmatchingvisiblemetas"}},[t._v("#")]),t._v(" getMatchingVisibleMetas")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMatchingVisibleMetas")]),t._v("("),a("code",[t._v("type?")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1165",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1165"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("canStack")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1230",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1230"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpadding"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpadding"}},[t._v("#")]),t._v(" getPadding")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getPadding")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Returns an object with padding on the edges")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L54",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:54"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfordecimal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfordecimal"}},[t._v("#")]),t._v(" getPixelForDecimal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForDecimal")]),t._v("("),a("code",[t._v("decimal")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Utility for getting the pixel location of a percentage of scale\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("decimal")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1182",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1182"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfortick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfortick"}},[t._v("#")]),t._v(" getPixelForTick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForTick")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the tick at the given index\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1189",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1189"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelforvalue"}},[t._v("#")]),t._v(" getPixelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the given data point. Value can either be an index or a numerical value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1209",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1209"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-7"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": "),a("em",[t._v("never")]),t._v("[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getticks"}},[t._v("#")]),t._v(" getTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1231",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1231"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getuserbounds"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getuserbounds"}},[t._v("#")]),t._v(" getUserBounds")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getUserBounds")]),t._v("(): "),a("em",[t._v("object")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("maxDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("minDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1229",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1229"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getvalueforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getvalueforpixel"}},[t._v("#")]),t._v(" getValueForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getValueForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Used to get the data value from a given pixel. This is the inverse of getPixelForValue\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1217",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1217"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"init"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#init"}},[t._v("#")]),t._v(" init")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("init")]),t._v("("),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1227",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1227"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isfullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isfullsize"}},[t._v("#")]),t._v(" isFullSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isFullSize")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1255",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1255"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ishorizontal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ishorizontal"}},[t._v("#")]),t._v(" isHorizontal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isHorizontal")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("returns true if the layout item is horizontal (ie. top or bottom)")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("raw")]),t._v(": "),a("em",[t._v("unknown")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("unknown")])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("raw")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("unknown")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1228",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1228"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setdimensions"}},[t._v("#")]),t._v(" setDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1237",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1237"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("margins?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Takes two parameters: width and height.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("margins?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:64"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/180.4e9f32ac.js b/docs/latest/assets/js/180.4dbdd10b.js similarity index 97% rename from docs/latest/assets/js/180.4e9f32ac.js rename to docs/latest/assets/js/180.4dbdd10b.js index 3833d9bf1f..e06f858322 100644 --- a/docs/latest/assets/js/180.4e9f32ac.js +++ b/docs/latest/assets/js/180.4dbdd10b.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[180],{507:function(n,t,e){"use strict";e.r(t);var r=e(7),o=Object(r.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"programmatic-event-triggers"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#programmatic-event-triggers"}},[this._v("#")]),this._v(" Programmatic Event Triggers")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nfunction triggerHover(chart) {\n if (chart.getActiveElements().length > 0) {\n chart.setActiveElements([]);\n } else {\n chart.setActiveElements([\n {\n datasetIndex: 0,\n index: 0,\n }, {\n datasetIndex: 1,\n index: 0,\n }\n ]);\n }\n chart.update();\n}\n// \n\n// \nfunction triggerTooltip(chart) {\n const tooltip = chart.tooltip;\n if (tooltip.getActiveElements().length > 0) {\n tooltip.setActiveElements([], {x: 0, y: 0});\n } else {\n const chartArea = chart.chartArea;\n tooltip.setActiveElements([\n {\n datasetIndex: 0,\n index: 2,\n }, {\n datasetIndex: 1,\n index: 2,\n }\n ],\n {\n x: (chartArea.left + chartArea.right) / 2,\n y: (chartArea.top + chartArea.bottom) / 2,\n });\n }\n\n chart.update();\n}\n// \n\n// \nconst actions = [\n {\n name: 'Trigger Hover',\n handler: triggerHover\n },\n {\n name: 'Trigger Tooltip',\n handler: triggerTooltip\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n hoverBorderWidth: 5,\n hoverBorderColor: 'green',\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n hoverBorderWidth: 5,\n hoverBorderColor: 'green',\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[180],{505:function(n,t,e){"use strict";e.r(t);var r=e(7),o=Object(r.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"programmatic-event-triggers"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#programmatic-event-triggers"}},[this._v("#")]),this._v(" Programmatic Event Triggers")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nfunction triggerHover(chart) {\n if (chart.getActiveElements().length > 0) {\n chart.setActiveElements([]);\n } else {\n chart.setActiveElements([\n {\n datasetIndex: 0,\n index: 0,\n }, {\n datasetIndex: 1,\n index: 0,\n }\n ]);\n }\n chart.update();\n}\n// \n\n// \nfunction triggerTooltip(chart) {\n const tooltip = chart.tooltip;\n if (tooltip.getActiveElements().length > 0) {\n tooltip.setActiveElements([], {x: 0, y: 0});\n } else {\n const chartArea = chart.chartArea;\n tooltip.setActiveElements([\n {\n datasetIndex: 0,\n index: 2,\n }, {\n datasetIndex: 1,\n index: 2,\n }\n ],\n {\n x: (chartArea.left + chartArea.right) / 2,\n y: (chartArea.top + chartArea.bottom) / 2,\n });\n }\n\n chart.update();\n}\n// \n\n// \nconst actions = [\n {\n name: 'Trigger Hover',\n handler: triggerHover\n },\n {\n name: 'Trigger Tooltip',\n handler: triggerTooltip\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n hoverBorderWidth: 5,\n hoverBorderColor: 'green',\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n hoverBorderWidth: 5,\n hoverBorderColor: 'green',\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/181.a1ba0d74.js b/docs/latest/assets/js/181.b89e4b0e.js similarity index 100% rename from docs/latest/assets/js/181.a1ba0d74.js rename to docs/latest/assets/js/181.b89e4b0e.js diff --git a/docs/latest/assets/js/182.03d3109d.js b/docs/latest/assets/js/182.1927f285.js similarity index 98% rename from docs/latest/assets/js/182.03d3109d.js rename to docs/latest/assets/js/182.1927f285.js index 3ce0058d8d..ba860433d4 100644 --- a/docs/latest/assets/js/182.03d3109d.js +++ b/docs/latest/assets/js/182.1927f285.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[182],{509:function(t,n,a){"use strict";a.r(n);var e=a(7),r=Object(e.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"radial-gradient"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#radial-gradient"}},[this._v("#")]),this._v(" Radial Gradient")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 5;\nUtils.srand(110);\n\nconst chartColors = Utils.CHART_COLORS;\nconst colors = [chartColors.red, chartColors.orange, chartColors.yellow, chartColors.green, chartColors.blue];\n\nconst cache = new Map();\nlet width = null;\nlet height = null;\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n];\n// \n\n// \nfunction createRadialGradient3(context, c1, c2, c3) {\n const chartArea = context.chart.chartArea;\n if (!chartArea) {\n // This case happens on initial chart load\n return null;\n }\n\n const chartWidth = chartArea.right - chartArea.left;\n const chartHeight = chartArea.bottom - chartArea.top;\n if (width !== chartWidth || height !== chartHeight) {\n cache.clear();\n }\n var gradient = cache.get(c1 + c2 + c3);\n if (!gradient) {\n // Create the gradient because this is either the first render\n // or the size of the chart has changed\n width = chartWidth;\n height = chartHeight;\n const centerX = (chartArea.left + chartArea.right) / 2;\n const centerY = (chartArea.top + chartArea.bottom) / 2;\n const r = Math.min(\n (chartArea.right - chartArea.left) / 2,\n (chartArea.bottom - chartArea.top) / 2\n );\n var ctx = context.chart.ctx;\n gradient = ctx.createRadialGradient(centerX, centerY, 0, centerX, centerY, r);\n gradient.addColorStop(0, c1);\n gradient.addColorStop(0.5, c2);\n gradient.addColorStop(1, c3);\n cache.set(c1 + c2 + c3, gradient);\n }\n\n return gradient;\n}\n// \n\n// \nfunction generateData() {\n return Utils.numbers({\n count: DATA_COUNT,\n min: 0,\n max: 100\n });\n}\n\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n data: generateData()\n }]\n};\n// \n\n// \nconst config = {\n type: 'polarArea',\n data: data,\n options: {\n plugins: {\n legend: false,\n tooltip: false,\n },\n elements: {\n arc: {\n backgroundColor: function(context) {\n let c = colors[context.dataIndex];\n if (!c) {\n return;\n }\n if (context.active) {\n c = helpers.getHoverColor(c);\n }\n const mid = helpers.color(c).desaturate(0.2).darken(0.2).rgbString();\n const start = helpers.color(c).lighten(0.2).rotate(270).rgbString();\n const end = helpers.color(c).lighten(0.1).rgbString();\n return createRadialGradient3(context, start, mid, end);\n },\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[182],{507:function(t,n,a){"use strict";a.r(n);var e=a(7),r=Object(e.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"radial-gradient"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#radial-gradient"}},[this._v("#")]),this._v(" Radial Gradient")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 5;\nUtils.srand(110);\n\nconst chartColors = Utils.CHART_COLORS;\nconst colors = [chartColors.red, chartColors.orange, chartColors.yellow, chartColors.green, chartColors.blue];\n\nconst cache = new Map();\nlet width = null;\nlet height = null;\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n];\n// \n\n// \nfunction createRadialGradient3(context, c1, c2, c3) {\n const chartArea = context.chart.chartArea;\n if (!chartArea) {\n // This case happens on initial chart load\n return null;\n }\n\n const chartWidth = chartArea.right - chartArea.left;\n const chartHeight = chartArea.bottom - chartArea.top;\n if (width !== chartWidth || height !== chartHeight) {\n cache.clear();\n }\n var gradient = cache.get(c1 + c2 + c3);\n if (!gradient) {\n // Create the gradient because this is either the first render\n // or the size of the chart has changed\n width = chartWidth;\n height = chartHeight;\n const centerX = (chartArea.left + chartArea.right) / 2;\n const centerY = (chartArea.top + chartArea.bottom) / 2;\n const r = Math.min(\n (chartArea.right - chartArea.left) / 2,\n (chartArea.bottom - chartArea.top) / 2\n );\n var ctx = context.chart.ctx;\n gradient = ctx.createRadialGradient(centerX, centerY, 0, centerX, centerY, r);\n gradient.addColorStop(0, c1);\n gradient.addColorStop(0.5, c2);\n gradient.addColorStop(1, c3);\n cache.set(c1 + c2 + c3, gradient);\n }\n\n return gradient;\n}\n// \n\n// \nfunction generateData() {\n return Utils.numbers({\n count: DATA_COUNT,\n min: 0,\n max: 100\n });\n}\n\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n data: generateData()\n }]\n};\n// \n\n// \nconst config = {\n type: 'polarArea',\n data: data,\n options: {\n plugins: {\n legend: false,\n tooltip: false,\n },\n elements: {\n arc: {\n backgroundColor: function(context) {\n let c = colors[context.dataIndex];\n if (!c) {\n return;\n }\n if (context.active) {\n c = helpers.getHoverColor(c);\n }\n const mid = helpers.color(c).desaturate(0.2).darken(0.2).rgbString();\n const start = helpers.color(c).lighten(0.2).rotate(270).rgbString();\n const end = helpers.color(c).lighten(0.1).rgbString();\n return createRadialGradient3(context, start, mid, end);\n },\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/183.2ff41135.js b/docs/latest/assets/js/183.4d36feec.js similarity index 100% rename from docs/latest/assets/js/183.2ff41135.js rename to docs/latest/assets/js/183.4d36feec.js diff --git a/docs/latest/assets/js/184.b2231777.js b/docs/latest/assets/js/184.1fac3328.js similarity index 98% rename from docs/latest/assets/js/184.b2231777.js rename to docs/latest/assets/js/184.1fac3328.js index 64f2977da6..0ba2de6428 100644 --- a/docs/latest/assets/js/184.b2231777.js +++ b/docs/latest/assets/js/184.1fac3328.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[184],{510:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"drop"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#drop"}},[this._v("#")]),this._v(" Drop")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n animations: {\n y: {\n duration: 2000,\n delay: 500\n }\n },\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n fill: 1,\n tension: 0.5\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n animations: {\n y: {\n easing: 'easeInOutElastic',\n from: (ctx) => {\n if (ctx.type === 'data') {\n if (ctx.mode === 'default' && !ctx.dropped) {\n ctx.dropped = true;\n return 0;\n }\n }\n }\n }\n },\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[184],{509:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"drop"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#drop"}},[this._v("#")]),this._v(" Drop")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n animations: {\n y: {\n duration: 2000,\n delay: 500\n }\n },\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n fill: 1,\n tension: 0.5\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n animations: {\n y: {\n easing: 'easeInOutElastic',\n from: (ctx) => {\n if (ctx.type === 'data') {\n if (ctx.mode === 'default' && !ctx.dropped) {\n ctx.dropped = true;\n return 0;\n }\n }\n }\n }\n },\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/185.4ad99c89.js b/docs/latest/assets/js/185.6c8fa5a8.js similarity index 98% rename from docs/latest/assets/js/185.4ad99c89.js rename to docs/latest/assets/js/185.6c8fa5a8.js index dfca19d4f1..cd85b498cd 100644 --- a/docs/latest/assets/js/185.4ad99c89.js +++ b/docs/latest/assets/js/185.6c8fa5a8.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[185],{511:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"loop"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#loop"}},[this._v("#")]),this._v(" Loop")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: DATA_COUNT});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n tension: 0.4,\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n tension: 0.2,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n animations: {\n radius: {\n duration: 400,\n easing: 'linear',\n loop: (context) => context.active\n }\n },\n hoverRadius: 12,\n hoverBackgroundColor: 'yellow',\n interaction: {\n mode: 'nearest',\n intersect: false,\n axis: 'x'\n },\n plugins: {\n tooltip: {\n enabled: false\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[185],{510:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"loop"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#loop"}},[this._v("#")]),this._v(" Loop")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: DATA_COUNT});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n tension: 0.4,\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n tension: 0.2,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n animations: {\n radius: {\n duration: 400,\n easing: 'linear',\n loop: (context) => context.active\n }\n },\n hoverRadius: 12,\n hoverBackgroundColor: 'yellow',\n interaction: {\n mode: 'nearest',\n intersect: false,\n axis: 'x'\n },\n plugins: {\n tooltip: {\n enabled: false\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/186.5165b4c6.js b/docs/latest/assets/js/186.385fd801.js similarity index 97% rename from docs/latest/assets/js/186.5165b4c6.js rename to docs/latest/assets/js/186.385fd801.js index 18327aea32..3c3d8f4f21 100644 --- a/docs/latest/assets/js/186.5165b4c6.js +++ b/docs/latest/assets/js/186.385fd801.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[186],{512:function(n,t,e){"use strict";e.r(t);var a=e(7),r=Object(a.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"progressive-line"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#progressive-line"}},[this._v("#")]),this._v(" Progressive Line")]),this._v(" "),t("chart-editor",{attrs:{code:"\n// \nconst data = [];\nconst data2 = [];\nlet prev = 100;\nlet prev2 = 80;\nfor (let i = 0; i < 1000; i++) {\n prev += 5 - Math.random() * 10;\n data.push({x: i, y: prev});\n prev2 += 5 - Math.random() * 10;\n data2.push({x: i, y: prev2});\n}\n// \n\n// \nconst totalDuration = 10000;\nconst delayBetweenPoints = totalDuration / data.length;\nconst previousY = (ctx) => ctx.index === 0 ? ctx.chart.scales.y.getPixelForValue(100) : ctx.chart.getDatasetMeta(ctx.datasetIndex).data[ctx.index - 1].getProps(['y'], true).y;\nconst animation = {\n x: {\n type: 'number',\n easing: 'linear',\n duration: delayBetweenPoints,\n from: NaN, // the point is initially skipped\n delay(ctx) {\n if (ctx.type !== 'data' || ctx.xStarted) {\n return 0;\n }\n ctx.xStarted = true;\n return ctx.index * delayBetweenPoints;\n }\n },\n y: {\n type: 'number',\n easing: 'linear',\n duration: delayBetweenPoints,\n from: previousY,\n delay(ctx) {\n if (ctx.type !== 'data' || ctx.yStarted) {\n return 0;\n }\n ctx.yStarted = true;\n return ctx.index * delayBetweenPoints;\n }\n }\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: {\n datasets: [{\n borderColor: Utils.CHART_COLORS.red,\n borderWidth: 1,\n radius: 0,\n data: data,\n },\n {\n borderColor: Utils.CHART_COLORS.blue,\n borderWidth: 1,\n radius: 0,\n data: data2,\n }]\n },\n options: {\n animation,\n interaction: {\n intersect: false\n },\n plugins: {\n legend: false\n },\n scales: {\n x: {\n type: 'linear'\n }\n }\n }\n};\n// \n\nmodule.exports = {\n config\n};\n\n"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[186],{511:function(n,t,e){"use strict";e.r(t);var a=e(7),r=Object(a.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"progressive-line"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#progressive-line"}},[this._v("#")]),this._v(" Progressive Line")]),this._v(" "),t("chart-editor",{attrs:{code:"\n// \nconst data = [];\nconst data2 = [];\nlet prev = 100;\nlet prev2 = 80;\nfor (let i = 0; i < 1000; i++) {\n prev += 5 - Math.random() * 10;\n data.push({x: i, y: prev});\n prev2 += 5 - Math.random() * 10;\n data2.push({x: i, y: prev2});\n}\n// \n\n// \nconst totalDuration = 10000;\nconst delayBetweenPoints = totalDuration / data.length;\nconst previousY = (ctx) => ctx.index === 0 ? ctx.chart.scales.y.getPixelForValue(100) : ctx.chart.getDatasetMeta(ctx.datasetIndex).data[ctx.index - 1].getProps(['y'], true).y;\nconst animation = {\n x: {\n type: 'number',\n easing: 'linear',\n duration: delayBetweenPoints,\n from: NaN, // the point is initially skipped\n delay(ctx) {\n if (ctx.type !== 'data' || ctx.xStarted) {\n return 0;\n }\n ctx.xStarted = true;\n return ctx.index * delayBetweenPoints;\n }\n },\n y: {\n type: 'number',\n easing: 'linear',\n duration: delayBetweenPoints,\n from: previousY,\n delay(ctx) {\n if (ctx.type !== 'data' || ctx.yStarted) {\n return 0;\n }\n ctx.yStarted = true;\n return ctx.index * delayBetweenPoints;\n }\n }\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: {\n datasets: [{\n borderColor: Utils.CHART_COLORS.red,\n borderWidth: 1,\n radius: 0,\n data: data,\n },\n {\n borderColor: Utils.CHART_COLORS.blue,\n borderWidth: 1,\n radius: 0,\n data: data2,\n }]\n },\n options: {\n animation,\n interaction: {\n intersect: false\n },\n plugins: {\n legend: false\n },\n scales: {\n x: {\n type: 'linear'\n }\n }\n }\n};\n// \n\nmodule.exports = {\n config\n};\n\n"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/187.cd0f1d29.js b/docs/latest/assets/js/187.5b86dc25.js similarity index 97% rename from docs/latest/assets/js/187.cd0f1d29.js rename to docs/latest/assets/js/187.5b86dc25.js index 0560e26e12..6fe7b0d4c7 100644 --- a/docs/latest/assets/js/187.cd0f1d29.js +++ b/docs/latest/assets/js/187.5b86dc25.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[187],{513:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-chart-boundaries"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-chart-boundaries"}},[this._v("#")]),this._v(" Line Chart Boundaries")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst inputs = {\n min: -100,\n max: 100,\n count: 8,\n decimals: 2,\n continuity: 1\n};\n\nconst generateLabels = () => {\n return Utils.months({count: inputs.count});\n};\n\nconst generateData = () => (Utils.numbers(inputs));\n// \n\n// \nconst data = {\n labels: generateLabels(),\n datasets: [\n {\n label: 'Dataset',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red),\n fill: false\n }\n ]\n};\n// \n\n// \nlet smooth = false;\n\nconst actions = [\n {\n name: 'Fill: false (default)',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.fill = false;\n });\n chart.update();\n }\n },\n {\n name: 'Fill: origin',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.fill = 'origin';\n });\n chart.update();\n }\n },\n {\n name: 'Fill: start',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.fill = 'start';\n });\n chart.update();\n }\n },\n {\n name: 'Fill: end',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.fill = 'end';\n });\n chart.update();\n }\n },\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n {\n name: 'Smooth',\n handler(chart) {\n smooth = !smooth;\n chart.options.elements.line.tension = smooth ? 0.4 : 0;\n chart.update();\n }\n }\n];\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n filler: {\n propagate: false,\n },\n title: {\n display: true,\n text: (ctx) => 'Fill: ' + ctx.chart.data.datasets[0].fill\n }\n },\n interaction: {\n intersect: false,\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[187],{512:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-chart-boundaries"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-chart-boundaries"}},[this._v("#")]),this._v(" Line Chart Boundaries")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst inputs = {\n min: -100,\n max: 100,\n count: 8,\n decimals: 2,\n continuity: 1\n};\n\nconst generateLabels = () => {\n return Utils.months({count: inputs.count});\n};\n\nconst generateData = () => (Utils.numbers(inputs));\n// \n\n// \nconst data = {\n labels: generateLabels(),\n datasets: [\n {\n label: 'Dataset',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red),\n fill: false\n }\n ]\n};\n// \n\n// \nlet smooth = false;\n\nconst actions = [\n {\n name: 'Fill: false (default)',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.fill = false;\n });\n chart.update();\n }\n },\n {\n name: 'Fill: origin',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.fill = 'origin';\n });\n chart.update();\n }\n },\n {\n name: 'Fill: start',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.fill = 'start';\n });\n chart.update();\n }\n },\n {\n name: 'Fill: end',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.fill = 'end';\n });\n chart.update();\n }\n },\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n {\n name: 'Smooth',\n handler(chart) {\n smooth = !smooth;\n chart.options.elements.line.tension = smooth ? 0.4 : 0;\n chart.update();\n }\n }\n];\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n filler: {\n propagate: false,\n },\n title: {\n display: true,\n text: (ctx) => 'Fill: ' + ctx.chart.data.datasets[0].fill\n }\n },\n interaction: {\n intersect: false,\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/188.5f9c50dd.js b/docs/latest/assets/js/188.8ac9810c.js similarity index 98% rename from docs/latest/assets/js/188.5f9c50dd.js rename to docs/latest/assets/js/188.8ac9810c.js index 1c0c6fe85e..deccaf70db 100644 --- a/docs/latest/assets/js/188.5f9c50dd.js +++ b/docs/latest/assets/js/188.8ac9810c.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[188],{514:function(n,t,a){"use strict";a.r(t);var e=a(7),r=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-chart-datasets"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-chart-datasets"}},[this._v("#")]),this._v(" Line Chart Datasets")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst inputs = {\n min: 20,\n max: 80,\n count: 8,\n decimals: 2,\n continuity: 1\n};\n\nconst generateLabels = () => {\n return Utils.months({count: inputs.count});\n};\n\nconst generateData = () => (Utils.numbers(inputs));\n\nUtils.srand(42);\n// \n\n// \nconst data = {\n labels: generateLabels(),\n datasets: [\n {\n label: 'D0',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red),\n hidden: true\n },\n {\n label: 'D1',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.orange,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange),\n fill: '-1'\n },\n {\n label: 'D2',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.yellow,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.yellow),\n hidden: true,\n fill: 1\n },\n {\n label: 'D3',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.green,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.green),\n fill: '-1'\n },\n {\n label: 'D4',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue),\n fill: '-1'\n },\n {\n label: 'D5',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.grey,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.grey),\n fill: '+2'\n },\n {\n label: 'D6',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.purple,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.purple),\n fill: false\n },\n {\n label: 'D7',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red),\n fill: 8\n },\n {\n label: 'D8',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.orange,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange),\n fill: 'end',\n hidden: true\n },\n {\n label: 'D9',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.yellow,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.yellow),\n fill: {above: 'blue', below: 'red', target: {value: 350}}\n }\n ]\n};\n// \n\n// \nlet smooth = false;\nlet propagate = false;\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n {\n name: 'Propagate',\n handler(chart) {\n propagate = !propagate;\n chart.options.plugins.filler.propagate = propagate;\n chart.update();\n }\n },\n {\n name: 'Smooth',\n handler(chart) {\n smooth = !smooth;\n chart.options.elements.line.tension = smooth ? 0.4 : 0;\n chart.update();\n }\n }\n];\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n scales: {\n y: {\n stacked: true\n }\n },\n plugins: {\n filler: {\n propagate: false\n },\n 'samples-filler-analyser': {\n target: 'chart-analyser'\n }\n },\n interaction: {\n intersect: false,\n },\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}}),t("div",{staticClass:"analyser",attrs:{id:"chart-analyser"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[188],{513:function(n,t,a){"use strict";a.r(t);var e=a(7),r=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-chart-datasets"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-chart-datasets"}},[this._v("#")]),this._v(" Line Chart Datasets")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst inputs = {\n min: 20,\n max: 80,\n count: 8,\n decimals: 2,\n continuity: 1\n};\n\nconst generateLabels = () => {\n return Utils.months({count: inputs.count});\n};\n\nconst generateData = () => (Utils.numbers(inputs));\n\nUtils.srand(42);\n// \n\n// \nconst data = {\n labels: generateLabels(),\n datasets: [\n {\n label: 'D0',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red),\n hidden: true\n },\n {\n label: 'D1',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.orange,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange),\n fill: '-1'\n },\n {\n label: 'D2',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.yellow,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.yellow),\n hidden: true,\n fill: 1\n },\n {\n label: 'D3',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.green,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.green),\n fill: '-1'\n },\n {\n label: 'D4',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue),\n fill: '-1'\n },\n {\n label: 'D5',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.grey,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.grey),\n fill: '+2'\n },\n {\n label: 'D6',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.purple,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.purple),\n fill: false\n },\n {\n label: 'D7',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red),\n fill: 8\n },\n {\n label: 'D8',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.orange,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange),\n fill: 'end',\n hidden: true\n },\n {\n label: 'D9',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.yellow,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.yellow),\n fill: {above: 'blue', below: 'red', target: {value: 350}}\n }\n ]\n};\n// \n\n// \nlet smooth = false;\nlet propagate = false;\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n {\n name: 'Propagate',\n handler(chart) {\n propagate = !propagate;\n chart.options.plugins.filler.propagate = propagate;\n chart.update();\n }\n },\n {\n name: 'Smooth',\n handler(chart) {\n smooth = !smooth;\n chart.options.elements.line.tension = smooth ? 0.4 : 0;\n chart.update();\n }\n }\n];\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n scales: {\n y: {\n stacked: true\n }\n },\n plugins: {\n filler: {\n propagate: false\n },\n 'samples-filler-analyser': {\n target: 'chart-analyser'\n }\n },\n interaction: {\n intersect: false,\n },\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}}),t("div",{staticClass:"analyser",attrs:{id:"chart-analyser"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/189.3bbd1fb0.js b/docs/latest/assets/js/189.2785e485.js similarity index 97% rename from docs/latest/assets/js/189.3bbd1fb0.js rename to docs/latest/assets/js/189.2785e485.js index 1375a61d8e..dc2838b9e2 100644 --- a/docs/latest/assets/js/189.3bbd1fb0.js +++ b/docs/latest/assets/js/189.2785e485.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[189],{515:function(n,t,a){"use strict";a.r(t);var e=a(7),r=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-chart-drawtime"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-chart-drawtime"}},[this._v("#")]),this._v(" Line Chart drawTime")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst inputs = {\n min: -100,\n max: 100,\n count: 8,\n decimals: 2,\n continuity: 1\n};\n\nconst generateLabels = () => {\n return Utils.months({count: inputs.count});\n};\n\nUtils.srand(3);\nconst generateData = () => (Utils.numbers(inputs));\n// \n\n// \nconst data = {\n labels: generateLabels(),\n datasets: [\n {\n label: 'Dataset 1',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red),\n fill: true\n },\n {\n label: 'Dataset 2',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue),\n fill: true\n }\n ]\n};\n// \n\n// \nlet smooth = false;\n\nconst actions = [\n {\n name: 'drawTime: beforeDatasetDraw (default)',\n handler: (chart) => {\n chart.options.plugins.filler.drawTime = 'beforeDatasetDraw';\n chart.update();\n }\n },\n {\n name: 'drawTime: beforeDatasetsDraw',\n handler: (chart) => {\n chart.options.plugins.filler.drawTime = 'beforeDatasetsDraw';\n chart.update();\n }\n },\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n {\n name: 'Smooth',\n handler(chart) {\n smooth = !smooth;\n chart.options.elements.line.tension = smooth ? 0.4 : 0;\n chart.update();\n }\n }\n];\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n filler: {\n propagate: false,\n },\n title: {\n display: true,\n text: (ctx) => 'drawTime: ' + ctx.chart.options.plugins.filler.drawTime\n }\n },\n pointBackgroundColor: '#fff',\n radius: 10,\n interaction: {\n intersect: false,\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[189],{514:function(n,t,a){"use strict";a.r(t);var e=a(7),r=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-chart-drawtime"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-chart-drawtime"}},[this._v("#")]),this._v(" Line Chart drawTime")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst inputs = {\n min: -100,\n max: 100,\n count: 8,\n decimals: 2,\n continuity: 1\n};\n\nconst generateLabels = () => {\n return Utils.months({count: inputs.count});\n};\n\nUtils.srand(3);\nconst generateData = () => (Utils.numbers(inputs));\n// \n\n// \nconst data = {\n labels: generateLabels(),\n datasets: [\n {\n label: 'Dataset 1',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red),\n fill: true\n },\n {\n label: 'Dataset 2',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue),\n fill: true\n }\n ]\n};\n// \n\n// \nlet smooth = false;\n\nconst actions = [\n {\n name: 'drawTime: beforeDatasetDraw (default)',\n handler: (chart) => {\n chart.options.plugins.filler.drawTime = 'beforeDatasetDraw';\n chart.update();\n }\n },\n {\n name: 'drawTime: beforeDatasetsDraw',\n handler: (chart) => {\n chart.options.plugins.filler.drawTime = 'beforeDatasetsDraw';\n chart.update();\n }\n },\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n {\n name: 'Smooth',\n handler(chart) {\n smooth = !smooth;\n chart.options.elements.line.tension = smooth ? 0.4 : 0;\n chart.update();\n }\n }\n];\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n filler: {\n propagate: false,\n },\n title: {\n display: true,\n text: (ctx) => 'drawTime: ' + ctx.chart.options.plugins.filler.drawTime\n }\n },\n pointBackgroundColor: '#fff',\n radius: 10,\n interaction: {\n intersect: false,\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/19.8722ab9b.js b/docs/latest/assets/js/19.59e65df3.js similarity index 52% rename from docs/latest/assets/js/19.8722ab9b.js rename to docs/latest/assets/js/19.59e65df3.js index 2bdafc885b..e9d8356051 100644 --- a/docs/latest/assets/js/19.8722ab9b.js +++ b/docs/latest/assets/js/19.59e65df3.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{346:function(t,e,r){"use strict";r.r(e);var a=r(7),n=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"enumeration-decimationalgorithm"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#enumeration-decimationalgorithm"}},[t._v("#")]),t._v(" Enumeration: DecimationAlgorithm")]),t._v(" "),r("h2",{attrs:{id:"enumeration-members"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#enumeration-members"}},[t._v("#")]),t._v(" Enumeration members")]),t._v(" "),r("h3",{attrs:{id:"lttb"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#lttb"}},[t._v("#")]),t._v(" lttb")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("lttb")]),t._v(': = "lttb"')]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1956",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1956"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"minmax"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#minmax"}},[t._v("#")]),t._v(" minmax")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("minmax")]),t._v(': = "min-max"')]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1957",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1957"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{343:function(t,e,r){"use strict";r.r(e);var a=r(7),n=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"enumeration-decimationalgorithm"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#enumeration-decimationalgorithm"}},[t._v("#")]),t._v(" Enumeration: DecimationAlgorithm")]),t._v(" "),r("h2",{attrs:{id:"enumeration-members"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#enumeration-members"}},[t._v("#")]),t._v(" Enumeration members")]),t._v(" "),r("h3",{attrs:{id:"lttb"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#lttb"}},[t._v("#")]),t._v(" lttb")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("lttb")]),t._v(': = "lttb"')]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1956",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1956"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"minmax"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#minmax"}},[t._v("#")]),t._v(" minmax")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("minmax")]),t._v(': = "min-max"')]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1957",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1957"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/190.d6c7ba7e.js b/docs/latest/assets/js/190.6e8c7e8f.js similarity index 98% rename from docs/latest/assets/js/190.d6c7ba7e.js rename to docs/latest/assets/js/190.6e8c7e8f.js index 5273028d70..a5d1fa8830 100644 --- a/docs/latest/assets/js/190.d6c7ba7e.js +++ b/docs/latest/assets/js/190.6e8c7e8f.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[190],{517:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-chart-stacked"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-chart-stacked"}},[this._v("#")]),this._v(" Line Chart Stacked")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Stacked: true',\n handler: (chart) => {\n chart.options.scales.y.stacked = true;\n chart.update();\n }\n },\n {\n name: 'Stacked: false (default)',\n handler: (chart) => {\n chart.options.scales.y.stacked = false;\n chart.update();\n }\n },\n {\n name: 'Stacked Single',\n handler: (chart) => {\n chart.options.scales.y.stacked = 'single';\n chart.update();\n }\n },\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: dsColor,\n borderColor: dsColor,\n fill: true,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'My First dataset',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.CHART_COLORS.red,\n fill: true\n },\n {\n label: 'My Second dataset',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.CHART_COLORS.blue,\n fill: true\n },\n {\n label: 'My Third dataset',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.green,\n backgroundColor: Utils.CHART_COLORS.green,\n fill: true\n },\n {\n label: 'My Fourth dataset',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.yellow,\n backgroundColor: Utils.CHART_COLORS.yellow,\n fill: true\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: (ctx) => 'Chart.js Line Chart - stacked=' + ctx.chart.options.scales.y.stacked\n },\n tooltip: {\n mode: 'index'\n },\n },\n interaction: {\n mode: 'nearest',\n axis: 'x',\n intersect: false\n },\n scales: {\n x: {\n title: {\n display: true,\n text: 'Month'\n }\n },\n y: {\n stacked: true,\n title: {\n display: true,\n text: 'Value'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[190],{515:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-chart-stacked"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-chart-stacked"}},[this._v("#")]),this._v(" Line Chart Stacked")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Stacked: true',\n handler: (chart) => {\n chart.options.scales.y.stacked = true;\n chart.update();\n }\n },\n {\n name: 'Stacked: false (default)',\n handler: (chart) => {\n chart.options.scales.y.stacked = false;\n chart.update();\n }\n },\n {\n name: 'Stacked Single',\n handler: (chart) => {\n chart.options.scales.y.stacked = 'single';\n chart.update();\n }\n },\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: dsColor,\n borderColor: dsColor,\n fill: true,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'My First dataset',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.CHART_COLORS.red,\n fill: true\n },\n {\n label: 'My Second dataset',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.CHART_COLORS.blue,\n fill: true\n },\n {\n label: 'My Third dataset',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.green,\n backgroundColor: Utils.CHART_COLORS.green,\n fill: true\n },\n {\n label: 'My Fourth dataset',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.yellow,\n backgroundColor: Utils.CHART_COLORS.yellow,\n fill: true\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: (ctx) => 'Chart.js Line Chart - stacked=' + ctx.chart.options.scales.y.stacked\n },\n tooltip: {\n mode: 'index'\n },\n },\n interaction: {\n mode: 'nearest',\n axis: 'x',\n intersect: false\n },\n scales: {\n x: {\n title: {\n display: true,\n text: 'Month'\n }\n },\n y: {\n stacked: true,\n title: {\n display: true,\n text: 'Value'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/191.39eca474.js b/docs/latest/assets/js/191.adcfc175.js similarity index 98% rename from docs/latest/assets/js/191.39eca474.js rename to docs/latest/assets/js/191.adcfc175.js index 1f1ef39219..79d7e54af2 100644 --- a/docs/latest/assets/js/191.39eca474.js +++ b/docs/latest/assets/js/191.adcfc175.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[191],{516:function(n,t,a){"use strict";a.r(t);var e=a(7),r=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"radar-chart-stacked"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#radar-chart-stacked"}},[this._v("#")]),this._v(" Radar Chart Stacked")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst inputs = {\n min: 8,\n max: 16,\n count: 8,\n decimals: 2,\n continuity: 1\n};\n\nconst generateLabels = () => {\n return Utils.months({count: inputs.count});\n};\n\nconst generateData = () => {\n const values = Utils.numbers(inputs);\n inputs.from = values;\n return values;\n};\n\nconst labels = Utils.months({count: 8});\nconst data = {\n labels: generateLabels(),\n datasets: [\n {\n label: 'D0',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red),\n },\n {\n label: 'D1',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.orange,\n hidden: true,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange),\n fill: '-1'\n },\n {\n label: 'D2',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.yellow,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.yellow),\n fill: 1\n },\n {\n label: 'D3',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.green,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.green),\n fill: false\n },\n {\n label: 'D4',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue),\n fill: '-1'\n },\n {\n label: 'D5',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.purple,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.purple),\n fill: '-1'\n },\n {\n label: 'D6',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.grey,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.grey),\n fill: {value: 85}\n }\n ]\n};\n// \n\n// \nlet smooth = false;\nlet propagate = false;\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n inputs.from = [];\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n {\n name: 'Propagate',\n handler(chart) {\n propagate = !propagate;\n chart.options.plugins.filler.propagate = propagate;\n chart.update();\n\n }\n },\n {\n name: 'Smooth',\n handler(chart) {\n smooth = !smooth;\n chart.options.elements.line.tension = smooth ? 0.4 : 0;\n chart.update();\n }\n }\n];\n// \n\n// \nconst config = {\n type: 'radar',\n data: data,\n options: {\n plugins: {\n filler: {\n propagate: false\n },\n 'samples-filler-analyser': {\n target: 'chart-analyser'\n }\n },\n interaction: {\n intersect: false\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config\n};\n"}}),t("div",{staticClass:"analyser",attrs:{id:"chart-analyser"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[191],{517:function(n,t,a){"use strict";a.r(t);var e=a(7),r=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"radar-chart-stacked"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#radar-chart-stacked"}},[this._v("#")]),this._v(" Radar Chart Stacked")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst inputs = {\n min: 8,\n max: 16,\n count: 8,\n decimals: 2,\n continuity: 1\n};\n\nconst generateLabels = () => {\n return Utils.months({count: inputs.count});\n};\n\nconst generateData = () => {\n const values = Utils.numbers(inputs);\n inputs.from = values;\n return values;\n};\n\nconst labels = Utils.months({count: 8});\nconst data = {\n labels: generateLabels(),\n datasets: [\n {\n label: 'D0',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red),\n },\n {\n label: 'D1',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.orange,\n hidden: true,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange),\n fill: '-1'\n },\n {\n label: 'D2',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.yellow,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.yellow),\n fill: 1\n },\n {\n label: 'D3',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.green,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.green),\n fill: false\n },\n {\n label: 'D4',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue),\n fill: '-1'\n },\n {\n label: 'D5',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.purple,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.purple),\n fill: '-1'\n },\n {\n label: 'D6',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.grey,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.grey),\n fill: {value: 85}\n }\n ]\n};\n// \n\n// \nlet smooth = false;\nlet propagate = false;\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n inputs.from = [];\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n {\n name: 'Propagate',\n handler(chart) {\n propagate = !propagate;\n chart.options.plugins.filler.propagate = propagate;\n chart.update();\n\n }\n },\n {\n name: 'Smooth',\n handler(chart) {\n smooth = !smooth;\n chart.options.elements.line.tension = smooth ? 0.4 : 0;\n chart.update();\n }\n }\n];\n// \n\n// \nconst config = {\n type: 'radar',\n data: data,\n options: {\n plugins: {\n filler: {\n propagate: false\n },\n 'samples-filler-analyser': {\n target: 'chart-analyser'\n }\n },\n interaction: {\n intersect: false\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config\n};\n"}}),t("div",{staticClass:"analyser",attrs:{id:"chart-analyser"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/192.114a7d57.js b/docs/latest/assets/js/192.ba04d5ea.js similarity index 100% rename from docs/latest/assets/js/192.114a7d57.js rename to docs/latest/assets/js/192.ba04d5ea.js diff --git a/docs/latest/assets/js/193.e16bfe88.js b/docs/latest/assets/js/193.88c0d3c3.js similarity index 96% rename from docs/latest/assets/js/193.e16bfe88.js rename to docs/latest/assets/js/193.88c0d3c3.js index 0bd33ff5bb..ba18e4371f 100644 --- a/docs/latest/assets/js/193.e16bfe88.js +++ b/docs/latest/assets/js/193.88c0d3c3.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[193],{519:function(n,t,a){"use strict";a.r(t);var s=a(7),o=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"floating-bars"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#floating-bars"}},[this._v("#")]),this._v(" Floating Bars")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = chart.data.labels.map(() => {\n return [Utils.rand(-100, 100), Utils.rand(-100, 100)];\n });\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: labels.map(() => {\n return [Utils.rand(-100, 100), Utils.rand(-100, 100)];\n }),\n backgroundColor: Utils.CHART_COLORS.red,\n },\n {\n label: 'Dataset 2',\n data: labels.map(() => {\n return [Utils.rand(-100, 100), Utils.rand(-100, 100)];\n }),\n backgroundColor: Utils.CHART_COLORS.blue,\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Floating Bar Chart'\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[193],{516:function(n,t,a){"use strict";a.r(t);var s=a(7),o=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"floating-bars"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#floating-bars"}},[this._v("#")]),this._v(" Floating Bars")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = chart.data.labels.map(() => {\n return [Utils.rand(-100, 100), Utils.rand(-100, 100)];\n });\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: labels.map(() => {\n return [Utils.rand(-100, 100), Utils.rand(-100, 100)];\n }),\n backgroundColor: Utils.CHART_COLORS.red,\n },\n {\n label: 'Dataset 2',\n data: labels.map(() => {\n return [Utils.rand(-100, 100), Utils.rand(-100, 100)];\n }),\n backgroundColor: Utils.CHART_COLORS.blue,\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Floating Bar Chart'\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/194.2409b054.js b/docs/latest/assets/js/194.5ff71b86.js similarity index 98% rename from docs/latest/assets/js/194.2409b054.js rename to docs/latest/assets/js/194.5ff71b86.js index 6d1a5fb55c..ef75f9fa24 100644 --- a/docs/latest/assets/js/194.2409b054.js +++ b/docs/latest/assets/js/194.5ff71b86.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[194],{520:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"horizontal-bar-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#horizontal-bar-chart"}},[this._v("#")]),this._v(" Horizontal Bar Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n borderWidth: 1,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n indexAxis: 'y',\n // Elements options apply to all of the options unless overridden in a dataset\n // In this case, we are setting the border of each horizontal bar to be 2px wide\n elements: {\n bar: {\n borderWidth: 2,\n }\n },\n responsive: true,\n plugins: {\n legend: {\n position: 'right',\n },\n title: {\n display: true,\n text: 'Chart.js Horizontal Bar Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[194],{519:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"horizontal-bar-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#horizontal-bar-chart"}},[this._v("#")]),this._v(" Horizontal Bar Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n borderWidth: 1,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n indexAxis: 'y',\n // Elements options apply to all of the options unless overridden in a dataset\n // In this case, we are setting the border of each horizontal bar to be 2px wide\n elements: {\n bar: {\n borderWidth: 2,\n }\n },\n responsive: true,\n plugins: {\n legend: {\n position: 'right',\n },\n title: {\n display: true,\n text: 'Chart.js Horizontal Bar Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/195.0f76964b.js b/docs/latest/assets/js/195.d30ee12a.js similarity index 96% rename from docs/latest/assets/js/195.0f76964b.js rename to docs/latest/assets/js/195.d30ee12a.js index 9965bcb571..61a01d9477 100644 --- a/docs/latest/assets/js/195.0f76964b.js +++ b/docs/latest/assets/js/195.d30ee12a.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[195],{521:function(n,t,a){"use strict";a.r(t);var s=a(7),e=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"stacked-bar-chart-with-groups"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#stacked-bar-chart-with-groups"}},[this._v("#")]),this._v(" Stacked Bar Chart with Groups")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.red,\n stack: 'Stack 0',\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.blue,\n stack: 'Stack 0',\n },\n {\n label: 'Dataset 3',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.green,\n stack: 'Stack 1',\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Bar Chart - Stacked'\n },\n },\n responsive: true,\n interaction: {\n intersect: false,\n },\n scales: {\n x: {\n stacked: true,\n },\n y: {\n stacked: true\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[195],{520:function(n,t,a){"use strict";a.r(t);var s=a(7),e=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"stacked-bar-chart-with-groups"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#stacked-bar-chart-with-groups"}},[this._v("#")]),this._v(" Stacked Bar Chart with Groups")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.red,\n stack: 'Stack 0',\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.blue,\n stack: 'Stack 0',\n },\n {\n label: 'Dataset 3',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.green,\n stack: 'Stack 1',\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Bar Chart - Stacked'\n },\n },\n responsive: true,\n interaction: {\n intersect: false,\n },\n scales: {\n x: {\n stacked: true,\n },\n y: {\n stacked: true\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/196.15e7d5c4.js b/docs/latest/assets/js/196.a373af9e.js similarity index 96% rename from docs/latest/assets/js/196.15e7d5c4.js rename to docs/latest/assets/js/196.a373af9e.js index 3d2d95e9de..42f134565e 100644 --- a/docs/latest/assets/js/196.15e7d5c4.js +++ b/docs/latest/assets/js/196.a373af9e.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[196],{522:function(n,t,a){"use strict";a.r(t);var s=a(7),e=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"stacked-bar-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#stacked-bar-chart"}},[this._v("#")]),this._v(" Stacked Bar Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.red,\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.blue,\n },\n {\n label: 'Dataset 3',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.green,\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Bar Chart - Stacked'\n },\n },\n responsive: true,\n scales: {\n x: {\n stacked: true,\n },\n y: {\n stacked: true\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[196],{521:function(n,t,a){"use strict";a.r(t);var s=a(7),e=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"stacked-bar-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#stacked-bar-chart"}},[this._v("#")]),this._v(" Stacked Bar Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.red,\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.blue,\n },\n {\n label: 'Dataset 3',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.green,\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Bar Chart - Stacked'\n },\n },\n responsive: true,\n scales: {\n x: {\n stacked: true,\n },\n y: {\n stacked: true\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/197.7d5b82c0.js b/docs/latest/assets/js/197.b0642ef1.js similarity index 97% rename from docs/latest/assets/js/197.7d5b82c0.js rename to docs/latest/assets/js/197.b0642ef1.js index a5bbee8231..699497be26 100644 --- a/docs/latest/assets/js/197.7d5b82c0.js +++ b/docs/latest/assets/js/197.b0642ef1.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[197],{523:function(t,n,a){"use strict";a.r(n);var e=a(7),s=Object(e.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"vertical-bar-chart"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#vertical-bar-chart"}},[this._v("#")]),this._v(" Vertical Bar Chart")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n borderWidth: 1,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Bar Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[197],{522:function(t,n,a){"use strict";a.r(n);var e=a(7),s=Object(e.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"vertical-bar-chart"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#vertical-bar-chart"}},[this._v("#")]),this._v(" Vertical Bar Chart")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n borderWidth: 1,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Bar Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/198.5d0c8226.js b/docs/latest/assets/js/198.2c538427.js similarity index 96% rename from docs/latest/assets/js/198.5d0c8226.js rename to docs/latest/assets/js/198.2c538427.js index 47ca26bfbd..131bfba5bb 100644 --- a/docs/latest/assets/js/198.5d0c8226.js +++ b/docs/latest/assets/js/198.2c538427.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[198],{524:function(n,e,o){"use strict";o.r(e);var t=o(7),a=Object(t.a)({},(function(){var n=this.$createElement,e=this._self._c||n;return e("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[e("h1",{attrs:{id:"events"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#events"}},[this._v("#")]),this._v(" Events")]),this._v(" "),e("p",[this._v("This sample demonstrates how to use the event hooks to highlight chart elements.")]),this._v(" "),e("chart-editor",{attrs:{code:"\n// \nconst data = {\n labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],\n datasets: [{\n label: '# of Votes',\n data: [12, 19, 3, 5, 2, 3],\n borderWidth: 1,\n backgroundColor: ['#CB4335', '#1F618D', '#F1C40F', '#27AE60', '#884EA0', '#D35400'],\n }]\n};\n// \n\n// \n// Append '4d' to the colors (alpha channel), except for the hovered index\nfunction handleHover(evt, item, legend) {\n legend.chart.data.datasets[0].backgroundColor.forEach((color, index, colors) => {\n colors[index] = index === item.index || color.length === 9 ? color : color + '4D';\n });\n legend.chart.update();\n}\n// \n\n// \n// Removes the alpha channel from background colors\nfunction handleLeave(evt, item, legend) {\n legend.chart.data.datasets[0].backgroundColor.forEach((color, index, colors) => {\n colors[index] = color.length === 9 ? color.slice(0, -2) : color;\n });\n legend.chart.update();\n}\n// \n\n// \nconst config = {\n type: 'pie',\n data: data,\n options: {\n plugins: {\n legend: {\n onHover: handleHover,\n onLeave: handleLeave\n }\n }\n }\n};\n// \n\nmodule.exports = {\n config\n};\n"}})],1)}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[198],{523:function(n,e,o){"use strict";o.r(e);var t=o(7),a=Object(t.a)({},(function(){var n=this.$createElement,e=this._self._c||n;return e("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[e("h1",{attrs:{id:"events"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#events"}},[this._v("#")]),this._v(" Events")]),this._v(" "),e("p",[this._v("This sample demonstrates how to use the event hooks to highlight chart elements.")]),this._v(" "),e("chart-editor",{attrs:{code:"\n// \nconst data = {\n labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],\n datasets: [{\n label: '# of Votes',\n data: [12, 19, 3, 5, 2, 3],\n borderWidth: 1,\n backgroundColor: ['#CB4335', '#1F618D', '#F1C40F', '#27AE60', '#884EA0', '#D35400'],\n }]\n};\n// \n\n// \n// Append '4d' to the colors (alpha channel), except for the hovered index\nfunction handleHover(evt, item, legend) {\n legend.chart.data.datasets[0].backgroundColor.forEach((color, index, colors) => {\n colors[index] = index === item.index || color.length === 9 ? color : color + '4D';\n });\n legend.chart.update();\n}\n// \n\n// \n// Removes the alpha channel from background colors\nfunction handleLeave(evt, item, legend) {\n legend.chart.data.datasets[0].backgroundColor.forEach((color, index, colors) => {\n colors[index] = color.length === 9 ? color.slice(0, -2) : color;\n });\n legend.chart.update();\n}\n// \n\n// \nconst config = {\n type: 'pie',\n data: data,\n options: {\n plugins: {\n legend: {\n onHover: handleHover,\n onLeave: handleLeave\n }\n }\n }\n};\n// \n\nmodule.exports = {\n config\n};\n"}})],1)}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/199.386b9983.js b/docs/latest/assets/js/199.e2df0be6.js similarity index 98% rename from docs/latest/assets/js/199.386b9983.js rename to docs/latest/assets/js/199.e2df0be6.js index 8a98a85007..a60a1df2f1 100644 --- a/docs/latest/assets/js/199.386b9983.js +++ b/docs/latest/assets/js/199.e2df0be6.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[199],{525:function(n,t,e){"use strict";e.r(t);var l=e(7),i=Object(l.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"html-legend"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#html-legend"}},[this._v("#")]),this._v(" HTML Legend")]),this._v(" "),t("p",[this._v("This example shows how to create a custom HTML legend using a plugin and connect it to the chart in lieu of the default on-canvas legend.")]),this._v(" "),t("div",{attrs:{id:"legend-container"}}),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst getOrCreateLegendList = (chart, id) => {\n const legendContainer = document.getElementById(id);\n let listContainer = legendContainer.querySelector('ul');\n\n if (!listContainer) {\n listContainer = document.createElement('ul');\n listContainer.style.display = 'flex';\n listContainer.style.flexDirection = 'row';\n listContainer.style.margin = 0;\n listContainer.style.padding = 0;\n\n legendContainer.appendChild(listContainer);\n }\n\n return listContainer;\n};\n\nconst htmlLegendPlugin = {\n id: 'htmlLegend',\n afterUpdate(chart, args, options) {\n const ul = getOrCreateLegendList(chart, options.containerID);\n\n // Remove old legend items\n while (ul.firstChild) {\n ul.firstChild.remove();\n }\n\n // Reuse the built-in legendItems generator\n const items = chart.options.plugins.legend.labels.generateLabels(chart);\n\n items.forEach(item => {\n const li = document.createElement('li');\n li.style.alignItems = 'center';\n li.style.cursor = 'pointer';\n li.style.display = 'flex';\n li.style.flexDirection = 'row';\n li.style.marginLeft = '10px';\n\n li.onclick = () => {\n chart.setDatasetVisibility(item.datasetIndex, !chart.isDatasetVisible(item.datasetIndex));\n chart.update();\n };\n\n // Color box\n const boxSpan = document.createElement('span');\n boxSpan.style.background = item.fillStyle;\n boxSpan.style.borderColor = item.strokeStyle;\n boxSpan.style.borderWidth = item.lineWidth + 'px';\n boxSpan.style.display = 'inline-block';\n boxSpan.style.height = '20px';\n boxSpan.style.marginRight = '10px';\n boxSpan.style.width = '20px';\n\n // Text\n const textContainer = document.createElement('p');\n textContainer.style.color = item.fontColor;\n textContainer.style.margin = 0;\n textContainer.style.padding = 0;\n textContainer.style.textDecoration = item.hidden ? 'line-through' : '';\n\n const text = document.createTextNode(item.text);\n textContainer.appendChild(text);\n\n li.appendChild(boxSpan);\n li.appendChild(textContainer);\n ul.appendChild(li);\n });\n }\n};\n// \n\n// \nconst NUM_DATA = 7;\nconst NUM_CFG = {count: NUM_DATA, min: 0, max: 100};\nconst data = {\n labels: Utils.months({count: NUM_DATA}),\n datasets: [\n {\n label: 'Dataset: 1',\n data: Utils.numbers(NUM_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n fill: false,\n },\n {\n label: 'Dataset: 1',\n data: Utils.numbers(NUM_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n fill: false,\n },\n ],\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n htmlLegend: {\n // ID of the container to put the legend in\n containerID: 'legend-container',\n },\n legend: {\n display: false,\n }\n }\n },\n plugins: [htmlLegendPlugin],\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[199],{524:function(n,t,e){"use strict";e.r(t);var l=e(7),i=Object(l.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"html-legend"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#html-legend"}},[this._v("#")]),this._v(" HTML Legend")]),this._v(" "),t("p",[this._v("This example shows how to create a custom HTML legend using a plugin and connect it to the chart in lieu of the default on-canvas legend.")]),this._v(" "),t("div",{attrs:{id:"legend-container"}}),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst getOrCreateLegendList = (chart, id) => {\n const legendContainer = document.getElementById(id);\n let listContainer = legendContainer.querySelector('ul');\n\n if (!listContainer) {\n listContainer = document.createElement('ul');\n listContainer.style.display = 'flex';\n listContainer.style.flexDirection = 'row';\n listContainer.style.margin = 0;\n listContainer.style.padding = 0;\n\n legendContainer.appendChild(listContainer);\n }\n\n return listContainer;\n};\n\nconst htmlLegendPlugin = {\n id: 'htmlLegend',\n afterUpdate(chart, args, options) {\n const ul = getOrCreateLegendList(chart, options.containerID);\n\n // Remove old legend items\n while (ul.firstChild) {\n ul.firstChild.remove();\n }\n\n // Reuse the built-in legendItems generator\n const items = chart.options.plugins.legend.labels.generateLabels(chart);\n\n items.forEach(item => {\n const li = document.createElement('li');\n li.style.alignItems = 'center';\n li.style.cursor = 'pointer';\n li.style.display = 'flex';\n li.style.flexDirection = 'row';\n li.style.marginLeft = '10px';\n\n li.onclick = () => {\n chart.setDatasetVisibility(item.datasetIndex, !chart.isDatasetVisible(item.datasetIndex));\n chart.update();\n };\n\n // Color box\n const boxSpan = document.createElement('span');\n boxSpan.style.background = item.fillStyle;\n boxSpan.style.borderColor = item.strokeStyle;\n boxSpan.style.borderWidth = item.lineWidth + 'px';\n boxSpan.style.display = 'inline-block';\n boxSpan.style.height = '20px';\n boxSpan.style.marginRight = '10px';\n boxSpan.style.width = '20px';\n\n // Text\n const textContainer = document.createElement('p');\n textContainer.style.color = item.fontColor;\n textContainer.style.margin = 0;\n textContainer.style.padding = 0;\n textContainer.style.textDecoration = item.hidden ? 'line-through' : '';\n\n const text = document.createTextNode(item.text);\n textContainer.appendChild(text);\n\n li.appendChild(boxSpan);\n li.appendChild(textContainer);\n ul.appendChild(li);\n });\n }\n};\n// \n\n// \nconst NUM_DATA = 7;\nconst NUM_CFG = {count: NUM_DATA, min: 0, max: 100};\nconst data = {\n labels: Utils.months({count: NUM_DATA}),\n datasets: [\n {\n label: 'Dataset: 1',\n data: Utils.numbers(NUM_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n fill: false,\n },\n {\n label: 'Dataset: 1',\n data: Utils.numbers(NUM_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n fill: false,\n },\n ],\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n htmlLegend: {\n // ID of the container to put the legend in\n containerID: 'legend-container',\n },\n legend: {\n display: false,\n }\n }\n },\n plugins: [htmlLegendPlugin],\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/2.0c6e21a4.js b/docs/latest/assets/js/2.47b832b0.js similarity index 99% rename from docs/latest/assets/js/2.0c6e21a4.js rename to docs/latest/assets/js/2.47b832b0.js index 0b79b73983..1489bb2e58 100644 --- a/docs/latest/assets/js/2.0c6e21a4.js +++ b/docs/latest/assets/js/2.47b832b0.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{277:function(r,e,t){},278:function(r,e,t){},279:function(r,e,t){},280:function(r,e,t){},281:function(r,e,t){},282:function(r,e){r.exports=function(r){return null==r}},283:function(r,e,t){},284:function(r,e,t){},285:function(r,e,t){},286:function(r,e,t){},287:function(r,e,t){},288:function(r,e,t){},298:function(r,e,t){"use strict";t.r(e);var a=t(20),s={name:"SidebarGroup",components:{DropdownTransition:t(122).a},props:["item","open","collapsable","depth"],beforeCreate(){this.$options.components.SidebarLinks=t(298).default},methods:{isActive:a.e}},i=(t(311),t(7)),o=Object(i.a)(s,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("section",{staticClass:"sidebar-group",class:[{collapsable:r.collapsable,"is-sub-group":0!==r.depth},"depth-"+r.depth]},[r.item.path?t("RouterLink",{staticClass:"sidebar-heading clickable",class:{open:r.open,active:r.isActive(r.$route,r.item.path)},attrs:{to:r.item.path},nativeOn:{click:function(e){return r.$emit("toggle")}}},[t("span",[r._v(r._s(r.item.title))]),r._v(" "),r.collapsable?t("span",{staticClass:"arrow",class:r.open?"down":"right"}):r._e()]):t("p",{staticClass:"sidebar-heading",class:{open:r.open},on:{click:function(e){return r.$emit("toggle")}}},[t("span",[r._v(r._s(r.item.title))]),r._v(" "),r.collapsable?t("span",{staticClass:"arrow",class:r.open?"down":"right"}):r._e()]),r._v(" "),t("DropdownTransition",[r.open||!r.collapsable?t("SidebarLinks",{staticClass:"sidebar-group-items",attrs:{items:r.item.children,"sidebar-depth":r.item.sidebarDepth,"initial-open-group-index":r.item.initialOpenGroupIndex,depth:r.depth+1}}):r._e()],1)],1)}),[],!1,null,null,null).exports;function n(r,e,t,a,s){const i={props:{to:e,activeClass:"",exactActiveClass:""},class:{active:a,"sidebar-link":!0}};return s>2&&(i.style={"padding-left":s+"rem"}),r("RouterLink",i,t)}function l(r,e,t,s,i,o=1){return!e||o>i?null:r("ul",{class:"sidebar-sub-headers"},e.map(e=>{const c=Object(a.e)(s,t+"#"+e.slug);return r("li",{class:"sidebar-sub-header"},[n(r,t+"#"+e.slug,e.title,c,e.level-1),l(r,e.children,t,s,i,o+1)])}))}var c={functional:!0,props:["item","sidebarDepth"],render(r,{parent:{$page:e,$site:t,$route:s,$themeConfig:i,$themeLocaleConfig:o},props:{item:c,sidebarDepth:u}}){const p=Object(a.e)(s,c.path),h="auto"===c.type?p||c.children.some(r=>Object(a.e)(s,c.basePath+"#"+r.slug)):p,d="external"===c.type?function(r,e,t){return r("a",{attrs:{href:e,target:"_blank",rel:"noopener noreferrer"},class:{"sidebar-link":!0}},[t,r("OutboundLink")])}(r,c.path,c.title||c.path):n(r,c.path,c.title||c.path,h),g=[e.frontmatter.sidebarDepth,u,o.sidebarDepth,i.sidebarDepth,1].find(r=>void 0!==r),f=o.displayAllHeaders||i.displayAllHeaders;if("auto"===c.type)return[d,l(r,c.children,c.basePath,s,g)];if((h||f)&&c.headers&&!a.d.test(c.path)){return[d,l(r,Object(a.c)(c.headers),c.path,s,g)]}return d}};t(312);function u(r,e){if("group"===e.type){const t=e.path&&Object(a.e)(r,e.path),s=e.children.some(e=>"group"===e.type?u(r,e):"page"===e.type&&Object(a.e)(r,e.path));return t||s}return!1}var p={name:"SidebarLinks",components:{SidebarGroup:o,SidebarLink:Object(i.a)(c,void 0,void 0,!1,null,null,null).exports},props:["items","depth","sidebarDepth","initialOpenGroupIndex"],data(){return{openGroupIndex:this.initialOpenGroupIndex||0}},watch:{$route(){this.refreshIndex()}},created(){this.refreshIndex()},methods:{refreshIndex(){const r=function(r,e){for(let t=0;t-1&&(this.openGroupIndex=r)},toggleGroup(r){this.openGroupIndex=r===this.openGroupIndex?-1:r},isActive(r){return Object(a.e)(this.$route,r.regularPath)}}},h=Object(i.a)(p,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return r.items.length?t("ul",{staticClass:"sidebar-links"},r._l(r.items,(function(e,a){return t("li",{key:a},["group"===e.type?t("SidebarGroup",{attrs:{item:e,open:a===r.openGroupIndex,collapsable:e.collapsable||e.collapsible,depth:r.depth},on:{toggle:function(e){return r.toggleGroup(a)}}}):t("SidebarLink",{attrs:{"sidebar-depth":r.sidebarDepth,item:e}})],1)})),0):r._e()}),[],!1,null,null,null);e.default=h.exports},299:function(r,e,t){"use strict";t(277)},300:function(r,e,t){"use strict";!function(e,t,a){let s;(s=a.define)&&s.amd?s([],(function(){return t})):(s=a.modules)?s["FlexSearch".toLowerCase()]=t:r.exports=t}(0,function r(e){function t(r,e){const t=e?e.id:r&&r.id;this.id=t||0===t?t:S++,this.init(r,e),o(this,"index",(function(){return this.a?Object.keys(this.a.index[this.a.keys[0]].c):Object.keys(this.c)})),o(this,"length",(function(){return this.index.length}))}function a(r,e,t,a){return this.u!==this.g&&(this.o=this.o.concat(t),this.u++,a&&this.o.length>=a&&(this.u=this.g),this.u===this.g&&(this.cache&&this.j.set(e,this.o),this.F&&this.F(this.o))),this}function s(r,e){const t=r.length,a=y(e),s=[];for(let i=0,o=0;i=o&&((r=(r=r[n-(s+.5>>0)])[t]||(r[t]=[]))[r.length]=a),s)}function u(r,e){if(r){const t=Object.keys(r);for(let a=0,s=t.length;a(r=r.length-e.length)?1:r?-1:0}function d(r,e){return(r=r[N])<(e=e[N])?-1:r>e?1:0}function g(r,e){const t=N.length;for(let a=0;ae?1:0}function f(r,e,t){return r?{page:r,next:e?""+e:null,result:t}:t}function m(r,e,t,a,s,i,o){let n,l=[];if(!0===t){t="0";var c=""}else c=t&&t.split(":");const u=r.length;if(1o&&(c=0),n=(c=c||0)+e,n=this.m.length&&(this.C=0),this.m[this.C].postMessage({add:!0,id:r,content:e}),this.c[o]=""+this.C,t&&t(),this;if(!i){if(this.async&&"function"!=typeof importScripts){let s=this;return o=new Promise((function(t){setTimeout((function(){s.add(r,e,null,a,!0),s=null,t()}))})),t?(o.then(t),this):o}if(t)return this.add(r,e,null,a,!0),t(),this}if(!(e=this.encode(e)).length)return this;i=y(t=this.f)?t(e):e.split(this.split),this.filter&&(i=s(i,this.filter));const d=x();d._ctx=x();const g=i.length,f=this.threshold,m=this.depth,b=this.b,v=this.i,w=this.D;for(let e=0;eh;t--)c(v,d,p=n.substring(h,t),r,e,u,f,b-1)}break;default:if(l=c(v,d,n,r,1,u,f,b-1),m&&1=f)for(l=d._ctx[n]||(d._ctx[n]=x()),n=this.h[n]||(this.h[n]=D(b-(f||0))),0>(u=e-m)&&(u=0),(p=e+m+1)>g&&(p=g);us;t--)a=i[t-1],i[t]=a,e[a]=t;i[s]=r,e[r]=s}}}return e},r}();return t}(function(){const r={},e="undefined"!=typeof Blob&&"undefined"!=typeof URL&&URL.createObjectURL;return function(t,a,s,i,o){return s=e?URL.createObjectURL(new Blob(["("+s.toString()+")()"],{type:"text/javascript"})):t+".min.js",r[t+="-"+a]||(r[t]=[]),r[t][o]=new Worker(s),r[t][o].onmessage=i,r[t][o]}}()),this)},301:function(r,e,t){t(14);const a=t(302);r.exports.getPageText=r=>{if(!r._strippedContent)return"";const{html:e}=r._context.markdown.render(r._strippedContent);return a.decode(e.replace(/(<[^>]+>)+/g," ").replace(/^\s*#\s/gm,""))},r.exports.highlightText=(r,e)=>{let t=r;if(highlightWords=e.split(" ").filter(r=>r.length>0),highlightWords.length>0)for(const r of highlightWords)t=t.replace(new RegExp(r,"ig"),"$&");else t=r.replace(new RegExp(e,"ig"),"$&");return t}},302:function(r,e,t){(function(r){var a;/*! https://mths.be/he v1.2.0 by @mathias | MIT license */!function(s){var i=e,o=(r&&r.exports,"object"==typeof global&&global);o.global!==o&&o.window;var n=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=/[\x01-\x7F]/g,c=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,u=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,p={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon","ˆ":"circ","ˇ":"caron","°":"deg","©":"copy","®":"reg","℗":"copysr","℘":"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","𝒶":"ascr","𝕒":"aopf","𝔞":"afr","𝔸":"Aopf","𝔄":"Afr","𝒜":"Ascr","ª":"ordf","á":"aacute","Á":"Aacute","à":"agrave","À":"Agrave","ă":"abreve","Ă":"Abreve","â":"acirc","Â":"Acirc","å":"aring","Å":"angst","ä":"auml","Ä":"Auml","ã":"atilde","Ã":"Atilde","ą":"aogon","Ą":"Aogon","ā":"amacr","Ā":"Amacr","æ":"aelig","Æ":"AElig","𝒷":"bscr","𝕓":"bopf","𝔟":"bfr","𝔹":"Bopf","ℬ":"Bscr","𝔅":"Bfr","𝔠":"cfr","𝒸":"cscr","𝕔":"copf","ℭ":"Cfr","𝒞":"Cscr","ℂ":"Copf","ć":"cacute","Ć":"Cacute","ĉ":"ccirc","Ĉ":"Ccirc","č":"ccaron","Č":"Ccaron","ċ":"cdot","Ċ":"Cdot","ç":"ccedil","Ç":"Ccedil","℅":"incare","𝔡":"dfr","ⅆ":"dd","𝕕":"dopf","𝒹":"dscr","𝒟":"Dscr","𝔇":"Dfr","ⅅ":"DD","𝔻":"Dopf","ď":"dcaron","Ď":"Dcaron","đ":"dstrok","Đ":"Dstrok","ð":"eth","Ð":"ETH","ⅇ":"ee","ℯ":"escr","𝔢":"efr","𝕖":"eopf","ℰ":"Escr","𝔈":"Efr","𝔼":"Eopf","é":"eacute","É":"Eacute","è":"egrave","È":"Egrave","ê":"ecirc","Ê":"Ecirc","ě":"ecaron","Ě":"Ecaron","ë":"euml","Ë":"Euml","ė":"edot","Ė":"Edot","ę":"eogon","Ę":"Eogon","ē":"emacr","Ē":"Emacr","𝔣":"ffr","𝕗":"fopf","𝒻":"fscr","𝔉":"Ffr","𝔽":"Fopf","ℱ":"Fscr","ff":"fflig","ffi":"ffilig","ffl":"ffllig","fi":"filig",fj:"fjlig","fl":"fllig","ƒ":"fnof","ℊ":"gscr","𝕘":"gopf","𝔤":"gfr","𝒢":"Gscr","𝔾":"Gopf","𝔊":"Gfr","ǵ":"gacute","ğ":"gbreve","Ğ":"Gbreve","ĝ":"gcirc","Ĝ":"Gcirc","ġ":"gdot","Ġ":"Gdot","Ģ":"Gcedil","𝔥":"hfr","ℎ":"planckh","𝒽":"hscr","𝕙":"hopf","ℋ":"Hscr","ℌ":"Hfr","ℍ":"Hopf","ĥ":"hcirc","Ĥ":"Hcirc","ℏ":"hbar","ħ":"hstrok","Ħ":"Hstrok","𝕚":"iopf","𝔦":"ifr","𝒾":"iscr","ⅈ":"ii","𝕀":"Iopf","ℐ":"Iscr","ℑ":"Im","í":"iacute","Í":"Iacute","ì":"igrave","Ì":"Igrave","î":"icirc","Î":"Icirc","ï":"iuml","Ï":"Iuml","ĩ":"itilde","Ĩ":"Itilde","İ":"Idot","į":"iogon","Į":"Iogon","ī":"imacr","Ī":"Imacr","ij":"ijlig","IJ":"IJlig","ı":"imath","𝒿":"jscr","𝕛":"jopf","𝔧":"jfr","𝒥":"Jscr","𝔍":"Jfr","𝕁":"Jopf","ĵ":"jcirc","Ĵ":"Jcirc","ȷ":"jmath","𝕜":"kopf","𝓀":"kscr","𝔨":"kfr","𝒦":"Kscr","𝕂":"Kopf","𝔎":"Kfr","ķ":"kcedil","Ķ":"Kcedil","𝔩":"lfr","𝓁":"lscr","ℓ":"ell","𝕝":"lopf","ℒ":"Lscr","𝔏":"Lfr","𝕃":"Lopf","ĺ":"lacute","Ĺ":"Lacute","ľ":"lcaron","Ľ":"Lcaron","ļ":"lcedil","Ļ":"Lcedil","ł":"lstrok","Ł":"Lstrok","ŀ":"lmidot","Ŀ":"Lmidot","𝔪":"mfr","𝕞":"mopf","𝓂":"mscr","𝔐":"Mfr","𝕄":"Mopf","ℳ":"Mscr","𝔫":"nfr","𝕟":"nopf","𝓃":"nscr","ℕ":"Nopf","𝒩":"Nscr","𝔑":"Nfr","ń":"nacute","Ń":"Nacute","ň":"ncaron","Ň":"Ncaron","ñ":"ntilde","Ñ":"Ntilde","ņ":"ncedil","Ņ":"Ncedil","№":"numero","ŋ":"eng","Ŋ":"ENG","𝕠":"oopf","𝔬":"ofr","ℴ":"oscr","𝒪":"Oscr","𝔒":"Ofr","𝕆":"Oopf","º":"ordm","ó":"oacute","Ó":"Oacute","ò":"ograve","Ò":"Ograve","ô":"ocirc","Ô":"Ocirc","ö":"ouml","Ö":"Ouml","ő":"odblac","Ő":"Odblac","õ":"otilde","Õ":"Otilde","ø":"oslash","Ø":"Oslash","ō":"omacr","Ō":"Omacr","œ":"oelig","Œ":"OElig","𝔭":"pfr","𝓅":"pscr","𝕡":"popf","ℙ":"Popf","𝔓":"Pfr","𝒫":"Pscr","𝕢":"qopf","𝔮":"qfr","𝓆":"qscr","𝒬":"Qscr","𝔔":"Qfr","ℚ":"Qopf","ĸ":"kgreen","𝔯":"rfr","𝕣":"ropf","𝓇":"rscr","ℛ":"Rscr","ℜ":"Re","ℝ":"Ropf","ŕ":"racute","Ŕ":"Racute","ř":"rcaron","Ř":"Rcaron","ŗ":"rcedil","Ŗ":"Rcedil","𝕤":"sopf","𝓈":"sscr","𝔰":"sfr","𝕊":"Sopf","𝔖":"Sfr","𝒮":"Sscr","Ⓢ":"oS","ś":"sacute","Ś":"Sacute","ŝ":"scirc","Ŝ":"Scirc","š":"scaron","Š":"Scaron","ş":"scedil","Ş":"Scedil","ß":"szlig","𝔱":"tfr","𝓉":"tscr","𝕥":"topf","𝒯":"Tscr","𝔗":"Tfr","𝕋":"Topf","ť":"tcaron","Ť":"Tcaron","ţ":"tcedil","Ţ":"Tcedil","™":"trade","ŧ":"tstrok","Ŧ":"Tstrok","𝓊":"uscr","𝕦":"uopf","𝔲":"ufr","𝕌":"Uopf","𝔘":"Ufr","𝒰":"Uscr","ú":"uacute","Ú":"Uacute","ù":"ugrave","Ù":"Ugrave","ŭ":"ubreve","Ŭ":"Ubreve","û":"ucirc","Û":"Ucirc","ů":"uring","Ů":"Uring","ü":"uuml","Ü":"Uuml","ű":"udblac","Ű":"Udblac","ũ":"utilde","Ũ":"Utilde","ų":"uogon","Ų":"Uogon","ū":"umacr","Ū":"Umacr","𝔳":"vfr","𝕧":"vopf","𝓋":"vscr","𝔙":"Vfr","𝕍":"Vopf","𝒱":"Vscr","𝕨":"wopf","𝓌":"wscr","𝔴":"wfr","𝒲":"Wscr","𝕎":"Wopf","𝔚":"Wfr","ŵ":"wcirc","Ŵ":"Wcirc","𝔵":"xfr","𝓍":"xscr","𝕩":"xopf","𝕏":"Xopf","𝔛":"Xfr","𝒳":"Xscr","𝔶":"yfr","𝓎":"yscr","𝕪":"yopf","𝒴":"Yscr","𝔜":"Yfr","𝕐":"Yopf","ý":"yacute","Ý":"Yacute","ŷ":"ycirc","Ŷ":"Ycirc","ÿ":"yuml","Ÿ":"Yuml","𝓏":"zscr","𝔷":"zfr","𝕫":"zopf","ℨ":"Zfr","ℤ":"Zopf","𝒵":"Zscr","ź":"zacute","Ź":"Zacute","ž":"zcaron","Ž":"Zcaron","ż":"zdot","Ż":"Zdot","Ƶ":"imped","þ":"thorn","Þ":"THORN","ʼn":"napos","α":"alpha","Α":"Alpha","β":"beta","Β":"Beta","γ":"gamma","Γ":"Gamma","δ":"delta","Δ":"Delta","ε":"epsi","ϵ":"epsiv","Ε":"Epsilon","ϝ":"gammad","Ϝ":"Gammad","ζ":"zeta","Ζ":"Zeta","η":"eta","Η":"Eta","θ":"theta","ϑ":"thetav","Θ":"Theta","ι":"iota","Ι":"Iota","κ":"kappa","ϰ":"kappav","Κ":"Kappa","λ":"lambda","Λ":"Lambda","μ":"mu","µ":"micro","Μ":"Mu","ν":"nu","Ν":"Nu","ξ":"xi","Ξ":"Xi","ο":"omicron","Ο":"Omicron","π":"pi","ϖ":"piv","Π":"Pi","ρ":"rho","ϱ":"rhov","Ρ":"Rho","σ":"sigma","Σ":"Sigma","ς":"sigmaf","τ":"tau","Τ":"Tau","υ":"upsi","Υ":"Upsilon","ϒ":"Upsi","φ":"phi","ϕ":"phiv","Φ":"Phi","χ":"chi","Χ":"Chi","ψ":"psi","Ψ":"Psi","ω":"omega","Ω":"ohm","а":"acy","А":"Acy","б":"bcy","Б":"Bcy","в":"vcy","В":"Vcy","г":"gcy","Г":"Gcy","ѓ":"gjcy","Ѓ":"GJcy","д":"dcy","Д":"Dcy","ђ":"djcy","Ђ":"DJcy","е":"iecy","Е":"IEcy","ё":"iocy","Ё":"IOcy","є":"jukcy","Є":"Jukcy","ж":"zhcy","Ж":"ZHcy","з":"zcy","З":"Zcy","ѕ":"dscy","Ѕ":"DScy","и":"icy","И":"Icy","і":"iukcy","І":"Iukcy","ї":"yicy","Ї":"YIcy","й":"jcy","Й":"Jcy","ј":"jsercy","Ј":"Jsercy","к":"kcy","К":"Kcy","ќ":"kjcy","Ќ":"KJcy","л":"lcy","Л":"Lcy","љ":"ljcy","Љ":"LJcy","м":"mcy","М":"Mcy","н":"ncy","Н":"Ncy","њ":"njcy","Њ":"NJcy","о":"ocy","О":"Ocy","п":"pcy","П":"Pcy","р":"rcy","Р":"Rcy","с":"scy","С":"Scy","т":"tcy","Т":"Tcy","ћ":"tshcy","Ћ":"TSHcy","у":"ucy","У":"Ucy","ў":"ubrcy","Ў":"Ubrcy","ф":"fcy","Ф":"Fcy","х":"khcy","Х":"KHcy","ц":"tscy","Ц":"TScy","ч":"chcy","Ч":"CHcy","џ":"dzcy","Џ":"DZcy","ш":"shcy","Ш":"SHcy","щ":"shchcy","Щ":"SHCHcy","ъ":"hardcy","Ъ":"HARDcy","ы":"ycy","Ы":"Ycy","ь":"softcy","Ь":"SOFTcy","э":"ecy","Э":"Ecy","ю":"yucy","Ю":"YUcy","я":"yacy","Я":"YAcy","ℵ":"aleph","ℶ":"beth","ℷ":"gimel","ℸ":"daleth"},h=/["&'<>`]/g,d={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},g=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,f=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,m=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,b={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},v={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},y={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},w=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],q=String.fromCharCode,D={}.hasOwnProperty,x=function(r,e){return D.call(r,e)},k=function(r,e){if(!r)return e;var t,a={};for(t in e)a[t]=x(r,t)?r[t]:e[t];return a},A=function(r,e){var t="";return r>=55296&&r<=57343||r>1114111?(e&&C("character reference outside the permissible Unicode range"),"�"):x(y,r)?(e&&C("disallowed character reference"),y[r]):(e&&function(r,e){for(var t=-1,a=r.length;++t65535&&(t+=q((r-=65536)>>>10&1023|55296),r=56320|1023&r),t+=q(r))},E=function(r){return"&#x"+r.toString(16).toUpperCase()+";"},L=function(r){return"&#"+r+";"},C=function(r){throw Error("Parse error: "+r)},S=function(r,e){(e=k(e,S.options)).strict&&f.test(r)&&C("forbidden code point");var t=e.encodeEverything,a=e.useNamedReferences,s=e.allowUnsafeSymbols,i=e.decimal?L:E,o=function(r){return i(r.charCodeAt(0))};return t?(r=r.replace(l,(function(r){return a&&x(p,r)?"&"+p[r]+";":o(r)})),a&&(r=r.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),a&&(r=r.replace(u,(function(r){return"&"+p[r]+";"})))):a?(s||(r=r.replace(h,(function(r){return"&"+p[r]+";"}))),r=(r=r.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(u,(function(r){return"&"+p[r]+";"}))):s||(r=r.replace(h,o)),r.replace(n,(function(r){var e=r.charCodeAt(0),t=r.charCodeAt(1);return i(1024*(e-55296)+t-56320+65536)})).replace(c,o)};S.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var T=function(r,e){var t=(e=k(e,T.options)).strict;return t&&g.test(r)&&C("malformed character reference"),r.replace(m,(function(r,a,s,i,o,n,l,c,u){var p,h,d,g,f,m;return a?b[f=a]:s?(f=s,(m=i)&&e.isAttributeValue?(t&&"="==m&&C("`&` did not start a character reference"),r):(t&&C("named character reference was not terminated by a semicolon"),v[f]+(m||""))):o?(d=o,h=n,t&&!h&&C("character reference was not terminated by a semicolon"),p=parseInt(d,10),A(p,t)):l?(g=l,h=c,t&&!h&&C("character reference was not terminated by a semicolon"),p=parseInt(g,16),A(p,t)):(t&&C("named character reference was not terminated by a semicolon"),r)}))};T.options={isAttributeValue:!1,strict:!1};var B={version:"1.2.0",encode:S,decode:T,escape:function(r){return r.replace(h,(function(r){return d[r]}))},unescape:T};void 0===(a=function(){return B}.call(e,t,e,r))||(r.exports=a)}()}).call(this,t(70)(r))},303:function(r,e,t){"use strict";t(278)},304:function(r,e,t){"use strict";t(279)},305:function(r,e,t){"use strict";t(280)},306:function(r,e,t){"use strict";t(281)},307:function(r,e,t){"use strict";t(283)},308:function(r,e,t){var a=t(25),s=t(10),i=t(21);r.exports=function(r){return"string"==typeof r||!s(r)&&i(r)&&"[object String]"==a(r)}},309:function(r,e,t){"use strict";t(284)},310:function(r,e,t){"use strict";t(285)},311:function(r,e,t){"use strict";t(286)},312:function(r,e,t){"use strict";t(287)},313:function(r,e,t){"use strict";t(288)},331:function(r,e,t){"use strict";t.r(e);var a=t(71),s={name:"Home",components:{NavLink:a.a},computed:{data(){return this.$page.frontmatter},actionLink(){return{link:this.data.actionLink,text:this.data.actionText}}}},i=(t(299),t(7)),o=Object(i.a)(s,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("main",{staticClass:"home",attrs:{"aria-labelledby":null!==r.data.heroText?"main-title":null}},[t("header",{staticClass:"hero"},[r.data.heroImage?t("img",{attrs:{src:r.$withBase(r.data.heroImage),alt:r.data.heroAlt||"hero"}}):r._e(),r._v(" "),null!==r.data.heroText?t("h1",{attrs:{id:"main-title"}},[r._v("\n "+r._s(r.data.heroText||r.$title||"Hello")+"\n ")]):r._e(),r._v(" "),null!==r.data.tagline?t("p",{staticClass:"description"},[r._v("\n "+r._s(r.data.tagline||r.$description||"Welcome to your VuePress site")+"\n ")]):r._e(),r._v(" "),r.data.actionText&&r.data.actionLink?t("p",{staticClass:"action"},[t("NavLink",{staticClass:"action-button",attrs:{item:r.actionLink}})],1):r._e()]),r._v(" "),r.data.features&&r.data.features.length?t("div",{staticClass:"features"},r._l(r.data.features,(function(e,a){return t("div",{key:a,staticClass:"feature"},[t("h2",[r._v(r._s(e.title))]),r._v(" "),t("p",[r._v(r._s(e.details))])])})),0):r._e(),r._v(" "),t("Content",{staticClass:"theme-default-content custom"}),r._v(" "),r.data.footer?t("div",{staticClass:"footer"},[r._v("\n "+r._s(r.data.footer)+"\n ")]):r._e()],1)}),[],!1,null,null,null).exports,n=t(300),l=t.n(n),c=t(301),u={data:()=>({query:"",focused:!1,focusIndex:0,placeholder:void 0,index:null}),mounted(){this.placeholder=this.$site.themeConfig.searchPlaceholder||"",document.addEventListener("keydown",this.onHotkey),this.setupFlexSearch()},beforeDestroy(){document.removeEventListener("keydown",this.onHotkey)},computed:{showSuggestions(){return this.focused&&this.suggestions&&this.suggestions.length},suggestions(){const r=this.query.trim().toLowerCase();if(!r)return;return this.index.search(r,10).map(r=>({...r,title:this.getSuggestionTitle(r),text:this.getSuggestionText(r)}))},alignRight(){return(this.$site.themeConfig.nav||[]).length+(this.$site.repo?1:0)<=2}},methods:{getPageLocalePath(r){for(const e in this.$site.locales||{})if("/"!==e&&0===r.path.indexOf(e))return e;return"/"},isSearchable(r){let e=null;return null===e||(e=Array.isArray(e)?e:new Array(e),e.filter(e=>r.path.match(e)).length>0)},onHotkey(r){r.srcElement===document.body&&"s".includes(r.key)&&(this.$refs.input.focus(),r.preventDefault())},onUp(){this.showSuggestions&&(this.focusIndex>0?this.focusIndex--:this.focusIndex=this.suggestions.length-1)},onDown(){this.showSuggestions&&(this.focusIndex15&&(s-=15,i=".. ");const o=r.content.substr(s,60);return i+Object(c.highlightText)(o,this.query)}}},p=(t(303),Object(i.a)(u,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("div",{staticClass:"search-box"},[t("input",{ref:"input",class:{focused:r.focused},attrs:{"aria-label":"Search",placeholder:r.placeholder,autocomplete:"off",spellcheck:"false"},domProps:{value:r.query},on:{input:function(e){r.query=e.target.value},focus:function(e){r.focused=!0},blur:function(e){r.focused=!1},keyup:[function(e){return!e.type.indexOf("key")&&r._k(e.keyCode,"enter",13,e.key,"Enter")?null:r.go(r.focusIndex)},function(e){return!e.type.indexOf("key")&&r._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:r.onUp(e)},function(e){return!e.type.indexOf("key")&&r._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:r.onDown(e)}]}}),r._v(" "),r.showSuggestions?t("ul",{staticClass:"suggestions",class:{"align-right":r.alignRight},on:{mouseleave:r.unfocus}},r._l(r.suggestions,(function(e,a){return t("li",{key:a,staticClass:"suggestion",class:{focused:a===r.focusIndex},on:{mousedown:function(e){return r.go(a)},mouseenter:function(e){return r.focus(a)}}},[t("a",{attrs:{href:e.regularPath},on:{click:function(r){r.preventDefault()}}},[t("span",{staticClass:"suggestion__title",domProps:{innerHTML:r._s(e.title||e.regularPath)}}),r._v(" "),t("span",{staticClass:"suggestion__result",domProps:{innerHTML:r._s(e.text)}})])])})),0):r._e()])}),[],!1,null,null,null).exports),h=(t(304),Object(i.a)({},(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("div",{staticClass:"sidebar-button",on:{click:function(e){return r.$emit("toggle-sidebar")}}},[t("svg",{staticClass:"icon",attrs:{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",viewBox:"0 0 448 512"}},[t("path",{attrs:{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"}})])])}),[],!1,null,null,null).exports),d=(t(14),t(121)),g=t(20),f={name:"NavLinks",components:{NavLink:a.a,DropdownLink:d.a},computed:{userNav(){return this.$themeLocaleConfig.nav||this.$site.themeConfig.nav||[]},nav(){const{locales:r}=this.$site;if(r&&Object.keys(r).length>1){const e=this.$page.path,t=this.$router.options.routes,a=this.$site.themeConfig.locales||{},s={text:this.$themeLocaleConfig.selectText||"Languages",ariaLabel:this.$themeLocaleConfig.ariaLabel||"Select language",items:Object.keys(r).map(s=>{const i=r[s],o=a[s]&&a[s].label||i.lang;let n;return i.lang===this.$lang?n=e:(n=e.replace(this.$localeConfig.path,s),t.some(r=>r.path===n)||(n=s)),{text:o,link:n}})};return[...this.userNav,s]}return this.userNav},userLinks(){return(this.nav||[]).map(r=>Object.assign(Object(g.j)(r),{items:(r.items||[]).map(g.j)}))},repoLink(){const{repo:r}=this.$site.themeConfig;return r?/^https?:/.test(r)?r:"https://github.com/"+r:null},repoLabel(){if(!this.repoLink)return;if(this.$site.themeConfig.repoLabel)return this.$site.themeConfig.repoLabel;const r=this.repoLink.match(/^https?:\/\/[^/]+/)[0],e=["GitHub","GitLab","Bitbucket"];for(let t=0;t({linksWrapMaxWidth:null}),computed:{algolia(){return this.$themeLocaleConfig.algolia||this.$site.themeConfig.algolia||{}},isAlgoliaSearch(){return this.algolia&&this.algolia.apiKey&&this.algolia.indexName}},mounted(){const r=parseInt(b(this.$el,"paddingLeft"))+parseInt(b(this.$el,"paddingRight")),e=()=>{document.documentElement.clientWidth<719?this.linksWrapMaxWidth=null:this.linksWrapMaxWidth=this.$el.offsetWidth-r-(this.$refs.siteName&&this.$refs.siteName.offsetWidth||0)};e(),window.addEventListener("resize",e,!1)}},y=(t(306),Object(i.a)(v,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("header",{staticClass:"navbar"},[t("SidebarButton",{on:{"toggle-sidebar":function(e){return r.$emit("toggle-sidebar")}}}),r._v(" "),t("RouterLink",{staticClass:"home-link",attrs:{to:r.$localePath}},[r.$site.themeConfig.logo?t("img",{staticClass:"logo",attrs:{src:r.$withBase(r.$site.themeConfig.logo),alt:r.$siteTitle}}):r._e(),r._v(" "),r.$siteTitle?t("span",{ref:"siteName",staticClass:"site-name",class:{"can-hide":r.$site.themeConfig.logo}},[r._v(r._s(r.$siteTitle))]):r._e()]),r._v(" "),t("div",{staticClass:"links",style:r.linksWrapMaxWidth?{"max-width":r.linksWrapMaxWidth+"px"}:{}},[r.isAlgoliaSearch?t("AlgoliaSearchBox",{attrs:{options:r.algolia}}):!1!==r.$site.themeConfig.search&&!1!==r.$page.frontmatter.search?t("SearchBox"):r._e(),r._v(" "),t("NavLinks",{staticClass:"can-hide"})],1)],1)}),[],!1,null,null,null).exports),w=t(282),q=t.n(w),D={name:"PageEdit",computed:{lastUpdated(){return this.$page.lastUpdated},lastUpdatedText(){return"string"==typeof this.$themeLocaleConfig.lastUpdated?this.$themeLocaleConfig.lastUpdated:"string"==typeof this.$site.themeConfig.lastUpdated?this.$site.themeConfig.lastUpdated:"Last Updated"},editLink(){const r=q()(this.$page.frontmatter.editLink)?this.$site.themeConfig.editLinks:this.$page.frontmatter.editLink,{repo:e,docsDir:t="",docsBranch:a="master",docsRepo:s=e}=this.$site.themeConfig;return r&&s&&this.$page.relativePath?this.createEditLink(e,s,t,a,this.$page.relativePath):null},editLinkText(){return this.$themeLocaleConfig.editLinkText||this.$site.themeConfig.editLinkText||"Edit this page"}},methods:{createEditLink(r,e,t,a,s){if(/bitbucket.org/.test(e)){return e.replace(g.a,"")+"/src"+`/${a}/`+(t?t.replace(g.a,"")+"/":"")+s+`?mode=edit&spa=0&at=${a}&fileviewer=file-view-default`}if(/gitlab.com/.test(e)){return e.replace(g.a,"")+"/-/edit"+`/${a}/`+(t?t.replace(g.a,"")+"/":"")+s}return(g.i.test(e)?e:"https://github.com/"+e).replace(g.a,"")+"/edit"+`/${a}/`+(t?t.replace(g.a,"")+"/":"")+s}}},x=(t(307),Object(i.a)(D,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("footer",{staticClass:"page-edit"},[r.editLink?t("div",{staticClass:"edit-link"},[t("a",{attrs:{href:r.editLink,target:"_blank",rel:"noopener noreferrer"}},[r._v(r._s(r.editLinkText))]),r._v(" "),t("OutboundLink")],1):r._e(),r._v(" "),r.lastUpdated?t("div",{staticClass:"last-updated"},[t("span",{staticClass:"prefix"},[r._v(r._s(r.lastUpdatedText)+":")]),r._v(" "),t("span",{staticClass:"time"},[r._v(r._s(r.lastUpdated))])]):r._e()])}),[],!1,null,null,null).exports),k=t(308),A=t.n(k),E={name:"PageNav",props:["sidebarItems"],computed:{prev(){return C(L.PREV,this)},next(){return C(L.NEXT,this)}}};const L={NEXT:{resolveLink:function(r,e){return S(r,e,1)},getThemeLinkConfig:({nextLinks:r})=>r,getPageLinkConfig:({frontmatter:r})=>r.next},PREV:{resolveLink:function(r,e){return S(r,e,-1)},getThemeLinkConfig:({prevLinks:r})=>r,getPageLinkConfig:({frontmatter:r})=>r.prev}};function C(r,{$themeConfig:e,$page:t,$route:a,$site:s,sidebarItems:i}){const{resolveLink:o,getThemeLinkConfig:n,getPageLinkConfig:l}=r,c=n(e),u=l(t),p=q()(u)?c:u;return!1===p?void 0:A()(p)?Object(g.k)(s.pages,p,a.path):o(t,i)}function S(r,e,t){const a=[];!function r(e,t){for(let a=0,s=e.length;a({isSidebarOpen:!1}),computed:{shouldShowNavbar(){const{themeConfig:r}=this.$site,{frontmatter:e}=this.$page;return!1!==e.navbar&&!1!==r.navbar&&(this.$title||r.logo||r.repo||r.nav||this.$themeLocaleConfig.nav)},shouldShowSidebar(){const{frontmatter:r}=this.$page;return!r.home&&!1!==r.sidebar&&this.sidebarItems.length},sidebarItems(){return Object(g.l)(this.$page,this.$page.regularPath,this.$site,this.$localePath)},pageClasses(){const r=this.$page.frontmatter.pageClass;return[{"no-navbar":!this.shouldShowNavbar,"sidebar-open":this.isSidebarOpen,"no-sidebar":!this.shouldShowSidebar},r]}},mounted(){this.$router.afterEach(()=>{this.isSidebarOpen=!1})},methods:{toggleSidebar(r){this.isSidebarOpen="boolean"==typeof r?r:!this.isSidebarOpen,this.$emit("toggle-sidebar",this.isSidebarOpen)},onTouchStart(r){this.touchStart={x:r.changedTouches[0].clientX,y:r.changedTouches[0].clientY}},onTouchEnd(r){const e=r.changedTouches[0].clientX-this.touchStart.x,t=r.changedTouches[0].clientY-this.touchStart.y;Math.abs(e)>Math.abs(t)&&Math.abs(e)>40&&(e>0&&this.touchStart.x<=80?this.toggleSidebar(!0):this.toggleSidebar(!1))}}}),F=Object(i.a)(U,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("div",{staticClass:"theme-container",class:r.pageClasses,on:{touchstart:r.onTouchStart,touchend:r.onTouchEnd}},[r.shouldShowNavbar?t("Navbar",{on:{"toggle-sidebar":r.toggleSidebar}}):r._e(),r._v(" "),t("div",{staticClass:"sidebar-mask",on:{click:function(e){return r.toggleSidebar(!1)}}}),r._v(" "),t("Sidebar",{attrs:{items:r.sidebarItems},on:{"toggle-sidebar":r.toggleSidebar},scopedSlots:r._u([{key:"top",fn:function(){return[r._t("sidebar-top")]},proxy:!0},{key:"bottom",fn:function(){return[r._t("sidebar-bottom")]},proxy:!0}],null,!0)}),r._v(" "),r.$page.frontmatter.home?t("Home"):t("Page",{attrs:{"sidebar-items":r.sidebarItems},scopedSlots:r._u([{key:"top",fn:function(){return[r._t("page-top")]},proxy:!0},{key:"bottom",fn:function(){return[r._t("page-bottom")]},proxy:!0}],null,!0)})],1)}),[],!1,null,null,null);e.default=F.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{277:function(r,e,t){},278:function(r,e,t){},279:function(r,e,t){},280:function(r,e,t){},281:function(r,e,t){},282:function(r,e){r.exports=function(r){return null==r}},283:function(r,e,t){},284:function(r,e,t){},285:function(r,e,t){},286:function(r,e,t){},287:function(r,e,t){},288:function(r,e,t){},298:function(r,e,t){"use strict";t.r(e);var a=t(20),s={name:"SidebarGroup",components:{DropdownTransition:t(122).a},props:["item","open","collapsable","depth"],beforeCreate(){this.$options.components.SidebarLinks=t(298).default},methods:{isActive:a.e}},i=(t(311),t(7)),o=Object(i.a)(s,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("section",{staticClass:"sidebar-group",class:[{collapsable:r.collapsable,"is-sub-group":0!==r.depth},"depth-"+r.depth]},[r.item.path?t("RouterLink",{staticClass:"sidebar-heading clickable",class:{open:r.open,active:r.isActive(r.$route,r.item.path)},attrs:{to:r.item.path},nativeOn:{click:function(e){return r.$emit("toggle")}}},[t("span",[r._v(r._s(r.item.title))]),r._v(" "),r.collapsable?t("span",{staticClass:"arrow",class:r.open?"down":"right"}):r._e()]):t("p",{staticClass:"sidebar-heading",class:{open:r.open},on:{click:function(e){return r.$emit("toggle")}}},[t("span",[r._v(r._s(r.item.title))]),r._v(" "),r.collapsable?t("span",{staticClass:"arrow",class:r.open?"down":"right"}):r._e()]),r._v(" "),t("DropdownTransition",[r.open||!r.collapsable?t("SidebarLinks",{staticClass:"sidebar-group-items",attrs:{items:r.item.children,"sidebar-depth":r.item.sidebarDepth,"initial-open-group-index":r.item.initialOpenGroupIndex,depth:r.depth+1}}):r._e()],1)],1)}),[],!1,null,null,null).exports;function n(r,e,t,a,s){const i={props:{to:e,activeClass:"",exactActiveClass:""},class:{active:a,"sidebar-link":!0}};return s>2&&(i.style={"padding-left":s+"rem"}),r("RouterLink",i,t)}function l(r,e,t,s,i,o=1){return!e||o>i?null:r("ul",{class:"sidebar-sub-headers"},e.map(e=>{const c=Object(a.e)(s,t+"#"+e.slug);return r("li",{class:"sidebar-sub-header"},[n(r,t+"#"+e.slug,e.title,c,e.level-1),l(r,e.children,t,s,i,o+1)])}))}var c={functional:!0,props:["item","sidebarDepth"],render(r,{parent:{$page:e,$site:t,$route:s,$themeConfig:i,$themeLocaleConfig:o},props:{item:c,sidebarDepth:u}}){const p=Object(a.e)(s,c.path),h="auto"===c.type?p||c.children.some(r=>Object(a.e)(s,c.basePath+"#"+r.slug)):p,d="external"===c.type?function(r,e,t){return r("a",{attrs:{href:e,target:"_blank",rel:"noopener noreferrer"},class:{"sidebar-link":!0}},[t,r("OutboundLink")])}(r,c.path,c.title||c.path):n(r,c.path,c.title||c.path,h),g=[e.frontmatter.sidebarDepth,u,o.sidebarDepth,i.sidebarDepth,1].find(r=>void 0!==r),f=o.displayAllHeaders||i.displayAllHeaders;if("auto"===c.type)return[d,l(r,c.children,c.basePath,s,g)];if((h||f)&&c.headers&&!a.d.test(c.path)){return[d,l(r,Object(a.c)(c.headers),c.path,s,g)]}return d}};t(312);function u(r,e){if("group"===e.type){const t=e.path&&Object(a.e)(r,e.path),s=e.children.some(e=>"group"===e.type?u(r,e):"page"===e.type&&Object(a.e)(r,e.path));return t||s}return!1}var p={name:"SidebarLinks",components:{SidebarGroup:o,SidebarLink:Object(i.a)(c,void 0,void 0,!1,null,null,null).exports},props:["items","depth","sidebarDepth","initialOpenGroupIndex"],data(){return{openGroupIndex:this.initialOpenGroupIndex||0}},watch:{$route(){this.refreshIndex()}},created(){this.refreshIndex()},methods:{refreshIndex(){const r=function(r,e){for(let t=0;t-1&&(this.openGroupIndex=r)},toggleGroup(r){this.openGroupIndex=r===this.openGroupIndex?-1:r},isActive(r){return Object(a.e)(this.$route,r.regularPath)}}},h=Object(i.a)(p,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return r.items.length?t("ul",{staticClass:"sidebar-links"},r._l(r.items,(function(e,a){return t("li",{key:a},["group"===e.type?t("SidebarGroup",{attrs:{item:e,open:a===r.openGroupIndex,collapsable:e.collapsable||e.collapsible,depth:r.depth},on:{toggle:function(e){return r.toggleGroup(a)}}}):t("SidebarLink",{attrs:{"sidebar-depth":r.sidebarDepth,item:e}})],1)})),0):r._e()}),[],!1,null,null,null);e.default=h.exports},299:function(r,e,t){"use strict";t(277)},300:function(r,e,t){"use strict";!function(e,t,a){let s;(s=a.define)&&s.amd?s([],(function(){return t})):(s=a.modules)?s["FlexSearch".toLowerCase()]=t:r.exports=t}(0,function r(e){function t(r,e){const t=e?e.id:r&&r.id;this.id=t||0===t?t:S++,this.init(r,e),o(this,"index",(function(){return this.a?Object.keys(this.a.index[this.a.keys[0]].c):Object.keys(this.c)})),o(this,"length",(function(){return this.index.length}))}function a(r,e,t,a){return this.u!==this.g&&(this.o=this.o.concat(t),this.u++,a&&this.o.length>=a&&(this.u=this.g),this.u===this.g&&(this.cache&&this.j.set(e,this.o),this.F&&this.F(this.o))),this}function s(r,e){const t=r.length,a=y(e),s=[];for(let i=0,o=0;i=o&&((r=(r=r[n-(s+.5>>0)])[t]||(r[t]=[]))[r.length]=a),s)}function u(r,e){if(r){const t=Object.keys(r);for(let a=0,s=t.length;a(r=r.length-e.length)?1:r?-1:0}function d(r,e){return(r=r[N])<(e=e[N])?-1:r>e?1:0}function g(r,e){const t=N.length;for(let a=0;ae?1:0}function f(r,e,t){return r?{page:r,next:e?""+e:null,result:t}:t}function m(r,e,t,a,s,i,o){let n,l=[];if(!0===t){t="0";var c=""}else c=t&&t.split(":");const u=r.length;if(1o&&(c=0),n=(c=c||0)+e,n=this.m.length&&(this.C=0),this.m[this.C].postMessage({add:!0,id:r,content:e}),this.c[o]=""+this.C,t&&t(),this;if(!i){if(this.async&&"function"!=typeof importScripts){let s=this;return o=new Promise((function(t){setTimeout((function(){s.add(r,e,null,a,!0),s=null,t()}))})),t?(o.then(t),this):o}if(t)return this.add(r,e,null,a,!0),t(),this}if(!(e=this.encode(e)).length)return this;i=y(t=this.f)?t(e):e.split(this.split),this.filter&&(i=s(i,this.filter));const d=x();d._ctx=x();const g=i.length,f=this.threshold,m=this.depth,b=this.b,v=this.i,w=this.D;for(let e=0;eh;t--)c(v,d,p=n.substring(h,t),r,e,u,f,b-1)}break;default:if(l=c(v,d,n,r,1,u,f,b-1),m&&1=f)for(l=d._ctx[n]||(d._ctx[n]=x()),n=this.h[n]||(this.h[n]=D(b-(f||0))),0>(u=e-m)&&(u=0),(p=e+m+1)>g&&(p=g);us;t--)a=i[t-1],i[t]=a,e[a]=t;i[s]=r,e[r]=s}}}return e},r}();return t}(function(){const r={},e="undefined"!=typeof Blob&&"undefined"!=typeof URL&&URL.createObjectURL;return function(t,a,s,i,o){return s=e?URL.createObjectURL(new Blob(["("+s.toString()+")()"],{type:"text/javascript"})):t+".min.js",r[t+="-"+a]||(r[t]=[]),r[t][o]=new Worker(s),r[t][o].onmessage=i,r[t][o]}}()),this)},301:function(r,e,t){t(15);const a=t(302);r.exports.getPageText=r=>{if(!r._strippedContent)return"";const{html:e}=r._context.markdown.render(r._strippedContent);return a.decode(e.replace(/(<[^>]+>)+/g," ").replace(/^\s*#\s/gm,""))},r.exports.highlightText=(r,e)=>{let t=r;if(highlightWords=e.split(" ").filter(r=>r.length>0),highlightWords.length>0)for(const r of highlightWords)t=t.replace(new RegExp(r,"ig"),"$&");else t=r.replace(new RegExp(e,"ig"),"$&");return t}},302:function(r,e,t){(function(r){var a;/*! https://mths.be/he v1.2.0 by @mathias | MIT license */!function(s){var i=e,o=(r&&r.exports,"object"==typeof global&&global);o.global!==o&&o.window;var n=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=/[\x01-\x7F]/g,c=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,u=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,p={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon","ˆ":"circ","ˇ":"caron","°":"deg","©":"copy","®":"reg","℗":"copysr","℘":"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","𝒶":"ascr","𝕒":"aopf","𝔞":"afr","𝔸":"Aopf","𝔄":"Afr","𝒜":"Ascr","ª":"ordf","á":"aacute","Á":"Aacute","à":"agrave","À":"Agrave","ă":"abreve","Ă":"Abreve","â":"acirc","Â":"Acirc","å":"aring","Å":"angst","ä":"auml","Ä":"Auml","ã":"atilde","Ã":"Atilde","ą":"aogon","Ą":"Aogon","ā":"amacr","Ā":"Amacr","æ":"aelig","Æ":"AElig","𝒷":"bscr","𝕓":"bopf","𝔟":"bfr","𝔹":"Bopf","ℬ":"Bscr","𝔅":"Bfr","𝔠":"cfr","𝒸":"cscr","𝕔":"copf","ℭ":"Cfr","𝒞":"Cscr","ℂ":"Copf","ć":"cacute","Ć":"Cacute","ĉ":"ccirc","Ĉ":"Ccirc","č":"ccaron","Č":"Ccaron","ċ":"cdot","Ċ":"Cdot","ç":"ccedil","Ç":"Ccedil","℅":"incare","𝔡":"dfr","ⅆ":"dd","𝕕":"dopf","𝒹":"dscr","𝒟":"Dscr","𝔇":"Dfr","ⅅ":"DD","𝔻":"Dopf","ď":"dcaron","Ď":"Dcaron","đ":"dstrok","Đ":"Dstrok","ð":"eth","Ð":"ETH","ⅇ":"ee","ℯ":"escr","𝔢":"efr","𝕖":"eopf","ℰ":"Escr","𝔈":"Efr","𝔼":"Eopf","é":"eacute","É":"Eacute","è":"egrave","È":"Egrave","ê":"ecirc","Ê":"Ecirc","ě":"ecaron","Ě":"Ecaron","ë":"euml","Ë":"Euml","ė":"edot","Ė":"Edot","ę":"eogon","Ę":"Eogon","ē":"emacr","Ē":"Emacr","𝔣":"ffr","𝕗":"fopf","𝒻":"fscr","𝔉":"Ffr","𝔽":"Fopf","ℱ":"Fscr","ff":"fflig","ffi":"ffilig","ffl":"ffllig","fi":"filig",fj:"fjlig","fl":"fllig","ƒ":"fnof","ℊ":"gscr","𝕘":"gopf","𝔤":"gfr","𝒢":"Gscr","𝔾":"Gopf","𝔊":"Gfr","ǵ":"gacute","ğ":"gbreve","Ğ":"Gbreve","ĝ":"gcirc","Ĝ":"Gcirc","ġ":"gdot","Ġ":"Gdot","Ģ":"Gcedil","𝔥":"hfr","ℎ":"planckh","𝒽":"hscr","𝕙":"hopf","ℋ":"Hscr","ℌ":"Hfr","ℍ":"Hopf","ĥ":"hcirc","Ĥ":"Hcirc","ℏ":"hbar","ħ":"hstrok","Ħ":"Hstrok","𝕚":"iopf","𝔦":"ifr","𝒾":"iscr","ⅈ":"ii","𝕀":"Iopf","ℐ":"Iscr","ℑ":"Im","í":"iacute","Í":"Iacute","ì":"igrave","Ì":"Igrave","î":"icirc","Î":"Icirc","ï":"iuml","Ï":"Iuml","ĩ":"itilde","Ĩ":"Itilde","İ":"Idot","į":"iogon","Į":"Iogon","ī":"imacr","Ī":"Imacr","ij":"ijlig","IJ":"IJlig","ı":"imath","𝒿":"jscr","𝕛":"jopf","𝔧":"jfr","𝒥":"Jscr","𝔍":"Jfr","𝕁":"Jopf","ĵ":"jcirc","Ĵ":"Jcirc","ȷ":"jmath","𝕜":"kopf","𝓀":"kscr","𝔨":"kfr","𝒦":"Kscr","𝕂":"Kopf","𝔎":"Kfr","ķ":"kcedil","Ķ":"Kcedil","𝔩":"lfr","𝓁":"lscr","ℓ":"ell","𝕝":"lopf","ℒ":"Lscr","𝔏":"Lfr","𝕃":"Lopf","ĺ":"lacute","Ĺ":"Lacute","ľ":"lcaron","Ľ":"Lcaron","ļ":"lcedil","Ļ":"Lcedil","ł":"lstrok","Ł":"Lstrok","ŀ":"lmidot","Ŀ":"Lmidot","𝔪":"mfr","𝕞":"mopf","𝓂":"mscr","𝔐":"Mfr","𝕄":"Mopf","ℳ":"Mscr","𝔫":"nfr","𝕟":"nopf","𝓃":"nscr","ℕ":"Nopf","𝒩":"Nscr","𝔑":"Nfr","ń":"nacute","Ń":"Nacute","ň":"ncaron","Ň":"Ncaron","ñ":"ntilde","Ñ":"Ntilde","ņ":"ncedil","Ņ":"Ncedil","№":"numero","ŋ":"eng","Ŋ":"ENG","𝕠":"oopf","𝔬":"ofr","ℴ":"oscr","𝒪":"Oscr","𝔒":"Ofr","𝕆":"Oopf","º":"ordm","ó":"oacute","Ó":"Oacute","ò":"ograve","Ò":"Ograve","ô":"ocirc","Ô":"Ocirc","ö":"ouml","Ö":"Ouml","ő":"odblac","Ő":"Odblac","õ":"otilde","Õ":"Otilde","ø":"oslash","Ø":"Oslash","ō":"omacr","Ō":"Omacr","œ":"oelig","Œ":"OElig","𝔭":"pfr","𝓅":"pscr","𝕡":"popf","ℙ":"Popf","𝔓":"Pfr","𝒫":"Pscr","𝕢":"qopf","𝔮":"qfr","𝓆":"qscr","𝒬":"Qscr","𝔔":"Qfr","ℚ":"Qopf","ĸ":"kgreen","𝔯":"rfr","𝕣":"ropf","𝓇":"rscr","ℛ":"Rscr","ℜ":"Re","ℝ":"Ropf","ŕ":"racute","Ŕ":"Racute","ř":"rcaron","Ř":"Rcaron","ŗ":"rcedil","Ŗ":"Rcedil","𝕤":"sopf","𝓈":"sscr","𝔰":"sfr","𝕊":"Sopf","𝔖":"Sfr","𝒮":"Sscr","Ⓢ":"oS","ś":"sacute","Ś":"Sacute","ŝ":"scirc","Ŝ":"Scirc","š":"scaron","Š":"Scaron","ş":"scedil","Ş":"Scedil","ß":"szlig","𝔱":"tfr","𝓉":"tscr","𝕥":"topf","𝒯":"Tscr","𝔗":"Tfr","𝕋":"Topf","ť":"tcaron","Ť":"Tcaron","ţ":"tcedil","Ţ":"Tcedil","™":"trade","ŧ":"tstrok","Ŧ":"Tstrok","𝓊":"uscr","𝕦":"uopf","𝔲":"ufr","𝕌":"Uopf","𝔘":"Ufr","𝒰":"Uscr","ú":"uacute","Ú":"Uacute","ù":"ugrave","Ù":"Ugrave","ŭ":"ubreve","Ŭ":"Ubreve","û":"ucirc","Û":"Ucirc","ů":"uring","Ů":"Uring","ü":"uuml","Ü":"Uuml","ű":"udblac","Ű":"Udblac","ũ":"utilde","Ũ":"Utilde","ų":"uogon","Ų":"Uogon","ū":"umacr","Ū":"Umacr","𝔳":"vfr","𝕧":"vopf","𝓋":"vscr","𝔙":"Vfr","𝕍":"Vopf","𝒱":"Vscr","𝕨":"wopf","𝓌":"wscr","𝔴":"wfr","𝒲":"Wscr","𝕎":"Wopf","𝔚":"Wfr","ŵ":"wcirc","Ŵ":"Wcirc","𝔵":"xfr","𝓍":"xscr","𝕩":"xopf","𝕏":"Xopf","𝔛":"Xfr","𝒳":"Xscr","𝔶":"yfr","𝓎":"yscr","𝕪":"yopf","𝒴":"Yscr","𝔜":"Yfr","𝕐":"Yopf","ý":"yacute","Ý":"Yacute","ŷ":"ycirc","Ŷ":"Ycirc","ÿ":"yuml","Ÿ":"Yuml","𝓏":"zscr","𝔷":"zfr","𝕫":"zopf","ℨ":"Zfr","ℤ":"Zopf","𝒵":"Zscr","ź":"zacute","Ź":"Zacute","ž":"zcaron","Ž":"Zcaron","ż":"zdot","Ż":"Zdot","Ƶ":"imped","þ":"thorn","Þ":"THORN","ʼn":"napos","α":"alpha","Α":"Alpha","β":"beta","Β":"Beta","γ":"gamma","Γ":"Gamma","δ":"delta","Δ":"Delta","ε":"epsi","ϵ":"epsiv","Ε":"Epsilon","ϝ":"gammad","Ϝ":"Gammad","ζ":"zeta","Ζ":"Zeta","η":"eta","Η":"Eta","θ":"theta","ϑ":"thetav","Θ":"Theta","ι":"iota","Ι":"Iota","κ":"kappa","ϰ":"kappav","Κ":"Kappa","λ":"lambda","Λ":"Lambda","μ":"mu","µ":"micro","Μ":"Mu","ν":"nu","Ν":"Nu","ξ":"xi","Ξ":"Xi","ο":"omicron","Ο":"Omicron","π":"pi","ϖ":"piv","Π":"Pi","ρ":"rho","ϱ":"rhov","Ρ":"Rho","σ":"sigma","Σ":"Sigma","ς":"sigmaf","τ":"tau","Τ":"Tau","υ":"upsi","Υ":"Upsilon","ϒ":"Upsi","φ":"phi","ϕ":"phiv","Φ":"Phi","χ":"chi","Χ":"Chi","ψ":"psi","Ψ":"Psi","ω":"omega","Ω":"ohm","а":"acy","А":"Acy","б":"bcy","Б":"Bcy","в":"vcy","В":"Vcy","г":"gcy","Г":"Gcy","ѓ":"gjcy","Ѓ":"GJcy","д":"dcy","Д":"Dcy","ђ":"djcy","Ђ":"DJcy","е":"iecy","Е":"IEcy","ё":"iocy","Ё":"IOcy","є":"jukcy","Є":"Jukcy","ж":"zhcy","Ж":"ZHcy","з":"zcy","З":"Zcy","ѕ":"dscy","Ѕ":"DScy","и":"icy","И":"Icy","і":"iukcy","І":"Iukcy","ї":"yicy","Ї":"YIcy","й":"jcy","Й":"Jcy","ј":"jsercy","Ј":"Jsercy","к":"kcy","К":"Kcy","ќ":"kjcy","Ќ":"KJcy","л":"lcy","Л":"Lcy","љ":"ljcy","Љ":"LJcy","м":"mcy","М":"Mcy","н":"ncy","Н":"Ncy","њ":"njcy","Њ":"NJcy","о":"ocy","О":"Ocy","п":"pcy","П":"Pcy","р":"rcy","Р":"Rcy","с":"scy","С":"Scy","т":"tcy","Т":"Tcy","ћ":"tshcy","Ћ":"TSHcy","у":"ucy","У":"Ucy","ў":"ubrcy","Ў":"Ubrcy","ф":"fcy","Ф":"Fcy","х":"khcy","Х":"KHcy","ц":"tscy","Ц":"TScy","ч":"chcy","Ч":"CHcy","џ":"dzcy","Џ":"DZcy","ш":"shcy","Ш":"SHcy","щ":"shchcy","Щ":"SHCHcy","ъ":"hardcy","Ъ":"HARDcy","ы":"ycy","Ы":"Ycy","ь":"softcy","Ь":"SOFTcy","э":"ecy","Э":"Ecy","ю":"yucy","Ю":"YUcy","я":"yacy","Я":"YAcy","ℵ":"aleph","ℶ":"beth","ℷ":"gimel","ℸ":"daleth"},h=/["&'<>`]/g,d={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},g=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,f=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,m=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,b={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},v={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},y={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},w=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],q=String.fromCharCode,D={}.hasOwnProperty,x=function(r,e){return D.call(r,e)},k=function(r,e){if(!r)return e;var t,a={};for(t in e)a[t]=x(r,t)?r[t]:e[t];return a},A=function(r,e){var t="";return r>=55296&&r<=57343||r>1114111?(e&&C("character reference outside the permissible Unicode range"),"�"):x(y,r)?(e&&C("disallowed character reference"),y[r]):(e&&function(r,e){for(var t=-1,a=r.length;++t65535&&(t+=q((r-=65536)>>>10&1023|55296),r=56320|1023&r),t+=q(r))},E=function(r){return"&#x"+r.toString(16).toUpperCase()+";"},L=function(r){return"&#"+r+";"},C=function(r){throw Error("Parse error: "+r)},S=function(r,e){(e=k(e,S.options)).strict&&f.test(r)&&C("forbidden code point");var t=e.encodeEverything,a=e.useNamedReferences,s=e.allowUnsafeSymbols,i=e.decimal?L:E,o=function(r){return i(r.charCodeAt(0))};return t?(r=r.replace(l,(function(r){return a&&x(p,r)?"&"+p[r]+";":o(r)})),a&&(r=r.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),a&&(r=r.replace(u,(function(r){return"&"+p[r]+";"})))):a?(s||(r=r.replace(h,(function(r){return"&"+p[r]+";"}))),r=(r=r.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(u,(function(r){return"&"+p[r]+";"}))):s||(r=r.replace(h,o)),r.replace(n,(function(r){var e=r.charCodeAt(0),t=r.charCodeAt(1);return i(1024*(e-55296)+t-56320+65536)})).replace(c,o)};S.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var T=function(r,e){var t=(e=k(e,T.options)).strict;return t&&g.test(r)&&C("malformed character reference"),r.replace(m,(function(r,a,s,i,o,n,l,c,u){var p,h,d,g,f,m;return a?b[f=a]:s?(f=s,(m=i)&&e.isAttributeValue?(t&&"="==m&&C("`&` did not start a character reference"),r):(t&&C("named character reference was not terminated by a semicolon"),v[f]+(m||""))):o?(d=o,h=n,t&&!h&&C("character reference was not terminated by a semicolon"),p=parseInt(d,10),A(p,t)):l?(g=l,h=c,t&&!h&&C("character reference was not terminated by a semicolon"),p=parseInt(g,16),A(p,t)):(t&&C("named character reference was not terminated by a semicolon"),r)}))};T.options={isAttributeValue:!1,strict:!1};var B={version:"1.2.0",encode:S,decode:T,escape:function(r){return r.replace(h,(function(r){return d[r]}))},unescape:T};void 0===(a=function(){return B}.call(e,t,e,r))||(r.exports=a)}()}).call(this,t(70)(r))},303:function(r,e,t){"use strict";t(278)},304:function(r,e,t){"use strict";t(279)},305:function(r,e,t){"use strict";t(280)},306:function(r,e,t){"use strict";t(281)},307:function(r,e,t){"use strict";t(283)},308:function(r,e,t){var a=t(24),s=t(10),i=t(21);r.exports=function(r){return"string"==typeof r||!s(r)&&i(r)&&"[object String]"==a(r)}},309:function(r,e,t){"use strict";t(284)},310:function(r,e,t){"use strict";t(285)},311:function(r,e,t){"use strict";t(286)},312:function(r,e,t){"use strict";t(287)},313:function(r,e,t){"use strict";t(288)},331:function(r,e,t){"use strict";t.r(e);var a=t(71),s={name:"Home",components:{NavLink:a.a},computed:{data(){return this.$page.frontmatter},actionLink(){return{link:this.data.actionLink,text:this.data.actionText}}}},i=(t(299),t(7)),o=Object(i.a)(s,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("main",{staticClass:"home",attrs:{"aria-labelledby":null!==r.data.heroText?"main-title":null}},[t("header",{staticClass:"hero"},[r.data.heroImage?t("img",{attrs:{src:r.$withBase(r.data.heroImage),alt:r.data.heroAlt||"hero"}}):r._e(),r._v(" "),null!==r.data.heroText?t("h1",{attrs:{id:"main-title"}},[r._v("\n "+r._s(r.data.heroText||r.$title||"Hello")+"\n ")]):r._e(),r._v(" "),null!==r.data.tagline?t("p",{staticClass:"description"},[r._v("\n "+r._s(r.data.tagline||r.$description||"Welcome to your VuePress site")+"\n ")]):r._e(),r._v(" "),r.data.actionText&&r.data.actionLink?t("p",{staticClass:"action"},[t("NavLink",{staticClass:"action-button",attrs:{item:r.actionLink}})],1):r._e()]),r._v(" "),r.data.features&&r.data.features.length?t("div",{staticClass:"features"},r._l(r.data.features,(function(e,a){return t("div",{key:a,staticClass:"feature"},[t("h2",[r._v(r._s(e.title))]),r._v(" "),t("p",[r._v(r._s(e.details))])])})),0):r._e(),r._v(" "),t("Content",{staticClass:"theme-default-content custom"}),r._v(" "),r.data.footer?t("div",{staticClass:"footer"},[r._v("\n "+r._s(r.data.footer)+"\n ")]):r._e()],1)}),[],!1,null,null,null).exports,n=t(300),l=t.n(n),c=t(301),u={data:()=>({query:"",focused:!1,focusIndex:0,placeholder:void 0,index:null}),mounted(){this.placeholder=this.$site.themeConfig.searchPlaceholder||"",document.addEventListener("keydown",this.onHotkey),this.setupFlexSearch()},beforeDestroy(){document.removeEventListener("keydown",this.onHotkey)},computed:{showSuggestions(){return this.focused&&this.suggestions&&this.suggestions.length},suggestions(){const r=this.query.trim().toLowerCase();if(!r)return;return this.index.search(r,10).map(r=>({...r,title:this.getSuggestionTitle(r),text:this.getSuggestionText(r)}))},alignRight(){return(this.$site.themeConfig.nav||[]).length+(this.$site.repo?1:0)<=2}},methods:{getPageLocalePath(r){for(const e in this.$site.locales||{})if("/"!==e&&0===r.path.indexOf(e))return e;return"/"},isSearchable(r){let e=null;return null===e||(e=Array.isArray(e)?e:new Array(e),e.filter(e=>r.path.match(e)).length>0)},onHotkey(r){r.srcElement===document.body&&"s".includes(r.key)&&(this.$refs.input.focus(),r.preventDefault())},onUp(){this.showSuggestions&&(this.focusIndex>0?this.focusIndex--:this.focusIndex=this.suggestions.length-1)},onDown(){this.showSuggestions&&(this.focusIndex15&&(s-=15,i=".. ");const o=r.content.substr(s,60);return i+Object(c.highlightText)(o,this.query)}}},p=(t(303),Object(i.a)(u,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("div",{staticClass:"search-box"},[t("input",{ref:"input",class:{focused:r.focused},attrs:{"aria-label":"Search",placeholder:r.placeholder,autocomplete:"off",spellcheck:"false"},domProps:{value:r.query},on:{input:function(e){r.query=e.target.value},focus:function(e){r.focused=!0},blur:function(e){r.focused=!1},keyup:[function(e){return!e.type.indexOf("key")&&r._k(e.keyCode,"enter",13,e.key,"Enter")?null:r.go(r.focusIndex)},function(e){return!e.type.indexOf("key")&&r._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:r.onUp(e)},function(e){return!e.type.indexOf("key")&&r._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:r.onDown(e)}]}}),r._v(" "),r.showSuggestions?t("ul",{staticClass:"suggestions",class:{"align-right":r.alignRight},on:{mouseleave:r.unfocus}},r._l(r.suggestions,(function(e,a){return t("li",{key:a,staticClass:"suggestion",class:{focused:a===r.focusIndex},on:{mousedown:function(e){return r.go(a)},mouseenter:function(e){return r.focus(a)}}},[t("a",{attrs:{href:e.regularPath},on:{click:function(r){r.preventDefault()}}},[t("span",{staticClass:"suggestion__title",domProps:{innerHTML:r._s(e.title||e.regularPath)}}),r._v(" "),t("span",{staticClass:"suggestion__result",domProps:{innerHTML:r._s(e.text)}})])])})),0):r._e()])}),[],!1,null,null,null).exports),h=(t(304),Object(i.a)({},(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("div",{staticClass:"sidebar-button",on:{click:function(e){return r.$emit("toggle-sidebar")}}},[t("svg",{staticClass:"icon",attrs:{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",viewBox:"0 0 448 512"}},[t("path",{attrs:{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"}})])])}),[],!1,null,null,null).exports),d=(t(15),t(121)),g=t(20),f={name:"NavLinks",components:{NavLink:a.a,DropdownLink:d.a},computed:{userNav(){return this.$themeLocaleConfig.nav||this.$site.themeConfig.nav||[]},nav(){const{locales:r}=this.$site;if(r&&Object.keys(r).length>1){const e=this.$page.path,t=this.$router.options.routes,a=this.$site.themeConfig.locales||{},s={text:this.$themeLocaleConfig.selectText||"Languages",ariaLabel:this.$themeLocaleConfig.ariaLabel||"Select language",items:Object.keys(r).map(s=>{const i=r[s],o=a[s]&&a[s].label||i.lang;let n;return i.lang===this.$lang?n=e:(n=e.replace(this.$localeConfig.path,s),t.some(r=>r.path===n)||(n=s)),{text:o,link:n}})};return[...this.userNav,s]}return this.userNav},userLinks(){return(this.nav||[]).map(r=>Object.assign(Object(g.j)(r),{items:(r.items||[]).map(g.j)}))},repoLink(){const{repo:r}=this.$site.themeConfig;return r?/^https?:/.test(r)?r:"https://github.com/"+r:null},repoLabel(){if(!this.repoLink)return;if(this.$site.themeConfig.repoLabel)return this.$site.themeConfig.repoLabel;const r=this.repoLink.match(/^https?:\/\/[^/]+/)[0],e=["GitHub","GitLab","Bitbucket"];for(let t=0;t({linksWrapMaxWidth:null}),computed:{algolia(){return this.$themeLocaleConfig.algolia||this.$site.themeConfig.algolia||{}},isAlgoliaSearch(){return this.algolia&&this.algolia.apiKey&&this.algolia.indexName}},mounted(){const r=parseInt(b(this.$el,"paddingLeft"))+parseInt(b(this.$el,"paddingRight")),e=()=>{document.documentElement.clientWidth<719?this.linksWrapMaxWidth=null:this.linksWrapMaxWidth=this.$el.offsetWidth-r-(this.$refs.siteName&&this.$refs.siteName.offsetWidth||0)};e(),window.addEventListener("resize",e,!1)}},y=(t(306),Object(i.a)(v,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("header",{staticClass:"navbar"},[t("SidebarButton",{on:{"toggle-sidebar":function(e){return r.$emit("toggle-sidebar")}}}),r._v(" "),t("RouterLink",{staticClass:"home-link",attrs:{to:r.$localePath}},[r.$site.themeConfig.logo?t("img",{staticClass:"logo",attrs:{src:r.$withBase(r.$site.themeConfig.logo),alt:r.$siteTitle}}):r._e(),r._v(" "),r.$siteTitle?t("span",{ref:"siteName",staticClass:"site-name",class:{"can-hide":r.$site.themeConfig.logo}},[r._v(r._s(r.$siteTitle))]):r._e()]),r._v(" "),t("div",{staticClass:"links",style:r.linksWrapMaxWidth?{"max-width":r.linksWrapMaxWidth+"px"}:{}},[r.isAlgoliaSearch?t("AlgoliaSearchBox",{attrs:{options:r.algolia}}):!1!==r.$site.themeConfig.search&&!1!==r.$page.frontmatter.search?t("SearchBox"):r._e(),r._v(" "),t("NavLinks",{staticClass:"can-hide"})],1)],1)}),[],!1,null,null,null).exports),w=t(282),q=t.n(w),D={name:"PageEdit",computed:{lastUpdated(){return this.$page.lastUpdated},lastUpdatedText(){return"string"==typeof this.$themeLocaleConfig.lastUpdated?this.$themeLocaleConfig.lastUpdated:"string"==typeof this.$site.themeConfig.lastUpdated?this.$site.themeConfig.lastUpdated:"Last Updated"},editLink(){const r=q()(this.$page.frontmatter.editLink)?this.$site.themeConfig.editLinks:this.$page.frontmatter.editLink,{repo:e,docsDir:t="",docsBranch:a="master",docsRepo:s=e}=this.$site.themeConfig;return r&&s&&this.$page.relativePath?this.createEditLink(e,s,t,a,this.$page.relativePath):null},editLinkText(){return this.$themeLocaleConfig.editLinkText||this.$site.themeConfig.editLinkText||"Edit this page"}},methods:{createEditLink(r,e,t,a,s){if(/bitbucket.org/.test(e)){return e.replace(g.a,"")+"/src"+`/${a}/`+(t?t.replace(g.a,"")+"/":"")+s+`?mode=edit&spa=0&at=${a}&fileviewer=file-view-default`}if(/gitlab.com/.test(e)){return e.replace(g.a,"")+"/-/edit"+`/${a}/`+(t?t.replace(g.a,"")+"/":"")+s}return(g.i.test(e)?e:"https://github.com/"+e).replace(g.a,"")+"/edit"+`/${a}/`+(t?t.replace(g.a,"")+"/":"")+s}}},x=(t(307),Object(i.a)(D,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("footer",{staticClass:"page-edit"},[r.editLink?t("div",{staticClass:"edit-link"},[t("a",{attrs:{href:r.editLink,target:"_blank",rel:"noopener noreferrer"}},[r._v(r._s(r.editLinkText))]),r._v(" "),t("OutboundLink")],1):r._e(),r._v(" "),r.lastUpdated?t("div",{staticClass:"last-updated"},[t("span",{staticClass:"prefix"},[r._v(r._s(r.lastUpdatedText)+":")]),r._v(" "),t("span",{staticClass:"time"},[r._v(r._s(r.lastUpdated))])]):r._e()])}),[],!1,null,null,null).exports),k=t(308),A=t.n(k),E={name:"PageNav",props:["sidebarItems"],computed:{prev(){return C(L.PREV,this)},next(){return C(L.NEXT,this)}}};const L={NEXT:{resolveLink:function(r,e){return S(r,e,1)},getThemeLinkConfig:({nextLinks:r})=>r,getPageLinkConfig:({frontmatter:r})=>r.next},PREV:{resolveLink:function(r,e){return S(r,e,-1)},getThemeLinkConfig:({prevLinks:r})=>r,getPageLinkConfig:({frontmatter:r})=>r.prev}};function C(r,{$themeConfig:e,$page:t,$route:a,$site:s,sidebarItems:i}){const{resolveLink:o,getThemeLinkConfig:n,getPageLinkConfig:l}=r,c=n(e),u=l(t),p=q()(u)?c:u;return!1===p?void 0:A()(p)?Object(g.k)(s.pages,p,a.path):o(t,i)}function S(r,e,t){const a=[];!function r(e,t){for(let a=0,s=e.length;a({isSidebarOpen:!1}),computed:{shouldShowNavbar(){const{themeConfig:r}=this.$site,{frontmatter:e}=this.$page;return!1!==e.navbar&&!1!==r.navbar&&(this.$title||r.logo||r.repo||r.nav||this.$themeLocaleConfig.nav)},shouldShowSidebar(){const{frontmatter:r}=this.$page;return!r.home&&!1!==r.sidebar&&this.sidebarItems.length},sidebarItems(){return Object(g.l)(this.$page,this.$page.regularPath,this.$site,this.$localePath)},pageClasses(){const r=this.$page.frontmatter.pageClass;return[{"no-navbar":!this.shouldShowNavbar,"sidebar-open":this.isSidebarOpen,"no-sidebar":!this.shouldShowSidebar},r]}},mounted(){this.$router.afterEach(()=>{this.isSidebarOpen=!1})},methods:{toggleSidebar(r){this.isSidebarOpen="boolean"==typeof r?r:!this.isSidebarOpen,this.$emit("toggle-sidebar",this.isSidebarOpen)},onTouchStart(r){this.touchStart={x:r.changedTouches[0].clientX,y:r.changedTouches[0].clientY}},onTouchEnd(r){const e=r.changedTouches[0].clientX-this.touchStart.x,t=r.changedTouches[0].clientY-this.touchStart.y;Math.abs(e)>Math.abs(t)&&Math.abs(e)>40&&(e>0&&this.touchStart.x<=80?this.toggleSidebar(!0):this.toggleSidebar(!1))}}}),F=Object(i.a)(U,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("div",{staticClass:"theme-container",class:r.pageClasses,on:{touchstart:r.onTouchStart,touchend:r.onTouchEnd}},[r.shouldShowNavbar?t("Navbar",{on:{"toggle-sidebar":r.toggleSidebar}}):r._e(),r._v(" "),t("div",{staticClass:"sidebar-mask",on:{click:function(e){return r.toggleSidebar(!1)}}}),r._v(" "),t("Sidebar",{attrs:{items:r.sidebarItems},on:{"toggle-sidebar":r.toggleSidebar},scopedSlots:r._u([{key:"top",fn:function(){return[r._t("sidebar-top")]},proxy:!0},{key:"bottom",fn:function(){return[r._t("sidebar-bottom")]},proxy:!0}],null,!0)}),r._v(" "),r.$page.frontmatter.home?t("Home"):t("Page",{attrs:{"sidebar-items":r.sidebarItems},scopedSlots:r._u([{key:"top",fn:function(){return[r._t("page-top")]},proxy:!0},{key:"bottom",fn:function(){return[r._t("page-bottom")]},proxy:!0}],null,!0)})],1)}),[],!1,null,null,null);e.default=F.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/20.e03c9894.js b/docs/latest/assets/js/20.e03c9894.js deleted file mode 100644 index 2d5c69690e..0000000000 --- a/docs/latest/assets/js/20.e03c9894.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{347:function(e,t,r){"use strict";r.r(t);var s=r(7),a=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"enumeration-updatemodeenum"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#enumeration-updatemodeenum"}},[e._v("#")]),e._v(" Enumeration: UpdateModeEnum")]),e._v(" "),r("h2",{attrs:{id:"enumeration-members"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#enumeration-members"}},[e._v("#")]),e._v(" Enumeration members")]),e._v(" "),r("h3",{attrs:{id:"active"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[e._v("#")]),e._v(" active")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("active")]),e._v(': = "active"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L522",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:522"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"hide"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hide"}},[e._v("#")]),e._v(" hide")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("hide")]),e._v(': = "hide"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L519",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:519"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"none"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#none"}},[e._v("#")]),e._v(" none")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("none")]),e._v(': = "none"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L518",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:518"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"normal"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normal"}},[e._v("#")]),e._v(" normal")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("normal")]),e._v(': = "normal"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L521",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:521"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"reset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[e._v("#")]),e._v(" reset")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("reset")]),e._v(': = "reset"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L517",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:517"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"resize"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#resize"}},[e._v("#")]),e._v(" resize")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("resize")]),e._v(': = "resize"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L516",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:516"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"show"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#show"}},[e._v("#")]),e._v(" show")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("show")]),e._v(': = "show"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L520",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:520"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/20.e8fa3191.js b/docs/latest/assets/js/20.e8fa3191.js new file mode 100644 index 0000000000..006dd122bf --- /dev/null +++ b/docs/latest/assets/js/20.e8fa3191.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{344:function(e,t,r){"use strict";r.r(t);var s=r(7),n=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"enumeration-updatemodeenum"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#enumeration-updatemodeenum"}},[e._v("#")]),e._v(" Enumeration: UpdateModeEnum")]),e._v(" "),r("h2",{attrs:{id:"enumeration-members"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#enumeration-members"}},[e._v("#")]),e._v(" Enumeration members")]),e._v(" "),r("h3",{attrs:{id:"active"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[e._v("#")]),e._v(" active")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("active")]),e._v(': = "active"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L522",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:522"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"hide"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hide"}},[e._v("#")]),e._v(" hide")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("hide")]),e._v(': = "hide"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L519",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:519"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"none"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#none"}},[e._v("#")]),e._v(" none")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("none")]),e._v(': = "none"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L518",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:518"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"normal"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normal"}},[e._v("#")]),e._v(" normal")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("normal")]),e._v(': = "normal"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L521",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:521"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"reset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[e._v("#")]),e._v(" reset")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("reset")]),e._v(': = "reset"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L517",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:517"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"resize"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#resize"}},[e._v("#")]),e._v(" resize")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("resize")]),e._v(': = "resize"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L516",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:516"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"show"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#show"}},[e._v("#")]),e._v(" show")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("show")]),e._v(': = "show"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L520",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:520"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/200.cdef2d1f.js b/docs/latest/assets/js/200.1b76db29.js similarity index 96% rename from docs/latest/assets/js/200.cdef2d1f.js rename to docs/latest/assets/js/200.1b76db29.js index 1f3e874ed4..c858cee7c9 100644 --- a/docs/latest/assets/js/200.cdef2d1f.js +++ b/docs/latest/assets/js/200.1b76db29.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[200],{526:function(n,t,e){"use strict";e.r(t);var o=e(7),s=Object(o.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"point-style"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#point-style"}},[this._v("#")]),this._v(" Point Style")]),this._v(" "),t("p",[this._v("This sample show how to use the dataset point style in the legend instead of a rectangle to identify each dataset..")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Toggle Point Style',\n handler(chart) {\n chart.options.plugins.legend.labels.usePointStyle = !chart.options.plugins.legend.labels.usePointStyle;\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n borderWidth: 1,\n pointStyle: 'rectRot',\n pointRadius: 5,\n pointBorderColor: 'rgb(0, 0, 0)'\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n legend: {\n labels: {\n usePointStyle: true,\n },\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[200],{525:function(n,t,e){"use strict";e.r(t);var o=e(7),s=Object(o.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"point-style"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#point-style"}},[this._v("#")]),this._v(" Point Style")]),this._v(" "),t("p",[this._v("This sample show how to use the dataset point style in the legend instead of a rectangle to identify each dataset..")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Toggle Point Style',\n handler(chart) {\n chart.options.plugins.legend.labels.usePointStyle = !chart.options.plugins.legend.labels.usePointStyle;\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n borderWidth: 1,\n pointStyle: 'rectRot',\n pointRadius: 5,\n pointBorderColor: 'rgb(0, 0, 0)'\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n legend: {\n labels: {\n usePointStyle: true,\n },\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/201.6ec123cc.js b/docs/latest/assets/js/201.1f3b8d0d.js similarity index 96% rename from docs/latest/assets/js/201.6ec123cc.js rename to docs/latest/assets/js/201.1f3b8d0d.js index c027caf138..e92a70a9e7 100644 --- a/docs/latest/assets/js/201.6ec123cc.js +++ b/docs/latest/assets/js/201.1f3b8d0d.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[201],{527:function(n,t,o){"use strict";o.r(t);var s=o(7),i=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"position"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[this._v("#")]),this._v(" Position")]),this._v(" "),t("p",[this._v("This sample show how to change the position of the chart legend.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Position: top',\n handler(chart) {\n chart.options.plugins.legend.position = 'top';\n chart.update();\n }\n },\n {\n name: 'Position: right',\n handler(chart) {\n chart.options.plugins.legend.position = 'right';\n chart.update();\n }\n },\n {\n name: 'Position: bottom',\n handler(chart) {\n chart.options.plugins.legend.position = 'bottom';\n chart.update();\n }\n },\n {\n name: 'Position: left',\n handler(chart) {\n chart.options.plugins.legend.position = 'left';\n chart.update();\n }\n },\n];\n// \n\n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[201],{526:function(n,t,o){"use strict";o.r(t);var s=o(7),i=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"position"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[this._v("#")]),this._v(" Position")]),this._v(" "),t("p",[this._v("This sample show how to change the position of the chart legend.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Position: top',\n handler(chart) {\n chart.options.plugins.legend.position = 'top';\n chart.update();\n }\n },\n {\n name: 'Position: right',\n handler(chart) {\n chart.options.plugins.legend.position = 'right';\n chart.update();\n }\n },\n {\n name: 'Position: bottom',\n handler(chart) {\n chart.options.plugins.legend.position = 'bottom';\n chart.update();\n }\n },\n {\n name: 'Position: left',\n handler(chart) {\n chart.options.plugins.legend.position = 'left';\n chart.update();\n }\n },\n];\n// \n\n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/202.cff3c7fd.js b/docs/latest/assets/js/202.341f213f.js similarity index 100% rename from docs/latest/assets/js/202.cff3c7fd.js rename to docs/latest/assets/js/202.341f213f.js diff --git a/docs/latest/assets/js/203.2503ff1a.js b/docs/latest/assets/js/203.14563a95.js similarity index 96% rename from docs/latest/assets/js/203.2503ff1a.js rename to docs/latest/assets/js/203.14563a95.js index 3ef6af8c8b..2f38715bb3 100644 --- a/docs/latest/assets/js/203.2503ff1a.js +++ b/docs/latest/assets/js/203.14563a95.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[203],{530:function(n,t,e){"use strict";e.r(t);var o=e(7),i=Object(o.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"interpolation-modes"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interpolation-modes"}},[this._v("#")]),this._v(" Interpolation Modes")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 12;\nconst labels = [];\nfor (let i = 0; i < DATA_COUNT; ++i) {\n labels.push(i.toString());\n}\nconst datapoints = [0, 20, 20, 60, 60, 120, NaN, 180, 120, 125, 105, 110, 170];\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Cubic interpolation (monotone)',\n data: datapoints,\n borderColor: Utils.CHART_COLORS.red,\n fill: false,\n cubicInterpolationMode: 'monotone',\n tension: 0.4\n }, {\n label: 'Cubic interpolation',\n data: datapoints,\n borderColor: Utils.CHART_COLORS.blue,\n fill: false,\n tension: 0.4\n }, {\n label: 'Linear interpolation (default)',\n data: datapoints,\n borderColor: Utils.CHART_COLORS.green,\n fill: false\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Line Chart - Cubic interpolation mode'\n },\n },\n interaction: {\n intersect: false,\n },\n scales: {\n x: {\n display: true,\n title: {\n display: true\n }\n },\n y: {\n display: true,\n title: {\n display: true,\n text: 'Value'\n },\n suggestedMin: -10,\n suggestedMax: 200\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[203],{527:function(n,t,e){"use strict";e.r(t);var o=e(7),i=Object(o.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"interpolation-modes"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interpolation-modes"}},[this._v("#")]),this._v(" Interpolation Modes")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 12;\nconst labels = [];\nfor (let i = 0; i < DATA_COUNT; ++i) {\n labels.push(i.toString());\n}\nconst datapoints = [0, 20, 20, 60, 60, 120, NaN, 180, 120, 125, 105, 110, 170];\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Cubic interpolation (monotone)',\n data: datapoints,\n borderColor: Utils.CHART_COLORS.red,\n fill: false,\n cubicInterpolationMode: 'monotone',\n tension: 0.4\n }, {\n label: 'Cubic interpolation',\n data: datapoints,\n borderColor: Utils.CHART_COLORS.blue,\n fill: false,\n tension: 0.4\n }, {\n label: 'Linear interpolation (default)',\n data: datapoints,\n borderColor: Utils.CHART_COLORS.green,\n fill: false\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Line Chart - Cubic interpolation mode'\n },\n },\n interaction: {\n intersect: false,\n },\n scales: {\n x: {\n display: true,\n title: {\n display: true\n }\n },\n y: {\n display: true,\n title: {\n display: true,\n text: 'Value'\n },\n suggestedMin: -10,\n suggestedMax: 200\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/204.fcb5dc8e.js b/docs/latest/assets/js/204.d13f1881.js similarity index 100% rename from docs/latest/assets/js/204.fcb5dc8e.js rename to docs/latest/assets/js/204.d13f1881.js diff --git a/docs/latest/assets/js/205.74645c9f.js b/docs/latest/assets/js/205.471d40f8.js similarity index 97% rename from docs/latest/assets/js/205.74645c9f.js rename to docs/latest/assets/js/205.471d40f8.js index 9e6872144a..ff82e8b15d 100644 --- a/docs/latest/assets/js/205.74645c9f.js +++ b/docs/latest/assets/js/205.471d40f8.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[205],{531:function(n,t,a){"use strict";a.r(t);var s=a(7),e=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"multi-axis-line-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#multi-axis-line-chart"}},[this._v("#")]),this._v(" Multi Axis Line Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n yAxisID: 'y',\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n yAxisID: 'y1',\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n interaction: {\n mode: 'index',\n intersect: false,\n },\n stacked: false,\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Line Chart - Multi Axis'\n }\n },\n scales: {\n y: {\n type: 'linear',\n display: true,\n position: 'left',\n },\n y1: {\n type: 'linear',\n display: true,\n position: 'right',\n\n // grid line settings\n grid: {\n drawOnChartArea: false, // only want the grid lines for one axis to show up\n },\n },\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[205],{530:function(n,t,a){"use strict";a.r(t);var s=a(7),e=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"multi-axis-line-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#multi-axis-line-chart"}},[this._v("#")]),this._v(" Multi Axis Line Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n yAxisID: 'y',\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n yAxisID: 'y1',\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n interaction: {\n mode: 'index',\n intersect: false,\n },\n stacked: false,\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Line Chart - Multi Axis'\n }\n },\n scales: {\n y: {\n type: 'linear',\n display: true,\n position: 'left',\n },\n y1: {\n type: 'linear',\n display: true,\n position: 'right',\n\n // grid line settings\n grid: {\n drawOnChartArea: false, // only want the grid lines for one axis to show up\n },\n },\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/206.2c187d5b.js b/docs/latest/assets/js/206.9d293c71.js similarity index 95% rename from docs/latest/assets/js/206.2c187d5b.js rename to docs/latest/assets/js/206.9d293c71.js index 0794cda252..cf43cf788a 100644 --- a/docs/latest/assets/js/206.2c187d5b.js +++ b/docs/latest/assets/js/206.9d293c71.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[206],{532:function(n,t,e){"use strict";e.r(t);var s=e(7),i=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-segment-styling"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-segment-styling"}},[this._v("#")]),this._v(" Line Segment Styling")]),this._v(" "),t("chart-editor",{attrs:{code:"\n// \nconst skipped = (ctx, value) => ctx.p0.skip || ctx.p1.skip ? value : undefined;\nconst down = (ctx, value) => ctx.p0.parsed.y > ctx.p1.parsed.y ? value : undefined;\n// \n\n// \nconst genericOptions = {\n fill: false,\n interaction: {\n intersect: false\n },\n radius: 0,\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: {\n labels: Utils.months({count: 7}),\n datasets: [{\n label: 'My First Dataset',\n data: [65, 59, NaN, 48, 56, 57, 40],\n borderColor: 'rgb(75, 192, 192)',\n segment: {\n borderColor: ctx => skipped(ctx, 'rgb(0,0,0,0.2)') || down(ctx, 'rgb(192,75,75)'),\n borderDash: ctx => skipped(ctx, [6, 6]),\n }\n }]\n },\n options: genericOptions\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[206],{531:function(n,t,e){"use strict";e.r(t);var s=e(7),i=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-segment-styling"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-segment-styling"}},[this._v("#")]),this._v(" Line Segment Styling")]),this._v(" "),t("chart-editor",{attrs:{code:"\n// \nconst skipped = (ctx, value) => ctx.p0.skip || ctx.p1.skip ? value : undefined;\nconst down = (ctx, value) => ctx.p0.parsed.y > ctx.p1.parsed.y ? value : undefined;\n// \n\n// \nconst genericOptions = {\n fill: false,\n interaction: {\n intersect: false\n },\n radius: 0,\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: {\n labels: Utils.months({count: 7}),\n datasets: [{\n label: 'My First Dataset',\n data: [65, 59, NaN, 48, 56, 57, 40],\n borderColor: 'rgb(75, 192, 192)',\n segment: {\n borderColor: ctx => skipped(ctx, 'rgb(0,0,0,0.2)') || down(ctx, 'rgb(192,75,75)'),\n borderDash: ctx => skipped(ctx, [6, 6]),\n }\n }]\n },\n options: genericOptions\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/207.0733bd86.js b/docs/latest/assets/js/207.8219847c.js similarity index 97% rename from docs/latest/assets/js/207.0733bd86.js rename to docs/latest/assets/js/207.8219847c.js index 61e1e50bae..b09850fa40 100644 --- a/docs/latest/assets/js/207.0733bd86.js +++ b/docs/latest/assets/js/207.8219847c.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[207],{533:function(t,n,a){"use strict";a.r(n);var e=a(7),s=Object(e.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"stepped-line-charts"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#stepped-line-charts"}},[this._v("#")]),this._v(" Stepped Line Charts")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Step: false (default)',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.stepped = false;\n });\n chart.update();\n }\n },\n {\n name: 'Step: true',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.stepped = true;\n });\n chart.update();\n }\n },\n {\n name: 'Step: before',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.stepped = 'before';\n });\n chart.update();\n }\n },\n {\n name: 'Step: after',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.stepped = 'after';\n });\n chart.update();\n }\n },\n {\n name: 'Step: middle',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.stepped = 'middle';\n });\n chart.update();\n }\n }\n];\n// \n\n// \nconst data = {\n labels: ['Day 1', 'Day 2', 'Day 3', 'Day 4', 'Day 5', 'Day 6'],\n datasets: [\n {\n label: 'Dataset',\n data: Utils.numbers({count: 6, min: -100, max: 100}),\n borderColor: Utils.CHART_COLORS.red,\n fill: false,\n stepped: true,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n interaction: {\n intersect: false,\n axis: 'x'\n },\n plugins: {\n title: {\n display: true,\n text: (ctx) => 'Step ' + ctx.chart.data.datasets[0].stepped + ' Interpolation',\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[207],{532:function(t,n,a){"use strict";a.r(n);var e=a(7),s=Object(e.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"stepped-line-charts"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#stepped-line-charts"}},[this._v("#")]),this._v(" Stepped Line Charts")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Step: false (default)',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.stepped = false;\n });\n chart.update();\n }\n },\n {\n name: 'Step: true',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.stepped = true;\n });\n chart.update();\n }\n },\n {\n name: 'Step: before',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.stepped = 'before';\n });\n chart.update();\n }\n },\n {\n name: 'Step: after',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.stepped = 'after';\n });\n chart.update();\n }\n },\n {\n name: 'Step: middle',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.stepped = 'middle';\n });\n chart.update();\n }\n }\n];\n// \n\n// \nconst data = {\n labels: ['Day 1', 'Day 2', 'Day 3', 'Day 4', 'Day 5', 'Day 6'],\n datasets: [\n {\n label: 'Dataset',\n data: Utils.numbers({count: 6, min: -100, max: 100}),\n borderColor: Utils.CHART_COLORS.red,\n fill: false,\n stepped: true,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n interaction: {\n intersect: false,\n axis: 'x'\n },\n plugins: {\n title: {\n display: true,\n text: (ctx) => 'Step ' + ctx.chart.data.datasets[0].stepped + ' Interpolation',\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/208.a901b32b.js b/docs/latest/assets/js/208.7b13d4e9.js similarity index 96% rename from docs/latest/assets/js/208.a901b32b.js rename to docs/latest/assets/js/208.7b13d4e9.js index 641160e60b..3ab9f767c1 100644 --- a/docs/latest/assets/js/208.a901b32b.js +++ b/docs/latest/assets/js/208.7b13d4e9.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[208],{534:function(n,t,e){"use strict";e.r(t);var l=e(7),s=Object(l.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-styling"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-styling"}},[this._v("#")]),this._v(" Line Styling")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: DATA_COUNT});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Unfilled',\n fill: false,\n backgroundColor: Utils.CHART_COLORS.blue,\n borderColor: Utils.CHART_COLORS.blue,\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dashed',\n fill: false,\n backgroundColor: Utils.CHART_COLORS.green,\n borderColor: Utils.CHART_COLORS.green,\n borderDash: [5, 5],\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Filled',\n backgroundColor: Utils.CHART_COLORS.red,\n borderColor: Utils.CHART_COLORS.red,\n data: Utils.numbers(NUMBER_CFG),\n fill: true,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Line Chart'\n },\n },\n interaction: {\n mode: 'index',\n intersect: false\n },\n scales: {\n x: {\n display: true,\n title: {\n display: true,\n text: 'Month'\n }\n },\n y: {\n display: true,\n title: {\n display: true,\n text: 'Value'\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[208],{533:function(n,t,e){"use strict";e.r(t);var l=e(7),s=Object(l.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-styling"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-styling"}},[this._v("#")]),this._v(" Line Styling")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: DATA_COUNT});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Unfilled',\n fill: false,\n backgroundColor: Utils.CHART_COLORS.blue,\n borderColor: Utils.CHART_COLORS.blue,\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dashed',\n fill: false,\n backgroundColor: Utils.CHART_COLORS.green,\n borderColor: Utils.CHART_COLORS.green,\n borderDash: [5, 5],\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Filled',\n backgroundColor: Utils.CHART_COLORS.red,\n borderColor: Utils.CHART_COLORS.red,\n data: Utils.numbers(NUMBER_CFG),\n fill: true,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Line Chart'\n },\n },\n interaction: {\n mode: 'index',\n intersect: false\n },\n scales: {\n x: {\n display: true,\n title: {\n display: true,\n text: 'Month'\n }\n },\n y: {\n display: true,\n title: {\n display: true,\n text: 'Value'\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/209.d4796577.js b/docs/latest/assets/js/209.28467871.js similarity index 97% rename from docs/latest/assets/js/209.d4796577.js rename to docs/latest/assets/js/209.28467871.js index 36491444f8..d384491198 100644 --- a/docs/latest/assets/js/209.d4796577.js +++ b/docs/latest/assets/js/209.28467871.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[209],{535:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"bubble"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bubble"}},[this._v("#")]),this._v(" Bubble")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.bubbles({count: chart.data.labels.length, rmin: 5, rmax: 15, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.bubbles({count: data.labels.length, rmin: 5, rmax: 15, min: 0, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.bubbles({count: 1, rmin: 5, rmax: 15, min: 0, max: 100})[0]);\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, rmin: 5, rmax: 15, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.orange,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'bubble',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Bubble Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[209],{534:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"bubble"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bubble"}},[this._v("#")]),this._v(" Bubble")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.bubbles({count: chart.data.labels.length, rmin: 5, rmax: 15, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.bubbles({count: data.labels.length, rmin: 5, rmax: 15, min: 0, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.bubbles({count: 1, rmin: 5, rmax: 15, min: 0, max: 100})[0]);\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, rmin: 5, rmax: 15, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.orange,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'bubble',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Bubble Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/21.ea4083d6.js b/docs/latest/assets/js/21.ea4083d6.js deleted file mode 100644 index 2130ac923a..0000000000 --- a/docs/latest/assets/js/21.ea4083d6.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{348:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-activedatapoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-activedatapoint"}},[t._v("#")]),t._v(" Interface: ActiveDataPoint")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("ActiveDataPoint")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"datasetindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[t._v("#")]),t._v(" datasetIndex")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L427",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:427"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"index"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("index")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L428",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:428"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/21.fee6e631.js b/docs/latest/assets/js/21.fee6e631.js new file mode 100644 index 0000000000..d0442f93ec --- /dev/null +++ b/docs/latest/assets/js/21.fee6e631.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{345:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-activedatapoint"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-activedatapoint"}},[t._v("#")]),t._v(" Interface: ActiveDataPoint")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("strong",[t._v("ActiveDataPoint")])]),t._v(" "),r("p",[t._v("↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[r("em",[t._v("ActiveElement")])])],1)])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"datasetindex"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[t._v("#")]),t._v(" datasetIndex")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("datasetIndex")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L427",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:427"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"index"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("index")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L428",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:428"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/210.a6fc9055.js b/docs/latest/assets/js/210.53598657.js similarity index 97% rename from docs/latest/assets/js/210.a6fc9055.js rename to docs/latest/assets/js/210.53598657.js index 1891c42fc1..4f04d47d70 100644 --- a/docs/latest/assets/js/210.a6fc9055.js +++ b/docs/latest/assets/js/210.53598657.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[210],{536:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"combo-bar-line"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#combo-bar-line"}},[this._v("#")]),this._v(" Combo bar/line")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n borderWidth: 1,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n order: 1\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n type: 'line',\n order: 0\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Combined Line/Bar Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[210],{535:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"combo-bar-line"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#combo-bar-line"}},[this._v("#")]),this._v(" Combo bar/line")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n borderWidth: 1,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n order: 1\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n type: 'line',\n order: 0\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Combined Line/Bar Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/211.628fa940.js b/docs/latest/assets/js/211.d9c2da28.js similarity index 97% rename from docs/latest/assets/js/211.628fa940.js rename to docs/latest/assets/js/211.d9c2da28.js index beb2be2271..a621cf400f 100644 --- a/docs/latest/assets/js/211.628fa940.js +++ b/docs/latest/assets/js/211.d9c2da28.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[211],{537:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"doughnut"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#doughnut"}},[this._v("#")]),this._v(" Doughnut")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: [],\n data: [],\n };\n\n for (let i = 0; i < data.labels.length; i++) {\n newDataset.data.push(Utils.numbers({count: 1, min: 0, max: 100}));\n\n const colorIndex = i % Object.keys(Utils.CHART_COLORS).length;\n newDataset.backgroundColor.push(Object.values(Utils.CHART_COLORS)[colorIndex]);\n }\n\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels.push('data #' + (data.labels.length + 1));\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(0, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 5;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst data = {\n labels: ['Red', 'Orange', 'Yellow', 'Green', 'Blue'],\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Object.values(Utils.CHART_COLORS),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'doughnut',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Doughnut Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[211],{536:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"doughnut"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#doughnut"}},[this._v("#")]),this._v(" Doughnut")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: [],\n data: [],\n };\n\n for (let i = 0; i < data.labels.length; i++) {\n newDataset.data.push(Utils.numbers({count: 1, min: 0, max: 100}));\n\n const colorIndex = i % Object.keys(Utils.CHART_COLORS).length;\n newDataset.backgroundColor.push(Object.values(Utils.CHART_COLORS)[colorIndex]);\n }\n\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels.push('data #' + (data.labels.length + 1));\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(0, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 5;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst data = {\n labels: ['Red', 'Orange', 'Yellow', 'Green', 'Blue'],\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Object.values(Utils.CHART_COLORS),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'doughnut',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Doughnut Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/212.396efa31.js b/docs/latest/assets/js/212.2e9df0fb.js similarity index 98% rename from docs/latest/assets/js/212.396efa31.js rename to docs/latest/assets/js/212.2e9df0fb.js index 38be46ef98..09da2c9f10 100644 --- a/docs/latest/assets/js/212.396efa31.js +++ b/docs/latest/assets/js/212.2e9df0fb.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[212],{538:function(n,e,t){"use strict";t.r(e);var a=t(7),l=Object(a.a)({},(function(){var n=this.$createElement,e=this._self._c||n;return e("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[e("h1",{attrs:{id:"multi-series-pie"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#multi-series-pie"}},[this._v("#")]),this._v(" Multi Series Pie")]),this._v(" "),e("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 5;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: ['Overall Yay', 'Overall Nay', 'Group A Yay', 'Group A Nay', 'Group B Yay', 'Group B Nay', 'Group C Yay', 'Group C Nay'],\n datasets: [\n {\n backgroundColor: ['#AAA', '#777'],\n data: [21, 79]\n },\n {\n backgroundColor: ['hsl(0, 100%, 60%)', 'hsl(0, 100%, 35%)'],\n data: [33, 67]\n },\n {\n backgroundColor: ['hsl(100, 100%, 60%)', 'hsl(100, 100%, 35%)'],\n data: [20, 80]\n },\n {\n backgroundColor: ['hsl(180, 100%, 60%)', 'hsl(180, 100%, 35%)'],\n data: [10, 90]\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'pie',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n labels: {\n generateLabels: function(chart) {\n // Get the default label list\n const original = Chart.overrides.pie.plugins.legend.labels.generateLabels;\n const labelsOriginal = original.call(this, chart);\n\n // Build an array of colors used in the datasets of the chart\n var datasetColors = chart.data.datasets.map(function(e) {\n return e.backgroundColor;\n });\n datasetColors = datasetColors.flat();\n\n // Modify the color and hide state of each label\n labelsOriginal.forEach(label => {\n // There are twice as many labels as there are datasets. This converts the label index into the corresponding dataset index\n label.datasetIndex = (label.index - label.index % 2) / 2;\n\n // The hidden state must match the dataset's hidden state\n label.hidden = !chart.isDatasetVisible(label.datasetIndex);\n\n // Change the color to match the dataset\n label.fillStyle = datasetColors[label.index];\n });\n\n return labelsOriginal;\n }\n },\n onClick: function(mouseEvent, legendItem, legend) {\n // toggle the visibility of the dataset from what it currently is\n legend.chart.getDatasetMeta(\n legendItem.datasetIndex\n ).hidden = legend.chart.isDatasetVisible(legendItem.datasetIndex);\n legend.chart.update();\n }\n },\n tooltip: {\n callbacks: {\n label: function(context) {\n const labelIndex = (context.datasetIndex * 2) + context.dataIndex;\n return context.chart.data.labels[labelIndex] + ': ' + context.formattedValue;\n }\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);e.default=l.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[212],{537:function(n,e,t){"use strict";t.r(e);var a=t(7),l=Object(a.a)({},(function(){var n=this.$createElement,e=this._self._c||n;return e("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[e("h1",{attrs:{id:"multi-series-pie"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#multi-series-pie"}},[this._v("#")]),this._v(" Multi Series Pie")]),this._v(" "),e("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 5;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: ['Overall Yay', 'Overall Nay', 'Group A Yay', 'Group A Nay', 'Group B Yay', 'Group B Nay', 'Group C Yay', 'Group C Nay'],\n datasets: [\n {\n backgroundColor: ['#AAA', '#777'],\n data: [21, 79]\n },\n {\n backgroundColor: ['hsl(0, 100%, 60%)', 'hsl(0, 100%, 35%)'],\n data: [33, 67]\n },\n {\n backgroundColor: ['hsl(100, 100%, 60%)', 'hsl(100, 100%, 35%)'],\n data: [20, 80]\n },\n {\n backgroundColor: ['hsl(180, 100%, 60%)', 'hsl(180, 100%, 35%)'],\n data: [10, 90]\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'pie',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n labels: {\n generateLabels: function(chart) {\n // Get the default label list\n const original = Chart.overrides.pie.plugins.legend.labels.generateLabels;\n const labelsOriginal = original.call(this, chart);\n\n // Build an array of colors used in the datasets of the chart\n var datasetColors = chart.data.datasets.map(function(e) {\n return e.backgroundColor;\n });\n datasetColors = datasetColors.flat();\n\n // Modify the color and hide state of each label\n labelsOriginal.forEach(label => {\n // There are twice as many labels as there are datasets. This converts the label index into the corresponding dataset index\n label.datasetIndex = (label.index - label.index % 2) / 2;\n\n // The hidden state must match the dataset's hidden state\n label.hidden = !chart.isDatasetVisible(label.datasetIndex);\n\n // Change the color to match the dataset\n label.fillStyle = datasetColors[label.index];\n });\n\n return labelsOriginal;\n }\n },\n onClick: function(mouseEvent, legendItem, legend) {\n // toggle the visibility of the dataset from what it currently is\n legend.chart.getDatasetMeta(\n legendItem.datasetIndex\n ).hidden = legend.chart.isDatasetVisible(legendItem.datasetIndex);\n legend.chart.update();\n }\n },\n tooltip: {\n callbacks: {\n label: function(context) {\n const labelIndex = (context.datasetIndex * 2) + context.dataIndex;\n return context.chart.data.labels[labelIndex] + ': ' + context.formattedValue;\n }\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);e.default=l.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/213.e5cbe7f9.js b/docs/latest/assets/js/213.613917c2.js similarity index 100% rename from docs/latest/assets/js/213.e5cbe7f9.js rename to docs/latest/assets/js/213.613917c2.js diff --git a/docs/latest/assets/js/214.089f1bd4.js b/docs/latest/assets/js/214.1b637009.js similarity index 97% rename from docs/latest/assets/js/214.089f1bd4.js rename to docs/latest/assets/js/214.1b637009.js index e4a1f34020..1066ede78e 100644 --- a/docs/latest/assets/js/214.089f1bd4.js +++ b/docs/latest/assets/js/214.1b637009.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[214],{540:function(n,a,t){"use strict";t.r(a);var e=t(7),s=Object(e.a)({},(function(){var n=this.$createElement,a=this._self._c||n;return a("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[a("h1",{attrs:{id:"polar-area"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#polar-area"}},[this._v("#")]),this._v(" Polar area")]),this._v(" "),a("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels.push('data #' + (data.labels.length + 1));\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(0, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 5;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = ['Red', 'Orange', 'Yellow', 'Green', 'Blue'];\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: [\n Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n Utils.transparentize(Utils.CHART_COLORS.orange, 0.5),\n Utils.transparentize(Utils.CHART_COLORS.yellow, 0.5),\n Utils.transparentize(Utils.CHART_COLORS.green, 0.5),\n Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n ]\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'polarArea',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Polar Area Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);a.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[214],{538:function(n,a,t){"use strict";t.r(a);var e=t(7),s=Object(e.a)({},(function(){var n=this.$createElement,a=this._self._c||n;return a("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[a("h1",{attrs:{id:"polar-area"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#polar-area"}},[this._v("#")]),this._v(" Polar area")]),this._v(" "),a("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels.push('data #' + (data.labels.length + 1));\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(0, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 5;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = ['Red', 'Orange', 'Yellow', 'Green', 'Blue'];\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: [\n Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n Utils.transparentize(Utils.CHART_COLORS.orange, 0.5),\n Utils.transparentize(Utils.CHART_COLORS.yellow, 0.5),\n Utils.transparentize(Utils.CHART_COLORS.green, 0.5),\n Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n ]\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'polarArea',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Polar Area Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);a.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/215.8ef27595.js b/docs/latest/assets/js/215.0c163a89.js similarity index 97% rename from docs/latest/assets/js/215.8ef27595.js rename to docs/latest/assets/js/215.0c163a89.js index 4a3b8b8d56..30359fd515 100644 --- a/docs/latest/assets/js/215.8ef27595.js +++ b/docs/latest/assets/js/215.0c163a89.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[215],{541:function(n,t,a){"use strict";a.r(t);var s=a(7),e=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"radar-skip-points"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#radar-skip-points"}},[this._v("#")]),this._v(" Radar skip points")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach((dataset, i) => {\n const data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n\n if (i === 0) {\n data[0] = null;\n } else if (i === 1) {\n data[Number.parseInt(data.length / 2, 10)] = null;\n } else {\n data[data.length - 1] = null;\n }\n\n dataset.data = data;\n });\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst dataFirstSkip = Utils.numbers(NUMBER_CFG);\nconst dataMiddleSkip = Utils.numbers(NUMBER_CFG);\nconst dataLastSkip = Utils.numbers(NUMBER_CFG);\n\ndataFirstSkip[0] = null;\ndataMiddleSkip[Number.parseInt(dataMiddleSkip.length / 2, 10)] = null;\ndataLastSkip[dataLastSkip.length - 1] = null;\n\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Skip first dataset',\n data: dataFirstSkip,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Skip mid dataset',\n data: dataMiddleSkip,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n },\n {\n label: 'Skip last dataset',\n data: dataLastSkip,\n borderColor: Utils.CHART_COLORS.green,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.green, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Radar Skip Points Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[215],{542:function(n,t,a){"use strict";a.r(t);var s=a(7),e=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"radar-skip-points"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#radar-skip-points"}},[this._v("#")]),this._v(" Radar skip points")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach((dataset, i) => {\n const data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n\n if (i === 0) {\n data[0] = null;\n } else if (i === 1) {\n data[Number.parseInt(data.length / 2, 10)] = null;\n } else {\n data[data.length - 1] = null;\n }\n\n dataset.data = data;\n });\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst dataFirstSkip = Utils.numbers(NUMBER_CFG);\nconst dataMiddleSkip = Utils.numbers(NUMBER_CFG);\nconst dataLastSkip = Utils.numbers(NUMBER_CFG);\n\ndataFirstSkip[0] = null;\ndataMiddleSkip[Number.parseInt(dataMiddleSkip.length / 2, 10)] = null;\ndataLastSkip[dataLastSkip.length - 1] = null;\n\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Skip first dataset',\n data: dataFirstSkip,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Skip mid dataset',\n data: dataMiddleSkip,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n },\n {\n label: 'Skip last dataset',\n data: dataLastSkip,\n borderColor: Utils.CHART_COLORS.green,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.green, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Radar Skip Points Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/216.4415816e.js b/docs/latest/assets/js/216.da1d581b.js similarity index 97% rename from docs/latest/assets/js/216.4415816e.js rename to docs/latest/assets/js/216.da1d581b.js index 66401f7428..0f1b520c5a 100644 --- a/docs/latest/assets/js/216.4415816e.js +++ b/docs/latest/assets/js/216.da1d581b.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[216],{542:function(a,n,t){"use strict";t.r(n);var e=t(7),s=Object(e.a)({},(function(){var a=this.$createElement,n=this._self._c||a;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"radar"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#radar"}},[this._v("#")]),this._v(" Radar")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.numbers({count: data.labels.length, min: 0, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(0, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Radar Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[216],{540:function(a,n,t){"use strict";t.r(n);var e=t(7),s=Object(e.a)({},(function(){var a=this.$createElement,n=this._self._c||a;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"radar"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#radar"}},[this._v("#")]),this._v(" Radar")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.numbers({count: data.labels.length, min: 0, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(0, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Radar Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/217.9d8991ac.js b/docs/latest/assets/js/217.d82b0891.js similarity index 98% rename from docs/latest/assets/js/217.9d8991ac.js rename to docs/latest/assets/js/217.d82b0891.js index 61dc3436eb..4f03f85ad9 100644 --- a/docs/latest/assets/js/217.9d8991ac.js +++ b/docs/latest/assets/js/217.d82b0891.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[217],{543:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"scatter-multi-axis"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#scatter-multi-axis"}},[this._v("#")]),this._v(" Scatter - Multi axis")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.bubbles({count: chart.data.labels.length, rmin: 1, rmax: 1, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.bubbles({count: data.labels.length, rmin: 1, rmax: 1, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.bubbles({count: 1, rmin: 1, rmax: 1, min: -100, max: 100})[0]);\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, rmin: 1, rmax: 1, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n yAxisID: 'y',\n },\n {\n label: 'Dataset 2',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.orange,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange, 0.5),\n yAxisID: 'y2',\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Scatter Multi Axis Chart'\n }\n },\n scales: {\n y: {\n type: 'linear', // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance\n position: 'left',\n ticks: {\n color: Utils.CHART_COLORS.red\n }\n },\n y2: {\n type: 'linear', // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance\n position: 'right',\n reverse: true,\n ticks: {\n color: Utils.CHART_COLORS.blue\n },\n grid: {\n drawOnChartArea: false // only want the grid lines for one axis to show up\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[217],{541:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"scatter-multi-axis"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#scatter-multi-axis"}},[this._v("#")]),this._v(" Scatter - Multi axis")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.bubbles({count: chart.data.labels.length, rmin: 1, rmax: 1, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.bubbles({count: data.labels.length, rmin: 1, rmax: 1, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.bubbles({count: 1, rmin: 1, rmax: 1, min: -100, max: 100})[0]);\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, rmin: 1, rmax: 1, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n yAxisID: 'y',\n },\n {\n label: 'Dataset 2',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.orange,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange, 0.5),\n yAxisID: 'y2',\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Scatter Multi Axis Chart'\n }\n },\n scales: {\n y: {\n type: 'linear', // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance\n position: 'left',\n ticks: {\n color: Utils.CHART_COLORS.red\n }\n },\n y2: {\n type: 'linear', // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance\n position: 'right',\n reverse: true,\n ticks: {\n color: Utils.CHART_COLORS.blue\n },\n grid: {\n drawOnChartArea: false // only want the grid lines for one axis to show up\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/218.e898fcfc.js b/docs/latest/assets/js/218.d6c62cbb.js similarity index 97% rename from docs/latest/assets/js/218.e898fcfc.js rename to docs/latest/assets/js/218.d6c62cbb.js index 267d3e73f4..eccb345b79 100644 --- a/docs/latest/assets/js/218.e898fcfc.js +++ b/docs/latest/assets/js/218.d6c62cbb.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[218],{544:function(t,n,a){"use strict";a.r(n);var e=a(7),s=Object(e.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"scatter"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#scatter"}},[this._v("#")]),this._v(" Scatter")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.bubbles({count: chart.data.labels.length, rmin: 1, rmax: 1, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.bubbles({count: data.labels.length, rmin: 1, rmax: 1, min: 0, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.bubbles({count: 1, rmin: 1, rmax: 1, min: 0, max: 100})[0]);\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, rmin: 1, rmax: 1, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.orange,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Scatter Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[218],{543:function(t,n,a){"use strict";a.r(n);var e=a(7),s=Object(e.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"scatter"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#scatter"}},[this._v("#")]),this._v(" Scatter")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.bubbles({count: chart.data.labels.length, rmin: 1, rmax: 1, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.bubbles({count: data.labels.length, rmin: 1, rmax: 1, min: 0, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.bubbles({count: 1, rmin: 1, rmax: 1, min: 0, max: 100})[0]);\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, rmin: 1, rmax: 1, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.orange,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Scatter Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/219.6b713d5d.js b/docs/latest/assets/js/219.fffb530f.js similarity index 98% rename from docs/latest/assets/js/219.6b713d5d.js rename to docs/latest/assets/js/219.fffb530f.js index 636274c3c2..36d9728d6b 100644 --- a/docs/latest/assets/js/219.6b713d5d.js +++ b/docs/latest/assets/js/219.fffb530f.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[219],{545:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"stacked-bar-line"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#stacked-bar-line"}},[this._v("#")]),this._v(" Stacked bar/line")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n borderWidth: 1,\n stack: 'combined',\n data: Utils.numbers({count: data.labels.length, min: 0, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(0, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n stack: 'combined',\n type: 'bar'\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n stack: 'combined'\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Stacked Line/Bar Chart'\n }\n },\n scales: {\n y: {\n stacked: true\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[219],{544:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"stacked-bar-line"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#stacked-bar-line"}},[this._v("#")]),this._v(" Stacked bar/line")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n borderWidth: 1,\n stack: 'combined',\n data: Utils.numbers({count: data.labels.length, min: 0, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(0, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n stack: 'combined',\n type: 'bar'\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n stack: 'combined'\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Stacked Line/Bar Chart'\n }\n },\n scales: {\n y: {\n stacked: true\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/22.5703057f.js b/docs/latest/assets/js/22.5703057f.js new file mode 100644 index 0000000000..c2f5320d6f --- /dev/null +++ b/docs/latest/assets/js/22.5703057f.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{346:function(t,e,a){"use strict";a.r(e);var r=a(7),n=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-activeelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-activeelement"}},[t._v("#")]),t._v(" Interface: ActiveElement")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[a("em",[t._v("ActiveDataPoint")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("ActiveElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"datasetindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[t._v("#")]),t._v(" datasetIndex")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[t._v("ActiveDataPoint")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html#datasetindex"}},[t._v("datasetIndex")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L427",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:427"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"element"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#element"}},[t._v("#")]),t._v(" element")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L432",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:432"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"index"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("index")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[t._v("ActiveDataPoint")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html#index"}},[t._v("index")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L428",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:428"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/22.75ef9757.js b/docs/latest/assets/js/22.75ef9757.js deleted file mode 100644 index 0b194e7290..0000000000 --- a/docs/latest/assets/js/22.75ef9757.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{349:function(t,e,a){"use strict";a.r(e);var r=a(7),n=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-activeelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-activeelement"}},[t._v("#")]),t._v(" Interface: ActiveElement")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[a("em",[t._v("ActiveDataPoint")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("ActiveElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"datasetindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[t._v("#")]),t._v(" datasetIndex")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[t._v("ActiveDataPoint")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html#datasetindex"}},[t._v("datasetIndex")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L427",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:427"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"element"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#element"}},[t._v("#")]),t._v(" element")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L432",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:432"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"index"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("index")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[t._v("ActiveDataPoint")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html#index"}},[t._v("index")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L428",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:428"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/220.28bcb827.js b/docs/latest/assets/js/220.f6a10664.js similarity index 97% rename from docs/latest/assets/js/220.28bcb827.js rename to docs/latest/assets/js/220.f6a10664.js index 19745416a5..6f11afec07 100644 --- a/docs/latest/assets/js/220.28bcb827.js +++ b/docs/latest/assets/js/220.f6a10664.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[220],{547:function(n,t,s){"use strict";s.r(t);var o=s(7),e=Object(o.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"center-positioning"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#center-positioning"}},[this._v("#")]),this._v(" Center Positioning")]),this._v(" "),t("p",[this._v("This sample show how to place the axis in the center of the chart area, instead of at the edges.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Default Positions',\n handler(chart) {\n chart.options.scales.x.position = 'bottom';\n chart.options.scales.y.position = 'left';\n chart.update();\n }\n },\n {\n name: 'Position: center',\n handler(chart) {\n chart.options.scales.x.position = 'center';\n chart.options.scales.y.position = 'center';\n chart.update();\n }\n },\n {\n name: 'Position: Vertical: x=-60, Horizontal: y=30',\n handler(chart) {\n chart.options.scales.x.position = {y: 30};\n chart.options.scales.y.position = {x: -60};\n chart.update();\n }\n },\n];\n// \n\n\n// \nconst DATA_COUNT = 6;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.points(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.points(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Axis Center Positioning'\n }\n },\n scales: {\n x: {\n min: -100,\n max: 100,\n },\n y: {\n min: -100,\n max: 100,\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[220],{546:function(n,t,s){"use strict";s.r(t);var o=s(7),e=Object(o.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"center-positioning"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#center-positioning"}},[this._v("#")]),this._v(" Center Positioning")]),this._v(" "),t("p",[this._v("This sample show how to place the axis in the center of the chart area, instead of at the edges.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Default Positions',\n handler(chart) {\n chart.options.scales.x.position = 'bottom';\n chart.options.scales.y.position = 'left';\n chart.update();\n }\n },\n {\n name: 'Position: center',\n handler(chart) {\n chart.options.scales.x.position = 'center';\n chart.options.scales.y.position = 'center';\n chart.update();\n }\n },\n {\n name: 'Position: Vertical: x=-60, Horizontal: y=30',\n handler(chart) {\n chart.options.scales.x.position = {y: 30};\n chart.options.scales.y.position = {x: -60};\n chart.update();\n }\n },\n];\n// \n\n\n// \nconst DATA_COUNT = 6;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.points(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.points(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Axis Center Positioning'\n }\n },\n scales: {\n x: {\n min: -100,\n max: 100,\n },\n y: {\n min: -100,\n max: 100,\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/221.79432e83.js b/docs/latest/assets/js/221.9e9325bf.js similarity index 97% rename from docs/latest/assets/js/221.79432e83.js rename to docs/latest/assets/js/221.9e9325bf.js index 7961b67343..ab597a3df0 100644 --- a/docs/latest/assets/js/221.79432e83.js +++ b/docs/latest/assets/js/221.9e9325bf.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[221],{546:function(n,t,e){"use strict";e.r(t);var a=e(7),s=Object(a.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"grid-configuration"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#grid-configuration"}},[this._v("#")]),this._v(" Grid Configuration")]),this._v(" "),t("p",[this._v("This sample shows how to use scriptable grid options for an axis to control styling. In this case, the Y axis grid lines are colored based on their value. In addition, booleans are provided to toggle different parts of the X axis grid visibility.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: [10, 30, 39, 20, 25, 34, -10],\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: [18, 33, 22, 19, 11, -39, 30],\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \n// Change these settings to change the display for different parts of the X axis\n// grid configuiration\nconst DISPLAY = true;\nconst BORDER = true;\nconst CHART_AREA = true;\nconst TICKS = true;\n\nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Grid Line Settings'\n }\n },\n scales: {\n x: {\n grid: {\n display: DISPLAY,\n drawBorder: BORDER,\n drawOnChartArea: CHART_AREA,\n drawTicks: TICKS,\n }\n },\n y: {\n grid: {\n drawBorder: false,\n color: function(context) {\n if (context.tick.value > 0) {\n return Utils.CHART_COLORS.green;\n } else if (context.tick.value < 0) {\n return Utils.CHART_COLORS.red;\n }\n\n return '#000000';\n },\n },\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[221],{545:function(n,t,e){"use strict";e.r(t);var a=e(7),s=Object(a.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"grid-configuration"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#grid-configuration"}},[this._v("#")]),this._v(" Grid Configuration")]),this._v(" "),t("p",[this._v("This sample shows how to use scriptable grid options for an axis to control styling. In this case, the Y axis grid lines are colored based on their value. In addition, booleans are provided to toggle different parts of the X axis grid visibility.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: [10, 30, 39, 20, 25, 34, -10],\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: [18, 33, 22, 19, 11, -39, 30],\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \n// Change these settings to change the display for different parts of the X axis\n// grid configuiration\nconst DISPLAY = true;\nconst BORDER = true;\nconst CHART_AREA = true;\nconst TICKS = true;\n\nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Grid Line Settings'\n }\n },\n scales: {\n x: {\n grid: {\n display: DISPLAY,\n drawBorder: BORDER,\n drawOnChartArea: CHART_AREA,\n drawTicks: TICKS,\n }\n },\n y: {\n grid: {\n drawBorder: false,\n color: function(context) {\n if (context.tick.value > 0) {\n return Utils.CHART_COLORS.green;\n } else if (context.tick.value < 0) {\n return Utils.CHART_COLORS.red;\n }\n\n return '#000000';\n },\n },\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/222.8dc45fcf.js b/docs/latest/assets/js/222.019af258.js similarity index 97% rename from docs/latest/assets/js/222.8dc45fcf.js rename to docs/latest/assets/js/222.019af258.js index a576245879..fde29ae867 100644 --- a/docs/latest/assets/js/222.8dc45fcf.js +++ b/docs/latest/assets/js/222.019af258.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[222],{548:function(n,t,e){"use strict";e.r(t);var a=e(7),l=Object(a.a)({},(function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("ContentSlotsDistributor",{attrs:{"slot-key":n.$parent.slotKey}},[e("h1",{attrs:{id:"tick-configuration"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#tick-configuration"}},[n._v("#")]),n._v(" Tick Configuration")]),n._v(" "),e("p",[n._v("This sample shows how to use different tick features to control how tick labels are shown on the X axis. These features include:")]),n._v(" "),e("ul",[e("li",[n._v("Multi-line labels")]),n._v(" "),e("li",[n._v("Filtering labels")]),n._v(" "),e("li",[n._v("Changing the tick color")]),n._v(" "),e("li",[n._v("Changing the tick alignment for the X axis")])]),n._v(" "),e("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Alignment: start',\n handler(chart) {\n chart.options.scales.x.ticks.align = 'start';\n chart.update();\n }\n },\n {\n name: 'Alignment: center (default)',\n handler(chart) {\n chart.options.scales.x.ticks.align = 'center';\n chart.update();\n }\n },\n {\n name: 'Alignment: end',\n handler(chart) {\n chart.options.scales.x.ticks.align = 'end';\n chart.update();\n }\n },\n];\n// \n\n\n// \nconst DATA_COUNT = 12;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\nconst data = {\n labels: [['June', '2015'], 'July', 'August', 'September', 'October', 'November', 'December', ['January', '2016'], 'February', 'March', 'April', 'May'],\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Chart with Tick Configuration'\n }\n },\n scales: {\n x: {\n ticks: {\n // For a category axis, the val is the index so the lookup via getLabelForValue is needed\n callback: function(val, index) {\n // Hide the label of every 2nd dataset\n return index % 2 === 0 ? this.getLabelForValue(val) : '';\n },\n color: 'red',\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=l.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[222],{547:function(n,t,e){"use strict";e.r(t);var a=e(7),l=Object(a.a)({},(function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("ContentSlotsDistributor",{attrs:{"slot-key":n.$parent.slotKey}},[e("h1",{attrs:{id:"tick-configuration"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#tick-configuration"}},[n._v("#")]),n._v(" Tick Configuration")]),n._v(" "),e("p",[n._v("This sample shows how to use different tick features to control how tick labels are shown on the X axis. These features include:")]),n._v(" "),e("ul",[e("li",[n._v("Multi-line labels")]),n._v(" "),e("li",[n._v("Filtering labels")]),n._v(" "),e("li",[n._v("Changing the tick color")]),n._v(" "),e("li",[n._v("Changing the tick alignment for the X axis")])]),n._v(" "),e("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Alignment: start',\n handler(chart) {\n chart.options.scales.x.ticks.align = 'start';\n chart.update();\n }\n },\n {\n name: 'Alignment: center (default)',\n handler(chart) {\n chart.options.scales.x.ticks.align = 'center';\n chart.update();\n }\n },\n {\n name: 'Alignment: end',\n handler(chart) {\n chart.options.scales.x.ticks.align = 'end';\n chart.update();\n }\n },\n];\n// \n\n\n// \nconst DATA_COUNT = 12;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\nconst data = {\n labels: [['June', '2015'], 'July', 'August', 'September', 'October', 'November', 'December', ['January', '2016'], 'February', 'March', 'April', 'May'],\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Chart with Tick Configuration'\n }\n },\n scales: {\n x: {\n ticks: {\n // For a category axis, the val is the index so the lookup via getLabelForValue is needed\n callback: function(val, index) {\n // Hide the label of every 2nd dataset\n return index % 2 === 0 ? this.getLabelForValue(val) : '';\n },\n color: 'red',\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=l.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/223.0046eb65.js b/docs/latest/assets/js/223.d1e5d737.js similarity index 100% rename from docs/latest/assets/js/223.0046eb65.js rename to docs/latest/assets/js/223.d1e5d737.js diff --git a/docs/latest/assets/js/224.ba6b9714.js b/docs/latest/assets/js/224.0c9879b6.js similarity index 96% rename from docs/latest/assets/js/224.ba6b9714.js rename to docs/latest/assets/js/224.0c9879b6.js index b96887875a..e1cf8a9d50 100644 --- a/docs/latest/assets/js/224.ba6b9714.js +++ b/docs/latest/assets/js/224.0c9879b6.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[224],{550:function(n,t,e){"use strict";e.r(t);var s=e(7),a=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"linear-scale-suggested-min-max"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#linear-scale-suggested-min-max"}},[this._v("#")]),this._v(" Linear Scale - Suggested Min-Max")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: [10, 30, 39, 20, 25, 34, -10],\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.CHART_COLORS.red,\n },\n {\n label: 'Dataset 2',\n data: [18, 33, 22, 19, 11, 39, 30],\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.CHART_COLORS.blue,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Suggested Min and Max Settings'\n }\n },\n scales: {\n y: {\n // the data minimum used for determining the ticks is Math.min(dataMin, suggestedMin)\n suggestedMin: 30,\n\n // the data maximum used for determining the ticks is Math.max(dataMax, suggestedMax)\n suggestedMax: 50,\n }\n }\n },\n};\n// \n\nmodule.exports = {\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[224],{548:function(n,t,e){"use strict";e.r(t);var s=e(7),a=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"linear-scale-suggested-min-max"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#linear-scale-suggested-min-max"}},[this._v("#")]),this._v(" Linear Scale - Suggested Min-Max")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: [10, 30, 39, 20, 25, 34, -10],\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.CHART_COLORS.red,\n },\n {\n label: 'Dataset 2',\n data: [18, 33, 22, 19, 11, 39, 30],\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.CHART_COLORS.blue,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Suggested Min and Max Settings'\n }\n },\n scales: {\n y: {\n // the data minimum used for determining the ticks is Math.min(dataMin, suggestedMin)\n suggestedMin: 30,\n\n // the data maximum used for determining the ticks is Math.max(dataMax, suggestedMax)\n suggestedMax: 50,\n }\n }\n },\n};\n// \n\nmodule.exports = {\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/225.47608bac.js b/docs/latest/assets/js/225.4a17da2d.js similarity index 95% rename from docs/latest/assets/js/225.47608bac.js rename to docs/latest/assets/js/225.4a17da2d.js index 803af0e0fc..2e2eb7cc3a 100644 --- a/docs/latest/assets/js/225.47608bac.js +++ b/docs/latest/assets/js/225.4a17da2d.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[225],{551:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"linear-scale-min-max"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#linear-scale-min-max"}},[this._v("#")]),this._v(" Linear Scale - Min-Max")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: [10, 30, 50, 20, 25, 44, -10],\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.CHART_COLORS.red,\n },\n {\n label: 'Dataset 2',\n data: [100, 33, 22, 19, 11, 49, 30],\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.CHART_COLORS.blue,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Min and Max Settings'\n }\n },\n scales: {\n y: {\n min: 10,\n max: 50,\n }\n }\n },\n};\n// \n\nmodule.exports = {\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[225],{550:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"linear-scale-min-max"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#linear-scale-min-max"}},[this._v("#")]),this._v(" Linear Scale - Min-Max")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: [10, 30, 50, 20, 25, 44, -10],\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.CHART_COLORS.red,\n },\n {\n label: 'Dataset 2',\n data: [100, 33, 22, 19, 11, 49, 30],\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.CHART_COLORS.blue,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Min and Max Settings'\n }\n },\n scales: {\n y: {\n min: 10,\n max: 50,\n }\n }\n },\n};\n// \n\nmodule.exports = {\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/226.61d91c04.js b/docs/latest/assets/js/226.9aa0a8fc.js similarity index 98% rename from docs/latest/assets/js/226.61d91c04.js rename to docs/latest/assets/js/226.9aa0a8fc.js index 2b2a16afc8..3e05540147 100644 --- a/docs/latest/assets/js/226.61d91c04.js +++ b/docs/latest/assets/js/226.9aa0a8fc.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[226],{552:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"linear-scale-step-size"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#linear-scale-step-size"}},[this._v("#")]),this._v(" Linear Scale - Step Size")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: dsColor,\n borderColor: dsColor,\n data: Utils.numbers({count: data.labels.length, min: 0, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(0, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.CHART_COLORS.red,\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.CHART_COLORS.blue,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n tooltip: {\n mode: 'index',\n intersect: false\n },\n title: {\n display: true,\n text: 'Chart.js Line Chart'\n }\n },\n hover: {\n mode: 'index',\n intersec: false\n },\n scales: {\n x: {\n title: {\n display: true,\n text: 'Month'\n }\n },\n y: {\n title: {\n display: true,\n text: 'Value'\n },\n min: 0,\n max: 100,\n ticks: {\n // forces step size to be 50 units\n stepSize: 50\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[226],{551:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"linear-scale-step-size"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#linear-scale-step-size"}},[this._v("#")]),this._v(" Linear Scale - Step Size")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: dsColor,\n borderColor: dsColor,\n data: Utils.numbers({count: data.labels.length, min: 0, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(0, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.CHART_COLORS.red,\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.CHART_COLORS.blue,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n tooltip: {\n mode: 'index',\n intersect: false\n },\n title: {\n display: true,\n text: 'Chart.js Line Chart'\n }\n },\n hover: {\n mode: 'index',\n intersec: false\n },\n scales: {\n x: {\n title: {\n display: true,\n text: 'Month'\n }\n },\n y: {\n title: {\n display: true,\n text: 'Value'\n },\n min: 0,\n max: 100,\n ticks: {\n // forces step size to be 50 units\n stepSize: 50\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/227.198c9166.js b/docs/latest/assets/js/227.1ae5f133.js similarity index 96% rename from docs/latest/assets/js/227.198c9166.js rename to docs/latest/assets/js/227.1ae5f133.js index 8f30d5784c..283c8a33f4 100644 --- a/docs/latest/assets/js/227.198c9166.js +++ b/docs/latest/assets/js/227.1ae5f133.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[227],{553:function(n,t,a){"use strict";a.r(t);var s=a(7),e=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"log-scale"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#log-scale"}},[this._v("#")]),this._v(" Log Scale")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst logNumbers = (num) => {\n const data = [];\n\n for (let i = 0; i < num; ++i) {\n data.push(Math.ceil(Math.random() * 10.0) * Math.pow(10, Math.ceil(Math.random() * 5)));\n }\n\n return data;\n};\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = logNumbers(chart.data.labels.length);\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: logNumbers(DATA_COUNT),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.CHART_COLORS.red,\n fill: false,\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Line Chart - Logarithmic'\n }\n },\n scales: {\n x: {\n display: true,\n },\n y: {\n display: true,\n type: 'logarithmic',\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[227],{552:function(n,t,a){"use strict";a.r(t);var s=a(7),e=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"log-scale"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#log-scale"}},[this._v("#")]),this._v(" Log Scale")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst logNumbers = (num) => {\n const data = [];\n\n for (let i = 0; i < num; ++i) {\n data.push(Math.ceil(Math.random() * 10.0) * Math.pow(10, Math.ceil(Math.random() * 5)));\n }\n\n return data;\n};\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = logNumbers(chart.data.labels.length);\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: logNumbers(DATA_COUNT),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.CHART_COLORS.red,\n fill: false,\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Line Chart - Logarithmic'\n }\n },\n scales: {\n x: {\n display: true,\n },\n y: {\n display: true,\n type: 'logarithmic',\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/228.b0349dda.js b/docs/latest/assets/js/228.cc4dbf95.js similarity index 97% rename from docs/latest/assets/js/228.b0349dda.js rename to docs/latest/assets/js/228.cc4dbf95.js index 745eae9b9a..2e1b08a0f7 100644 --- a/docs/latest/assets/js/228.b0349dda.js +++ b/docs/latest/assets/js/228.cc4dbf95.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[228],{554:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"time-scale-combo-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#time-scale-combo-chart"}},[this._v("#")]),this._v(" Time Scale - Combo Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = [];\n\nfor (let i = 0; i < DATA_COUNT; ++i) {\n labels.push(Utils.newDate(i));\n}\n\nconst data = {\n labels: labels,\n datasets: [{\n type: 'bar',\n label: 'Dataset 1',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n borderColor: Utils.CHART_COLORS.red,\n data: Utils.numbers(NUMBER_CFG),\n }, {\n type: 'bar',\n label: 'Dataset 2',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n borderColor: Utils.CHART_COLORS.blue,\n data: Utils.numbers(NUMBER_CFG),\n }, {\n type: 'line',\n label: 'Dataset 3',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.green, 0.5),\n borderColor: Utils.CHART_COLORS.green,\n fill: false,\n data: Utils.numbers(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n title: {\n text: 'Chart.js Combo Time Scale',\n display: true\n }\n },\n scales: {\n x: {\n type: 'time',\n display: true,\n offset: true,\n time: {\n unit: 'day'\n }\n },\n },\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[228],{553:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"time-scale-combo-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#time-scale-combo-chart"}},[this._v("#")]),this._v(" Time Scale - Combo Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = [];\n\nfor (let i = 0; i < DATA_COUNT; ++i) {\n labels.push(Utils.newDate(i));\n}\n\nconst data = {\n labels: labels,\n datasets: [{\n type: 'bar',\n label: 'Dataset 1',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n borderColor: Utils.CHART_COLORS.red,\n data: Utils.numbers(NUMBER_CFG),\n }, {\n type: 'bar',\n label: 'Dataset 2',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n borderColor: Utils.CHART_COLORS.blue,\n data: Utils.numbers(NUMBER_CFG),\n }, {\n type: 'line',\n label: 'Dataset 3',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.green, 0.5),\n borderColor: Utils.CHART_COLORS.green,\n fill: false,\n data: Utils.numbers(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n title: {\n text: 'Chart.js Combo Time Scale',\n display: true\n }\n },\n scales: {\n x: {\n type: 'time',\n display: true,\n offset: true,\n time: {\n unit: 'day'\n }\n },\n },\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/229.51ec6bd7.js b/docs/latest/assets/js/229.485d294b.js similarity index 97% rename from docs/latest/assets/js/229.51ec6bd7.js rename to docs/latest/assets/js/229.485d294b.js index 4170182f9b..b814772787 100644 --- a/docs/latest/assets/js/229.51ec6bd7.js +++ b/docs/latest/assets/js/229.485d294b.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[229],{555:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"time-scale"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#time-scale"}},[this._v("#")]),this._v(" Time Scale")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data.forEach(function(dataObj, j) {\n const newVal = Utils.rand(0, 100);\n\n if (typeof dataObj === 'object') {\n dataObj.y = newVal;\n } else {\n dataset.data[j] = newVal;\n }\n });\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst data = {\n labels: [ // Date Objects\n Utils.newDate(0),\n Utils.newDate(1),\n Utils.newDate(2),\n Utils.newDate(3),\n Utils.newDate(4),\n Utils.newDate(5),\n Utils.newDate(6)\n ],\n datasets: [{\n label: 'My First dataset',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n borderColor: Utils.CHART_COLORS.red,\n fill: false,\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'My Second dataset',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n borderColor: Utils.CHART_COLORS.blue,\n fill: false,\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dataset with point data',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.green, 0.5),\n borderColor: Utils.CHART_COLORS.green,\n fill: false,\n data: [{\n x: Utils.newDateString(0),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(5),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(7),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(15),\n y: Utils.rand(0, 100)\n }],\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n title: {\n text: 'Chart.js Time Scale',\n display: true\n }\n },\n scales: {\n x: {\n type: 'time',\n time: {\n // Luxon format string\n tooltipFormat: 'DD T'\n },\n title: {\n display: true,\n text: 'Date'\n }\n },\n y: {\n title: {\n display: true,\n text: 'value'\n }\n }\n },\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[229],{554:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"time-scale"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#time-scale"}},[this._v("#")]),this._v(" Time Scale")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data.forEach(function(dataObj, j) {\n const newVal = Utils.rand(0, 100);\n\n if (typeof dataObj === 'object') {\n dataObj.y = newVal;\n } else {\n dataset.data[j] = newVal;\n }\n });\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst data = {\n labels: [ // Date Objects\n Utils.newDate(0),\n Utils.newDate(1),\n Utils.newDate(2),\n Utils.newDate(3),\n Utils.newDate(4),\n Utils.newDate(5),\n Utils.newDate(6)\n ],\n datasets: [{\n label: 'My First dataset',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n borderColor: Utils.CHART_COLORS.red,\n fill: false,\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'My Second dataset',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n borderColor: Utils.CHART_COLORS.blue,\n fill: false,\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dataset with point data',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.green, 0.5),\n borderColor: Utils.CHART_COLORS.green,\n fill: false,\n data: [{\n x: Utils.newDateString(0),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(5),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(7),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(15),\n y: Utils.rand(0, 100)\n }],\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n title: {\n text: 'Chart.js Time Scale',\n display: true\n }\n },\n scales: {\n x: {\n type: 'time',\n time: {\n // Luxon format string\n tooltipFormat: 'DD T'\n },\n title: {\n display: true,\n text: 'Date'\n }\n },\n y: {\n title: {\n display: true,\n text: 'value'\n }\n }\n },\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/23.35efcd86.js b/docs/latest/assets/js/23.35efcd86.js new file mode 100644 index 0000000000..c8dd492e3f --- /dev/null +++ b/docs/latest/assets/js/23.35efcd86.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{347:function(t,e,r){"use strict";r.r(e);var a=r(7),n=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-animationevent"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-animationevent"}},[t._v("#")]),t._v(" Interface: AnimationEvent")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"chart"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("chart")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:13"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"currentstate"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#currentstate"}},[t._v("#")]),t._v(" currentState")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("currentState")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L15",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:15"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"numsteps"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#numsteps"}},[t._v("#")]),t._v(" numSteps")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("numSteps")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L14",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:14"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/23.f0778fc2.js b/docs/latest/assets/js/23.f0778fc2.js deleted file mode 100644 index 4c6e14a379..0000000000 --- a/docs/latest/assets/js/23.f0778fc2.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{350:function(t,e,a){"use strict";a.r(e);var r=a(7),n=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-animationevent"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-animationevent"}},[t._v("#")]),t._v(" Interface: AnimationEvent")]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"currentstate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#currentstate"}},[t._v("#")]),t._v(" currentState")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("currentState")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L15",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:15"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"numsteps"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#numsteps"}},[t._v("#")]),t._v(" numSteps")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("numSteps")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L14",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:14"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/230.deb69283.js b/docs/latest/assets/js/230.35b30f36.js similarity index 98% rename from docs/latest/assets/js/230.deb69283.js rename to docs/latest/assets/js/230.35b30f36.js index 16a6f2e3c4..c450aea3c6 100644 --- a/docs/latest/assets/js/230.deb69283.js +++ b/docs/latest/assets/js/230.35b30f36.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[230],{556:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"time-scale-max-span"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#time-scale-max-span"}},[this._v("#")]),this._v(" Time Scale - Max Span")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data.forEach(function(dataObj, j) {\n const newVal = Utils.rand(0, 100);\n\n if (typeof dataObj === 'object') {\n dataObj.y = newVal;\n } else {\n dataset.data[j] = newVal;\n }\n });\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst data = {\n datasets: [{\n label: 'Dataset with string point data',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n borderColor: Utils.CHART_COLORS.red,\n fill: false,\n data: [{\n x: Utils.newDateString(0),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(2),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(4),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(6),\n y: Utils.rand(0, 100)\n }],\n }, {\n label: 'Dataset with date object point data',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n borderColor: Utils.CHART_COLORS.blue,\n fill: false,\n data: [{\n x: Utils.newDate(0),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDate(2),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDate(5),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDate(6),\n y: Utils.rand(0, 100)\n }]\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n spanGaps: 1000 * 60 * 60 * 24 * 2, // 2 days\n responsive: true,\n interaction: {\n mode: 'nearest',\n },\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Time - spanGaps: 172800000 (2 days in ms)'\n },\n },\n scales: {\n x: {\n type: 'time',\n display: true,\n title: {\n display: true,\n text: 'Date'\n },\n ticks: {\n autoSkip: false,\n maxRotation: 0,\n major: {\n enabled: true\n },\n // color: function(context) {\n // return context.tick && context.tick.major ? '#FF0000' : 'rgba(0,0,0,0.1)';\n // },\n font: function(context) {\n if (context.tick && context.tick.major) {\n return {\n weight: 'bold',\n };\n }\n }\n }\n },\n y: {\n display: true,\n title: {\n display: true,\n text: 'value'\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[230],{555:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"time-scale-max-span"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#time-scale-max-span"}},[this._v("#")]),this._v(" Time Scale - Max Span")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data.forEach(function(dataObj, j) {\n const newVal = Utils.rand(0, 100);\n\n if (typeof dataObj === 'object') {\n dataObj.y = newVal;\n } else {\n dataset.data[j] = newVal;\n }\n });\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst data = {\n datasets: [{\n label: 'Dataset with string point data',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n borderColor: Utils.CHART_COLORS.red,\n fill: false,\n data: [{\n x: Utils.newDateString(0),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(2),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(4),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(6),\n y: Utils.rand(0, 100)\n }],\n }, {\n label: 'Dataset with date object point data',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n borderColor: Utils.CHART_COLORS.blue,\n fill: false,\n data: [{\n x: Utils.newDate(0),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDate(2),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDate(5),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDate(6),\n y: Utils.rand(0, 100)\n }]\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n spanGaps: 1000 * 60 * 60 * 24 * 2, // 2 days\n responsive: true,\n interaction: {\n mode: 'nearest',\n },\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Time - spanGaps: 172800000 (2 days in ms)'\n },\n },\n scales: {\n x: {\n type: 'time',\n display: true,\n title: {\n display: true,\n text: 'Date'\n },\n ticks: {\n autoSkip: false,\n maxRotation: 0,\n major: {\n enabled: true\n },\n // color: function(context) {\n // return context.tick && context.tick.major ? '#FF0000' : 'rgba(0,0,0,0.1)';\n // },\n font: function(context) {\n if (context.tick && context.tick.major) {\n return {\n weight: 'bold',\n };\n }\n }\n }\n },\n y: {\n display: true,\n title: {\n display: true,\n text: 'value'\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/231.a0f70811.js b/docs/latest/assets/js/231.653d9ba3.js similarity index 96% rename from docs/latest/assets/js/231.a0f70811.js rename to docs/latest/assets/js/231.653d9ba3.js index 4c3ca9adec..1e56c923c2 100644 --- a/docs/latest/assets/js/231.a0f70811.js +++ b/docs/latest/assets/js/231.653d9ba3.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[231],{557:function(n,t,a){"use strict";a.r(t);var e=a(7),r=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"bar-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bar-chart"}},[this._v("#")]),this._v(" Bar Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nvar DATA_COUNT = 16;\nUtils.srand(110);\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n];\n// \n\n// \nfunction generateData() {\n return Utils.numbers({\n count: DATA_COUNT,\n min: -100,\n max: 100\n });\n}\n\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n data: generateData(),\n }]\n};\n// \n\n// \nfunction colorize(opaque) {\n return (ctx) => {\n var v = ctx.parsed.y;\n var c = v < -50 ? '#D60000'\n : v < 0 ? '#F46300'\n : v < 50 ? '#0358B6'\n : '#44DE28';\n\n return opaque ? c : Utils.transparentize(c, 1 - Math.abs(v / 150));\n };\n}\n\nconst config = {\n type: 'bar',\n data: data,\n options: {\n plugins: {\n legend: false,\n },\n elements: {\n bar: {\n backgroundColor: colorize(false),\n borderColor: colorize(true),\n borderWidth: 2\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[231],{556:function(n,t,a){"use strict";a.r(t);var e=a(7),r=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"bar-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bar-chart"}},[this._v("#")]),this._v(" Bar Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nvar DATA_COUNT = 16;\nUtils.srand(110);\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n];\n// \n\n// \nfunction generateData() {\n return Utils.numbers({\n count: DATA_COUNT,\n min: -100,\n max: 100\n });\n}\n\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n data: generateData(),\n }]\n};\n// \n\n// \nfunction colorize(opaque) {\n return (ctx) => {\n var v = ctx.parsed.y;\n var c = v < -50 ? '#D60000'\n : v < 0 ? '#F46300'\n : v < 50 ? '#0358B6'\n : '#44DE28';\n\n return opaque ? c : Utils.transparentize(c, 1 - Math.abs(v / 150));\n };\n}\n\nconst config = {\n type: 'bar',\n data: data,\n options: {\n plugins: {\n legend: false,\n },\n elements: {\n bar: {\n backgroundColor: colorize(false),\n borderColor: colorize(true),\n borderWidth: 2\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/232.fcd02ed5.js b/docs/latest/assets/js/232.c15fc19e.js similarity index 97% rename from docs/latest/assets/js/232.fcd02ed5.js rename to docs/latest/assets/js/232.c15fc19e.js index 5ae5c5875d..5c0703348c 100644 --- a/docs/latest/assets/js/232.fcd02ed5.js +++ b/docs/latest/assets/js/232.c15fc19e.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[232],{558:function(n,t,a){"use strict";a.r(t);var e=a(7),r=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"bubble-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bubble-chart"}},[this._v("#")]),this._v(" Bubble Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 16;\nconst MIN_XY = -150;\nconst MAX_XY = 100;\nUtils.srand(110);\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n];\n// \n\n// \nfunction generateData() {\n var data = [];\n var i;\n\n for (i = 0; i < DATA_COUNT; ++i) {\n data.push({\n x: Utils.rand(MIN_XY, MAX_XY),\n y: Utils.rand(MIN_XY, MAX_XY),\n v: Utils.rand(0, 1000)\n });\n }\n\n return data;\n}\n\nconst data = {\n datasets: [{\n data: generateData()\n }, {\n data: generateData()\n }]\n};\n// \n\n// \nfunction channelValue(x, y, values) {\n return x < 0 && y < 0 ? values[0] : x < 0 ? values[1] : y < 0 ? values[2] : values[3];\n}\n\nfunction colorize(opaque, context) {\n var value = context.raw;\n var x = value.x / 100;\n var y = value.y / 100;\n var r = channelValue(x, y, [250, 150, 50, 0]);\n var g = channelValue(x, y, [0, 50, 150, 250]);\n var b = channelValue(x, y, [0, 150, 150, 250]);\n var a = opaque ? 1 : 0.5 * value.v / 1000;\n\n return 'rgba(' + r + ',' + g + ',' + b + ',' + a + ')';\n}\n\nconst config = {\n type: 'bubble',\n data: data,\n options: {\n aspectRatio: 1,\n plugins: {\n legend: false,\n tooltip: false,\n },\n elements: {\n point: {\n backgroundColor: colorize.bind(null, false),\n\n borderColor: colorize.bind(null, true),\n\n borderWidth: function(context) {\n return Math.min(Math.max(1, context.datasetIndex + 1), 8);\n },\n\n hoverBackgroundColor: 'transparent',\n\n hoverBorderColor: function(context) {\n return Utils.color(context.datasetIndex);\n },\n\n hoverBorderWidth: function(context) {\n return Math.round(8 * context.raw.v / 1000);\n },\n\n radius: function(context) {\n var size = context.chart.width;\n var base = Math.abs(context.raw.v) / 1000;\n return (size / 24) * base;\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[232],{557:function(n,t,a){"use strict";a.r(t);var e=a(7),r=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"bubble-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bubble-chart"}},[this._v("#")]),this._v(" Bubble Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 16;\nconst MIN_XY = -150;\nconst MAX_XY = 100;\nUtils.srand(110);\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n];\n// \n\n// \nfunction generateData() {\n var data = [];\n var i;\n\n for (i = 0; i < DATA_COUNT; ++i) {\n data.push({\n x: Utils.rand(MIN_XY, MAX_XY),\n y: Utils.rand(MIN_XY, MAX_XY),\n v: Utils.rand(0, 1000)\n });\n }\n\n return data;\n}\n\nconst data = {\n datasets: [{\n data: generateData()\n }, {\n data: generateData()\n }]\n};\n// \n\n// \nfunction channelValue(x, y, values) {\n return x < 0 && y < 0 ? values[0] : x < 0 ? values[1] : y < 0 ? values[2] : values[3];\n}\n\nfunction colorize(opaque, context) {\n var value = context.raw;\n var x = value.x / 100;\n var y = value.y / 100;\n var r = channelValue(x, y, [250, 150, 50, 0]);\n var g = channelValue(x, y, [0, 50, 150, 250]);\n var b = channelValue(x, y, [0, 150, 150, 250]);\n var a = opaque ? 1 : 0.5 * value.v / 1000;\n\n return 'rgba(' + r + ',' + g + ',' + b + ',' + a + ')';\n}\n\nconst config = {\n type: 'bubble',\n data: data,\n options: {\n aspectRatio: 1,\n plugins: {\n legend: false,\n tooltip: false,\n },\n elements: {\n point: {\n backgroundColor: colorize.bind(null, false),\n\n borderColor: colorize.bind(null, true),\n\n borderWidth: function(context) {\n return Math.min(Math.max(1, context.datasetIndex + 1), 8);\n },\n\n hoverBackgroundColor: 'transparent',\n\n hoverBorderColor: function(context) {\n return Utils.color(context.datasetIndex);\n },\n\n hoverBorderWidth: function(context) {\n return Math.round(8 * context.raw.v / 1000);\n },\n\n radius: function(context) {\n var size = context.chart.width;\n var base = Math.abs(context.raw.v) / 1000;\n return (size / 24) * base;\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/233.85dd004a.js b/docs/latest/assets/js/233.17759dbc.js similarity index 96% rename from docs/latest/assets/js/233.85dd004a.js rename to docs/latest/assets/js/233.17759dbc.js index dbcfdfa2e1..5f653edffc 100644 --- a/docs/latest/assets/js/233.85dd004a.js +++ b/docs/latest/assets/js/233.17759dbc.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[233],{560:function(n,t,a){"use strict";a.r(t);var e=a(7),o=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-chart"}},[this._v("#")]),this._v(" Line Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 12;\nUtils.srand(110);\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n];\n// \n\n// \nfunction generateData() {\n return Utils.numbers({\n count: DATA_COUNT,\n min: 0,\n max: 100\n });\n}\n\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n data: generateData()\n }]\n};\n// \n\n// \nfunction getLineColor(ctx) {\n return Utils.color(ctx.datasetIndex);\n}\n\nfunction alternatePointStyles(ctx) {\n var index = ctx.dataIndex;\n return index % 2 === 0 ? 'circle' : 'rect';\n}\n\nfunction makeHalfAsOpaque(ctx) {\n return Utils.transparentize(getLineColor(ctx));\n}\n\nfunction adjustRadiusBasedOnData(ctx) {\n var v = ctx.parsed.y;\n return v < 10 ? 5\n : v < 25 ? 7\n : v < 50 ? 9\n : v < 75 ? 11\n : 15;\n}\n\nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n legend: false,\n tooltip: true,\n },\n elements: {\n line: {\n fill: false,\n backgroundColor: getLineColor,\n borderColor: getLineColor,\n },\n point: {\n backgroundColor: getLineColor,\n hoverBackgroundColor: makeHalfAsOpaque,\n radius: adjustRadiusBasedOnData,\n pointStyle: alternatePointStyles,\n hoverRadius: 15,\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[233],{558:function(n,t,a){"use strict";a.r(t);var e=a(7),o=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-chart"}},[this._v("#")]),this._v(" Line Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 12;\nUtils.srand(110);\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n];\n// \n\n// \nfunction generateData() {\n return Utils.numbers({\n count: DATA_COUNT,\n min: 0,\n max: 100\n });\n}\n\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n data: generateData()\n }]\n};\n// \n\n// \nfunction getLineColor(ctx) {\n return Utils.color(ctx.datasetIndex);\n}\n\nfunction alternatePointStyles(ctx) {\n var index = ctx.dataIndex;\n return index % 2 === 0 ? 'circle' : 'rect';\n}\n\nfunction makeHalfAsOpaque(ctx) {\n return Utils.transparentize(getLineColor(ctx));\n}\n\nfunction adjustRadiusBasedOnData(ctx) {\n var v = ctx.parsed.y;\n return v < 10 ? 5\n : v < 25 ? 7\n : v < 50 ? 9\n : v < 75 ? 11\n : 15;\n}\n\nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n legend: false,\n tooltip: true,\n },\n elements: {\n line: {\n fill: false,\n backgroundColor: getLineColor,\n borderColor: getLineColor,\n },\n point: {\n backgroundColor: getLineColor,\n hoverBackgroundColor: makeHalfAsOpaque,\n radius: adjustRadiusBasedOnData,\n pointStyle: alternatePointStyles,\n hoverRadius: 15,\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/234.0f299b0d.js b/docs/latest/assets/js/234.10713564.js similarity index 100% rename from docs/latest/assets/js/234.0f299b0d.js rename to docs/latest/assets/js/234.10713564.js diff --git a/docs/latest/assets/js/235.206c2499.js b/docs/latest/assets/js/235.fdaefd02.js similarity index 96% rename from docs/latest/assets/js/235.206c2499.js rename to docs/latest/assets/js/235.fdaefd02.js index 72104ab494..8715297678 100644 --- a/docs/latest/assets/js/235.206c2499.js +++ b/docs/latest/assets/js/235.fdaefd02.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[235],{563:function(n,t,a){"use strict";a.r(t);var e=a(7),o=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"polar-area-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#polar-area-chart"}},[this._v("#")]),this._v(" Polar Area Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nUtils.srand(110);\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n];\n// \n\n// \nfunction generateData() {\n return Utils.numbers({\n count: DATA_COUNT,\n min: 0,\n max: 100\n });\n}\n\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n data: generateData()\n }]\n};\n// \n\n// \nfunction colorize(opaque, hover, ctx) {\n var v = ctx.raw;\n var c = v < 35 ? '#D60000'\n : v < 55 ? '#F46300'\n : v < 75 ? '#0358B6'\n : '#44DE28';\n\n var opacity = hover ? 1 - Math.abs(v / 150) - 0.2 : 1 - Math.abs(v / 150);\n\n return opaque ? c : Utils.transparentize(c, opacity);\n}\n\nfunction hoverColorize(ctx) {\n return colorize(false, true, ctx);\n}\n\nconst config = {\n type: 'polarArea',\n data: data,\n options: {\n plugins: {\n legend: false,\n tooltip: false,\n },\n elements: {\n arc: {\n backgroundColor: colorize.bind(null, false, false),\n hoverBackgroundColor: hoverColorize\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[235],{562:function(n,t,a){"use strict";a.r(t);var e=a(7),o=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"polar-area-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#polar-area-chart"}},[this._v("#")]),this._v(" Polar Area Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nUtils.srand(110);\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n];\n// \n\n// \nfunction generateData() {\n return Utils.numbers({\n count: DATA_COUNT,\n min: 0,\n max: 100\n });\n}\n\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n data: generateData()\n }]\n};\n// \n\n// \nfunction colorize(opaque, hover, ctx) {\n var v = ctx.raw;\n var c = v < 35 ? '#D60000'\n : v < 55 ? '#F46300'\n : v < 75 ? '#0358B6'\n : '#44DE28';\n\n var opacity = hover ? 1 - Math.abs(v / 150) - 0.2 : 1 - Math.abs(v / 150);\n\n return opaque ? c : Utils.transparentize(c, opacity);\n}\n\nfunction hoverColorize(ctx) {\n return colorize(false, true, ctx);\n}\n\nconst config = {\n type: 'polarArea',\n data: data,\n options: {\n plugins: {\n legend: false,\n tooltip: false,\n },\n elements: {\n arc: {\n backgroundColor: colorize.bind(null, false, false),\n hoverBackgroundColor: hoverColorize\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/236.ab32ee86.js b/docs/latest/assets/js/236.8449bd12.js similarity index 100% rename from docs/latest/assets/js/236.ab32ee86.js rename to docs/latest/assets/js/236.8449bd12.js diff --git a/docs/latest/assets/js/237.a3313040.js b/docs/latest/assets/js/237.2b8ab339.js similarity index 96% rename from docs/latest/assets/js/237.a3313040.js rename to docs/latest/assets/js/237.2b8ab339.js index 54f75d945a..4282f8e1db 100644 --- a/docs/latest/assets/js/237.a3313040.js +++ b/docs/latest/assets/js/237.2b8ab339.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[237],{562:function(n,t,e){"use strict";e.r(t);var a=e(7),i=Object(a.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"alignment"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#alignment"}},[this._v("#")]),this._v(" Alignment")]),this._v(" "),t("p",[this._v("This sample show how to configure the alignment of the chart title")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Title Alignment: start',\n handler(chart) {\n chart.options.plugins.title.align = 'start';\n chart.update();\n }\n },\n {\n name: 'Title Alignment: center (default)',\n handler(chart) {\n chart.options.plugins.title.align = 'center';\n chart.update();\n }\n },\n {\n name: 'Title Alignment: end',\n handler(chart) {\n chart.options.plugins.title.align = 'end';\n chart.update();\n }\n },\n];\n// \n\n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n title: {\n display: true,\n text: 'Chart Title',\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[237],{560:function(n,t,e){"use strict";e.r(t);var a=e(7),i=Object(a.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"alignment"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#alignment"}},[this._v("#")]),this._v(" Alignment")]),this._v(" "),t("p",[this._v("This sample show how to configure the alignment of the chart title")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Title Alignment: start',\n handler(chart) {\n chart.options.plugins.title.align = 'start';\n chart.update();\n }\n },\n {\n name: 'Title Alignment: center (default)',\n handler(chart) {\n chart.options.plugins.title.align = 'center';\n chart.update();\n }\n },\n {\n name: 'Title Alignment: end',\n handler(chart) {\n chart.options.plugins.title.align = 'end';\n chart.update();\n }\n },\n];\n// \n\n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n title: {\n display: true,\n text: 'Chart Title',\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/238.05f28f1b.js b/docs/latest/assets/js/238.da46c0de.js similarity index 96% rename from docs/latest/assets/js/238.05f28f1b.js rename to docs/latest/assets/js/238.da46c0de.js index 9ce97f29df..716cb4b519 100644 --- a/docs/latest/assets/js/238.05f28f1b.js +++ b/docs/latest/assets/js/238.da46c0de.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[238],{564:function(t,n,o){"use strict";o.r(n);var s=o(7),e=Object(s.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"custom-tooltip-content"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#custom-tooltip-content"}},[this._v("#")]),this._v(" Custom Tooltip Content")]),this._v(" "),n("p",[this._v("This sample shows how to use the tooltip callbacks to add additional content to the tooltip.")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst footer = (tooltipItems) => {\n let sum = 0;\n\n tooltipItems.forEach(function(tooltipItem) {\n sum += tooltipItem.parsed.y;\n });\n return 'Sum: ' + sum;\n};\n\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100, decimals: 0};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n interaction: {\n intersect: false,\n mode: 'index',\n },\n plugins: {\n tooltip: {\n callbacks: {\n footer: footer,\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[238],{563:function(t,n,o){"use strict";o.r(n);var s=o(7),e=Object(s.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"custom-tooltip-content"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#custom-tooltip-content"}},[this._v("#")]),this._v(" Custom Tooltip Content")]),this._v(" "),n("p",[this._v("This sample shows how to use the tooltip callbacks to add additional content to the tooltip.")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst footer = (tooltipItems) => {\n let sum = 0;\n\n tooltipItems.forEach(function(tooltipItem) {\n sum += tooltipItem.parsed.y;\n });\n return 'Sum: ' + sum;\n};\n\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100, decimals: 0};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n interaction: {\n intersect: false,\n mode: 'index',\n },\n plugins: {\n tooltip: {\n callbacks: {\n footer: footer,\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=e.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/239.257c2ec1.js b/docs/latest/assets/js/239.19ba83c5.js similarity index 98% rename from docs/latest/assets/js/239.257c2ec1.js rename to docs/latest/assets/js/239.19ba83c5.js index ec7216b972..4b2861790e 100644 --- a/docs/latest/assets/js/239.257c2ec1.js +++ b/docs/latest/assets/js/239.19ba83c5.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[239],{565:function(t,n,e){"use strict";e.r(n);var o=e(7),l=Object(o.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"external-html-tooltip"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#external-html-tooltip"}},[this._v("#")]),this._v(" External HTML Tooltip")]),this._v(" "),n("p",[this._v("This sample shows how to use the external tooltip functionality to generate an HTML tooltip.")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst getOrCreateTooltip = (chart) => {\n let tooltipEl = chart.canvas.parentNode.querySelector('div');\n\n if (!tooltipEl) {\n tooltipEl = document.createElement('div');\n tooltipEl.style.background = 'rgba(0, 0, 0, 0.7)';\n tooltipEl.style.borderRadius = '3px';\n tooltipEl.style.color = 'white';\n tooltipEl.style.opacity = 1;\n tooltipEl.style.pointerEvents = 'none';\n tooltipEl.style.position = 'absolute';\n tooltipEl.style.transform = 'translate(-50%, 0)';\n tooltipEl.style.transition = 'all .1s ease';\n\n const table = document.createElement('table');\n table.style.margin = '0px';\n\n tooltipEl.appendChild(table);\n chart.canvas.parentNode.appendChild(tooltipEl);\n }\n\n return tooltipEl;\n};\n\nconst externalTooltipHandler = (context) => {\n // Tooltip Element\n const {chart, tooltip} = context;\n const tooltipEl = getOrCreateTooltip(chart);\n\n // Hide if no tooltip\n if (tooltip.opacity === 0) {\n tooltipEl.style.opacity = 0;\n return;\n }\n\n // Set Text\n if (tooltip.body) {\n const titleLines = tooltip.title || [];\n const bodyLines = tooltip.body.map(b => b.lines);\n\n const tableHead = document.createElement('thead');\n\n titleLines.forEach(title => {\n const tr = document.createElement('tr');\n tr.style.borderWidth = 0;\n\n const th = document.createElement('th');\n th.style.borderWidth = 0;\n const text = document.createTextNode(title);\n\n th.appendChild(text);\n tr.appendChild(th);\n tableHead.appendChild(tr);\n });\n\n const tableBody = document.createElement('tbody');\n bodyLines.forEach((body, i) => {\n const colors = tooltip.labelColors[i];\n\n const span = document.createElement('span');\n span.style.background = colors.backgroundColor;\n span.style.borderColor = colors.borderColor;\n span.style.borderWidth = '2px';\n span.style.marginRight = '10px';\n span.style.height = '10px';\n span.style.width = '10px';\n span.style.display = 'inline-block';\n\n const tr = document.createElement('tr');\n tr.style.backgroundColor = 'inherit';\n tr.style.borderWidth = 0;\n\n const td = document.createElement('td');\n td.style.borderWidth = 0;\n\n const text = document.createTextNode(body);\n\n td.appendChild(span);\n td.appendChild(text);\n tr.appendChild(td);\n tableBody.appendChild(tr);\n });\n\n const tableRoot = tooltipEl.querySelector('table');\n\n // Remove old children\n while (tableRoot.firstChild) {\n tableRoot.firstChild.remove();\n }\n\n // Add new children\n tableRoot.appendChild(tableHead);\n tableRoot.appendChild(tableBody);\n }\n\n const {offsetLeft: positionX, offsetTop: positionY} = chart.canvas;\n\n // Display, position, and set styles for font\n tooltipEl.style.opacity = 1;\n tooltipEl.style.left = positionX + tooltip.caretX + 'px';\n tooltipEl.style.top = positionY + tooltip.caretY + 'px';\n tooltipEl.style.font = tooltip.options.bodyFont.string;\n tooltipEl.style.padding = tooltip.padding + 'px ' + tooltip.padding + 'px';\n};\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100, decimals: 0};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n interaction: {\n mode: 'index',\n intersect: false,\n },\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Line Chart - External Tooltips'\n },\n tooltip: {\n enabled: false,\n position: 'nearest',\n external: externalTooltipHandler\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=l.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[239],{564:function(t,n,e){"use strict";e.r(n);var o=e(7),l=Object(o.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"external-html-tooltip"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#external-html-tooltip"}},[this._v("#")]),this._v(" External HTML Tooltip")]),this._v(" "),n("p",[this._v("This sample shows how to use the external tooltip functionality to generate an HTML tooltip.")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst getOrCreateTooltip = (chart) => {\n let tooltipEl = chart.canvas.parentNode.querySelector('div');\n\n if (!tooltipEl) {\n tooltipEl = document.createElement('div');\n tooltipEl.style.background = 'rgba(0, 0, 0, 0.7)';\n tooltipEl.style.borderRadius = '3px';\n tooltipEl.style.color = 'white';\n tooltipEl.style.opacity = 1;\n tooltipEl.style.pointerEvents = 'none';\n tooltipEl.style.position = 'absolute';\n tooltipEl.style.transform = 'translate(-50%, 0)';\n tooltipEl.style.transition = 'all .1s ease';\n\n const table = document.createElement('table');\n table.style.margin = '0px';\n\n tooltipEl.appendChild(table);\n chart.canvas.parentNode.appendChild(tooltipEl);\n }\n\n return tooltipEl;\n};\n\nconst externalTooltipHandler = (context) => {\n // Tooltip Element\n const {chart, tooltip} = context;\n const tooltipEl = getOrCreateTooltip(chart);\n\n // Hide if no tooltip\n if (tooltip.opacity === 0) {\n tooltipEl.style.opacity = 0;\n return;\n }\n\n // Set Text\n if (tooltip.body) {\n const titleLines = tooltip.title || [];\n const bodyLines = tooltip.body.map(b => b.lines);\n\n const tableHead = document.createElement('thead');\n\n titleLines.forEach(title => {\n const tr = document.createElement('tr');\n tr.style.borderWidth = 0;\n\n const th = document.createElement('th');\n th.style.borderWidth = 0;\n const text = document.createTextNode(title);\n\n th.appendChild(text);\n tr.appendChild(th);\n tableHead.appendChild(tr);\n });\n\n const tableBody = document.createElement('tbody');\n bodyLines.forEach((body, i) => {\n const colors = tooltip.labelColors[i];\n\n const span = document.createElement('span');\n span.style.background = colors.backgroundColor;\n span.style.borderColor = colors.borderColor;\n span.style.borderWidth = '2px';\n span.style.marginRight = '10px';\n span.style.height = '10px';\n span.style.width = '10px';\n span.style.display = 'inline-block';\n\n const tr = document.createElement('tr');\n tr.style.backgroundColor = 'inherit';\n tr.style.borderWidth = 0;\n\n const td = document.createElement('td');\n td.style.borderWidth = 0;\n\n const text = document.createTextNode(body);\n\n td.appendChild(span);\n td.appendChild(text);\n tr.appendChild(td);\n tableBody.appendChild(tr);\n });\n\n const tableRoot = tooltipEl.querySelector('table');\n\n // Remove old children\n while (tableRoot.firstChild) {\n tableRoot.firstChild.remove();\n }\n\n // Add new children\n tableRoot.appendChild(tableHead);\n tableRoot.appendChild(tableBody);\n }\n\n const {offsetLeft: positionX, offsetTop: positionY} = chart.canvas;\n\n // Display, position, and set styles for font\n tooltipEl.style.opacity = 1;\n tooltipEl.style.left = positionX + tooltip.caretX + 'px';\n tooltipEl.style.top = positionY + tooltip.caretY + 'px';\n tooltipEl.style.font = tooltip.options.bodyFont.string;\n tooltipEl.style.padding = tooltip.padding + 'px ' + tooltip.padding + 'px';\n};\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100, decimals: 0};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n interaction: {\n mode: 'index',\n intersect: false,\n },\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Line Chart - External Tooltips'\n },\n tooltip: {\n enabled: false,\n position: 'nearest',\n external: externalTooltipHandler\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=l.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/24.b3cb60bf.js b/docs/latest/assets/js/24.b3cb60bf.js deleted file mode 100644 index 35c2ba9d10..0000000000 --- a/docs/latest/assets/js/24.b3cb60bf.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{351:function(t,e,r){"use strict";r.r(e);var n=r(7),s=Object(n.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-arcborderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-arcborderradius"}},[t._v("#")]),t._v(" Interface: ArcBorderRadius")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"innerend"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#innerend"}},[t._v("#")]),t._v(" innerEnd")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("innerEnd")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1617",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1617"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"innerstart"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#innerstart"}},[t._v("#")]),t._v(" innerStart")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("innerStart")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1616",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1616"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"outerend"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#outerend"}},[t._v("#")]),t._v(" outerEnd")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("outerEnd")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1615",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1615"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"outerstart"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#outerstart"}},[t._v("#")]),t._v(" outerStart")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("outerStart")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1614",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1614"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/24.d7879160.js b/docs/latest/assets/js/24.d7879160.js new file mode 100644 index 0000000000..6f2b5476d8 --- /dev/null +++ b/docs/latest/assets/js/24.d7879160.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{348:function(e,t,r){"use strict";r.r(t);var n=r(7),s=Object(n.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-arcborderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-arcborderradius"}},[e._v("#")]),e._v(" Interface: ArcBorderRadius")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"innerend"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#innerend"}},[e._v("#")]),e._v(" innerEnd")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("innerEnd")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1617",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1617"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"innerstart"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#innerstart"}},[e._v("#")]),e._v(" innerStart")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("innerStart")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1616",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1616"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"outerend"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#outerend"}},[e._v("#")]),e._v(" outerEnd")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("outerEnd")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1615",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1615"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"outerstart"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#outerstart"}},[e._v("#")]),e._v(" outerStart")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("outerStart")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1614",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1614"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/240.e4073758.js b/docs/latest/assets/js/240.96c3a582.js similarity index 97% rename from docs/latest/assets/js/240.e4073758.js rename to docs/latest/assets/js/240.96c3a582.js index 50aa45e93b..df4967f0e3 100644 --- a/docs/latest/assets/js/240.e4073758.js +++ b/docs/latest/assets/js/240.96c3a582.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[240],{566:function(n,t,e){"use strict";e.r(t);var a=e(7),o=Object(a.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"interaction-modes"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interaction-modes"}},[this._v("#")]),this._v(" Interaction Modes")]),this._v(" "),t("p",[this._v("This sample shows how to use the tooltip position mode setting.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Mode: index',\n handler(chart) {\n chart.options.interaction.axis = 'xy';\n chart.options.interaction.mode = 'index';\n chart.update();\n }\n },\n {\n name: 'Mode: dataset',\n handler(chart) {\n chart.options.interaction.axis = 'xy';\n chart.options.interaction.mode = 'dataset';\n chart.update();\n }\n },\n {\n name: 'Mode: point',\n handler(chart) {\n chart.options.interaction.axis = 'xy';\n chart.options.interaction.mode = 'point';\n chart.update();\n }\n },\n {\n name: 'Mode: nearest',\n handler(chart) {\n chart.options.interaction.axis = 'xy';\n chart.options.interaction.mode = 'nearest';\n chart.update();\n }\n },\n {\n name: 'Mode: x',\n handler(chart) {\n chart.options.interaction.mode = 'x';\n chart.update();\n }\n },\n {\n name: 'Mode: y',\n handler(chart) {\n chart.options.interaction.mode = 'y';\n chart.update();\n }\n },\n {\n name: 'Toggle Intersect',\n handler(chart) {\n chart.options.interaction.intersect = !chart.options.interaction.intersect;\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n interaction: {\n intersect: false,\n mode: 'index',\n },\n plugins: {\n title: {\n display: true,\n text: (ctx) => {\n const {intersect, mode} = ctx.chart.options.interaction;\n return 'Mode: ' + mode + ', intersect: ' + intersect;\n }\n },\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[240],{565:function(n,t,e){"use strict";e.r(t);var a=e(7),o=Object(a.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"interaction-modes"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interaction-modes"}},[this._v("#")]),this._v(" Interaction Modes")]),this._v(" "),t("p",[this._v("This sample shows how to use the tooltip position mode setting.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Mode: index',\n handler(chart) {\n chart.options.interaction.axis = 'xy';\n chart.options.interaction.mode = 'index';\n chart.update();\n }\n },\n {\n name: 'Mode: dataset',\n handler(chart) {\n chart.options.interaction.axis = 'xy';\n chart.options.interaction.mode = 'dataset';\n chart.update();\n }\n },\n {\n name: 'Mode: point',\n handler(chart) {\n chart.options.interaction.axis = 'xy';\n chart.options.interaction.mode = 'point';\n chart.update();\n }\n },\n {\n name: 'Mode: nearest',\n handler(chart) {\n chart.options.interaction.axis = 'xy';\n chart.options.interaction.mode = 'nearest';\n chart.update();\n }\n },\n {\n name: 'Mode: x',\n handler(chart) {\n chart.options.interaction.mode = 'x';\n chart.update();\n }\n },\n {\n name: 'Mode: y',\n handler(chart) {\n chart.options.interaction.mode = 'y';\n chart.update();\n }\n },\n {\n name: 'Toggle Intersect',\n handler(chart) {\n chart.options.interaction.intersect = !chart.options.interaction.intersect;\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n interaction: {\n intersect: false,\n mode: 'index',\n },\n plugins: {\n title: {\n display: true,\n text: (ctx) => {\n const {intersect, mode} = ctx.chart.options.interaction;\n return 'Mode: ' + mode + ', intersect: ' + intersect;\n }\n },\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/241.223589aa.js b/docs/latest/assets/js/241.898273af.js similarity index 97% rename from docs/latest/assets/js/241.223589aa.js rename to docs/latest/assets/js/241.898273af.js index 058908c519..5c60d4c170 100644 --- a/docs/latest/assets/js/241.223589aa.js +++ b/docs/latest/assets/js/241.898273af.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[241],{567:function(n,t,o){"use strict";o.r(t);var e=o(7),i=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"point-style"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#point-style"}},[this._v("#")]),this._v(" Point Style")]),this._v(" "),t("p",[this._v("This sample shows how to use the dataset point style in the tooltip instead of a rectangle to identify each dataset.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Toggle Tooltip Point Style',\n handler(chart) {\n chart.options.plugins.tooltip.usePointStyle = !chart.options.plugins.tooltip.usePointStyle;\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Triangles',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n pointStyle: 'triangle',\n pointRadius: 6,\n },\n {\n label: 'Circles',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n pointStyle: 'circle',\n pointRadius: 6,\n },\n {\n label: 'Stars',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.green,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.green, 0.5),\n pointStyle: 'star',\n pointRadius: 6,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n interaction: {\n mode: 'index',\n },\n plugins: {\n title: {\n display: true,\n text: (ctx) => 'Tooltip point style: ' + ctx.chart.options.plugins.tooltip.usePointStyle,\n },\n tooltip: {\n usePointStyle: true,\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[241],{566:function(n,t,o){"use strict";o.r(t);var e=o(7),i=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"point-style"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#point-style"}},[this._v("#")]),this._v(" Point Style")]),this._v(" "),t("p",[this._v("This sample shows how to use the dataset point style in the tooltip instead of a rectangle to identify each dataset.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Toggle Tooltip Point Style',\n handler(chart) {\n chart.options.plugins.tooltip.usePointStyle = !chart.options.plugins.tooltip.usePointStyle;\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Triangles',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n pointStyle: 'triangle',\n pointRadius: 6,\n },\n {\n label: 'Circles',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n pointStyle: 'circle',\n pointRadius: 6,\n },\n {\n label: 'Stars',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.green,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.green, 0.5),\n pointStyle: 'star',\n pointRadius: 6,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n interaction: {\n mode: 'index',\n },\n plugins: {\n title: {\n display: true,\n text: (ctx) => 'Tooltip point style: ' + ctx.chart.options.plugins.tooltip.usePointStyle,\n },\n tooltip: {\n usePointStyle: true,\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/242.464e4f88.js b/docs/latest/assets/js/242.2ce1e199.js similarity index 97% rename from docs/latest/assets/js/242.464e4f88.js rename to docs/latest/assets/js/242.2ce1e199.js index adbee1b125..5949eb409d 100644 --- a/docs/latest/assets/js/242.464e4f88.js +++ b/docs/latest/assets/js/242.2ce1e199.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[242],{568:function(n,t,o){"use strict";o.r(t);var s=o(7),i=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"position"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[this._v("#")]),this._v(" Position")]),this._v(" "),t("p",[this._v("This sample shows how to use the tooltip position mode setting.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Position: average',\n handler(chart) {\n chart.options.plugins.tooltip.position = 'average';\n chart.update();\n }\n },\n {\n name: 'Position: nearest',\n handler(chart) {\n chart.options.plugins.tooltip.position = 'nearest';\n chart.update();\n }\n },\n {\n name: 'Position: bottom (custom)',\n handler(chart) {\n chart.options.plugins.tooltip.position = 'bottom';\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n },\n ]\n};\n// \n\n// \n// Create a custom tooltip positioner to put at the bottom of the chart area\ncomponents.Tooltip.positioners.bottom = function(items) {\n const pos = components.Tooltip.positioners.average(items);\n\n // Happens when nothing is found\n if (pos === false) {\n return false;\n }\n\n const chart = this._chart;\n\n return {\n x: pos.x,\n y: chart.chartArea.bottom,\n };\n};\n\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n interaction: {\n intersect: false,\n mode: 'index',\n },\n plugins: {\n title: {\n display: true,\n text: (ctx) => 'Tooltip position mode: ' + ctx.chart.options.plugins.tooltip.position,\n },\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[242],{567:function(n,t,o){"use strict";o.r(t);var s=o(7),i=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"position"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[this._v("#")]),this._v(" Position")]),this._v(" "),t("p",[this._v("This sample shows how to use the tooltip position mode setting.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Position: average',\n handler(chart) {\n chart.options.plugins.tooltip.position = 'average';\n chart.update();\n }\n },\n {\n name: 'Position: nearest',\n handler(chart) {\n chart.options.plugins.tooltip.position = 'nearest';\n chart.update();\n }\n },\n {\n name: 'Position: bottom (custom)',\n handler(chart) {\n chart.options.plugins.tooltip.position = 'bottom';\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n },\n ]\n};\n// \n\n// \n// Create a custom tooltip positioner to put at the bottom of the chart area\ncomponents.Tooltip.positioners.bottom = function(items) {\n const pos = components.Tooltip.positioners.average(items);\n\n // Happens when nothing is found\n if (pos === false) {\n return false;\n }\n\n const chart = this._chart;\n\n return {\n x: pos.x,\n y: chart.chartArea.bottom,\n };\n};\n\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n interaction: {\n intersect: false,\n mode: 'index',\n },\n plugins: {\n title: {\n display: true,\n text: (ctx) => 'Tooltip position mode: ' + ctx.chart.options.plugins.tooltip.position,\n },\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/25.49354505.js b/docs/latest/assets/js/25.49354505.js deleted file mode 100644 index 6863b2dd55..0000000000 --- a/docs/latest/assets/js/25.49354505.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{352:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-arcelement-t-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-arcelement-t-o"}},[t._v("#")]),t._v(" Interface: ArcElement")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/arcprops.html"}},[a("em",[t._v("ArcProps")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/arcprops.html"}},[a("em",[t._v("ArcProps")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[a("em",[t._v("ArcOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[a("em",[t._v("ArcOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("")],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[a("em",[t._v("VisualElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("ArcElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1577",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1577"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcenterpoint"}},[t._v("#")]),t._v(" getCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getCenterPoint")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1581"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": keyof T[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): T")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("keyof T[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getrange"}},[t._v("#")]),t._v(" getRange")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getRange")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inrange"}},[t._v("#")]),t._v(" inRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1578",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1578"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inxrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inxrange"}},[t._v("#")]),t._v(" inXRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inXRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1579",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1579"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inyrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inyrange"}},[t._v("#")]),t._v(" inYRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inYRange")]),t._v("("),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1580"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/25.5f549319.js b/docs/latest/assets/js/25.5f549319.js new file mode 100644 index 0000000000..25648cc647 --- /dev/null +++ b/docs/latest/assets/js/25.5f549319.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{350:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-arcelement-t-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-arcelement-t-o"}},[t._v("#")]),t._v(" Interface: ArcElement")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/arcprops.html"}},[a("em",[t._v("ArcProps")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/arcprops.html"}},[a("em",[t._v("ArcProps")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[a("em",[t._v("ArcOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[a("em",[t._v("ArcOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("")],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[a("em",[t._v("VisualElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("ArcElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1577",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1577"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcenterpoint"}},[t._v("#")]),t._v(" getCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getCenterPoint")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1581"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": keyof T[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): T")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("keyof T[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getrange"}},[t._v("#")]),t._v(" getRange")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getRange")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inrange"}},[t._v("#")]),t._v(" inRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1578",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1578"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inxrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inxrange"}},[t._v("#")]),t._v(" inXRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inXRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1579",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1579"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inyrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inyrange"}},[t._v("#")]),t._v(" inYRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inYRange")]),t._v("("),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1580"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/26.353585cd.js b/docs/latest/assets/js/26.353585cd.js new file mode 100644 index 0000000000..e750e79b07 --- /dev/null +++ b/docs/latest/assets/js/26.353585cd.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{349:function(r,e,o){"use strict";o.r(e);var t=o(7),n=Object(t.a)({},(function(){var r=this,e=r.$createElement,o=r._self._c||e;return o("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[o("h1",{attrs:{id:"interface-archoveroptions"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#interface-archoveroptions"}},[r._v("#")]),r._v(" Interface: ArcHoverOptions")]),r._v(" "),o("h2",{attrs:{id:"hierarchy"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[r._v("#")]),r._v(" Hierarchy")]),r._v(" "),o("ul",[o("li",[o("p",[o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[o("em",[r._v("CommonHoverOptions")])])],1),r._v(" "),o("p",[r._v("↳ "),o("strong",[r._v("ArcHoverOptions")])])])]),r._v(" "),o("h2",{attrs:{id:"properties"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),o("h3",{attrs:{id:"hoverbackgroundcolor"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[r._v("#")]),r._v(" hoverBackgroundColor")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverBackgroundColor")]),r._v(": "),o("RouterLink",{attrs:{to:"/api/#color"}},[o("em",[r._v("Color")])])],1),r._v(" "),o("p",[r._v("Inherited from: "),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbackgroundcolor"}},[r._v("hoverBackgroundColor")])],1),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1594"),o("OutboundLink")],1)]),r._v(" "),o("hr"),r._v(" "),o("h3",{attrs:{id:"hoverbordercolor"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[r._v("#")]),r._v(" hoverBorderColor")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverBorderColor")]),r._v(": "),o("RouterLink",{attrs:{to:"/api/#color"}},[o("em",[r._v("Color")])])],1),r._v(" "),o("p",[r._v("Inherited from: "),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbordercolor"}},[r._v("hoverBorderColor")])],1),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1593"),o("OutboundLink")],1)]),r._v(" "),o("hr"),r._v(" "),o("h3",{attrs:{id:"hoverborderwidth"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[r._v("#")]),r._v(" hoverBorderWidth")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverBorderWidth")]),r._v(": "),o("em",[r._v("number")])]),r._v(" "),o("p",[r._v("Inherited from: "),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverborderwidth"}},[r._v("hoverBorderWidth")])],1),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1592"),o("OutboundLink")],1)]),r._v(" "),o("hr"),r._v(" "),o("h3",{attrs:{id:"hoveroffset"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoveroffset"}},[r._v("#")]),r._v(" hoverOffset")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverOffset")]),r._v(": "),o("em",[r._v("number")])]),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1637",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1637"),o("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/26.5cd11368.js b/docs/latest/assets/js/26.5cd11368.js deleted file mode 100644 index 9b348234f3..0000000000 --- a/docs/latest/assets/js/26.5cd11368.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{353:function(r,o,e){"use strict";e.r(o);var t=e(7),s=Object(t.a)({},(function(){var r=this,o=r.$createElement,e=r._self._c||o;return e("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[e("h1",{attrs:{id:"interface-archoveroptions"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#interface-archoveroptions"}},[r._v("#")]),r._v(" Interface: ArcHoverOptions")]),r._v(" "),e("h2",{attrs:{id:"hierarchy"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[r._v("#")]),r._v(" Hierarchy")]),r._v(" "),e("ul",[e("li",[e("p",[e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[e("em",[r._v("CommonHoverOptions")])])],1),r._v(" "),e("p",[r._v("↳ "),e("strong",[r._v("ArcHoverOptions")])])])]),r._v(" "),e("h2",{attrs:{id:"properties"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),e("h3",{attrs:{id:"hoverbackgroundcolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[r._v("#")]),r._v(" hoverBackgroundColor")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("hoverBackgroundColor")]),r._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[r._v("Color")])])],1),r._v(" "),e("p",[r._v("Inherited from: "),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbackgroundcolor"}},[r._v("hoverBackgroundColor")])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1594"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"hoverbordercolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[r._v("#")]),r._v(" hoverBorderColor")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("hoverBorderColor")]),r._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[r._v("Color")])])],1),r._v(" "),e("p",[r._v("Inherited from: "),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbordercolor"}},[r._v("hoverBorderColor")])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1593"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"hoverborderwidth"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[r._v("#")]),r._v(" hoverBorderWidth")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("hoverBorderWidth")]),r._v(": "),e("em",[r._v("number")])]),r._v(" "),e("p",[r._v("Inherited from: "),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverborderwidth"}},[r._v("hoverBorderWidth")])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1592"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"hoveroffset"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hoveroffset"}},[r._v("#")]),r._v(" hoverOffset")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("hoverOffset")]),r._v(": "),e("em",[r._v("number")])]),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1637",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1637"),e("OutboundLink")],1)])])}),[],!1,null,null,null);o.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/27.07997596.js b/docs/latest/assets/js/27.07997596.js new file mode 100644 index 0000000000..9490977d98 --- /dev/null +++ b/docs/latest/assets/js/27.07997596.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{351:function(e,r,t){"use strict";t.r(r);var o=t(7),n=Object(o.a)({},(function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"interface-arcoptions"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interface-arcoptions"}},[e._v("#")]),e._v(" Interface: ArcOptions")]),e._v(" "),t("h2",{attrs:{id:"hierarchy"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[e._v("#")]),e._v(" Hierarchy")]),e._v(" "),t("ul",[t("li",[t("p",[t("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t("em",[e._v("CommonElementOptions")])])],1),e._v(" "),t("p",[e._v("↳ "),t("strong",[e._v("ArcOptions")])])])]),e._v(" "),t("h2",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),t("h3",{attrs:{id:"backgroundcolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[e._v("#")]),e._v(" backgroundColor")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("backgroundColor")]),e._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[e._v("Color")])])],1),e._v(" "),t("p",[e._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[e._v("CommonElementOptions")]),e._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#backgroundcolor"}},[e._v("backgroundColor")])],1),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1588"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"borderalign"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#borderalign"}},[e._v("#")]),e._v(" borderAlign")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("borderAlign")]),e._v(": "),t("em",[e._v("center")]),e._v(" | "),t("em",[e._v("inner")])]),e._v(" "),t("p",[e._v("Arc stroke alignment.")]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1624",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1624"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"bordercolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[e._v("#")]),e._v(" borderColor")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("borderColor")]),e._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[e._v("Color")])])],1),e._v(" "),t("p",[e._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[e._v("CommonElementOptions")]),e._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#bordercolor"}},[e._v("borderColor")])],1),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1587"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"borderradius"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[e._v("#")]),e._v(" borderRadius")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("borderRadius")]),e._v(": "),t("em",[e._v("number")]),e._v(" | "),t("RouterLink",{attrs:{to:"/api/interfaces/arcborderradius.html"}},[t("em",[e._v("ArcBorderRadius")])])],1),e._v(" "),t("p",[e._v("Sets the border radius for arcs")]),e._v(" "),t("p",[t("strong",[t("code",[e._v("default")])]),e._v(" 0")]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1633",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1633"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"borderwidth"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[e._v("#")]),e._v(" borderWidth")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("borderWidth")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[e._v("CommonElementOptions")]),e._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#borderwidth"}},[e._v("borderWidth")])],1),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1586"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"offset"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#offset"}},[e._v("#")]),e._v(" offset")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("offset")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Arc offset (in pixels).")]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1628",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1628"),t("OutboundLink")],1)])])}),[],!1,null,null,null);r.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/27.f3557547.js b/docs/latest/assets/js/27.f3557547.js deleted file mode 100644 index 39e21a5aa0..0000000000 --- a/docs/latest/assets/js/27.f3557547.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{354:function(r,t,e){"use strict";e.r(t);var o=e(7),n=Object(o.a)({},(function(){var r=this,t=r.$createElement,e=r._self._c||t;return e("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[e("h1",{attrs:{id:"interface-arcoptions"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#interface-arcoptions"}},[r._v("#")]),r._v(" Interface: ArcOptions")]),r._v(" "),e("h2",{attrs:{id:"hierarchy"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[r._v("#")]),r._v(" Hierarchy")]),r._v(" "),e("ul",[e("li",[e("p",[e("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[e("em",[r._v("CommonElementOptions")])])],1),r._v(" "),e("p",[r._v("↳ "),e("strong",[r._v("ArcOptions")])])])]),r._v(" "),e("h2",{attrs:{id:"properties"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),e("h3",{attrs:{id:"backgroundcolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[r._v("#")]),r._v(" backgroundColor")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("backgroundColor")]),r._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[r._v("Color")])])],1),r._v(" "),e("p",[r._v("Inherited from: "),e("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[r._v("CommonElementOptions")]),r._v("."),e("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#backgroundcolor"}},[r._v("backgroundColor")])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1588"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"borderalign"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#borderalign"}},[r._v("#")]),r._v(" borderAlign")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("borderAlign")]),r._v(": "),e("em",[r._v("center")]),r._v(" | "),e("em",[r._v("inner")])]),r._v(" "),e("p",[r._v("Arc stroke alignment.")]),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1624",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1624"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"bordercolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[r._v("#")]),r._v(" borderColor")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("borderColor")]),r._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[r._v("Color")])])],1),r._v(" "),e("p",[r._v("Inherited from: "),e("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[r._v("CommonElementOptions")]),r._v("."),e("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#bordercolor"}},[r._v("borderColor")])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1587"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"borderradius"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[r._v("#")]),r._v(" borderRadius")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("borderRadius")]),r._v(": "),e("em",[r._v("number")]),r._v(" | "),e("RouterLink",{attrs:{to:"/api/interfaces/arcborderradius.html"}},[e("em",[r._v("ArcBorderRadius")])])],1),r._v(" "),e("p",[r._v("Sets the border radius for arcs")]),r._v(" "),e("p",[e("strong",[e("code",[r._v("default")])]),r._v(" 0")]),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1633",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1633"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"borderwidth"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[r._v("#")]),r._v(" borderWidth")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("borderWidth")]),r._v(": "),e("em",[r._v("number")])]),r._v(" "),e("p",[r._v("Inherited from: "),e("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[r._v("CommonElementOptions")]),r._v("."),e("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#borderwidth"}},[r._v("borderWidth")])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1586"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"offset"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#offset"}},[r._v("#")]),r._v(" offset")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("offset")]),r._v(": "),e("em",[r._v("number")])]),r._v(" "),e("p",[r._v("Arc offset (in pixels).")]),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1628",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1628"),e("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/28.97e1e48f.js b/docs/latest/assets/js/28.97e1e48f.js deleted file mode 100644 index 98558eac3e..0000000000 --- a/docs/latest/assets/js/28.97e1e48f.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{355:function(e,r,t){"use strict";t.r(r);var s=t(7),n=Object(s.a)({},(function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"interface-arcprops"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interface-arcprops"}},[e._v("#")]),e._v(" Interface: ArcProps")]),e._v(" "),t("h2",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),t("h3",{attrs:{id:"circumference"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#circumference"}},[e._v("#")]),e._v(" circumference")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("circumference")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1610",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1610"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"endangle"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#endangle"}},[e._v("#")]),e._v(" endAngle")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("endAngle")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1607",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1607"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"innerradius"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#innerradius"}},[e._v("#")]),e._v(" innerRadius")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("innerRadius")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1608",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1608"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"outerradius"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#outerradius"}},[e._v("#")]),e._v(" outerRadius")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("outerRadius")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1609",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1609"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"startangle"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#startangle"}},[e._v("#")]),e._v(" startAngle")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("startAngle")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1606",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1606"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"x"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[e._v("#")]),e._v(" x")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("x")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1604",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1604"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"y"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[e._v("#")]),e._v(" y")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("y")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1605",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1605"),t("OutboundLink")],1)])])}),[],!1,null,null,null);r.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/28.b0c8a776.js b/docs/latest/assets/js/28.b0c8a776.js new file mode 100644 index 0000000000..434232095a --- /dev/null +++ b/docs/latest/assets/js/28.b0c8a776.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{352:function(e,r,t){"use strict";t.r(r);var s=t(7),n=Object(s.a)({},(function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"interface-arcprops"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interface-arcprops"}},[e._v("#")]),e._v(" Interface: ArcProps")]),e._v(" "),t("h2",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),t("h3",{attrs:{id:"circumference"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#circumference"}},[e._v("#")]),e._v(" circumference")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("circumference")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1610",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1610"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"endangle"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#endangle"}},[e._v("#")]),e._v(" endAngle")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("endAngle")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1607",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1607"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"innerradius"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#innerradius"}},[e._v("#")]),e._v(" innerRadius")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("innerRadius")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1608",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1608"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"outerradius"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#outerradius"}},[e._v("#")]),e._v(" outerRadius")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("outerRadius")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1609",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1609"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"startangle"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#startangle"}},[e._v("#")]),e._v(" startAngle")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("startAngle")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1606",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1606"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"x"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[e._v("#")]),e._v(" x")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("x")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1604",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1604"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"y"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[e._v("#")]),e._v(" y")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("y")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1605",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1605"),t("OutboundLink")],1)])])}),[],!1,null,null,null);r.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/29.32dffc05.js b/docs/latest/assets/js/29.91136795.js similarity index 76% rename from docs/latest/assets/js/29.32dffc05.js rename to docs/latest/assets/js/29.91136795.js index ee911c471c..c13752b972 100644 --- a/docs/latest/assets/js/29.32dffc05.js +++ b/docs/latest/assets/js/29.91136795.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{356:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-barcontrollerchartoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-barcontrollerchartoptions"}},[t._v("#")]),t._v(" Interface: BarControllerChartOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"skipnull"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#skipnull"}},[t._v("#")]),t._v(" skipNull")]),t._v(" "),r("p",[t._v("• "),r("code",[t._v("Optional")]),t._v(" "),r("strong",[t._v("skipNull")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Should null or undefined values be omitted from drawing")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L136",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:136"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{353:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-barcontrollerchartoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-barcontrollerchartoptions"}},[t._v("#")]),t._v(" Interface: BarControllerChartOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"skipnull"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#skipnull"}},[t._v("#")]),t._v(" skipNull")]),t._v(" "),r("p",[t._v("• "),r("code",[t._v("Optional")]),t._v(" "),r("strong",[t._v("skipNull")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Should null or undefined values be omitted from drawing")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L136",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:136"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/3.070dc659.js b/docs/latest/assets/js/3.f47fb655.js similarity index 100% rename from docs/latest/assets/js/3.070dc659.js rename to docs/latest/assets/js/3.f47fb655.js diff --git a/docs/latest/assets/js/30.5783407f.js b/docs/latest/assets/js/30.5783407f.js deleted file mode 100644 index 79de537024..0000000000 --- a/docs/latest/assets/js/30.5783407f.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{357:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-barcontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-barcontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: BarControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[r("em",[t._v("ControllerDatasetOptions")])])],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableandarrayoptions"}},[r("em",[t._v("ScriptableAndArrayOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[r("em",[t._v("BarOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#animationoptions"}},[r("em",[t._v("AnimationOptions")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">")],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("BarControllerDatasetOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("em",[t._v("false")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("<"),r("em",[t._v("bar")]),t._v("> & { "),r("code",[t._v("onComplete?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" ; "),r("code",[t._v("onProgress?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" }")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animations")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.backgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"barpercentage"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#barpercentage"}},[t._v("#")]),t._v(" barPercentage")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("barPercentage")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Percent (0-1) of the available width each bar should be within the category width. 1.0 will take the whole category width and put the bars right next to each other.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0.9")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L103",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:103"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"barthickness"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#barthickness"}},[t._v("#")]),t._v(" barThickness")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("barThickness")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("em",[t._v("flex")])]),t._v(" "),r("p",[t._v("Manually set width of each bar in pixels. If set to 'flex', it computes \"optimal\" sample widths that globally arrange bars side by side. If not set (default), bars are equally sized based on the smallest interval.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L113",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:113"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"base"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#base"}},[t._v("#")]),t._v(" base")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("base")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The base value for the bar in data units along the value axis.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.base")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1854",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1854"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[t._v("#")]),t._v(" borderRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Border radius")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1866",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1866"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderskipped"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderskipped"}},[t._v("#")]),t._v(" borderSkipped")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderSkipped")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("em",[t._v("false")]),t._v(" | "),r("em",[t._v("start")]),t._v(" | "),r("em",[t._v("end")]),t._v(" | "),r("em",[t._v("left")]),t._v(" | "),r("em",[t._v("right")]),t._v(" | "),r("em",[t._v("bottom")]),t._v(" | "),r("em",[t._v("top")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Skipped (excluded) border: 'start', 'end', 'left', 'right', 'bottom', 'top' or false (none).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'start'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderSkipped")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1860",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1860"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"categorypercentage"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#categorypercentage"}},[t._v("#")]),t._v(" categoryPercentage")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("categoryPercentage")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Percent (0-1) of the available width each category should be within the sample width.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0.8")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L108",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:108"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"maxbarthickness"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#maxbarthickness"}},[t._v("#")]),t._v(" maxBarThickness")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("maxBarThickness")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Set this to ensure that bars are not sized thicker than this.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L118",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:118"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"minbarlength"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#minbarlength"}},[t._v("#")]),t._v(" minBarLength")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("minBarLength")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Set this to ensure that bars have a minimum length in pixels.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L123",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:123"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])])],1),t._v(" "),r("p",[t._v("Point style for the legend")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'circle;")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L129",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:129"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"transitions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("transitions")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[r("em",[t._v("TransitionsSpec")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.transitions")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"xaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xaxisid"}},[t._v("#")]),t._v(" xAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("xAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the x axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L93",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:93"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"yaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yaxisid"}},[t._v("#")]),t._v(" yAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("yAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the y axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L97",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:97"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/30.c6424404.js b/docs/latest/assets/js/30.c6424404.js new file mode 100644 index 0000000000..db63ff58cd --- /dev/null +++ b/docs/latest/assets/js/30.c6424404.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{354:function(t,e,r){"use strict";r.r(e);var a=r(7),n=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-barcontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-barcontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: BarControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[r("em",[t._v("ControllerDatasetOptions")])])],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableandarrayoptions"}},[r("em",[t._v("ScriptableAndArrayOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[r("em",[t._v("BarOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#animationoptions"}},[r("em",[t._v("AnimationOptions")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">")],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("BarControllerDatasetOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("em",[t._v("false")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("<"),r("em",[t._v("bar")]),t._v("> & { "),r("code",[t._v("onComplete?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" ; "),r("code",[t._v("onProgress?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" }")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animations")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.backgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"barpercentage"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#barpercentage"}},[t._v("#")]),t._v(" barPercentage")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("barPercentage")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Percent (0-1) of the available width each bar should be within the category width. 1.0 will take the whole category width and put the bars right next to each other.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0.9")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L103",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:103"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"barthickness"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#barthickness"}},[t._v("#")]),t._v(" barThickness")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("barThickness")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("em",[t._v("flex")])]),t._v(" "),r("p",[t._v("Manually set width of each bar in pixels. If set to 'flex', it computes \"optimal\" sample widths that globally arrange bars side by side. If not set (default), bars are equally sized based on the smallest interval.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L113",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:113"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"base"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#base"}},[t._v("#")]),t._v(" base")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("base")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The base value for the bar in data units along the value axis.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.base")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1854",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1854"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[t._v("#")]),t._v(" borderRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Border radius")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1866",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1866"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderskipped"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderskipped"}},[t._v("#")]),t._v(" borderSkipped")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderSkipped")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("em",[t._v("false")]),t._v(" | "),r("em",[t._v("start")]),t._v(" | "),r("em",[t._v("end")]),t._v(" | "),r("em",[t._v("left")]),t._v(" | "),r("em",[t._v("right")]),t._v(" | "),r("em",[t._v("bottom")]),t._v(" | "),r("em",[t._v("top")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Skipped (excluded) border: 'start', 'end', 'left', 'right', 'bottom', 'top' or false (none).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'start'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderSkipped")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1860",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1860"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"categorypercentage"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#categorypercentage"}},[t._v("#")]),t._v(" categoryPercentage")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("categoryPercentage")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Percent (0-1) of the available width each category should be within the sample width.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0.8")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L108",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:108"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"maxbarthickness"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#maxbarthickness"}},[t._v("#")]),t._v(" maxBarThickness")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("maxBarThickness")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Set this to ensure that bars are not sized thicker than this.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L118",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:118"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"minbarlength"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#minbarlength"}},[t._v("#")]),t._v(" minBarLength")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("minBarLength")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Set this to ensure that bars have a minimum length in pixels.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L123",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:123"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])])],1),t._v(" "),r("p",[t._v("Point style for the legend")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'circle;")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L129",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:129"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"transitions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("transitions")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[r("em",[t._v("TransitionsSpec")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.transitions")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"xaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xaxisid"}},[t._v("#")]),t._v(" xAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("xAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the x axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L93",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:93"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"yaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yaxisid"}},[t._v("#")]),t._v(" yAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("yAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the y axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L97",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:97"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/31.7a567ad0.js b/docs/latest/assets/js/31.7a567ad0.js deleted file mode 100644 index 47590df3fa..0000000000 --- a/docs/latest/assets/js/31.7a567ad0.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{358:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-barelement-t-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-barelement-t-o"}},[t._v("#")]),t._v(" Interface: BarElement")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/barprops.html"}},[a("em",[t._v("BarProps")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/barprops.html"}},[a("em",[t._v("BarProps")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[a("em",[t._v("BarOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[a("em",[t._v("BarOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("")],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[a("em",[t._v("VisualElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("BarElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1577",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1577"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcenterpoint"}},[t._v("#")]),t._v(" getCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getCenterPoint")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1581"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": keyof T[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): T")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("keyof T[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getrange"}},[t._v("#")]),t._v(" getRange")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getRange")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inrange"}},[t._v("#")]),t._v(" inRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1578",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1578"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inxrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inxrange"}},[t._v("#")]),t._v(" inXRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inXRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1579",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1579"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inyrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inyrange"}},[t._v("#")]),t._v(" inYRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inYRange")]),t._v("("),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1580"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/31.7e508595.js b/docs/latest/assets/js/31.7e508595.js new file mode 100644 index 0000000000..8790aa6452 --- /dev/null +++ b/docs/latest/assets/js/31.7e508595.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{355:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-barelement-t-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-barelement-t-o"}},[t._v("#")]),t._v(" Interface: BarElement")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/barprops.html"}},[a("em",[t._v("BarProps")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/barprops.html"}},[a("em",[t._v("BarProps")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[a("em",[t._v("BarOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[a("em",[t._v("BarOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("")],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[a("em",[t._v("VisualElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("BarElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1577",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1577"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcenterpoint"}},[t._v("#")]),t._v(" getCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getCenterPoint")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1581"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": keyof T[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): T")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("keyof T[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getrange"}},[t._v("#")]),t._v(" getRange")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getRange")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inrange"}},[t._v("#")]),t._v(" inRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1578",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1578"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inxrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inxrange"}},[t._v("#")]),t._v(" inXRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inXRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1579",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1579"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inyrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inyrange"}},[t._v("#")]),t._v(" inYRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inYRange")]),t._v("("),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1580"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/32.3cb42dd2.js b/docs/latest/assets/js/32.3cb42dd2.js deleted file mode 100644 index 7a2c7c9548..0000000000 --- a/docs/latest/assets/js/32.3cb42dd2.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{359:function(r,o,e){"use strict";e.r(o);var t=e(7),a=Object(t.a)({},(function(){var r=this,o=r.$createElement,e=r._self._c||o;return e("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[e("h1",{attrs:{id:"interface-barhoveroptions"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#interface-barhoveroptions"}},[r._v("#")]),r._v(" Interface: BarHoverOptions")]),r._v(" "),e("h2",{attrs:{id:"hierarchy"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[r._v("#")]),r._v(" Hierarchy")]),r._v(" "),e("ul",[e("li",[e("p",[e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[e("em",[r._v("CommonHoverOptions")])])],1),r._v(" "),e("p",[r._v("↳ "),e("strong",[r._v("BarHoverOptions")])])])]),r._v(" "),e("h2",{attrs:{id:"properties"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),e("h3",{attrs:{id:"hoverbackgroundcolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[r._v("#")]),r._v(" hoverBackgroundColor")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("hoverBackgroundColor")]),r._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[r._v("Color")])])],1),r._v(" "),e("p",[r._v("Inherited from: "),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbackgroundcolor"}},[r._v("hoverBackgroundColor")])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1594"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"hoverbordercolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[r._v("#")]),r._v(" hoverBorderColor")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("hoverBorderColor")]),r._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[r._v("Color")])])],1),r._v(" "),e("p",[r._v("Inherited from: "),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbordercolor"}},[r._v("hoverBorderColor")])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1593"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"hoverborderradius"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderradius"}},[r._v("#")]),r._v(" hoverBorderRadius")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("hoverBorderRadius")]),r._v(": "),e("em",[r._v("number")]),r._v(" | "),e("RouterLink",{attrs:{to:"/api/interfaces/borderradius.html"}},[e("em",[r._v("BorderRadius")])])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1877",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1877"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"hoverborderwidth"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[r._v("#")]),r._v(" hoverBorderWidth")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("hoverBorderWidth")]),r._v(": "),e("em",[r._v("number")])]),r._v(" "),e("p",[r._v("Inherited from: "),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverborderwidth"}},[r._v("hoverBorderWidth")])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1592"),e("OutboundLink")],1)])])}),[],!1,null,null,null);o.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/32.6239d878.js b/docs/latest/assets/js/32.6239d878.js new file mode 100644 index 0000000000..7d627ed68a --- /dev/null +++ b/docs/latest/assets/js/32.6239d878.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{356:function(r,e,o){"use strict";o.r(e);var t=o(7),a=Object(t.a)({},(function(){var r=this,e=r.$createElement,o=r._self._c||e;return o("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[o("h1",{attrs:{id:"interface-barhoveroptions"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#interface-barhoveroptions"}},[r._v("#")]),r._v(" Interface: BarHoverOptions")]),r._v(" "),o("h2",{attrs:{id:"hierarchy"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[r._v("#")]),r._v(" Hierarchy")]),r._v(" "),o("ul",[o("li",[o("p",[o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[o("em",[r._v("CommonHoverOptions")])])],1),r._v(" "),o("p",[r._v("↳ "),o("strong",[r._v("BarHoverOptions")])])])]),r._v(" "),o("h2",{attrs:{id:"properties"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),o("h3",{attrs:{id:"hoverbackgroundcolor"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[r._v("#")]),r._v(" hoverBackgroundColor")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverBackgroundColor")]),r._v(": "),o("RouterLink",{attrs:{to:"/api/#color"}},[o("em",[r._v("Color")])])],1),r._v(" "),o("p",[r._v("Inherited from: "),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbackgroundcolor"}},[r._v("hoverBackgroundColor")])],1),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1594"),o("OutboundLink")],1)]),r._v(" "),o("hr"),r._v(" "),o("h3",{attrs:{id:"hoverbordercolor"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[r._v("#")]),r._v(" hoverBorderColor")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverBorderColor")]),r._v(": "),o("RouterLink",{attrs:{to:"/api/#color"}},[o("em",[r._v("Color")])])],1),r._v(" "),o("p",[r._v("Inherited from: "),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbordercolor"}},[r._v("hoverBorderColor")])],1),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1593"),o("OutboundLink")],1)]),r._v(" "),o("hr"),r._v(" "),o("h3",{attrs:{id:"hoverborderradius"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderradius"}},[r._v("#")]),r._v(" hoverBorderRadius")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverBorderRadius")]),r._v(": "),o("em",[r._v("number")]),r._v(" | "),o("RouterLink",{attrs:{to:"/api/interfaces/borderradius.html"}},[o("em",[r._v("BorderRadius")])])],1),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1877",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1877"),o("OutboundLink")],1)]),r._v(" "),o("hr"),r._v(" "),o("h3",{attrs:{id:"hoverborderwidth"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[r._v("#")]),r._v(" hoverBorderWidth")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverBorderWidth")]),r._v(": "),o("em",[r._v("number")])]),r._v(" "),o("p",[r._v("Inherited from: "),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverborderwidth"}},[r._v("hoverBorderWidth")])],1),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1592"),o("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/33.04619ac5.js b/docs/latest/assets/js/33.04619ac5.js deleted file mode 100644 index f7959b23fe..0000000000 --- a/docs/latest/assets/js/33.04619ac5.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{360:function(e,t,r){"use strict";r.r(t);var o=r(7),a=Object(o.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-baroptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-baroptions"}},[e._v("#")]),e._v(" Interface: BarOptions")]),e._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[e._v("#")]),e._v(" Hierarchy")]),e._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[r("em",[e._v("CommonElementOptions")])])],1),e._v(" "),r("p",[e._v("↳ "),r("strong",[e._v("BarOptions")])])])]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[e._v("#")]),e._v(" backgroundColor")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("backgroundColor")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[e._v("CommonElementOptions")]),e._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#backgroundcolor"}},[e._v("backgroundColor")])],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"base"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#base"}},[e._v("#")]),e._v(" base")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("base")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("The base value for the bar in data units along the value axis.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1854",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1854"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[e._v("#")]),e._v(" borderColor")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderColor")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[e._v("CommonElementOptions")]),e._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#bordercolor"}},[e._v("borderColor")])],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[e._v("#")]),e._v(" borderRadius")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderRadius")]),e._v(": "),r("em",[e._v("number")]),e._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/borderradius.html"}},[r("em",[e._v("BorderRadius")])])],1),e._v(" "),r("p",[e._v("Border radius")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 0")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1866",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1866"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"borderskipped"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderskipped"}},[e._v("#")]),e._v(" borderSkipped")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderSkipped")]),e._v(": "),r("em",[e._v("false")]),e._v(" | "),r("em",[e._v("start")]),e._v(" | "),r("em",[e._v("end")]),e._v(" | "),r("em",[e._v("left")]),e._v(" | "),r("em",[e._v("right")]),e._v(" | "),r("em",[e._v("bottom")]),e._v(" | "),r("em",[e._v("top")])]),e._v(" "),r("p",[e._v("Skipped (excluded) border: 'start', 'end', 'left', 'right', 'bottom', 'top' or false (none).")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 'start'")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1860",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1860"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[e._v("#")]),e._v(" borderWidth")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderWidth")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[e._v("CommonElementOptions")]),e._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#borderwidth"}},[e._v("borderWidth")])],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1586"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/33.18669376.js b/docs/latest/assets/js/33.18669376.js new file mode 100644 index 0000000000..7da19acd88 --- /dev/null +++ b/docs/latest/assets/js/33.18669376.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{358:function(e,t,r){"use strict";r.r(t);var o=r(7),a=Object(o.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-baroptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-baroptions"}},[e._v("#")]),e._v(" Interface: BarOptions")]),e._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[e._v("#")]),e._v(" Hierarchy")]),e._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[r("em",[e._v("CommonElementOptions")])])],1),e._v(" "),r("p",[e._v("↳ "),r("strong",[e._v("BarOptions")])])])]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[e._v("#")]),e._v(" backgroundColor")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("backgroundColor")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[e._v("CommonElementOptions")]),e._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#backgroundcolor"}},[e._v("backgroundColor")])],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"base"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#base"}},[e._v("#")]),e._v(" base")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("base")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("The base value for the bar in data units along the value axis.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1854",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1854"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[e._v("#")]),e._v(" borderColor")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderColor")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[e._v("CommonElementOptions")]),e._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#bordercolor"}},[e._v("borderColor")])],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[e._v("#")]),e._v(" borderRadius")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderRadius")]),e._v(": "),r("em",[e._v("number")]),e._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/borderradius.html"}},[r("em",[e._v("BorderRadius")])])],1),e._v(" "),r("p",[e._v("Border radius")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 0")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1866",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1866"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"borderskipped"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderskipped"}},[e._v("#")]),e._v(" borderSkipped")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderSkipped")]),e._v(": "),r("em",[e._v("false")]),e._v(" | "),r("em",[e._v("start")]),e._v(" | "),r("em",[e._v("end")]),e._v(" | "),r("em",[e._v("left")]),e._v(" | "),r("em",[e._v("right")]),e._v(" | "),r("em",[e._v("bottom")]),e._v(" | "),r("em",[e._v("top")])]),e._v(" "),r("p",[e._v("Skipped (excluded) border: 'start', 'end', 'left', 'right', 'bottom', 'top' or false (none).")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 'start'")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1860",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1860"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[e._v("#")]),e._v(" borderWidth")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderWidth")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[e._v("CommonElementOptions")]),e._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#borderwidth"}},[e._v("borderWidth")])],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1586"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/34.139281d5.js b/docs/latest/assets/js/34.139281d5.js deleted file mode 100644 index 78fb166433..0000000000 --- a/docs/latest/assets/js/34.139281d5.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{361:function(t,e,r){"use strict";r.r(e);var s=r(7),a=Object(s.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-barprops"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-barprops"}},[t._v("#")]),t._v(" Interface: BarProps")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"base"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#base"}},[t._v("#")]),t._v(" base")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("base")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1844",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1844"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"height"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("height")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1847",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1847"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"horizontal"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#horizontal"}},[t._v("#")]),t._v(" horizontal")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("horizontal")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1845",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1845"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"width"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("width")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1846",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1846"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("x")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1842",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1842"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("y")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1843",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1843"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/34.349037b3.js b/docs/latest/assets/js/34.349037b3.js new file mode 100644 index 0000000000..3b240e0c6b --- /dev/null +++ b/docs/latest/assets/js/34.349037b3.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{357:function(e,t,r){"use strict";r.r(t);var s=r(7),a=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-barprops"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-barprops"}},[e._v("#")]),e._v(" Interface: BarProps")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"base"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#base"}},[e._v("#")]),e._v(" base")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("base")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1844",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1844"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"height"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[e._v("#")]),e._v(" height")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("height")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1847",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1847"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"horizontal"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#horizontal"}},[e._v("#")]),e._v(" horizontal")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("horizontal")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1845",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1845"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"width"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[e._v("#")]),e._v(" width")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("width")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1846",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1846"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[e._v("#")]),e._v(" x")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("x")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1842",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1842"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[e._v("#")]),e._v(" y")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("y")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1843",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1843"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/35.2bc7aed5.js b/docs/latest/assets/js/35.2bc7aed5.js new file mode 100644 index 0000000000..d1eb5184b1 --- /dev/null +++ b/docs/latest/assets/js/35.2bc7aed5.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{359:function(t,e,r){"use strict";r.r(e);var s=r(7),a=Object(s.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-borderradius"}},[t._v("#")]),t._v(" Interface: BorderRadius")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"bottomleft"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bottomleft"}},[t._v("#")]),t._v(" bottomLeft")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bottomLeft")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1872",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1872"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bottomright"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bottomright"}},[t._v("#")]),t._v(" bottomRight")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bottomRight")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1873",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1873"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"topleft"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#topleft"}},[t._v("#")]),t._v(" topLeft")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("topLeft")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1870",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1870"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"topright"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#topright"}},[t._v("#")]),t._v(" topRight")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("topRight")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1871",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1871"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/35.fbfa4c98.js b/docs/latest/assets/js/35.fbfa4c98.js deleted file mode 100644 index 3b23b770ae..0000000000 --- a/docs/latest/assets/js/35.fbfa4c98.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{362:function(t,e,r){"use strict";r.r(e);var s=r(7),a=Object(s.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-borderradius"}},[t._v("#")]),t._v(" Interface: BorderRadius")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"bottomleft"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bottomleft"}},[t._v("#")]),t._v(" bottomLeft")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bottomLeft")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1872",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1872"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bottomright"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bottomright"}},[t._v("#")]),t._v(" bottomRight")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bottomRight")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1873",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1873"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"topleft"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#topleft"}},[t._v("#")]),t._v(" topLeft")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("topLeft")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1870",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1870"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"topright"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#topright"}},[t._v("#")]),t._v(" topRight")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("topRight")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1871",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1871"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/36.a4911720.js b/docs/latest/assets/js/36.a4911720.js new file mode 100644 index 0000000000..0fca303379 --- /dev/null +++ b/docs/latest/assets/js/36.a4911720.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{360:function(t,e,r){"use strict";r.r(e);var a=r(7),o=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-bubblecontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-bubblecontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: BubbleControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[r("em",[t._v("ControllerDatasetOptions")])])],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableandarrayoptions"}},[r("em",[t._v("ScriptableAndArrayOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[r("em",[t._v("PointOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("BubbleControllerDatasetOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.backgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hitradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hitradius"}},[t._v("#")]),t._v(" hitRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hitRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Extra radius added to point radius for hit detection.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 1")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hitRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1758",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1758"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverradius"}},[t._v("#")]),t._v(" hoverRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Point radius when hovered.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 4")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1776",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1776"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Point style")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'circle;")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1763",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1763"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"radius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#radius"}},[t._v("#")]),t._v(" radius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("radius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Point radius")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 3")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.radius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1753",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1753"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[t._v("#")]),t._v(" rotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rotation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Point rotation (in degrees).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.rotation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1768",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1768"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/36.cfe2dfd0.js b/docs/latest/assets/js/36.cfe2dfd0.js deleted file mode 100644 index feff47cb47..0000000000 --- a/docs/latest/assets/js/36.cfe2dfd0.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{363:function(t,e,r){"use strict";r.r(e);var a=r(7),o=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-bubblecontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-bubblecontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: BubbleControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[r("em",[t._v("ControllerDatasetOptions")])])],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableandarrayoptions"}},[r("em",[t._v("ScriptableAndArrayOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[r("em",[t._v("PointOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("BubbleControllerDatasetOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.backgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hitradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hitradius"}},[t._v("#")]),t._v(" hitRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hitRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Extra radius added to point radius for hit detection.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 1")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hitRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1758",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1758"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverradius"}},[t._v("#")]),t._v(" hoverRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Point radius when hovered.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 4")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1776",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1776"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Point style")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'circle;")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1763",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1763"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"radius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#radius"}},[t._v("#")]),t._v(" radius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("radius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Point radius")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 3")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.radius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1753",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1753"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[t._v("#")]),t._v(" rotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rotation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Point rotation (in degrees).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.rotation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1768",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1768"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/37.b47c5714.js b/docs/latest/assets/js/37.b47c5714.js new file mode 100644 index 0000000000..783311ca1e --- /dev/null +++ b/docs/latest/assets/js/37.b47c5714.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{361:function(e,t,r){"use strict";r.r(t);var a=r(7),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-bubbledatapoint"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-bubbledatapoint"}},[e._v("#")]),e._v(" Interface: BubbleDataPoint")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"r"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#r"}},[e._v("#")]),e._v(" r")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("r")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Bubble radius in pixels (not scaled).")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L164",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:164"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[e._v("#")]),e._v(" x")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("x")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("X Value")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L154",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:154"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[e._v("#")]),e._v(" y")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("y")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Y Value")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L159",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:159"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/37.d17ee4cf.js b/docs/latest/assets/js/37.d17ee4cf.js deleted file mode 100644 index eb8388a269..0000000000 --- a/docs/latest/assets/js/37.d17ee4cf.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{364:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-bubbledatapoint"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-bubbledatapoint"}},[t._v("#")]),t._v(" Interface: BubbleDataPoint")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"r"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#r"}},[t._v("#")]),t._v(" r")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("r")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Bubble radius in pixels (not scaled).")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L164",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:164"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("x")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("X Value")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L154",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:154"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("y")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Y Value")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L159",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:159"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/38.485e4dd3.js b/docs/latest/assets/js/38.485e4dd3.js deleted file mode 100644 index 35b16373be..0000000000 --- a/docs/latest/assets/js/38.485e4dd3.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{365:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-cartesianscaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-cartesianscaleoptions"}},[t._v("#")]),t._v(" Interface: CartesianScaleOptions")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("CartesianScaleOptions")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"aligntopixels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aligntopixels"}},[t._v("#")]),t._v(" alignToPixels")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("alignToPixels")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Align pixel values to device pixels")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html#aligntopixels"}},[t._v("alignToPixels")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1077",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1077"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"axis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])]),t._v(" "),a("p",[t._v("Which type of axis this is. Possible values are: 'x', 'y'. If not set, this is inferred from the first character of the ID which should be 'x' or 'y'.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2751",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2751"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"display"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[t._v("#")]),t._v(" display")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("display")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("auto")])]),t._v(" "),a("p",[t._v("Controls the axis global visibility (visible when true, hidden when false). When display: 'auto', the axis is visible only if at least one associated dataset is visible.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html#display"}},[t._v("display")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1073",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1073"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"grid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#grid"}},[t._v("#")]),t._v(" grid")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("grid")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/gridlineoptions.html"}},[a("em",[t._v("GridLineOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2769",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2769"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"max"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#max"}},[t._v("#")]),t._v(" max")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("max")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("User defined maximum value for the scale, overrides maximum value from data.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2761",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2761"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"min"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#min"}},[t._v("#")]),t._v(" min")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("min")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("User defined minimum value for the scale, overrides minimum value from data.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2756",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2756"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"offset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offset"}},[t._v("#")]),t._v(" offset")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("offset")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("If true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to true for a bar chart by default.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2767",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2767"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("em",[t._v("left")]),t._v(" | "),a("em",[t._v("right")]),t._v(" | "),a("em",[t._v("bottom")]),t._v(" | "),a("em",[t._v("top")]),t._v(" | "),a("em",[t._v("center")]),t._v(" | { [scale: string]: "),a("em",[t._v("number")]),t._v("; }")]),t._v(" "),a("p",[t._v("Position of the axis.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2747",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2747"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reverse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reverse"}},[t._v("#")]),t._v(" reverse")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("reverse")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Reverse the scale.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html#reverse"}},[t._v("reverse")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1082",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1082"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"stacked"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stacked"}},[t._v("#")]),t._v(" stacked")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Optional")]),t._v(" "),a("strong",[t._v("stacked")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("single")])]),t._v(" "),a("p",[t._v("If true, data will be comprised between datasets of data")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2786",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2786"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[t._v("#")]),t._v(" ticks")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tickoptions.html"}},[a("em",[t._v("TickOptions")])]),t._v(" & { "),a("code",[t._v("align")]),t._v(": "),a("em",[t._v("start")]),t._v(" | "),a("em",[t._v("end")]),t._v(" | "),a("em",[t._v("center")]),t._v(" ; "),a("code",[t._v("autoSkip")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("autoSkipPadding")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("crossAlign")]),t._v(": "),a("em",[t._v("center")]),t._v(" | "),a("em",[t._v("near")]),t._v(" | "),a("em",[t._v("far")]),t._v(" ; "),a("code",[t._v("labelOffset")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("maxRotation")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("minRotation")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("mirror")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("padding")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("sampleSize")]),t._v(": "),a("em",[t._v("number")]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2788",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2788"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"title"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" title")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("title")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("display")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("font")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[a("em",[t._v("FontSpec")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding.bottom")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding.top")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("text")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2771",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2771"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html#weight"}},[t._v("weight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1087",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1087"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBuildTicks")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after ticks are created. Useful for filtering ticks.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1115",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1115"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftercalculatetickrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftercalculatetickrotation"}},[t._v("#")]),t._v(" afterCalculateTickRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterCalculateTickRotation")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after tick rotation is determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1131",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1131"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterDataLimits")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after data limits are determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1107",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1107"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfit"}},[t._v("#")]),t._v(" afterFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFit")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after the scale fits to the canvas.")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1139",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1139"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftersetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftersetdimensions"}},[t._v("#")]),t._v(" afterSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterSetDimensions")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after dimensions are set.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1099",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1099"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterticktolabelconversion"}},[t._v("#")]),t._v(" afterTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTickToLabelConversion")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after ticks are converted into strings.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1123",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1123"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterUpdate")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs at the end of the update process.")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1143",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1143"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBuildTicks")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before ticks are created.")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1111",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1111"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforecalculatetickrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforecalculatetickrotation"}},[t._v("#")]),t._v(" beforeCalculateTickRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeCalculateTickRotation")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before tick rotation is determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1127",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1127"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeDataLimits")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before data limits are determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1103",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1103"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefit"}},[t._v("#")]),t._v(" beforeFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFit")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before the scale fits to the canvas.")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1135",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1135"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforesetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforesetdimensions"}},[t._v("#")]),t._v(" beforeSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeSetDimensions")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before dimensions are set.")]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1095",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1095"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeticktolabelconversion"}},[t._v("#")]),t._v(" beforeTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTickToLabelConversion")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before ticks are converted into strings.")]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1119",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1119"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeUpdate")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback called before the update process starts.")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1091",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1091"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/38.b4744c38.js b/docs/latest/assets/js/38.b4744c38.js new file mode 100644 index 0000000000..633ceae47d --- /dev/null +++ b/docs/latest/assets/js/38.b4744c38.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{363:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-cartesianscaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-cartesianscaleoptions"}},[t._v("#")]),t._v(" Interface: CartesianScaleOptions")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("CartesianScaleOptions")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"aligntopixels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aligntopixels"}},[t._v("#")]),t._v(" alignToPixels")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("alignToPixels")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Align pixel values to device pixels")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html#aligntopixels"}},[t._v("alignToPixels")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1077",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1077"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"axis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])]),t._v(" "),a("p",[t._v("Which type of axis this is. Possible values are: 'x', 'y'. If not set, this is inferred from the first character of the ID which should be 'x' or 'y'.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2751",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2751"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"display"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[t._v("#")]),t._v(" display")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("display")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("auto")])]),t._v(" "),a("p",[t._v("Controls the axis global visibility (visible when true, hidden when false). When display: 'auto', the axis is visible only if at least one associated dataset is visible.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html#display"}},[t._v("display")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1073",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1073"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"grid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#grid"}},[t._v("#")]),t._v(" grid")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("grid")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/gridlineoptions.html"}},[a("em",[t._v("GridLineOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2769",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2769"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"max"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#max"}},[t._v("#")]),t._v(" max")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("max")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("User defined maximum value for the scale, overrides maximum value from data.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2761",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2761"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"min"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#min"}},[t._v("#")]),t._v(" min")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("min")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("User defined minimum value for the scale, overrides minimum value from data.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2756",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2756"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"offset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offset"}},[t._v("#")]),t._v(" offset")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("offset")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("If true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to true for a bar chart by default.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2767",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2767"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("em",[t._v("left")]),t._v(" | "),a("em",[t._v("right")]),t._v(" | "),a("em",[t._v("bottom")]),t._v(" | "),a("em",[t._v("top")]),t._v(" | "),a("em",[t._v("center")]),t._v(" | { [scale: string]: "),a("em",[t._v("number")]),t._v("; }")]),t._v(" "),a("p",[t._v("Position of the axis.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2747",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2747"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reverse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reverse"}},[t._v("#")]),t._v(" reverse")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("reverse")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Reverse the scale.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html#reverse"}},[t._v("reverse")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1082",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1082"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"stacked"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stacked"}},[t._v("#")]),t._v(" stacked")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Optional")]),t._v(" "),a("strong",[t._v("stacked")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("single")])]),t._v(" "),a("p",[t._v("If true, data will be comprised between datasets of data")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2786",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2786"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[t._v("#")]),t._v(" ticks")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tickoptions.html"}},[a("em",[t._v("TickOptions")])]),t._v(" & { "),a("code",[t._v("align")]),t._v(": "),a("em",[t._v("start")]),t._v(" | "),a("em",[t._v("end")]),t._v(" | "),a("em",[t._v("center")]),t._v(" ; "),a("code",[t._v("autoSkip")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("autoSkipPadding")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("crossAlign")]),t._v(": "),a("em",[t._v("center")]),t._v(" | "),a("em",[t._v("near")]),t._v(" | "),a("em",[t._v("far")]),t._v(" ; "),a("code",[t._v("labelOffset")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("maxRotation")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("minRotation")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("mirror")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("padding")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("sampleSize")]),t._v(": "),a("em",[t._v("number")]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2788",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2788"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"title"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" title")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("title")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("display")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("font")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[a("em",[t._v("FontSpec")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding.bottom")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding.top")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("text")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2771",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2771"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html#weight"}},[t._v("weight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1087",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1087"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBuildTicks")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after ticks are created. Useful for filtering ticks.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1115",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1115"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftercalculatetickrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftercalculatetickrotation"}},[t._v("#")]),t._v(" afterCalculateTickRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterCalculateTickRotation")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after tick rotation is determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1131",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1131"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterDataLimits")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after data limits are determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1107",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1107"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfit"}},[t._v("#")]),t._v(" afterFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFit")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after the scale fits to the canvas.")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1139",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1139"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftersetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftersetdimensions"}},[t._v("#")]),t._v(" afterSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterSetDimensions")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after dimensions are set.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1099",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1099"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterticktolabelconversion"}},[t._v("#")]),t._v(" afterTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTickToLabelConversion")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after ticks are converted into strings.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1123",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1123"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterUpdate")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs at the end of the update process.")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1143",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1143"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBuildTicks")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before ticks are created.")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1111",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1111"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforecalculatetickrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforecalculatetickrotation"}},[t._v("#")]),t._v(" beforeCalculateTickRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeCalculateTickRotation")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before tick rotation is determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1127",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1127"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeDataLimits")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before data limits are determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1103",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1103"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefit"}},[t._v("#")]),t._v(" beforeFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFit")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before the scale fits to the canvas.")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1135",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1135"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforesetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforesetdimensions"}},[t._v("#")]),t._v(" beforeSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeSetDimensions")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before dimensions are set.")]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1095",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1095"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeticktolabelconversion"}},[t._v("#")]),t._v(" beforeTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTickToLabelConversion")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before ticks are converted into strings.")]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1119",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1119"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeUpdate")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback called before the update process starts.")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1091",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1091"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/39.1dd901b9.js b/docs/latest/assets/js/39.1dd901b9.js new file mode 100644 index 0000000000..a5726a31d8 --- /dev/null +++ b/docs/latest/assets/js/39.1dd901b9.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{362:function(t,e,a){"use strict";a.r(e);var r=a(7),i=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-cartesianscaletyperegistry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-cartesianscaletyperegistry"}},[t._v("#")]),t._v(" Interface: CartesianScaleTypeRegistry")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("CartesianScaleTypeRegistry")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/scaletyperegistry.html"}},[a("em",[t._v("ScaleTypeRegistry")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"category"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#category"}},[t._v("#")]),t._v(" category")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("category")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#categoryscaleoptions"}},[a("em",[t._v("CategoryScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3186",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3186"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linear"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linear"}},[t._v("#")]),t._v(" linear")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("linear")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#linearscaleoptions"}},[a("em",[t._v("LinearScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3180",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3180"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"logarithmic"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#logarithmic"}},[t._v("#")]),t._v(" logarithmic")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("logarithmic")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-3"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#logarithmicscaleoptions"}},[a("em",[t._v("LogarithmicScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3183",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3183"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"time"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#time"}},[t._v("#")]),t._v(" time")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("time")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-4"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3189",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3189"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timeseries"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timeseries"}},[t._v("#")]),t._v(" timeseries")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("timeseries")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-5"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3192",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3192"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/39.4f741a92.js b/docs/latest/assets/js/39.4f741a92.js deleted file mode 100644 index b48976f330..0000000000 --- a/docs/latest/assets/js/39.4f741a92.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{366:function(t,e,a){"use strict";a.r(e);var r=a(7),i=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-cartesianscaletyperegistry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-cartesianscaletyperegistry"}},[t._v("#")]),t._v(" Interface: CartesianScaleTypeRegistry")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("CartesianScaleTypeRegistry")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/scaletyperegistry.html"}},[a("em",[t._v("ScaleTypeRegistry")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"category"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#category"}},[t._v("#")]),t._v(" category")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("category")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#categoryscaleoptions"}},[a("em",[t._v("CategoryScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3186",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3186"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linear"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linear"}},[t._v("#")]),t._v(" linear")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("linear")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#linearscaleoptions"}},[a("em",[t._v("LinearScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3180",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3180"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"logarithmic"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#logarithmic"}},[t._v("#")]),t._v(" logarithmic")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("logarithmic")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-3"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#logarithmicscaleoptions"}},[a("em",[t._v("LogarithmicScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3183",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3183"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"time"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#time"}},[t._v("#")]),t._v(" time")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("time")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-4"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3189",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3189"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timeseries"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timeseries"}},[t._v("#")]),t._v(" timeseries")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("timeseries")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-5"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3192",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3192"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/4.ce242792.js b/docs/latest/assets/js/4.02ebacaa.js similarity index 100% rename from docs/latest/assets/js/4.ce242792.js rename to docs/latest/assets/js/4.02ebacaa.js diff --git a/docs/latest/assets/js/40.3566dbd1.js b/docs/latest/assets/js/40.3566dbd1.js deleted file mode 100644 index 0fc27dd1ca..0000000000 --- a/docs/latest/assets/js/40.3566dbd1.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{367:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-chartarea"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartarea"}},[t._v("#")]),t._v(" Interface: ChartArea")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"bottom"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bottom")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/geometric.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:5"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"left"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("left")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/geometric.d.ts#L3",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:3"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"right"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("right")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/geometric.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:4"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"top"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("top")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/geometric.d.ts#L2",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:2"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/40.fd7b0293.js b/docs/latest/assets/js/40.fd7b0293.js new file mode 100644 index 0000000000..2804d26c1a --- /dev/null +++ b/docs/latest/assets/js/40.fd7b0293.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{364:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-chartarea"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartarea"}},[t._v("#")]),t._v(" Interface: ChartArea")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"bottom"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bottom")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/geometric.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:5"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"left"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("left")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/geometric.d.ts#L3",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:3"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"right"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("right")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/geometric.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:4"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"top"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("top")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/geometric.d.ts#L2",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:2"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/41.46ae730a.js b/docs/latest/assets/js/41.46ae730a.js deleted file mode 100644 index 862e2e51e4..0000000000 --- a/docs/latest/assets/js/41.46ae730a.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{368:function(e,t,r){"use strict";r.r(t);var s=r(7),a=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-chartcomponent"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartcomponent"}},[e._v("#")]),e._v(" Interface: ChartComponent")]),e._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[e._v("#")]),e._v(" Hierarchy")]),e._v(" "),r("ul",[r("li",[r("p",[r("strong",[e._v("ChartComponent")])]),e._v(" "),r("p",[e._v("↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/datasetcontrollerchartcomponent.html"}},[r("em",[e._v("DatasetControllerChartComponent")])])],1)])]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"defaultroutes"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defaultroutes"}},[e._v("#")]),e._v(" defaultRoutes")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("defaultRoutes")]),e._v(": "),r("em",[e._v("object")])]),e._v(" "),r("h4",{attrs:{id:"type-declaration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[e._v("#")]),e._v(" Type declaration:")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1326",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1326"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"defaults"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defaults"}},[e._v("#")]),e._v(" defaults")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("defaults")]),e._v(": "),r("em",[e._v("Record")]),e._v("")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1325",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1325"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"id"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[e._v("#")]),e._v(" id")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("id")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1324",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1324"),r("OutboundLink")],1)]),e._v(" "),r("h2",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[e._v("#")]),e._v(" Methods")]),e._v(" "),r("h3",{attrs:{id:"afterregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#afterregister"}},[e._v("#")]),e._v(" afterRegister")]),e._v(" "),r("p",[e._v("▸ "),r("code",[e._v("Optional")]),r("strong",[e._v("afterRegister")]),e._v("(): "),r("em",[e._v("void")])]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("em",[e._v("void")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1329",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1329"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"afterunregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#afterunregister"}},[e._v("#")]),e._v(" afterUnregister")]),e._v(" "),r("p",[e._v("▸ "),r("code",[e._v("Optional")]),r("strong",[e._v("afterUnregister")]),e._v("(): "),r("em",[e._v("void")])]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("em",[e._v("void")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1331",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1331"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"beforeregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#beforeregister"}},[e._v("#")]),e._v(" beforeRegister")]),e._v(" "),r("p",[e._v("▸ "),r("code",[e._v("Optional")]),r("strong",[e._v("beforeRegister")]),e._v("(): "),r("em",[e._v("void")])]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("em",[e._v("void")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1328",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1328"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"beforeunregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#beforeunregister"}},[e._v("#")]),e._v(" beforeUnregister")]),e._v(" "),r("p",[e._v("▸ "),r("code",[e._v("Optional")]),r("strong",[e._v("beforeUnregister")]),e._v("(): "),r("em",[e._v("void")])]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("em",[e._v("void")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1330",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1330"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/41.87c095f7.js b/docs/latest/assets/js/41.87c095f7.js new file mode 100644 index 0000000000..ecb0f98971 --- /dev/null +++ b/docs/latest/assets/js/41.87c095f7.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{365:function(e,t,r){"use strict";r.r(t);var s=r(7),a=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-chartcomponent"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartcomponent"}},[e._v("#")]),e._v(" Interface: ChartComponent")]),e._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[e._v("#")]),e._v(" Hierarchy")]),e._v(" "),r("ul",[r("li",[r("p",[r("strong",[e._v("ChartComponent")])]),e._v(" "),r("p",[e._v("↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/datasetcontrollerchartcomponent.html"}},[r("em",[e._v("DatasetControllerChartComponent")])])],1)])]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"defaultroutes"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defaultroutes"}},[e._v("#")]),e._v(" defaultRoutes")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("defaultRoutes")]),e._v(": "),r("em",[e._v("object")])]),e._v(" "),r("h4",{attrs:{id:"type-declaration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[e._v("#")]),e._v(" Type declaration:")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1326",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1326"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"defaults"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defaults"}},[e._v("#")]),e._v(" defaults")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("defaults")]),e._v(": "),r("em",[e._v("Record")]),e._v("")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1325",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1325"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"id"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[e._v("#")]),e._v(" id")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("id")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1324",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1324"),r("OutboundLink")],1)]),e._v(" "),r("h2",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[e._v("#")]),e._v(" Methods")]),e._v(" "),r("h3",{attrs:{id:"afterregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#afterregister"}},[e._v("#")]),e._v(" afterRegister")]),e._v(" "),r("p",[e._v("▸ "),r("code",[e._v("Optional")]),r("strong",[e._v("afterRegister")]),e._v("(): "),r("em",[e._v("void")])]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("em",[e._v("void")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1329",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1329"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"afterunregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#afterunregister"}},[e._v("#")]),e._v(" afterUnregister")]),e._v(" "),r("p",[e._v("▸ "),r("code",[e._v("Optional")]),r("strong",[e._v("afterUnregister")]),e._v("(): "),r("em",[e._v("void")])]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("em",[e._v("void")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1331",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1331"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"beforeregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#beforeregister"}},[e._v("#")]),e._v(" beforeRegister")]),e._v(" "),r("p",[e._v("▸ "),r("code",[e._v("Optional")]),r("strong",[e._v("beforeRegister")]),e._v("(): "),r("em",[e._v("void")])]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("em",[e._v("void")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1328",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1328"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"beforeunregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#beforeunregister"}},[e._v("#")]),e._v(" beforeUnregister")]),e._v(" "),r("p",[e._v("▸ "),r("code",[e._v("Optional")]),r("strong",[e._v("beforeUnregister")]),e._v("(): "),r("em",[e._v("void")])]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("em",[e._v("void")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1330",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1330"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/42.2c640d95.js b/docs/latest/assets/js/42.2c640d95.js new file mode 100644 index 0000000000..4adee600c3 --- /dev/null +++ b/docs/latest/assets/js/42.2c640d95.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{366:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-chartconfiguration-ttype-tdata-tlabel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartconfiguration-ttype-tdata-tlabel"}},[t._v("#")]),t._v(" Interface: ChartConfiguration")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TType[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TLabel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"data"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[t._v("#")]),t._v(" data")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("data")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[a("em",[t._v("ChartData")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3363",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3363"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Optional")]),t._v(" "),a("strong",[t._v("options")]),t._v(": "),a("em",[t._v("DeepPartial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[a("em",[t._v("CoreChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[a("em",[t._v("ElementChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[a("em",[t._v("PluginChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#datasetchartoptions"}},[a("em",[t._v("DatasetChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#scalechartoptions"}},[a("em",[t._v("ScaleChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("chartOptions")]),t._v("]>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3364",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3364"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"plugins"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#plugins"}},[t._v("#")]),t._v(" plugins")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Optional")]),t._v(" "),a("strong",[t._v("plugins")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])]),t._v(">[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3365",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3365"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("type")]),t._v(": TType")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3362",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3362"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/42.670bd41a.js b/docs/latest/assets/js/42.670bd41a.js deleted file mode 100644 index c351c07a29..0000000000 --- a/docs/latest/assets/js/42.670bd41a.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{369:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-chartconfiguration-ttype-tdata-tlabel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartconfiguration-ttype-tdata-tlabel"}},[t._v("#")]),t._v(" Interface: ChartConfiguration")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TType[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TLabel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"data"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[t._v("#")]),t._v(" data")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("data")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[a("em",[t._v("ChartData")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3363",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3363"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Optional")]),t._v(" "),a("strong",[t._v("options")]),t._v(": "),a("em",[t._v("DeepPartial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[a("em",[t._v("CoreChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[a("em",[t._v("ElementChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[a("em",[t._v("PluginChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#datasetchartoptions"}},[a("em",[t._v("DatasetChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#scalechartoptions"}},[a("em",[t._v("ScaleChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("chartOptions")]),t._v("]>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3364",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3364"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"plugins"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#plugins"}},[t._v("#")]),t._v(" plugins")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Optional")]),t._v(" "),a("strong",[t._v("plugins")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])]),t._v(">[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3365",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3365"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("type")]),t._v(": TType")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3362",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3362"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/43.99e62d17.js b/docs/latest/assets/js/43.44d81394.js similarity index 73% rename from docs/latest/assets/js/43.99e62d17.js rename to docs/latest/assets/js/43.44d81394.js index 5435a5e977..afb137b823 100644 --- a/docs/latest/assets/js/43.99e62d17.js +++ b/docs/latest/assets/js/43.44d81394.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[43],{370:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-chartdata-ttype-tdata-tlabel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartdata-ttype-tdata-tlabel"}},[t._v("#")]),t._v(" Interface: ChartData")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TType[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TLabel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"datasets"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasets"}},[t._v("#")]),t._v(" datasets")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("datasets")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3354",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3354"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labels"}},[t._v("#")]),t._v(" labels")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Optional")]),t._v(" "),a("strong",[t._v("labels")]),t._v(": TLabel[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3353",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3353"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[43],{367:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-chartdata-ttype-tdata-tlabel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartdata-ttype-tdata-tlabel"}},[t._v("#")]),t._v(" Interface: ChartData")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TType[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TLabel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"datasets"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasets"}},[t._v("#")]),t._v(" datasets")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("datasets")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3354",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3354"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labels"}},[t._v("#")]),t._v(" labels")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Optional")]),t._v(" "),a("strong",[t._v("labels")]),t._v(": TLabel[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3353",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3353"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/44.f2a002b7.js b/docs/latest/assets/js/44.797fa9fb.js similarity index 65% rename from docs/latest/assets/js/44.f2a002b7.js rename to docs/latest/assets/js/44.797fa9fb.js index 7db54f42b5..dd25a6708c 100644 --- a/docs/latest/assets/js/44.f2a002b7.js +++ b/docs/latest/assets/js/44.797fa9fb.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[44],{371:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-chartdatasetproperties-ttype-tdata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartdatasetproperties-ttype-tdata"}},[t._v("#")]),t._v(" Interface: ChartDatasetProperties")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"data"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[t._v("#")]),t._v(" data")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("data")]),t._v(": TData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3338",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3338"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Optional")]),t._v(" "),a("strong",[t._v("type")]),t._v(": TType")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3337",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3337"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[44],{369:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-chartdatasetproperties-ttype-tdata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartdatasetproperties-ttype-tdata"}},[t._v("#")]),t._v(" Interface: ChartDatasetProperties")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"data"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[t._v("#")]),t._v(" data")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("data")]),t._v(": TData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3338",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3338"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Optional")]),t._v(" "),a("strong",[t._v("type")]),t._v(": TType")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3337",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3337"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/45.cb87802f.js b/docs/latest/assets/js/45.cb87802f.js new file mode 100644 index 0000000000..031a26ef86 --- /dev/null +++ b/docs/latest/assets/js/45.cb87802f.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[45],{370:function(e,t,r){"use strict";r.r(t);var s=r(7),n=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-chartevent"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartevent"}},[e._v("#")]),e._v(" Interface: ChartEvent")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"native"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#native"}},[e._v("#")]),e._v(" native")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("native")]),e._v(": Event")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1319",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1319"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"type"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[e._v("#")]),e._v(" type")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("type")]),e._v(": "),r("em",[e._v("resize")]),e._v(" | "),r("em",[e._v("mousemove")]),e._v(" | "),r("em",[e._v("mouseout")]),e._v(" | "),r("em",[e._v("click")]),e._v(" | "),r("em",[e._v("contextmenu")]),e._v(" | "),r("em",[e._v("mouseenter")]),e._v(" | "),r("em",[e._v("mousedown")]),e._v(" | "),r("em",[e._v("mouseup")]),e._v(" | "),r("em",[e._v("dblclick")]),e._v(" | "),r("em",[e._v("keydown")]),e._v(" | "),r("em",[e._v("keypress")]),e._v(" | "),r("em",[e._v("keyup")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1306",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1306"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[e._v("#")]),e._v(" x")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("x")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1320",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1320"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[e._v("#")]),e._v(" y")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("y")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1321",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1321"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/45.ec8e59c9.js b/docs/latest/assets/js/45.ec8e59c9.js deleted file mode 100644 index b84eec3011..0000000000 --- a/docs/latest/assets/js/45.ec8e59c9.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[45],{372:function(e,t,r){"use strict";r.r(t);var s=r(7),a=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-chartevent"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartevent"}},[e._v("#")]),e._v(" Interface: ChartEvent")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"native"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#native"}},[e._v("#")]),e._v(" native")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("native")]),e._v(": Event")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1319",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1319"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"type"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[e._v("#")]),e._v(" type")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("type")]),e._v(": "),r("em",[e._v("resize")]),e._v(" | "),r("em",[e._v("mousemove")]),e._v(" | "),r("em",[e._v("mouseout")]),e._v(" | "),r("em",[e._v("click")]),e._v(" | "),r("em",[e._v("contextmenu")]),e._v(" | "),r("em",[e._v("mouseenter")]),e._v(" | "),r("em",[e._v("mousedown")]),e._v(" | "),r("em",[e._v("mouseup")]),e._v(" | "),r("em",[e._v("dblclick")]),e._v(" | "),r("em",[e._v("keydown")]),e._v(" | "),r("em",[e._v("keypress")]),e._v(" | "),r("em",[e._v("keyup")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1306",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1306"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[e._v("#")]),e._v(" x")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("x")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1320",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1320"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[e._v("#")]),e._v(" y")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("y")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1321",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1321"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/46.84622a0b.js b/docs/latest/assets/js/46.84622a0b.js deleted file mode 100644 index acef57744c..0000000000 --- a/docs/latest/assets/js/46.84622a0b.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[46],{373:function(e,t,r){"use strict";r.r(t);var a=r(7),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-chartmeta-telement-tdatasetelement"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartmeta-telement-tdatasetelement"}},[e._v("#")]),e._v(" Interface: ChartMeta")]),e._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[e._v("#")]),e._v(" Type parameters")]),e._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[e._v("Name")]),e._v(" "),r("th",{staticStyle:{"text-align":"left"}},[e._v("Type")]),e._v(" "),r("th",{staticStyle:{"text-align":"left"}},[e._v("Default")])])]),e._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[e._v("TElement")])]),e._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])])],1),e._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])])],1)]),e._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[e._v("TDatasetElement")])]),e._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])])],1),e._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])])],1)])])]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"parsed"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsed"}},[e._v("#")]),e._v(" _parsed")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("_parsed")]),e._v(": "),r("em",[e._v("unknown")]),e._v("[]")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L423",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:423"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"sorted"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#sorted"}},[e._v("#")]),e._v(" _sorted")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("_sorted")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L421",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:421"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"stacked"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stacked"}},[e._v("#")]),e._v(" _stacked")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("_stacked")]),e._v(": "),r("em",[e._v("boolean")]),e._v(" | "),r("em",[e._v("single")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L422",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:422"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"controller"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#controller"}},[e._v("#")]),e._v(" controller")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("controller")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[r("em",[e._v("DatasetController")])]),e._v("<"),r("em",[e._v("bar")]),e._v(" | "),r("em",[e._v("line")]),e._v(" | "),r("em",[e._v("scatter")]),e._v(" | "),r("em",[e._v("bubble")]),e._v(" | "),r("em",[e._v("pie")]),e._v(" | "),r("em",[e._v("doughnut")]),e._v(" | "),r("em",[e._v("polarArea")]),e._v(" | "),r("em",[e._v("radar")]),e._v(", "),r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])]),e._v("<{}, {}>, "),r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])]),e._v("<{}, {}>, number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData>")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L393",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:393"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"data"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[e._v("#")]),e._v(" data")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("data")]),e._v(": TElement[]")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L404",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:404"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"dataset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[e._v("#")]),e._v(" dataset")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("dataset")]),e._v(": TDatasetElement")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L405",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:405"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[e._v("#")]),e._v(" hidden")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("hidden")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L407",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:407"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"iaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#iaxisid"}},[e._v("#")]),e._v(" iAxisID")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("iAxisID")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L412",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:412"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"iscale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#iscale"}},[e._v("#")]),e._v(" iScale")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("iScale")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[e._v("Scale")])]),e._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[e._v("CoreScaleOptions")])]),e._v(">")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L418",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:418"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"index"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[e._v("#")]),e._v(" index")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("index")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L397",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:397"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[e._v("#")]),e._v(" indexAxis")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("indexAxis")]),e._v(": "),r("em",[e._v("x")]),e._v(" | "),r("em",[e._v("y")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L402",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:402"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[e._v("#")]),e._v(" label")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("label")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L396",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:396"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[e._v("#")]),e._v(" order")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("order")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L394",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:394"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"raxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#raxisid"}},[e._v("#")]),e._v(" rAxisID")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("rAxisID")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L411",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:411"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"rscale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rscale"}},[e._v("#")]),e._v(" rScale")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("rScale")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[e._v("Scale")])]),e._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[e._v("CoreScaleOptions")])]),e._v(">")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L417",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:417"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[e._v("#")]),e._v(" stack")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("stack")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L400",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:400"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"type"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[e._v("#")]),e._v(" type")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("type")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L392",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:392"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"vaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#vaxisid"}},[e._v("#")]),e._v(" vAxisID")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("vAxisID")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L413",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:413"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"vscale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#vscale"}},[e._v("#")]),e._v(" vScale")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("vScale")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[e._v("Scale")])]),e._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[e._v("CoreScaleOptions")])]),e._v(">")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L419",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:419"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"visible"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#visible"}},[e._v("#")]),e._v(" visible")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("visible")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L398",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:398"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"xaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xaxisid"}},[e._v("#")]),e._v(" xAxisID")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("xAxisID")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L409",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:409"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"xscale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xscale"}},[e._v("#")]),e._v(" xScale")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("xScale")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[e._v("Scale")])]),e._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[e._v("CoreScaleOptions")])]),e._v(">")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L415",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:415"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"yaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yaxisid"}},[e._v("#")]),e._v(" yAxisID")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("yAxisID")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L410",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:410"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"yscale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yscale"}},[e._v("#")]),e._v(" yScale")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("yScale")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[e._v("Scale")])]),e._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[e._v("CoreScaleOptions")])]),e._v(">")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L416",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:416"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/46.eaa23083.js b/docs/latest/assets/js/46.eaa23083.js new file mode 100644 index 0000000000..c71761d586 --- /dev/null +++ b/docs/latest/assets/js/46.eaa23083.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[46],{490:function(e,t,r){"use strict";r.r(t);var a=r(7),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-chartmeta-telement-tdatasetelement"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartmeta-telement-tdatasetelement"}},[e._v("#")]),e._v(" Interface: ChartMeta")]),e._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[e._v("#")]),e._v(" Type parameters")]),e._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[e._v("Name")]),e._v(" "),r("th",{staticStyle:{"text-align":"left"}},[e._v("Type")]),e._v(" "),r("th",{staticStyle:{"text-align":"left"}},[e._v("Default")])])]),e._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[e._v("TElement")])]),e._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])])],1),e._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])])],1)]),e._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[e._v("TDatasetElement")])]),e._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])])],1),e._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])])],1)])])]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"parsed"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsed"}},[e._v("#")]),e._v(" _parsed")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("_parsed")]),e._v(": "),r("em",[e._v("unknown")]),e._v("[]")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L423",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:423"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"sorted"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#sorted"}},[e._v("#")]),e._v(" _sorted")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("_sorted")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L421",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:421"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"stacked"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stacked"}},[e._v("#")]),e._v(" _stacked")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("_stacked")]),e._v(": "),r("em",[e._v("boolean")]),e._v(" | "),r("em",[e._v("single")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L422",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:422"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"controller"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#controller"}},[e._v("#")]),e._v(" controller")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("controller")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[r("em",[e._v("DatasetController")])]),e._v("<"),r("em",[e._v("bar")]),e._v(" | "),r("em",[e._v("line")]),e._v(" | "),r("em",[e._v("scatter")]),e._v(" | "),r("em",[e._v("bubble")]),e._v(" | "),r("em",[e._v("pie")]),e._v(" | "),r("em",[e._v("doughnut")]),e._v(" | "),r("em",[e._v("polarArea")]),e._v(" | "),r("em",[e._v("radar")]),e._v(", "),r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])]),e._v("<{}, {}>, "),r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])]),e._v("<{}, {}>, number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData>")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L393",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:393"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"data"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[e._v("#")]),e._v(" data")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("data")]),e._v(": TElement[]")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L404",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:404"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"dataset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[e._v("#")]),e._v(" dataset")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("dataset")]),e._v(": TDatasetElement")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L405",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:405"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[e._v("#")]),e._v(" hidden")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("hidden")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L407",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:407"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"iaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#iaxisid"}},[e._v("#")]),e._v(" iAxisID")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("iAxisID")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L412",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:412"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"iscale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#iscale"}},[e._v("#")]),e._v(" iScale")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("iScale")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[e._v("Scale")])]),e._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[e._v("CoreScaleOptions")])]),e._v(">")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L418",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:418"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"index"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[e._v("#")]),e._v(" index")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("index")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L397",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:397"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[e._v("#")]),e._v(" indexAxis")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("indexAxis")]),e._v(": "),r("em",[e._v("x")]),e._v(" | "),r("em",[e._v("y")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L402",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:402"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[e._v("#")]),e._v(" label")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("label")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L396",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:396"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[e._v("#")]),e._v(" order")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("order")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L394",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:394"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"raxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#raxisid"}},[e._v("#")]),e._v(" rAxisID")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("rAxisID")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L411",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:411"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"rscale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rscale"}},[e._v("#")]),e._v(" rScale")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("rScale")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[e._v("Scale")])]),e._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[e._v("CoreScaleOptions")])]),e._v(">")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L417",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:417"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[e._v("#")]),e._v(" stack")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("stack")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L400",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:400"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"type"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[e._v("#")]),e._v(" type")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("type")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L392",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:392"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"vaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#vaxisid"}},[e._v("#")]),e._v(" vAxisID")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("vAxisID")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L413",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:413"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"vscale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#vscale"}},[e._v("#")]),e._v(" vScale")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("vScale")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[e._v("Scale")])]),e._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[e._v("CoreScaleOptions")])]),e._v(">")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L419",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:419"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"visible"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#visible"}},[e._v("#")]),e._v(" visible")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("visible")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L398",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:398"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"xaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xaxisid"}},[e._v("#")]),e._v(" xAxisID")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("xAxisID")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L409",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:409"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"xscale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xscale"}},[e._v("#")]),e._v(" xScale")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("xScale")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[e._v("Scale")])]),e._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[e._v("CoreScaleOptions")])]),e._v(">")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L415",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:415"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"yaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yaxisid"}},[e._v("#")]),e._v(" yAxisID")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("yAxisID")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L410",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:410"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"yscale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yscale"}},[e._v("#")]),e._v(" yScale")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("yScale")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[e._v("Scale")])]),e._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[e._v("CoreScaleOptions")])]),e._v(">")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L416",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:416"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/47.888e1be0.js b/docs/latest/assets/js/47.888e1be0.js new file mode 100644 index 0000000000..4d7c0684e2 --- /dev/null +++ b/docs/latest/assets/js/47.888e1be0.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{371:function(t,e,a){"use strict";a.r(e);var r=a(7),l=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-charttyperegistry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-charttyperegistry"}},[t._v("#")]),t._v(" Interface: ChartTypeRegistry")]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"bar"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bar"}},[t._v("#")]),t._v(" bar")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bar")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/barcontrollerchartoptions.html"}},[a("em",[t._v("BarControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/barcontrollerdatasetoptions.html"}},[a("em",[t._v("BarControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("BarParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3244",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3244"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bubble"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bubble"}},[t._v("#")]),t._v(" bubble")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bubble")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/bubblecontrollerdatasetoptions.html"}},[a("em",[t._v("BubbleControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("BubbleParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3265",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3265"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"doughnut"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#doughnut"}},[t._v("#")]),t._v(" doughnut")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("doughnut")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-3"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerchartoptions.html"}},[a("em",[t._v("DoughnutControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[a("em",[t._v("DoughnutControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3279",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3279"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"line"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#line"}},[t._v("#")]),t._v(" line")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("line")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-4"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[a("em",[t._v("LineControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerdatasetoptions.html"}},[a("em",[t._v("LineControllerDatasetOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/fillercontrollerdatasetoptions.html"}},[a("em",[t._v("FillerControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CartesianParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3251",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3251"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"pie"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pie"}},[t._v("#")]),t._v(" pie")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("pie")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-5"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerchartoptions.html"}},[a("em",[t._v("DoughnutControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[a("em",[t._v("DoughnutControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3272",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3272"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"polararea"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#polararea"}},[t._v("#")]),t._v(" polarArea")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("polarArea")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-6"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/polarareacontrollerchartoptions.html"}},[a("em",[t._v("PolarAreaControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/polarareacontrollerdatasetoptions.html"}},[a("em",[t._v("PolarAreaControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("RadialParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("radialLinear")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3286",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3286"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radar"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radar"}},[t._v("#")]),t._v(" radar")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("radar")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-7"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[a("em",[t._v("LineControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/radarcontrollerdatasetoptions.html"}},[a("em",[t._v("RadarControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("RadialParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("radialLinear")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3293",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3293"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scatter"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scatter"}},[t._v("#")]),t._v(" scatter")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("scatter")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-8"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[a("em",[t._v("LineControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerdatasetoptions.html"}},[a("em",[t._v("LineControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CartesianParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3258",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3258"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=l.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/47.e97a844c.js b/docs/latest/assets/js/47.e97a844c.js deleted file mode 100644 index 147e28d2f8..0000000000 --- a/docs/latest/assets/js/47.e97a844c.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{374:function(t,e,a){"use strict";a.r(e);var r=a(7),l=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-charttyperegistry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-charttyperegistry"}},[t._v("#")]),t._v(" Interface: ChartTypeRegistry")]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"bar"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bar"}},[t._v("#")]),t._v(" bar")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bar")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/barcontrollerchartoptions.html"}},[a("em",[t._v("BarControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/barcontrollerdatasetoptions.html"}},[a("em",[t._v("BarControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("BarParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3244",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3244"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bubble"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bubble"}},[t._v("#")]),t._v(" bubble")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bubble")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/bubblecontrollerdatasetoptions.html"}},[a("em",[t._v("BubbleControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("BubbleParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3265",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3265"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"doughnut"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#doughnut"}},[t._v("#")]),t._v(" doughnut")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("doughnut")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-3"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerchartoptions.html"}},[a("em",[t._v("DoughnutControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[a("em",[t._v("DoughnutControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3279",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3279"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"line"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#line"}},[t._v("#")]),t._v(" line")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("line")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-4"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[a("em",[t._v("LineControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerdatasetoptions.html"}},[a("em",[t._v("LineControllerDatasetOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/fillercontrollerdatasetoptions.html"}},[a("em",[t._v("FillerControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CartesianParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3251",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3251"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"pie"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pie"}},[t._v("#")]),t._v(" pie")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("pie")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-5"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerchartoptions.html"}},[a("em",[t._v("DoughnutControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[a("em",[t._v("DoughnutControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3272",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3272"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"polararea"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#polararea"}},[t._v("#")]),t._v(" polarArea")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("polarArea")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-6"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/polarareacontrollerchartoptions.html"}},[a("em",[t._v("PolarAreaControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/polarareacontrollerdatasetoptions.html"}},[a("em",[t._v("PolarAreaControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("RadialParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("radialLinear")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3286",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3286"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radar"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radar"}},[t._v("#")]),t._v(" radar")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("radar")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-7"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[a("em",[t._v("LineControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/radarcontrollerdatasetoptions.html"}},[a("em",[t._v("RadarControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("RadialParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("radialLinear")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3293",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3293"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scatter"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scatter"}},[t._v("#")]),t._v(" scatter")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("scatter")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-8"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[a("em",[t._v("LineControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerdatasetoptions.html"}},[a("em",[t._v("LineControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CartesianParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3258",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3258"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=l.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/48.a98c8b58.js b/docs/latest/assets/js/48.3d2b6dae.js similarity index 51% rename from docs/latest/assets/js/48.a98c8b58.js rename to docs/latest/assets/js/48.3d2b6dae.js index 846c81ce96..b874d756da 100644 --- a/docs/latest/assets/js/48.a98c8b58.js +++ b/docs/latest/assets/js/48.3d2b6dae.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[48],{375:function(t,r,e){"use strict";e.r(r);var o=e(7),s=Object(o.a)({},(function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"interface-commonelementoptions"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#interface-commonelementoptions"}},[t._v("#")]),t._v(" Interface: CommonElementOptions")]),t._v(" "),e("h2",{attrs:{id:"hierarchy"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),e("ul",[e("li",[e("p",[e("strong",[t._v("CommonElementOptions")])]),t._v(" "),e("p",[t._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[e("em",[t._v("ArcOptions")])])],1),t._v(" "),e("p",[t._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[e("em",[t._v("LineOptions")])])],1),t._v(" "),e("p",[t._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[e("em",[t._v("PointOptions")])])],1),t._v(" "),e("p",[t._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[e("em",[t._v("BarOptions")])])],1)])]),t._v(" "),e("h2",{attrs:{id:"properties"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),e("h3",{attrs:{id:"backgroundcolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("backgroundColor")]),t._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[t._v("Color")])])],1),t._v(" "),e("p",[t._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"bordercolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("borderColor")]),t._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[t._v("Color")])])],1),t._v(" "),e("p",[t._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"borderwidth"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("borderWidth")]),t._v(": "),e("em",[t._v("number")])]),t._v(" "),e("p",[t._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),e("OutboundLink")],1)])])}),[],!1,null,null,null);r.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[48],{372:function(t,r,e){"use strict";e.r(r);var o=e(7),n=Object(o.a)({},(function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"interface-commonelementoptions"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#interface-commonelementoptions"}},[t._v("#")]),t._v(" Interface: CommonElementOptions")]),t._v(" "),e("h2",{attrs:{id:"hierarchy"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),e("ul",[e("li",[e("p",[e("strong",[t._v("CommonElementOptions")])]),t._v(" "),e("p",[t._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[e("em",[t._v("ArcOptions")])])],1),t._v(" "),e("p",[t._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[e("em",[t._v("LineOptions")])])],1),t._v(" "),e("p",[t._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[e("em",[t._v("PointOptions")])])],1),t._v(" "),e("p",[t._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[e("em",[t._v("BarOptions")])])],1)])]),t._v(" "),e("h2",{attrs:{id:"properties"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),e("h3",{attrs:{id:"backgroundcolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("backgroundColor")]),t._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[t._v("Color")])])],1),t._v(" "),e("p",[t._v("Defined in: "),e("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"bordercolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("borderColor")]),t._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[t._v("Color")])])],1),t._v(" "),e("p",[t._v("Defined in: "),e("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"borderwidth"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("borderWidth")]),t._v(": "),e("em",[t._v("number")])]),t._v(" "),e("p",[t._v("Defined in: "),e("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),e("OutboundLink")],1)])])}),[],!1,null,null,null);r.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/49.a9354155.js b/docs/latest/assets/js/49.a9354155.js new file mode 100644 index 0000000000..fc30efa658 --- /dev/null +++ b/docs/latest/assets/js/49.a9354155.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[49],{373:function(r,e,t){"use strict";t.r(e);var o=t(7),s=Object(o.a)({},(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[t("h1",{attrs:{id:"interface-commonhoveroptions"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interface-commonhoveroptions"}},[r._v("#")]),r._v(" Interface: CommonHoverOptions")]),r._v(" "),t("h2",{attrs:{id:"hierarchy"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[r._v("#")]),r._v(" Hierarchy")]),r._v(" "),t("ul",[t("li",[t("p",[t("strong",[r._v("CommonHoverOptions")])]),r._v(" "),t("p",[r._v("↳ "),t("RouterLink",{attrs:{to:"/api/interfaces/archoveroptions.html"}},[t("em",[r._v("ArcHoverOptions")])])],1),r._v(" "),t("p",[r._v("↳ "),t("RouterLink",{attrs:{to:"/api/interfaces/linehoveroptions.html"}},[t("em",[r._v("LineHoverOptions")])])],1),r._v(" "),t("p",[r._v("↳ "),t("RouterLink",{attrs:{to:"/api/interfaces/pointhoveroptions.html"}},[t("em",[r._v("PointHoverOptions")])])],1),r._v(" "),t("p",[r._v("↳ "),t("RouterLink",{attrs:{to:"/api/interfaces/barhoveroptions.html"}},[t("em",[r._v("BarHoverOptions")])])],1)])]),r._v(" "),t("h2",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),t("h3",{attrs:{id:"hoverbackgroundcolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[r._v("#")]),r._v(" hoverBackgroundColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBackgroundColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1594"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverbordercolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[r._v("#")]),r._v(" hoverBorderColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1593"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverborderwidth"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[r._v("#")]),r._v(" hoverBorderWidth")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderWidth")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1592"),t("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/49.dd5207d9.js b/docs/latest/assets/js/49.dd5207d9.js deleted file mode 100644 index 09b6d33d45..0000000000 --- a/docs/latest/assets/js/49.dd5207d9.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[49],{376:function(r,t,e){"use strict";e.r(t);var o=e(7),s=Object(o.a)({},(function(){var r=this,t=r.$createElement,e=r._self._c||t;return e("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[e("h1",{attrs:{id:"interface-commonhoveroptions"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#interface-commonhoveroptions"}},[r._v("#")]),r._v(" Interface: CommonHoverOptions")]),r._v(" "),e("h2",{attrs:{id:"hierarchy"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[r._v("#")]),r._v(" Hierarchy")]),r._v(" "),e("ul",[e("li",[e("p",[e("strong",[r._v("CommonHoverOptions")])]),r._v(" "),e("p",[r._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/archoveroptions.html"}},[e("em",[r._v("ArcHoverOptions")])])],1),r._v(" "),e("p",[r._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/linehoveroptions.html"}},[e("em",[r._v("LineHoverOptions")])])],1),r._v(" "),e("p",[r._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/pointhoveroptions.html"}},[e("em",[r._v("PointHoverOptions")])])],1),r._v(" "),e("p",[r._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/barhoveroptions.html"}},[e("em",[r._v("BarHoverOptions")])])],1)])]),r._v(" "),e("h2",{attrs:{id:"properties"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),e("h3",{attrs:{id:"hoverbackgroundcolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[r._v("#")]),r._v(" hoverBackgroundColor")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("hoverBackgroundColor")]),r._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[r._v("Color")])])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1594"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"hoverbordercolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[r._v("#")]),r._v(" hoverBorderColor")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("hoverBorderColor")]),r._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[r._v("Color")])])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1593"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"hoverborderwidth"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[r._v("#")]),r._v(" hoverBorderWidth")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("hoverBorderWidth")]),r._v(": "),e("em",[r._v("number")])]),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1592"),e("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/50.b539434c.js b/docs/latest/assets/js/50.b539434c.js deleted file mode 100644 index d3fb56e494..0000000000 --- a/docs/latest/assets/js/50.b539434c.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[50],{377:function(e,t,r){"use strict";r.r(t);var a=r(7),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-complexfilltarget"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-complexfilltarget"}},[e._v("#")]),e._v(" Interface: ComplexFillTarget")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"above"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#above"}},[e._v("#")]),e._v(" above")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("above")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("If no color is set, the default color will be the background color of the chart.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1990",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1990"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"below"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#below"}},[e._v("#")]),e._v(" below")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("below")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Same as the above.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1994",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1994"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"target"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#target"}},[e._v("#")]),e._v(" target")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("target")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#filltarget"}},[r("em",[e._v("FillTarget")])])],1),e._v(" "),r("p",[e._v("The accepted values are the same as the filling mode values, so you may use absolute and relative dataset indexes and/or boundaries.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1986",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1986"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/50.ece980c4.js b/docs/latest/assets/js/50.ece980c4.js new file mode 100644 index 0000000000..9a03c64cee --- /dev/null +++ b/docs/latest/assets/js/50.ece980c4.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[50],{374:function(e,t,r){"use strict";r.r(t);var a=r(7),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-complexfilltarget"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-complexfilltarget"}},[e._v("#")]),e._v(" Interface: ComplexFillTarget")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"above"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#above"}},[e._v("#")]),e._v(" above")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("above")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("If no color is set, the default color will be the background color of the chart.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1990",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1990"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"below"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#below"}},[e._v("#")]),e._v(" below")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("below")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Same as the above.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1994",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1994"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"target"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#target"}},[e._v("#")]),e._v(" target")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("target")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#filltarget"}},[r("em",[e._v("FillTarget")])])],1),e._v(" "),r("p",[e._v("The accepted values are the same as the filling mode values, so you may use absolute and relative dataset indexes and/or boundaries.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1986",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1986"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/51.208b8ef0.js b/docs/latest/assets/js/51.208b8ef0.js new file mode 100644 index 0000000000..84d807e9d3 --- /dev/null +++ b/docs/latest/assets/js/51.208b8ef0.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{376:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-controllerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-controllerdatasetoptions"}},[t._v("#")]),t._v(" Interface: ControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[r("em",[t._v("ParsingOptions")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("ControllerDatasetOptions")])]),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/barcontrollerdatasetoptions.html"}},[r("em",[t._v("BarControllerDatasetOptions")])])],1),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/bubblecontrollerdatasetoptions.html"}},[r("em",[t._v("BubbleControllerDatasetOptions")])])],1),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerdatasetoptions.html"}},[r("em",[t._v("LineControllerDatasetOptions")])])],1),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[r("em",[t._v("DoughnutControllerDatasetOptions")])])],1),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/radarcontrollerdatasetoptions.html"}},[r("em",[t._v("RadarControllerDatasetOptions")])])],1)])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[t._v("ParsingOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[t._v("ParsingOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/51.780cd47d.js b/docs/latest/assets/js/51.780cd47d.js deleted file mode 100644 index bc0e768a3d..0000000000 --- a/docs/latest/assets/js/51.780cd47d.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{378:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-controllerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-controllerdatasetoptions"}},[t._v("#")]),t._v(" Interface: ControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[r("em",[t._v("ParsingOptions")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("ControllerDatasetOptions")])]),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/barcontrollerdatasetoptions.html"}},[r("em",[t._v("BarControllerDatasetOptions")])])],1),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/bubblecontrollerdatasetoptions.html"}},[r("em",[t._v("BubbleControllerDatasetOptions")])])],1),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerdatasetoptions.html"}},[r("em",[t._v("LineControllerDatasetOptions")])])],1),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[r("em",[t._v("DoughnutControllerDatasetOptions")])])],1),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/radarcontrollerdatasetoptions.html"}},[r("em",[t._v("RadarControllerDatasetOptions")])])],1)])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[t._v("ParsingOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[t._v("ParsingOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/52.56bdcd19.js b/docs/latest/assets/js/52.56bdcd19.js new file mode 100644 index 0000000000..f2d05cc8bf --- /dev/null +++ b/docs/latest/assets/js/52.56bdcd19.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[52],{375:function(t,e,a){"use strict";a.r(e);var r=a(7),n=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-corechartoptions-ttype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-corechartoptions-ttype"}},[t._v("#")]),t._v(" Interface: CoreChartOptions")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[a("em",[t._v("ParsingOptions")])])],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#animationoptions"}},[a("em",[t._v("AnimationOptions")])]),t._v("")],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("CoreChartOptions")])]),t._v(" "),a("p",[t._v("↳↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[a("em",[t._v("Defaults")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"animation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("animation")]),t._v(": "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/#animationspec"}},[a("em",[t._v("AnimationSpec")])]),t._v(" & { "),a("code",[t._v("onComplete?")]),t._v(": ("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v(" ; "),a("code",[t._v("onProgress?")]),t._v(": ("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v(" }")],1),t._v(" "),a("p",[t._v("Inherited from: AnimationOptions.animation")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"animations"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("animations")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#animationsspec"}},[a("em",[t._v("AnimationsSpec")])]),t._v("")],1),t._v(" "),a("p",[t._v("Inherited from: AnimationOptions.animations")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aspectratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aspectratio"}},[t._v("#")]),t._v(" aspectRatio")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("aspectRatio")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Canvas aspect ratio (i.e. width / height, a value of 1 representing a square canvas). Note that this option is ignored if the height is explicitly defined either as attribute or via the style.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1399",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1399"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"backgroundcolor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("backgroundColor")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("p",[t._v("base background color")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.backgroundColor")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1373",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1373"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bordercolor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("borderColor")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("p",[t._v("base border color")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.borderColor")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1378",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1378"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"color"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[t._v("#")]),t._v(" color")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("color")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("p",[t._v("base color")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.color")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1368",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1368"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"datasets"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasets"}},[t._v("#")]),t._v(" datasets")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("datasets")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("bar")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("bubble")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("doughnut")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("line")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pie")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("polarArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("radar")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scatter")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1354",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1354"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"devicepixelratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#devicepixelratio"}},[t._v("#")]),t._v(" devicePixelRatio")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("devicePixelRatio")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Override the window's default devicePixelRatio.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" window.devicePixelRatio")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1416",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1416"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"events"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#events"}},[t._v("#")]),t._v(" events")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("events")]),t._v(": ("),a("em",[t._v("mousemove")]),t._v(" | "),a("em",[t._v("mouseout")]),t._v(" | "),a("em",[t._v("click")]),t._v(" | "),a("em",[t._v("touchstart")]),t._v(" | "),a("em",[t._v("touchmove")]),t._v(")[]")]),t._v(" "),a("p",[t._v("The events option defines the browser events that the chart should listen to for tooltips and hovering.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" ['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove']")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1426",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1426"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"font"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#font"}},[t._v("#")]),t._v(" font")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("font")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[a("em",[t._v("FontSpec")])])],1),t._v(" "),a("p",[t._v("base font")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.font")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1383",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1383"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hover"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hover"}},[t._v("#")]),t._v(" hover")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("hover")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[a("em",[t._v("CoreInteractionOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1420",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1420"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"indexaxis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("indexAxis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])]),t._v(" "),a("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1362",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1362"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"interaction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interaction"}},[t._v("#")]),t._v(" interaction")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("interaction")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[a("em",[t._v("CoreInteractionOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1418",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1418"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"layout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#layout"}},[t._v("#")]),t._v(" layout")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("layout")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(">")],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1438",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1438"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"locale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#locale"}},[t._v("#")]),t._v(" locale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("locale")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Locale used for number formatting (using "),a("code",[t._v("Intl.NumberFormat")]),t._v(").")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" user's browser setting")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1405",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1405"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maintainaspectratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maintainaspectratio"}},[t._v("#")]),t._v(" maintainAspectRatio")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maintainAspectRatio")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Maintain the original canvas aspect ratio (width / height) when resizing.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1393",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1393"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"normalized"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("normalized")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[t._v("ParsingOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("parsing")]),t._v(": "),a("em",[t._v("false")]),t._v(" | { [key: string]: "),a("em",[t._v("string")]),t._v("; }")]),t._v(" "),a("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[t._v("ParsingOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"responsive"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#responsive"}},[t._v("#")]),t._v(" responsive")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("responsive")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Resizes the chart canvas when its container does (important note...).")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1388",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1388"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"transitions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("transitions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[a("em",[t._v("TransitionsSpec")])]),t._v("")],1),t._v(" "),a("p",[t._v("Inherited from: AnimationOptions.transitions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"onclick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onclick"}},[t._v("#")]),t._v(" onClick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onClick")]),t._v("("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[], "),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called if the event is of type 'mouseup' or 'click'. Passed the event, an array of active elements, and the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1436",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1436"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"onhover"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onhover"}},[t._v("#")]),t._v(" onHover")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onHover")]),t._v("("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[], "),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called when any of the events fire. Passed the event, an array of active elements (bars, points, etc), and the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1431",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1431"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"onresize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onresize"}},[t._v("#")]),t._v(" onResize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onResize")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("size")]),t._v(": { "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(" }): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called when a resize occurs. Gets passed two arguments: the chart instance and the new size.")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("size")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("size.height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("size.width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1410",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1410"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/52.a1330943.js b/docs/latest/assets/js/52.a1330943.js deleted file mode 100644 index 06377c29a1..0000000000 --- a/docs/latest/assets/js/52.a1330943.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[52],{379:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-corechartoptions-ttype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-corechartoptions-ttype"}},[t._v("#")]),t._v(" Interface: CoreChartOptions")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[a("em",[t._v("ParsingOptions")])])],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#animationoptions"}},[a("em",[t._v("AnimationOptions")])]),t._v("")],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("CoreChartOptions")])]),t._v(" "),a("p",[t._v("↳↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[a("em",[t._v("Defaults")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"animation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("animation")]),t._v(": "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/#animationspec"}},[a("em",[t._v("AnimationSpec")])]),t._v(" & { "),a("code",[t._v("onComplete?")]),t._v(": ("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v(" ; "),a("code",[t._v("onProgress?")]),t._v(": ("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v(" }")],1),t._v(" "),a("p",[t._v("Inherited from: AnimationOptions.animation")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"animations"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("animations")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#animationsspec"}},[a("em",[t._v("AnimationsSpec")])]),t._v("")],1),t._v(" "),a("p",[t._v("Inherited from: AnimationOptions.animations")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aspectratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aspectratio"}},[t._v("#")]),t._v(" aspectRatio")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("aspectRatio")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Canvas aspect ratio (i.e. width / height, a value of 1 representing a square canvas). Note that this option is ignored if the height is explicitly defined either as attribute or via the style.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1399",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1399"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"backgroundcolor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("backgroundColor")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("p",[t._v("base background color")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.backgroundColor")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1373",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1373"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bordercolor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("borderColor")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("p",[t._v("base border color")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.borderColor")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1378",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1378"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"color"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[t._v("#")]),t._v(" color")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("color")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("p",[t._v("base color")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.color")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1368",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1368"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"datasets"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasets"}},[t._v("#")]),t._v(" datasets")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("datasets")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("bar")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("bubble")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("doughnut")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("line")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pie")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("polarArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("radar")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scatter")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1354",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1354"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"devicepixelratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#devicepixelratio"}},[t._v("#")]),t._v(" devicePixelRatio")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("devicePixelRatio")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Override the window's default devicePixelRatio.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" window.devicePixelRatio")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1416",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1416"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"events"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#events"}},[t._v("#")]),t._v(" events")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("events")]),t._v(": ("),a("em",[t._v("mousemove")]),t._v(" | "),a("em",[t._v("mouseout")]),t._v(" | "),a("em",[t._v("click")]),t._v(" | "),a("em",[t._v("touchstart")]),t._v(" | "),a("em",[t._v("touchmove")]),t._v(")[]")]),t._v(" "),a("p",[t._v("The events option defines the browser events that the chart should listen to for tooltips and hovering.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" ['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove']")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1426",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1426"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"font"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#font"}},[t._v("#")]),t._v(" font")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("font")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[a("em",[t._v("FontSpec")])])],1),t._v(" "),a("p",[t._v("base font")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.font")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1383",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1383"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hover"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hover"}},[t._v("#")]),t._v(" hover")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("hover")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[a("em",[t._v("CoreInteractionOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1420",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1420"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"indexaxis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("indexAxis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])]),t._v(" "),a("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1362",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1362"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"interaction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interaction"}},[t._v("#")]),t._v(" interaction")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("interaction")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[a("em",[t._v("CoreInteractionOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1418",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1418"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"layout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#layout"}},[t._v("#")]),t._v(" layout")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("layout")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(">")],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1438",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1438"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"locale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#locale"}},[t._v("#")]),t._v(" locale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("locale")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Locale used for number formatting (using "),a("code",[t._v("Intl.NumberFormat")]),t._v(").")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" user's browser setting")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1405",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1405"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maintainaspectratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maintainaspectratio"}},[t._v("#")]),t._v(" maintainAspectRatio")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maintainAspectRatio")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Maintain the original canvas aspect ratio (width / height) when resizing.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1393",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1393"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"normalized"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("normalized")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[t._v("ParsingOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("parsing")]),t._v(": "),a("em",[t._v("false")]),t._v(" | { [key: string]: "),a("em",[t._v("string")]),t._v("; }")]),t._v(" "),a("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[t._v("ParsingOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"responsive"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#responsive"}},[t._v("#")]),t._v(" responsive")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("responsive")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Resizes the chart canvas when its container does (important note...).")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1388",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1388"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"transitions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("transitions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[a("em",[t._v("TransitionsSpec")])]),t._v("")],1),t._v(" "),a("p",[t._v("Inherited from: AnimationOptions.transitions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"onclick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onclick"}},[t._v("#")]),t._v(" onClick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onClick")]),t._v("("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[], "),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called if the event is of type 'mouseup' or 'click'. Passed the event, an array of active elements, and the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1436",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1436"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"onhover"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onhover"}},[t._v("#")]),t._v(" onHover")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onHover")]),t._v("("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[], "),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called when any of the events fire. Passed the event, an array of active elements (bars, points, etc), and the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1431",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1431"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"onresize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onresize"}},[t._v("#")]),t._v(" onResize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onResize")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("size")]),t._v(": { "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(" }): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called when a resize occurs. Gets passed two arguments: the chart instance and the new size.")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("size")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("size.height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("size.width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1410",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1410"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/53.6f12fc3c.js b/docs/latest/assets/js/53.6f12fc3c.js deleted file mode 100644 index e32194c186..0000000000 --- a/docs/latest/assets/js/53.6f12fc3c.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[53],{380:function(e,t,r){"use strict";r.r(t);var s=r(7),a=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-coreinteractionoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-coreinteractionoptions"}},[e._v("#")]),e._v(" Interface: CoreInteractionOptions")]),e._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[e._v("#")]),e._v(" Hierarchy")]),e._v(" "),r("ul",[r("li",[r("p",[r("strong",[e._v("CoreInteractionOptions")])]),e._v(" "),r("p",[e._v("↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipoptions.html"}},[r("em",[e._v("TooltipOptions")])])],1)])]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"axis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[e._v("#")]),e._v(" axis")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("axis")]),e._v(": "),r("em",[e._v("x")]),e._v(" | "),r("em",[e._v("y")]),e._v(" | "),r("em",[e._v("xy")])]),e._v(" "),r("p",[e._v("Can be set to 'x', 'y', or 'xy' to define which directions are used in calculating distances. Defaults to 'x' for 'index' mode and 'xy' in dataset and 'nearest' modes.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1349",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1349"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"intersect"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#intersect"}},[e._v("#")]),e._v(" intersect")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("intersect")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("if true, the hover mode only applies when the mouse position intersects an item on the chart.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" true")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1344",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1344"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"mode"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#mode"}},[e._v("#")]),e._v(" mode")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("mode")]),e._v(": "),r("em",[e._v("x")]),e._v(" | "),r("em",[e._v("y")]),e._v(" | "),r("em",[e._v("dataset")]),e._v(" | "),r("em",[e._v("index")]),e._v(" | "),r("em",[e._v("point")]),e._v(" | "),r("em",[e._v("nearest")])]),e._v(" "),r("p",[e._v("Sets which elements appear in the tooltip. See Interaction Modes for details.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 'nearest'")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1339",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1339"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/53.df736d99.js b/docs/latest/assets/js/53.df736d99.js new file mode 100644 index 0000000000..353823c600 --- /dev/null +++ b/docs/latest/assets/js/53.df736d99.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[53],{377:function(e,t,r){"use strict";r.r(t);var s=r(7),a=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-coreinteractionoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-coreinteractionoptions"}},[e._v("#")]),e._v(" Interface: CoreInteractionOptions")]),e._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[e._v("#")]),e._v(" Hierarchy")]),e._v(" "),r("ul",[r("li",[r("p",[r("strong",[e._v("CoreInteractionOptions")])]),e._v(" "),r("p",[e._v("↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipoptions.html"}},[r("em",[e._v("TooltipOptions")])])],1)])]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"axis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[e._v("#")]),e._v(" axis")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("axis")]),e._v(": "),r("em",[e._v("x")]),e._v(" | "),r("em",[e._v("y")]),e._v(" | "),r("em",[e._v("xy")])]),e._v(" "),r("p",[e._v("Can be set to 'x', 'y', or 'xy' to define which directions are used in calculating distances. Defaults to 'x' for 'index' mode and 'xy' in dataset and 'nearest' modes.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1349",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1349"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"intersect"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#intersect"}},[e._v("#")]),e._v(" intersect")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("intersect")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("if true, the hover mode only applies when the mouse position intersects an item on the chart.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" true")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1344",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1344"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"mode"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#mode"}},[e._v("#")]),e._v(" mode")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("mode")]),e._v(": "),r("em",[e._v("x")]),e._v(" | "),r("em",[e._v("y")]),e._v(" | "),r("em",[e._v("dataset")]),e._v(" | "),r("em",[e._v("index")]),e._v(" | "),r("em",[e._v("point")]),e._v(" | "),r("em",[e._v("nearest")])]),e._v(" "),r("p",[e._v("Sets which elements appear in the tooltip. See Interaction Modes for details.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 'nearest'")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1339",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1339"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/54.29b9b9a7.js b/docs/latest/assets/js/54.29b9b9a7.js deleted file mode 100644 index faa20f75fd..0000000000 --- a/docs/latest/assets/js/54.29b9b9a7.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{381:function(t,e,a){"use strict";a.r(e);var s=a(7),r=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-corescaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-corescaleoptions"}},[t._v("#")]),t._v(" Interface: CoreScaleOptions")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("CoreScaleOptions")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[a("em",[t._v("CartesianScaleOptions")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"aligntopixels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aligntopixels"}},[t._v("#")]),t._v(" alignToPixels")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("alignToPixels")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Align pixel values to device pixels")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1077",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1077"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"display"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[t._v("#")]),t._v(" display")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("display")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("auto")])]),t._v(" "),a("p",[t._v("Controls the axis global visibility (visible when true, hidden when false). When display: 'auto', the axis is visible only if at least one associated dataset is visible.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1073",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1073"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reverse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reverse"}},[t._v("#")]),t._v(" reverse")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("reverse")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Reverse the scale.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1082",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1082"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1087",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1087"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBuildTicks")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after ticks are created. Useful for filtering ticks.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1115",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1115"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftercalculatetickrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftercalculatetickrotation"}},[t._v("#")]),t._v(" afterCalculateTickRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterCalculateTickRotation")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after tick rotation is determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1131",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1131"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterDataLimits")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after data limits are determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1107",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1107"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfit"}},[t._v("#")]),t._v(" afterFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFit")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after the scale fits to the canvas.")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1139",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1139"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftersetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftersetdimensions"}},[t._v("#")]),t._v(" afterSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterSetDimensions")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after dimensions are set.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1099",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1099"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterticktolabelconversion"}},[t._v("#")]),t._v(" afterTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTickToLabelConversion")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after ticks are converted into strings.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1123",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1123"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterUpdate")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs at the end of the update process.")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1143",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1143"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBuildTicks")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before ticks are created.")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1111",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1111"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforecalculatetickrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforecalculatetickrotation"}},[t._v("#")]),t._v(" beforeCalculateTickRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeCalculateTickRotation")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before tick rotation is determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1127",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1127"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeDataLimits")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before data limits are determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1103",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1103"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefit"}},[t._v("#")]),t._v(" beforeFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFit")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before the scale fits to the canvas.")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1135",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1135"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforesetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforesetdimensions"}},[t._v("#")]),t._v(" beforeSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeSetDimensions")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before dimensions are set.")]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1095",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1095"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeticktolabelconversion"}},[t._v("#")]),t._v(" beforeTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTickToLabelConversion")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before ticks are converted into strings.")]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1119",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1119"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeUpdate")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback called before the update process starts.")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1091",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1091"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/54.3cb944cc.js b/docs/latest/assets/js/54.3cb944cc.js new file mode 100644 index 0000000000..14178cccf5 --- /dev/null +++ b/docs/latest/assets/js/54.3cb944cc.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{378:function(t,e,a){"use strict";a.r(e);var s=a(7),r=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-corescaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-corescaleoptions"}},[t._v("#")]),t._v(" Interface: CoreScaleOptions")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("CoreScaleOptions")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[a("em",[t._v("CartesianScaleOptions")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"aligntopixels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aligntopixels"}},[t._v("#")]),t._v(" alignToPixels")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("alignToPixels")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Align pixel values to device pixels")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1077",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1077"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"display"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[t._v("#")]),t._v(" display")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("display")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("auto")])]),t._v(" "),a("p",[t._v("Controls the axis global visibility (visible when true, hidden when false). When display: 'auto', the axis is visible only if at least one associated dataset is visible.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1073",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1073"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reverse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reverse"}},[t._v("#")]),t._v(" reverse")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("reverse")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Reverse the scale.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1082",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1082"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1087",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1087"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBuildTicks")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after ticks are created. Useful for filtering ticks.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1115",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1115"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftercalculatetickrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftercalculatetickrotation"}},[t._v("#")]),t._v(" afterCalculateTickRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterCalculateTickRotation")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after tick rotation is determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1131",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1131"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterDataLimits")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after data limits are determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1107",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1107"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfit"}},[t._v("#")]),t._v(" afterFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFit")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after the scale fits to the canvas.")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1139",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1139"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftersetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftersetdimensions"}},[t._v("#")]),t._v(" afterSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterSetDimensions")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after dimensions are set.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1099",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1099"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterticktolabelconversion"}},[t._v("#")]),t._v(" afterTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTickToLabelConversion")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after ticks are converted into strings.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1123",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1123"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterUpdate")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs at the end of the update process.")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1143",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1143"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBuildTicks")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before ticks are created.")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1111",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1111"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforecalculatetickrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforecalculatetickrotation"}},[t._v("#")]),t._v(" beforeCalculateTickRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeCalculateTickRotation")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before tick rotation is determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1127",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1127"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeDataLimits")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before data limits are determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1103",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1103"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefit"}},[t._v("#")]),t._v(" beforeFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFit")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before the scale fits to the canvas.")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1135",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1135"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforesetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforesetdimensions"}},[t._v("#")]),t._v(" beforeSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeSetDimensions")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before dimensions are set.")]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1095",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1095"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeticktolabelconversion"}},[t._v("#")]),t._v(" beforeTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTickToLabelConversion")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before ticks are converted into strings.")]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1119",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1119"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeUpdate")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback called before the update process starts.")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1091",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1091"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/55.49c0fd5c.js b/docs/latest/assets/js/55.49c0fd5c.js new file mode 100644 index 0000000000..156d029db3 --- /dev/null +++ b/docs/latest/assets/js/55.49c0fd5c.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[55],{379:function(t,e,r){"use strict";r.r(e);var a=r(7),n=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-datasetcontrollerchartcomponent"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-datasetcontrollerchartcomponent"}},[t._v("#")]),t._v(" Interface: DatasetControllerChartComponent")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[r("em",[t._v("ChartComponent")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("DatasetControllerChartComponent")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"defaultroutes"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defaultroutes"}},[t._v("#")]),t._v(" defaultRoutes")]),t._v(" "),r("p",[t._v("• "),r("code",[t._v("Optional")]),t._v(" "),r("strong",[t._v("defaultRoutes")]),t._v(": "),r("em",[t._v("object")])]),t._v(" "),r("h4",{attrs:{id:"type-declaration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html#defaultroutes"}},[t._v("defaultRoutes")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1326",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1326"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"defaults"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defaults"}},[t._v("#")]),t._v(" defaults")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("defaults")]),t._v(": "),r("em",[t._v("object")])]),t._v(" "),r("h4",{attrs:{id:"type-declaration-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("dataElementType")]),t._v("?")]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("false")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("datasetElementType")]),t._v("?")]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("false")])])])])]),t._v(" "),r("p",[t._v("Overrides: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html#defaults"}},[t._v("defaults")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L601",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:601"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"id"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("id")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html#id"}},[t._v("id")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1324",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1324"),r("OutboundLink")],1)]),t._v(" "),r("h2",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("h3",{attrs:{id:"afterregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#afterregister"}},[t._v("#")]),t._v(" afterRegister")]),t._v(" "),r("p",[t._v("▸ "),r("code",[t._v("Optional")]),r("strong",[t._v("afterRegister")]),t._v("(): "),r("em",[t._v("void")])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1329",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1329"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"afterunregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#afterunregister"}},[t._v("#")]),t._v(" afterUnregister")]),t._v(" "),r("p",[t._v("▸ "),r("code",[t._v("Optional")]),r("strong",[t._v("afterUnregister")]),t._v("(): "),r("em",[t._v("void")])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1331",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1331"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"beforeregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#beforeregister"}},[t._v("#")]),t._v(" beforeRegister")]),t._v(" "),r("p",[t._v("▸ "),r("code",[t._v("Optional")]),r("strong",[t._v("beforeRegister")]),t._v("(): "),r("em",[t._v("void")])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1328",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1328"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"beforeunregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#beforeunregister"}},[t._v("#")]),t._v(" beforeUnregister")]),t._v(" "),r("p",[t._v("▸ "),r("code",[t._v("Optional")]),r("strong",[t._v("beforeUnregister")]),t._v("(): "),r("em",[t._v("void")])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1330",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1330"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/55.93c18df5.js b/docs/latest/assets/js/55.93c18df5.js deleted file mode 100644 index 48feff661d..0000000000 --- a/docs/latest/assets/js/55.93c18df5.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[55],{382:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-datasetcontrollerchartcomponent"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-datasetcontrollerchartcomponent"}},[t._v("#")]),t._v(" Interface: DatasetControllerChartComponent")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[r("em",[t._v("ChartComponent")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("DatasetControllerChartComponent")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"defaultroutes"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defaultroutes"}},[t._v("#")]),t._v(" defaultRoutes")]),t._v(" "),r("p",[t._v("• "),r("code",[t._v("Optional")]),t._v(" "),r("strong",[t._v("defaultRoutes")]),t._v(": "),r("em",[t._v("object")])]),t._v(" "),r("h4",{attrs:{id:"type-declaration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html#defaultroutes"}},[t._v("defaultRoutes")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1326",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1326"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"defaults"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defaults"}},[t._v("#")]),t._v(" defaults")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("defaults")]),t._v(": "),r("em",[t._v("object")])]),t._v(" "),r("h4",{attrs:{id:"type-declaration-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("dataElementType")]),t._v("?")]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("false")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("datasetElementType")]),t._v("?")]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("false")])])])])]),t._v(" "),r("p",[t._v("Overrides: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html#defaults"}},[t._v("defaults")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L601",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:601"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"id"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("id")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html#id"}},[t._v("id")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1324",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1324"),r("OutboundLink")],1)]),t._v(" "),r("h2",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("h3",{attrs:{id:"afterregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#afterregister"}},[t._v("#")]),t._v(" afterRegister")]),t._v(" "),r("p",[t._v("▸ "),r("code",[t._v("Optional")]),r("strong",[t._v("afterRegister")]),t._v("(): "),r("em",[t._v("void")])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1329",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1329"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"afterunregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#afterunregister"}},[t._v("#")]),t._v(" afterUnregister")]),t._v(" "),r("p",[t._v("▸ "),r("code",[t._v("Optional")]),r("strong",[t._v("afterUnregister")]),t._v("(): "),r("em",[t._v("void")])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1331",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1331"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"beforeregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#beforeregister"}},[t._v("#")]),t._v(" beforeRegister")]),t._v(" "),r("p",[t._v("▸ "),r("code",[t._v("Optional")]),r("strong",[t._v("beforeRegister")]),t._v("(): "),r("em",[t._v("void")])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1328",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1328"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"beforeunregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#beforeunregister"}},[t._v("#")]),t._v(" beforeUnregister")]),t._v(" "),r("p",[t._v("▸ "),r("code",[t._v("Optional")]),r("strong",[t._v("beforeUnregister")]),t._v("(): "),r("em",[t._v("void")])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1330",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1330"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/56.8beb8892.js b/docs/latest/assets/js/56.8beb8892.js new file mode 100644 index 0000000000..37d7a35add --- /dev/null +++ b/docs/latest/assets/js/56.8beb8892.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[56],{380:function(t,e,a){"use strict";a.r(e);var v=a(7),_=Object(v.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-dateadapter"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-dateadapter"}},[t._v("#")]),t._v(" Interface: DateAdapter")]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": "),a("em",[t._v("any")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/adapters.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"add"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#add"}},[t._v("#")]),t._v(" add")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("add")]),t._v("("),a("code",[t._v("timestamp")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("amount")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("unit")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v("): "),a("em",[t._v("number")])],1),t._v(" "),a("p",[t._v("Adds the specified "),a("code",[t._v("amount")]),t._v(" of "),a("code",[t._v("unit")]),t._v(" to the given "),a("code",[t._v("timestamp")]),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("timestamp")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the input timestamp")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("amount")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the amount to add")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("unit")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the unit as string")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/adapters.d.ts#L34",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:34"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"diff"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#diff"}},[t._v("#")]),t._v(" diff")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("diff")]),t._v("("),a("code",[t._v("a")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("b")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("unit")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v("): "),a("em",[t._v("number")])],1),t._v(" "),a("p",[t._v("Returns the number of "),a("code",[t._v("unit")]),t._v(" between the given timestamps.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("a")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the input timestamp (reference)")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("b")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the timestamp to subtract")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("unit")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the unit as string")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/adapters.d.ts#L42",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:42"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"endof"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#endof"}},[t._v("#")]),t._v(" endOf")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("endOf")]),t._v("("),a("code",[t._v("timestamp")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("unit")]),t._v(": "),a("em",[t._v("millisecond")]),t._v(" | "),a("em",[t._v("second")]),t._v(" | "),a("em",[t._v("minute")]),t._v(" | "),a("em",[t._v("hour")]),t._v(" | "),a("em",[t._v("day")]),t._v(" | "),a("em",[t._v("week")]),t._v(" | "),a("em",[t._v("month")]),t._v(" | "),a("em",[t._v("quarter")]),t._v(" | "),a("em",[t._v("year")]),t._v(" | "),a("em",[t._v("isoWeek")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns end of "),a("code",[t._v("unit")]),t._v(" for the given "),a("code",[t._v("timestamp")]),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("timestamp")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the input timestamp")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("unit")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("millisecond")]),t._v(" | "),a("em",[t._v("second")]),t._v(" | "),a("em",[t._v("minute")]),t._v(" | "),a("em",[t._v("hour")]),t._v(" | "),a("em",[t._v("day")]),t._v(" | "),a("em",[t._v("week")]),t._v(" | "),a("em",[t._v("month")]),t._v(" | "),a("em",[t._v("quarter")]),t._v(" | "),a("em",[t._v("year")]),t._v(" | "),a("em",[t._v("isoWeek")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the unit as string")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/adapters.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#format"}},[t._v("#")]),t._v(" format")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("format")]),t._v("("),a("code",[t._v("timestamp")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("format")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v("): "),a("em",[t._v("string")])],1),t._v(" "),a("p",[t._v("Returns the formatted date in the specified "),a("code",[t._v("format")]),t._v(" for a given "),a("code",[t._v("timestamp")]),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("timestamp")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the timestamp to format")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("format")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the date/time token")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/adapters.d.ts#L26",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:26"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"formats"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#formats"}},[t._v("#")]),t._v(" formats")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("formats")]),t._v("(): "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Returns a map of time formats for the supported formatting units defined\nin Unit as well as 'datetime' representing a detailed date/time string.")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/adapters.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"override"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#override"}},[t._v("#")]),t._v(" override")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("override")]),t._v("("),a("code",[t._v("members")]),t._v(": "),a("em",[t._v("Partial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/dateadapter.html"}},[a("em",[t._v("DateAdapter")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("members")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Partial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/dateadapter.html"}},[a("em",[t._v("DateAdapter")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/adapters.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("any")]),t._v(", "),a("code",[t._v("format?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v("): "),a("em",[t._v("number")])],1),t._v(" "),a("p",[t._v("Parses the given "),a("code",[t._v("value")]),t._v(" and return the associated timestamp.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("any")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the value to parse (usually comes from the data)")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("format?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/adapters.d.ts#L19",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:19"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"startof"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#startof"}},[t._v("#")]),t._v(" startOf")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("startOf")]),t._v("("),a("code",[t._v("timestamp")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("unit")]),t._v(": "),a("em",[t._v("millisecond")]),t._v(" | "),a("em",[t._v("second")]),t._v(" | "),a("em",[t._v("minute")]),t._v(" | "),a("em",[t._v("hour")]),t._v(" | "),a("em",[t._v("day")]),t._v(" | "),a("em",[t._v("week")]),t._v(" | "),a("em",[t._v("month")]),t._v(" | "),a("em",[t._v("quarter")]),t._v(" | "),a("em",[t._v("year")]),t._v(" | "),a("em",[t._v("isoWeek")]),t._v(", "),a("code",[t._v("weekday?")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns start of "),a("code",[t._v("unit")]),t._v(" for the given "),a("code",[t._v("timestamp")]),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("timestamp")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the input timestamp")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("unit")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("millisecond")]),t._v(" | "),a("em",[t._v("second")]),t._v(" | "),a("em",[t._v("minute")]),t._v(" | "),a("em",[t._v("hour")]),t._v(" | "),a("em",[t._v("day")]),t._v(" | "),a("em",[t._v("week")]),t._v(" | "),a("em",[t._v("month")]),t._v(" | "),a("em",[t._v("quarter")]),t._v(" | "),a("em",[t._v("year")]),t._v(" | "),a("em",[t._v("isoWeek")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the unit as string")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("weekday?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/adapters.d.ts#L51",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:51"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/56.e7730f5b.js b/docs/latest/assets/js/56.e7730f5b.js deleted file mode 100644 index d28c84c00a..0000000000 --- a/docs/latest/assets/js/56.e7730f5b.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[56],{383:function(t,e,a){"use strict";a.r(e);var v=a(7),_=Object(v.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-dateadapter"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-dateadapter"}},[t._v("#")]),t._v(" Interface: DateAdapter")]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": "),a("em",[t._v("any")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/adapters.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"add"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#add"}},[t._v("#")]),t._v(" add")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("add")]),t._v("("),a("code",[t._v("timestamp")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("amount")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("unit")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v("): "),a("em",[t._v("number")])],1),t._v(" "),a("p",[t._v("Adds the specified "),a("code",[t._v("amount")]),t._v(" of "),a("code",[t._v("unit")]),t._v(" to the given "),a("code",[t._v("timestamp")]),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("timestamp")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the input timestamp")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("amount")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the amount to add")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("unit")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the unit as string")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/adapters.d.ts#L34",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:34"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"diff"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#diff"}},[t._v("#")]),t._v(" diff")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("diff")]),t._v("("),a("code",[t._v("a")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("b")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("unit")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v("): "),a("em",[t._v("number")])],1),t._v(" "),a("p",[t._v("Returns the number of "),a("code",[t._v("unit")]),t._v(" between the given timestamps.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("a")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the input timestamp (reference)")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("b")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the timestamp to subtract")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("unit")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the unit as string")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/adapters.d.ts#L42",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:42"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"endof"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#endof"}},[t._v("#")]),t._v(" endOf")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("endOf")]),t._v("("),a("code",[t._v("timestamp")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("unit")]),t._v(": "),a("em",[t._v("millisecond")]),t._v(" | "),a("em",[t._v("second")]),t._v(" | "),a("em",[t._v("minute")]),t._v(" | "),a("em",[t._v("hour")]),t._v(" | "),a("em",[t._v("day")]),t._v(" | "),a("em",[t._v("week")]),t._v(" | "),a("em",[t._v("month")]),t._v(" | "),a("em",[t._v("quarter")]),t._v(" | "),a("em",[t._v("year")]),t._v(" | "),a("em",[t._v("isoWeek")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns end of "),a("code",[t._v("unit")]),t._v(" for the given "),a("code",[t._v("timestamp")]),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("timestamp")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the input timestamp")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("unit")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("millisecond")]),t._v(" | "),a("em",[t._v("second")]),t._v(" | "),a("em",[t._v("minute")]),t._v(" | "),a("em",[t._v("hour")]),t._v(" | "),a("em",[t._v("day")]),t._v(" | "),a("em",[t._v("week")]),t._v(" | "),a("em",[t._v("month")]),t._v(" | "),a("em",[t._v("quarter")]),t._v(" | "),a("em",[t._v("year")]),t._v(" | "),a("em",[t._v("isoWeek")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the unit as string")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/adapters.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#format"}},[t._v("#")]),t._v(" format")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("format")]),t._v("("),a("code",[t._v("timestamp")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("format")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v("): "),a("em",[t._v("string")])],1),t._v(" "),a("p",[t._v("Returns the formatted date in the specified "),a("code",[t._v("format")]),t._v(" for a given "),a("code",[t._v("timestamp")]),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("timestamp")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the timestamp to format")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("format")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the date/time token")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/adapters.d.ts#L26",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:26"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"formats"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#formats"}},[t._v("#")]),t._v(" formats")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("formats")]),t._v("(): "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Returns a map of time formats for the supported formatting units defined\nin Unit as well as 'datetime' representing a detailed date/time string.")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/adapters.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"override"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#override"}},[t._v("#")]),t._v(" override")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("override")]),t._v("("),a("code",[t._v("members")]),t._v(": "),a("em",[t._v("Partial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/dateadapter.html"}},[a("em",[t._v("DateAdapter")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("members")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Partial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/dateadapter.html"}},[a("em",[t._v("DateAdapter")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/adapters.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("any")]),t._v(", "),a("code",[t._v("format?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v("): "),a("em",[t._v("number")])],1),t._v(" "),a("p",[t._v("Parses the given "),a("code",[t._v("value")]),t._v(" and return the associated timestamp.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("any")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the value to parse (usually comes from the data)")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("format?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/adapters.d.ts#L19",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:19"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"startof"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#startof"}},[t._v("#")]),t._v(" startOf")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("startOf")]),t._v("("),a("code",[t._v("timestamp")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("unit")]),t._v(": "),a("em",[t._v("millisecond")]),t._v(" | "),a("em",[t._v("second")]),t._v(" | "),a("em",[t._v("minute")]),t._v(" | "),a("em",[t._v("hour")]),t._v(" | "),a("em",[t._v("day")]),t._v(" | "),a("em",[t._v("week")]),t._v(" | "),a("em",[t._v("month")]),t._v(" | "),a("em",[t._v("quarter")]),t._v(" | "),a("em",[t._v("year")]),t._v(" | "),a("em",[t._v("isoWeek")]),t._v(", "),a("code",[t._v("weekday?")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns start of "),a("code",[t._v("unit")]),t._v(" for the given "),a("code",[t._v("timestamp")]),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("timestamp")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the input timestamp")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("unit")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("millisecond")]),t._v(" | "),a("em",[t._v("second")]),t._v(" | "),a("em",[t._v("minute")]),t._v(" | "),a("em",[t._v("hour")]),t._v(" | "),a("em",[t._v("day")]),t._v(" | "),a("em",[t._v("week")]),t._v(" | "),a("em",[t._v("month")]),t._v(" | "),a("em",[t._v("quarter")]),t._v(" | "),a("em",[t._v("year")]),t._v(" | "),a("em",[t._v("isoWeek")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the unit as string")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("weekday?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/adapters.d.ts#L51",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:51"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/57.62b24161.js b/docs/latest/assets/js/57.62b24161.js new file mode 100644 index 0000000000..e005c5b5bc --- /dev/null +++ b/docs/latest/assets/js/57.62b24161.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[57],{381:function(t,e,r){"use strict";r.r(e);var a=r(7),i=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-defaults"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-defaults"}},[t._v("#")]),t._v(" Interface: Defaults")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[r("em",[t._v("CoreChartOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#charttype"}},[r("em",[t._v("ChartType")])]),t._v(">")],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[r("em",[t._v("ElementChartOptions")])])],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[r("em",[t._v("PluginChartOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#charttype"}},[r("em",[t._v("ChartType")])]),t._v(">")],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("Defaults")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("em",[t._v("false")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v("> & { "),r("code",[t._v("onComplete?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" ; "),r("code",[t._v("onProgress?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" }")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#animation"}},[t._v("animation")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#animations"}},[t._v("animations")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"aspectratio"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#aspectratio"}},[t._v("#")]),t._v(" aspectRatio")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("aspectRatio")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Canvas aspect ratio (i.e. width / height, a value of 1 representing a square canvas). Note that this option is ignored if the height is explicitly defined either as attribute or via the style.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#aspectratio"}},[t._v("aspectRatio")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1399",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1399"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("base background color")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("see")])]),t._v(" Defaults.backgroundColor")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#backgroundcolor"}},[t._v("backgroundColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1373",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1373"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("base border color")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("see")])]),t._v(" Defaults.borderColor")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#bordercolor"}},[t._v("borderColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1378",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1378"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"color"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[t._v("#")]),t._v(" color")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("color")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("base color")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("see")])]),t._v(" Defaults.color")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#color"}},[t._v("color")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1368",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1368"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"datasets"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#datasets"}},[t._v("#")]),t._v(" datasets")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("datasets")]),t._v(": "),r("em",[t._v("object")])]),t._v(" "),r("h4",{attrs:{id:"type-declaration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("bar")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("bubble")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("doughnut")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("line")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("pie")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("polarArea")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("radar")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("scatter")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})])])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#datasets"}},[t._v("datasets")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1354",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1354"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"devicepixelratio"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#devicepixelratio"}},[t._v("#")]),t._v(" devicePixelRatio")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("devicePixelRatio")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Override the window's default devicePixelRatio.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" window.devicePixelRatio")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#devicepixelratio"}},[t._v("devicePixelRatio")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1416",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1416"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"elements"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#elements"}},[t._v("#")]),t._v(" elements")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("elements")]),t._v(": "),r("em",[t._v("Partial")]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/elementoptionsbytype.html"}},[r("em",[t._v("ElementOptionsByType")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[t._v("ElementChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html#elements"}},[t._v("elements")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1897",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1897"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"events"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#events"}},[t._v("#")]),t._v(" events")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("events")]),t._v(": ("),r("em",[t._v("mousemove")]),t._v(" | "),r("em",[t._v("mouseout")]),t._v(" | "),r("em",[t._v("click")]),t._v(" | "),r("em",[t._v("touchstart")]),t._v(" | "),r("em",[t._v("touchmove")]),t._v(")[]")]),t._v(" "),r("p",[t._v("The events option defines the browser events that the chart should listen to for tooltips and hovering.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" ['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove']")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#events"}},[t._v("events")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1426",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1426"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"font"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#font"}},[t._v("#")]),t._v(" font")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("font")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[r("em",[t._v("FontSpec")])])],1),t._v(" "),r("p",[t._v("base font")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("see")])]),t._v(" Defaults.font")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#font"}},[t._v("font")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1383",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1383"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hover"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hover"}},[t._v("#")]),t._v(" hover")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hover")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[r("em",[t._v("CoreInteractionOptions")])])],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#hover"}},[t._v("hover")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1420",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1420"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1362",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1362"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"interaction"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interaction"}},[t._v("#")]),t._v(" interaction")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("interaction")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[r("em",[t._v("CoreInteractionOptions")])])],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#interaction"}},[t._v("interaction")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1418",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1418"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"layout"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#layout"}},[t._v("#")]),t._v(" layout")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("layout")]),t._v(": "),r("em",[t._v("object")])]),t._v(" "),r("h4",{attrs:{id:"type-declaration-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("padding")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1)])])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#layout"}},[t._v("layout")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1438",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1438"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"locale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#locale"}},[t._v("#")]),t._v(" locale")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("locale")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("Locale used for number formatting (using "),r("code",[t._v("Intl.NumberFormat")]),t._v(").")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" user's browser setting")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#locale"}},[t._v("locale")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1405",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1405"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"maintainaspectratio"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#maintainaspectratio"}},[t._v("#")]),t._v(" maintainAspectRatio")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("maintainAspectRatio")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Maintain the original canvas aspect ratio (width / height) when resizing.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#maintainaspectratio"}},[t._v("maintainAspectRatio")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1393",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1393"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"plugins"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#plugins"}},[t._v("#")]),t._v(" plugins")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("plugins")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/pluginoptionsbytype.html"}},[r("em",[t._v("PluginOptionsByType")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[t._v("PluginChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html#plugins"}},[t._v("plugins")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2626",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2626"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"responsive"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#responsive"}},[t._v("#")]),t._v(" responsive")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("responsive")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Resizes the chart canvas when its container does (important note...).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#responsive"}},[t._v("responsive")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1388",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1388"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"scale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#scale"}},[t._v("#")]),t._v(" scale")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("scale")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scaleoptionsbytype"}},[r("em",[t._v("ScaleOptionsByType")])]),t._v("<"),r("em",[t._v("linear")]),t._v(" | "),r("em",[t._v("logarithmic")]),t._v(" | "),r("em",[t._v("category")]),t._v(" | "),r("em",[t._v("time")]),t._v(" | "),r("em",[t._v("timeseries")]),t._v(" | "),r("em",[t._v("radialLinear")]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L609",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:609"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"scales"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#scales"}},[t._v("#")]),t._v(" scales")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("scales")]),t._v(": "),r("em",[t._v("object")])]),t._v(" "),r("h4",{attrs:{id:"type-declaration-3"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-3"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("category")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("linear")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("logarithmic")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("radialLinear")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("time")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("timeseries")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})])])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L610",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:610"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"transitions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("transitions")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[r("em",[t._v("TransitionsSpec")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#transitions"}},[t._v("transitions")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),r("OutboundLink")],1)]),t._v(" "),r("h2",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("h3",{attrs:{id:"describe"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#describe"}},[t._v("#")]),t._v(" describe")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("describe")]),t._v("("),r("code",[t._v("scope")]),t._v(": "),r("em",[t._v("string")]),t._v(", "),r("code",[t._v("values")]),t._v(": "),r("em",[t._v("Record")]),t._v("): "),r("em",[t._v("Record")]),t._v("")]),t._v(" "),r("h4",{attrs:{id:"parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("scope")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("values")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("Record")]),t._v("")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L618",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:618"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"get"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#get"}},[t._v("#")]),t._v(" get")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("get")]),t._v("("),r("code",[t._v("scope")]),t._v(": "),r("em",[t._v("string")]),t._v("): "),r("em",[t._v("Record")]),t._v("")]),t._v(" "),r("h4",{attrs:{id:"parameters-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("scope")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")])])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("Record")]),t._v("")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L616",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:616"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"onclick"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#onclick"}},[t._v("#")]),t._v(" onClick")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("onClick")]),t._v("("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[r("em",[t._v("ChartEvent")])]),t._v(", "),r("code",[t._v("elements")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[r("em",[t._v("ActiveElement")])]),t._v("[], "),r("code",[t._v("chart")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),r("em",[t._v("void")])],1),t._v(" "),r("p",[t._v("Called if the event is of type 'mouseup' or 'click'. Passed the event, an array of active elements, and the chart.")]),t._v(" "),r("h4",{attrs:{id:"parameters-3"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("event")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[r("em",[t._v("ChartEvent")])])],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("elements")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[r("em",[t._v("ActiveElement")])]),t._v("[]")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("chart")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1436",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1436"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"onhover"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#onhover"}},[t._v("#")]),t._v(" onHover")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("onHover")]),t._v("("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[r("em",[t._v("ChartEvent")])]),t._v(", "),r("code",[t._v("elements")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[r("em",[t._v("ActiveElement")])]),t._v("[], "),r("code",[t._v("chart")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),r("em",[t._v("void")])],1),t._v(" "),r("p",[t._v("Called when any of the events fire. Passed the event, an array of active elements (bars, points, etc), and the chart.")]),t._v(" "),r("h4",{attrs:{id:"parameters-4"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("event")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[r("em",[t._v("ChartEvent")])])],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("elements")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[r("em",[t._v("ActiveElement")])]),t._v("[]")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("chart")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1431",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1431"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"onresize"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#onresize"}},[t._v("#")]),t._v(" onResize")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("onResize")]),t._v("("),r("code",[t._v("chart")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),r("code",[t._v("size")]),t._v(": { "),r("code",[t._v("height")]),t._v(": "),r("em",[t._v("number")]),t._v(" ; "),r("code",[t._v("width")]),t._v(": "),r("em",[t._v("number")]),t._v(" }): "),r("em",[t._v("void")])],1),t._v(" "),r("p",[t._v("Called when a resize occurs. Gets passed two arguments: the chart instance and the new size.")]),t._v(" "),r("h4",{attrs:{id:"parameters-5"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("chart")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("size")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("object")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("size.height")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("number")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("size.width")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("number")])])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1410",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1410"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"override"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#override"}},[t._v("#")]),t._v(" override")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("override")]),t._v("("),r("code",[t._v("scope")]),t._v(": "),r("em",[t._v("string")]),t._v(", "),r("code",[t._v("values")]),t._v(": "),r("em",[t._v("Record")]),t._v("): "),r("em",[t._v("Record")]),t._v("")]),t._v(" "),r("h4",{attrs:{id:"parameters-6"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("scope")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("values")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("Record")]),t._v("")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L619",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:619"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"route"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#route"}},[t._v("#")]),t._v(" route")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("route")]),t._v("("),r("code",[t._v("scope")]),t._v(": "),r("em",[t._v("string")]),t._v(", "),r("code",[t._v("name")]),t._v(": "),r("em",[t._v("string")]),t._v(", "),r("code",[t._v("targetScope")]),t._v(": "),r("em",[t._v("string")]),t._v(", "),r("code",[t._v("targetName")]),t._v(": "),r("em",[t._v("string")]),t._v("): "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Routes the named defaults to fallback to another scope/name.\nThis routing is useful when those target values, like defaults.color, are changed runtime.\nIf the values would be copied, the runtime change would not take effect. By routing, the\nfallback is evaluated at each access, so its always up to date.")]),t._v(" "),r("p",[t._v("Example:")]),t._v(" "),r("p",[t._v("defaults.route('elements.arc', 'backgroundColor', '', 'color')")]),t._v(" "),r("ul",[r("li",[t._v("reads the backgroundColor from defaults.color when undefined locally")])]),t._v(" "),r("h4",{attrs:{id:"parameters-7"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("scope")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[t._v("Scope this route applies to.")])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("name")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[t._v("Property name that should be routed to different namespace when not defined here.")])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("targetScope")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[t._v("The namespace where those properties should be routed to. Empty string ('') is the root of defaults.")])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("targetName")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[t._v("The target name in the target scope the property should be routed to.")])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L638",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:638"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"set"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#set"}},[t._v("#")]),t._v(" set")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("set")]),t._v("("),r("code",[t._v("values")]),t._v(": "),r("em",[t._v("Record")]),t._v("): "),r("em",[t._v("Record")]),t._v("")]),t._v(" "),r("h4",{attrs:{id:"parameters-8"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("values")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("Record")]),t._v("")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L614",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:614"),r("OutboundLink")],1)]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("set")]),t._v("("),r("code",[t._v("scope")]),t._v(": "),r("em",[t._v("string")]),t._v(", "),r("code",[t._v("values")]),t._v(": "),r("em",[t._v("Record")]),t._v("): "),r("em",[t._v("Record")]),t._v("")]),t._v(" "),r("h4",{attrs:{id:"parameters-9"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("scope")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("values")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("Record")]),t._v("")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L615",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:615"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/57.a4d9f801.js b/docs/latest/assets/js/57.a4d9f801.js deleted file mode 100644 index 29e5b926c8..0000000000 --- a/docs/latest/assets/js/57.a4d9f801.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[57],{384:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-defaults"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-defaults"}},[t._v("#")]),t._v(" Interface: Defaults")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[a("em",[t._v("CoreChartOptions")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])]),t._v(">")],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[a("em",[t._v("ElementChartOptions")])])],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[a("em",[t._v("PluginChartOptions")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])]),t._v(">")],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("Defaults")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"animation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("animation")]),t._v(": "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/#animationspec"}},[a("em",[t._v("AnimationSpec")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v("> & { "),a("code",[t._v("onComplete?")]),t._v(": ("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v(" ; "),a("code",[t._v("onProgress?")]),t._v(": ("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v(" }")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#animation"}},[t._v("animation")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"animations"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("animations")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#animationsspec"}},[a("em",[t._v("AnimationsSpec")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(">")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#animations"}},[t._v("animations")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aspectratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aspectratio"}},[t._v("#")]),t._v(" aspectRatio")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("aspectRatio")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Canvas aspect ratio (i.e. width / height, a value of 1 representing a square canvas). Note that this option is ignored if the height is explicitly defined either as attribute or via the style.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#aspectratio"}},[t._v("aspectRatio")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1399",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1399"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"backgroundcolor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("backgroundColor")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("p",[t._v("base background color")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.backgroundColor")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#backgroundcolor"}},[t._v("backgroundColor")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1373",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1373"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bordercolor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("borderColor")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("p",[t._v("base border color")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.borderColor")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#bordercolor"}},[t._v("borderColor")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1378",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1378"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"color"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[t._v("#")]),t._v(" color")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("color")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("p",[t._v("base color")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.color")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#color"}},[t._v("color")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1368",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1368"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"datasets"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasets"}},[t._v("#")]),t._v(" datasets")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("datasets")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("bar")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("bubble")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("doughnut")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("line")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pie")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("polarArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("radar")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scatter")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#datasets"}},[t._v("datasets")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1354",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1354"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"devicepixelratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#devicepixelratio"}},[t._v("#")]),t._v(" devicePixelRatio")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("devicePixelRatio")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Override the window's default devicePixelRatio.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" window.devicePixelRatio")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#devicepixelratio"}},[t._v("devicePixelRatio")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1416",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1416"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"elements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#elements"}},[t._v("#")]),t._v(" elements")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("elements")]),t._v(": "),a("em",[t._v("Partial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/elementoptionsbytype.html"}},[a("em",[t._v("ElementOptionsByType")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[t._v("ElementChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html#elements"}},[t._v("elements")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1897",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1897"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"events"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#events"}},[t._v("#")]),t._v(" events")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("events")]),t._v(": ("),a("em",[t._v("mousemove")]),t._v(" | "),a("em",[t._v("mouseout")]),t._v(" | "),a("em",[t._v("click")]),t._v(" | "),a("em",[t._v("touchstart")]),t._v(" | "),a("em",[t._v("touchmove")]),t._v(")[]")]),t._v(" "),a("p",[t._v("The events option defines the browser events that the chart should listen to for tooltips and hovering.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" ['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove']")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#events"}},[t._v("events")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1426",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1426"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"font"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#font"}},[t._v("#")]),t._v(" font")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("font")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[a("em",[t._v("FontSpec")])])],1),t._v(" "),a("p",[t._v("base font")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.font")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#font"}},[t._v("font")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1383",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1383"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hover"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hover"}},[t._v("#")]),t._v(" hover")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("hover")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[a("em",[t._v("CoreInteractionOptions")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#hover"}},[t._v("hover")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1420",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1420"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"indexaxis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("indexAxis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])]),t._v(" "),a("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1362",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1362"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"interaction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interaction"}},[t._v("#")]),t._v(" interaction")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("interaction")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[a("em",[t._v("CoreInteractionOptions")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#interaction"}},[t._v("interaction")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1418",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1418"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"layout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#layout"}},[t._v("#")]),t._v(" layout")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("layout")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(">")],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#layout"}},[t._v("layout")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1438",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1438"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"locale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#locale"}},[t._v("#")]),t._v(" locale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("locale")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Locale used for number formatting (using "),a("code",[t._v("Intl.NumberFormat")]),t._v(").")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" user's browser setting")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#locale"}},[t._v("locale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1405",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1405"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maintainaspectratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maintainaspectratio"}},[t._v("#")]),t._v(" maintainAspectRatio")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maintainAspectRatio")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Maintain the original canvas aspect ratio (width / height) when resizing.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#maintainaspectratio"}},[t._v("maintainAspectRatio")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1393",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1393"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"normalized"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("normalized")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("parsing")]),t._v(": "),a("em",[t._v("false")]),t._v(" | { [key: string]: "),a("em",[t._v("string")]),t._v("; }")]),t._v(" "),a("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"plugins"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#plugins"}},[t._v("#")]),t._v(" plugins")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("plugins")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/pluginoptionsbytype.html"}},[a("em",[t._v("PluginOptionsByType")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(">")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[t._v("PluginChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html#plugins"}},[t._v("plugins")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2626",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2626"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"responsive"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#responsive"}},[t._v("#")]),t._v(" responsive")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("responsive")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Resizes the chart canvas when its container does (important note...).")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#responsive"}},[t._v("responsive")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1388",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1388"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scale"}},[t._v("#")]),t._v(" scale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scaleoptionsbytype"}},[a("em",[t._v("ScaleOptionsByType")])]),t._v("<"),a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")]),t._v(" | "),a("em",[t._v("radialLinear")]),t._v(">")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L609",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:609"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scales"}},[t._v("#")]),t._v(" scales")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("scales")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-3"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("category")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("linear")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("logarithmic")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("radialLinear")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("time")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("timeseries")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L610",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:610"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"transitions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("transitions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[a("em",[t._v("TransitionsSpec")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(">")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#transitions"}},[t._v("transitions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"describe"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#describe"}},[t._v("#")]),t._v(" describe")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("describe")]),t._v("("),a("code",[t._v("scope")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("values")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scope")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("values")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L618",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:618"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"get"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#get"}},[t._v("#")]),t._v(" get")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("get")]),t._v("("),a("code",[t._v("scope")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scope")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L616",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:616"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"onclick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onclick"}},[t._v("#")]),t._v(" onClick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onClick")]),t._v("("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[], "),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called if the event is of type 'mouseup' or 'click'. Passed the event, an array of active elements, and the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1436",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1436"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"onhover"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onhover"}},[t._v("#")]),t._v(" onHover")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onHover")]),t._v("("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[], "),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called when any of the events fire. Passed the event, an array of active elements (bars, points, etc), and the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1431",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1431"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"onresize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onresize"}},[t._v("#")]),t._v(" onResize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onResize")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("size")]),t._v(": { "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(" }): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called when a resize occurs. Gets passed two arguments: the chart instance and the new size.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("size")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("size.height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("size.width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1410",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1410"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"override"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#override"}},[t._v("#")]),t._v(" override")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("override")]),t._v("("),a("code",[t._v("scope")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("values")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scope")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("values")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L619",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:619"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"route"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#route"}},[t._v("#")]),t._v(" route")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("route")]),t._v("("),a("code",[t._v("scope")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("name")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("targetScope")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("targetName")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Routes the named defaults to fallback to another scope/name.\nThis routing is useful when those target values, like defaults.color, are changed runtime.\nIf the values would be copied, the runtime change would not take effect. By routing, the\nfallback is evaluated at each access, so its always up to date.")]),t._v(" "),a("p",[t._v("Example:")]),t._v(" "),a("p",[t._v("defaults.route('elements.arc', 'backgroundColor', '', 'color')")]),t._v(" "),a("ul",[a("li",[t._v("reads the backgroundColor from defaults.color when undefined locally")])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scope")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Scope this route applies to.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("name")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Property name that should be routed to different namespace when not defined here.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("targetScope")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The namespace where those properties should be routed to. Empty string ('') is the root of defaults.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("targetName")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The target name in the target scope the property should be routed to.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L638",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:638"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"set"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#set"}},[t._v("#")]),t._v(" set")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("set")]),t._v("("),a("code",[t._v("values")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("values")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L614",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:614"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("set")]),t._v("("),a("code",[t._v("scope")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("values")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scope")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("values")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L615",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:615"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/58.837a30e7.js b/docs/latest/assets/js/58.a738cc24.js similarity index 53% rename from docs/latest/assets/js/58.837a30e7.js rename to docs/latest/assets/js/58.a738cc24.js index 90f41a3314..d76528396a 100644 --- a/docs/latest/assets/js/58.837a30e7.js +++ b/docs/latest/assets/js/58.a738cc24.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[58],{385:function(t,e,a){"use strict";a.r(e);var n=a(7),r=Object(n.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-doughnutanimationoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-doughnutanimationoptions"}},[t._v("#")]),t._v(" Interface: DoughnutAnimationOptions")]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"animaterotate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animaterotate"}},[t._v("#")]),t._v(" animateRotate")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("animateRotate")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("If true, the chart will animate in with a rotation animation. This property is in the options.animation object.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L262",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:262"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"animatescale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animatescale"}},[t._v("#")]),t._v(" animateScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("animateScale")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("If true, will animate scaling the chart from the center outwards.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L268",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:268"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[58],{382:function(t,e,a){"use strict";a.r(e);var n=a(7),r=Object(n.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-doughnutanimationoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-doughnutanimationoptions"}},[t._v("#")]),t._v(" Interface: DoughnutAnimationOptions")]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"animaterotate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animaterotate"}},[t._v("#")]),t._v(" animateRotate")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("animateRotate")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("If true, the chart will animate in with a rotation animation. This property is in the options.animation object.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L262",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:262"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"animatescale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animatescale"}},[t._v("#")]),t._v(" animateScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("animateScale")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("If true, will animate scaling the chart from the center outwards.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L268",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:268"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/59.cda3b460.js b/docs/latest/assets/js/59.cda3b460.js deleted file mode 100644 index ff8de8738e..0000000000 --- a/docs/latest/assets/js/59.cda3b460.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[59],{386:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-doughnutcontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-doughnutcontroller"}},[t._v("#")]),t._v(" Interface: DoughnutController")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("DoughnutController")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"cachedmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cachedmeta"}},[t._v("#")]),t._v(" _cachedMeta")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("_cachedMeta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html#_cachedmeta"}},[t._v("_cachedMeta")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L537",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:537"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html#chart"}},[t._v("chart")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L535",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:535"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"enableoptionsharing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enableoptionsharing"}},[t._v("#")]),t._v(" enableOptionSharing")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("enableOptionSharing")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html#enableoptionsharing"}},[t._v("enableOptionSharing")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L538",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:538"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"index"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("index")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html#index"}},[t._v("index")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L536",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:536"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"innerradius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#innerradius"}},[t._v("#")]),t._v(" innerRadius")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("innerRadius")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L303",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:303"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"offsetx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offsetx"}},[t._v("#")]),t._v(" offsetX")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("offsetX")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L305",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:305"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"offsety"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offsety"}},[t._v("#")]),t._v(" offsetY")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("offsetY")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L306",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:306"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"outerradius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#outerradius"}},[t._v("#")]),t._v(" outerRadius")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("outerRadius")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L304",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:304"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"addelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addelements"}},[t._v("#")]),t._v(" addElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addElements")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L554",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:554"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"applystack"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#applystack"}},[t._v("#")]),t._v(" applyStack")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("applyStack")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[]): "),a("em",[t._v("number")])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L590",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:590"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildorupdateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildorupdateelements"}},[t._v("#")]),t._v(" buildOrUpdateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildOrUpdateElements")]),t._v("("),a("code",[t._v("resetNewElements?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("resetNewElements?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L555",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:555"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatecircumference"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatecircumference"}},[t._v("#")]),t._v(" calculateCircumference")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateCircumference")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L309",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:309"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatetotal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatetotal"}},[t._v("#")]),t._v(" calculateTotal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateTotal")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L308",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:308"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L552",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:552"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L547",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:547"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getallparsedvalues"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getallparsedvalues"}},[t._v("#")]),t._v(" getAllParsedValues")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getAllParsedValues")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("number")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L541",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:541"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdataset"}},[t._v("#")]),t._v(" getDataset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDataset")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L549",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:549"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelandvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelandvalue"}},[t._v("#")]),t._v(" getLabelAndValue")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getLabelAndValue")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("label")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L542",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:542"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaxoverflow"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaxoverflow"}},[t._v("#")]),t._v(" getMaxOverflow")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMaxOverflow")]),t._v("(): "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L546",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:546"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmeta"}},[t._v("#")]),t._v(" getMeta")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMeta")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L550",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:550"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("canStack?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L597",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:597"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getparsed"}},[t._v("#")]),t._v(" getParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getParsed")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")]),t._v(" | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v(" | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L589",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:589"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getscaleforid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getscaleforid"}},[t._v("#")]),t._v(" getScaleForId")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getScaleForId")]),t._v("("),a("code",[t._v("scaleID")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scaleID")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L551",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:551"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getsharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getsharedoptions"}},[t._v("#")]),t._v(" getSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getSharedOptions")]),t._v("("),a("code",[t._v("options")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Utility for checking if the options are shared and should be animated separately.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L564",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:564"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getstyle"}},[t._v("#")]),t._v(" getStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getStyle")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L557",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:557"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"includeoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#includeoptions"}},[t._v("#")]),t._v(" includeOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("includeOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Utility for determining if "),a("code",[t._v("options")]),t._v(" should be included in the updated properties")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L569",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:569"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"initialize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#initialize"}},[t._v("#")]),t._v(" initialize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("initialize")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L553",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:553"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linkscales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linkscales"}},[t._v("#")]),t._v(" linkScales")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("linkScales")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L540",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:540"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L585",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:585"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsearraydata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsearraydata"}},[t._v("#")]),t._v(" parseArrayData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseArrayData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:587"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseobjectdata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseobjectdata"}},[t._v("#")]),t._v(" parseObjectData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseObjectData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:588"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseprimitivedata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseprimitivedata"}},[t._v("#")]),t._v(" parsePrimitiveData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parsePrimitiveData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:586"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removehoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removehoverstyle"}},[t._v("#")]),t._v(" removeHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" reset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("reset")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L548",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:548"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedataelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedataelementoptions"}},[t._v("#")]),t._v(" resolveDataElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDataElementOptions")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L559",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:559"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedatasetelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedatasetelementoptions"}},[t._v("#")]),t._v(" resolveDatasetElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDatasetElementOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L558",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:558"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"sethoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#sethoverstyle"}},[t._v("#")]),t._v(" setHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L583",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:583"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:544"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelement"}},[t._v("#")]),t._v(" updateElement")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateElement")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("properties")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Utility for updating an element with new properties, using animations when appropriate.")]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("properties")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L575",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:575"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelements"}},[t._v("#")]),t._v(" updateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateElements")]),t._v("("),a("code",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>[]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:543"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateindex"}},[t._v("#")]),t._v(" updateIndex")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateIndex")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L545",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:545"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updaterangefromparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updaterangefromparsed"}},[t._v("#")]),t._v(" updateRangeFromParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateRangeFromParsed")]),t._v("("),a("code",[t._v("range")]),t._v(": { "),a("code",[t._v("max")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("min")]),t._v(": "),a("em",[t._v("number")]),t._v(" }, "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[], "),a("code",[t._v("stack")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("stack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L591",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:591"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatesharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatesharedoptions"}},[t._v("#")]),t._v(" updateSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateSharedOptions")]),t._v("("),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("newOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Utility to animate the shared options, that are potentially affecting multiple elements.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("newOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:581"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/59.faa2f5d2.js b/docs/latest/assets/js/59.faa2f5d2.js new file mode 100644 index 0000000000..a288a00fc4 --- /dev/null +++ b/docs/latest/assets/js/59.faa2f5d2.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[59],{383:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-doughnutcontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-doughnutcontroller"}},[t._v("#")]),t._v(" Interface: DoughnutController")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("DoughnutController")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"cachedmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cachedmeta"}},[t._v("#")]),t._v(" _cachedMeta")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("_cachedMeta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html#_cachedmeta"}},[t._v("_cachedMeta")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L537",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:537"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html#chart"}},[t._v("chart")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L535",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:535"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"enableoptionsharing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enableoptionsharing"}},[t._v("#")]),t._v(" enableOptionSharing")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("enableOptionSharing")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html#enableoptionsharing"}},[t._v("enableOptionSharing")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L538",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:538"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"index"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("index")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html#index"}},[t._v("index")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L536",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:536"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"innerradius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#innerradius"}},[t._v("#")]),t._v(" innerRadius")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("innerRadius")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L303",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:303"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"offsetx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offsetx"}},[t._v("#")]),t._v(" offsetX")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("offsetX")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L305",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:305"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"offsety"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offsety"}},[t._v("#")]),t._v(" offsetY")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("offsetY")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L306",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:306"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"outerradius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#outerradius"}},[t._v("#")]),t._v(" outerRadius")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("outerRadius")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L304",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:304"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"addelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addelements"}},[t._v("#")]),t._v(" addElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addElements")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L554",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:554"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"applystack"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#applystack"}},[t._v("#")]),t._v(" applyStack")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("applyStack")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[]): "),a("em",[t._v("number")])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L590",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:590"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildorupdateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildorupdateelements"}},[t._v("#")]),t._v(" buildOrUpdateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildOrUpdateElements")]),t._v("("),a("code",[t._v("resetNewElements?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("resetNewElements?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L555",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:555"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatecircumference"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatecircumference"}},[t._v("#")]),t._v(" calculateCircumference")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateCircumference")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L309",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:309"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatetotal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatetotal"}},[t._v("#")]),t._v(" calculateTotal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateTotal")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L308",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:308"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L552",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:552"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L547",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:547"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getallparsedvalues"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getallparsedvalues"}},[t._v("#")]),t._v(" getAllParsedValues")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getAllParsedValues")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("number")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L541",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:541"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdataset"}},[t._v("#")]),t._v(" getDataset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDataset")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L549",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:549"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelandvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelandvalue"}},[t._v("#")]),t._v(" getLabelAndValue")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getLabelAndValue")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("label")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L542",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:542"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaxoverflow"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaxoverflow"}},[t._v("#")]),t._v(" getMaxOverflow")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMaxOverflow")]),t._v("(): "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L546",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:546"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmeta"}},[t._v("#")]),t._v(" getMeta")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMeta")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L550",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:550"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("canStack?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L597",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:597"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getparsed"}},[t._v("#")]),t._v(" getParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getParsed")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")]),t._v(" | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v(" | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L589",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:589"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getscaleforid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getscaleforid"}},[t._v("#")]),t._v(" getScaleForId")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getScaleForId")]),t._v("("),a("code",[t._v("scaleID")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scaleID")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L551",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:551"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getsharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getsharedoptions"}},[t._v("#")]),t._v(" getSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getSharedOptions")]),t._v("("),a("code",[t._v("options")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Utility for checking if the options are shared and should be animated separately.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L564",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:564"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getstyle"}},[t._v("#")]),t._v(" getStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getStyle")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L557",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:557"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"includeoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#includeoptions"}},[t._v("#")]),t._v(" includeOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("includeOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Utility for determining if "),a("code",[t._v("options")]),t._v(" should be included in the updated properties")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L569",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:569"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"initialize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#initialize"}},[t._v("#")]),t._v(" initialize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("initialize")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L553",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:553"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linkscales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linkscales"}},[t._v("#")]),t._v(" linkScales")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("linkScales")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L540",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:540"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L585",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:585"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsearraydata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsearraydata"}},[t._v("#")]),t._v(" parseArrayData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseArrayData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:587"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseobjectdata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseobjectdata"}},[t._v("#")]),t._v(" parseObjectData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseObjectData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:588"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseprimitivedata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseprimitivedata"}},[t._v("#")]),t._v(" parsePrimitiveData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parsePrimitiveData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:586"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removehoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removehoverstyle"}},[t._v("#")]),t._v(" removeHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" reset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("reset")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L548",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:548"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedataelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedataelementoptions"}},[t._v("#")]),t._v(" resolveDataElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDataElementOptions")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L559",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:559"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedatasetelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedatasetelementoptions"}},[t._v("#")]),t._v(" resolveDatasetElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDatasetElementOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L558",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:558"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"sethoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#sethoverstyle"}},[t._v("#")]),t._v(" setHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L583",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:583"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:544"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelement"}},[t._v("#")]),t._v(" updateElement")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateElement")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("properties")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Utility for updating an element with new properties, using animations when appropriate.")]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("properties")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L575",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:575"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelements"}},[t._v("#")]),t._v(" updateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateElements")]),t._v("("),a("code",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>[]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:543"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateindex"}},[t._v("#")]),t._v(" updateIndex")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateIndex")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L545",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:545"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updaterangefromparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updaterangefromparsed"}},[t._v("#")]),t._v(" updateRangeFromParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateRangeFromParsed")]),t._v("("),a("code",[t._v("range")]),t._v(": { "),a("code",[t._v("max")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("min")]),t._v(": "),a("em",[t._v("number")]),t._v(" }, "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[], "),a("code",[t._v("stack")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("stack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L591",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:591"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatesharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatesharedoptions"}},[t._v("#")]),t._v(" updateSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateSharedOptions")]),t._v("("),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("newOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Utility to animate the shared options, that are potentially affecting multiple elements.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("newOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:581"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/6.51425ea4.js b/docs/latest/assets/js/6.a7d136a1.js similarity index 100% rename from docs/latest/assets/js/6.51425ea4.js rename to docs/latest/assets/js/6.a7d136a1.js diff --git a/docs/latest/assets/js/60.4b0ad5e2.js b/docs/latest/assets/js/60.4b0ad5e2.js new file mode 100644 index 0000000000..28fb1e3f4b --- /dev/null +++ b/docs/latest/assets/js/60.4b0ad5e2.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[60],{384:function(t,e,r){"use strict";r.r(e);var n=r(7),a=Object(n.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-doughnutcontrollerchartoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-doughnutcontrollerchartoptions"}},[t._v("#")]),t._v(" Interface: DoughnutControllerChartOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutanimationoptions.html"}},[r("em",[t._v("DoughnutAnimationOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L297",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:297"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"circumference"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#circumference"}},[t._v("#")]),t._v(" circumference")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("circumference")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Sweep to allow arcs to cover.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 360")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L276",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:276"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"cutout"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#cutout"}},[t._v("#")]),t._v(" cutout")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("cutout")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The portion of the chart that is cut out of the middle. ('50%' - for doughnut, 0 - for pie)\nString ending with '%' means percentage, number means pixels.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 50")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L283",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:283"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"radius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#radius"}},[t._v("#")]),t._v(" radius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("radius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The outer radius of the chart. String ending with '%' means percentage of maximum radius, number means pixels.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" '100%'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L289",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:289"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[t._v("#")]),t._v(" rotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rotation")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Starting angle to draw arcs from.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L295",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:295"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/60.8987e982.js b/docs/latest/assets/js/60.8987e982.js deleted file mode 100644 index 2722e63708..0000000000 --- a/docs/latest/assets/js/60.8987e982.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[60],{387:function(t,e,r){"use strict";r.r(e);var n=r(7),a=Object(n.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-doughnutcontrollerchartoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-doughnutcontrollerchartoptions"}},[t._v("#")]),t._v(" Interface: DoughnutControllerChartOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutanimationoptions.html"}},[r("em",[t._v("DoughnutAnimationOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L297",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:297"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"circumference"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#circumference"}},[t._v("#")]),t._v(" circumference")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("circumference")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Sweep to allow arcs to cover.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 360")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L276",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:276"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"cutout"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#cutout"}},[t._v("#")]),t._v(" cutout")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("cutout")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The portion of the chart that is cut out of the middle. ('50%' - for doughnut, 0 - for pie)\nString ending with '%' means percentage, number means pixels.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 50")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L283",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:283"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"radius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#radius"}},[t._v("#")]),t._v(" radius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("radius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The outer radius of the chart. String ending with '%' means percentage of maximum radius, number means pixels.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" '100%'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L289",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:289"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[t._v("#")]),t._v(" rotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rotation")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Starting angle to draw arcs from.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L295",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:295"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/61.bcb61869.js b/docs/latest/assets/js/61.bcb61869.js new file mode 100644 index 0000000000..40f561ed28 --- /dev/null +++ b/docs/latest/assets/js/61.bcb61869.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[61],{386:function(t,e,r){"use strict";r.r(e);var a=r(7),o=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-doughnutcontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-doughnutcontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: DoughnutControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[r("em",[t._v("ControllerDatasetOptions")])])],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableandarrayoptions"}},[r("em",[t._v("ScriptableAndArrayOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[r("em",[t._v("ArcOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#animationoptions"}},[r("em",[t._v("AnimationOptions")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">")],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("DoughnutControllerDatasetOptions")])]),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/polarareacontrollerdatasetoptions.html"}},[r("em",[t._v("PolarAreaControllerDatasetOptions")])])],1)])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("em",[t._v("false")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v("> & { "),r("code",[t._v("onComplete?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" ; "),r("code",[t._v("onProgress?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" }")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animations")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.backgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderalign"}},[t._v("#")]),t._v(" borderAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("em",[t._v("center")]),t._v(" | "),r("em",[t._v("inner")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Arc stroke alignment.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderAlign")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1624",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1624"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[t._v("#")]),t._v(" borderRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Sets the border radius for arcs")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1633",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1633"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"circumference"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#circumference"}},[t._v("#")]),t._v(" circumference")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("circumference")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Sweep to allow arcs to cover.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 360")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L242",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:242"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoveroffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoveroffset"}},[t._v("#")]),t._v(" hoverOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverOffset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1637",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1637"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"offset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#offset"}},[t._v("#")]),t._v(" offset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("offset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Arc offset (in pixels).")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.offset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1628",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1628"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[t._v("#")]),t._v(" rotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rotation")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Starting angle to draw this dataset from.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L248",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:248"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"transitions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("transitions")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[r("em",[t._v("TransitionsSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.transitions")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"weight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("weight")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The relative thickness of the dataset. Providing a value for weight will cause the pie or doughnut dataset to be drawn with a thickness relative to the sum of all the dataset weight values.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 1")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L254",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:254"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/61.d8d4483c.js b/docs/latest/assets/js/61.d8d4483c.js deleted file mode 100644 index 41b20a7c3a..0000000000 --- a/docs/latest/assets/js/61.d8d4483c.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[61],{388:function(t,e,r){"use strict";r.r(e);var a=r(7),o=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-doughnutcontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-doughnutcontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: DoughnutControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[r("em",[t._v("ControllerDatasetOptions")])])],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableandarrayoptions"}},[r("em",[t._v("ScriptableAndArrayOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[r("em",[t._v("ArcOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#animationoptions"}},[r("em",[t._v("AnimationOptions")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">")],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("DoughnutControllerDatasetOptions")])]),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/polarareacontrollerdatasetoptions.html"}},[r("em",[t._v("PolarAreaControllerDatasetOptions")])])],1)])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("em",[t._v("false")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v("> & { "),r("code",[t._v("onComplete?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" ; "),r("code",[t._v("onProgress?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" }")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animations")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.backgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderalign"}},[t._v("#")]),t._v(" borderAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("em",[t._v("center")]),t._v(" | "),r("em",[t._v("inner")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Arc stroke alignment.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderAlign")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1624",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1624"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[t._v("#")]),t._v(" borderRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Sets the border radius for arcs")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1633",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1633"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"circumference"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#circumference"}},[t._v("#")]),t._v(" circumference")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("circumference")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Sweep to allow arcs to cover.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 360")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L242",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:242"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoveroffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoveroffset"}},[t._v("#")]),t._v(" hoverOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverOffset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1637",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1637"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"offset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#offset"}},[t._v("#")]),t._v(" offset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("offset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Arc offset (in pixels).")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.offset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1628",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1628"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[t._v("#")]),t._v(" rotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rotation")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Starting angle to draw this dataset from.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L248",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:248"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"transitions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("transitions")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[r("em",[t._v("TransitionsSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.transitions")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"weight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("weight")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The relative thickness of the dataset. Providing a value for weight will cause the pie or doughnut dataset to be drawn with a thickness relative to the sum of all the dataset weight values.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 1")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L254",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:254"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/62.d2a0739e.js b/docs/latest/assets/js/62.d2a0739e.js deleted file mode 100644 index a367718fba..0000000000 --- a/docs/latest/assets/js/62.d2a0739e.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[62],{389:function(t,e,a){"use strict";a.r(e);var _=a(7),v=Object(_.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-element-t-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-element-t-o"}},[t._v("#")]),t._v(" Interface: Element")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("{}")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("{}")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": keyof T[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): T")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("keyof T[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/62.e6e46eef.js b/docs/latest/assets/js/62.e6e46eef.js new file mode 100644 index 0000000000..8637152991 --- /dev/null +++ b/docs/latest/assets/js/62.e6e46eef.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[62],{385:function(t,e,a){"use strict";a.r(e);var _=a(7),v=Object(_.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-element-t-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-element-t-o"}},[t._v("#")]),t._v(" Interface: Element")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("{}")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("{}")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": keyof T[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): T")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("keyof T[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/63.38bf5ef9.js b/docs/latest/assets/js/63.a2c68d92.js similarity index 80% rename from docs/latest/assets/js/63.38bf5ef9.js rename to docs/latest/assets/js/63.a2c68d92.js index 257ba170d4..08936c141e 100644 --- a/docs/latest/assets/js/63.38bf5ef9.js +++ b/docs/latest/assets/js/63.a2c68d92.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[63],{390:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-elementchartoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-elementchartoptions"}},[t._v("#")]),t._v(" Interface: ElementChartOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("strong",[t._v("ElementChartOptions")])]),t._v(" "),r("p",[t._v("↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[r("em",[t._v("Defaults")])])],1)])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"elements"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#elements"}},[t._v("#")]),t._v(" elements")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("elements")]),t._v(": "),r("em",[t._v("Partial")]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/elementoptionsbytype.html"}},[r("em",[t._v("ElementOptionsByType")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1897",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1897"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[63],{387:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-elementchartoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-elementchartoptions"}},[t._v("#")]),t._v(" Interface: ElementChartOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("strong",[t._v("ElementChartOptions")])]),t._v(" "),r("p",[t._v("↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[r("em",[t._v("Defaults")])])],1)])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"elements"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#elements"}},[t._v("#")]),t._v(" elements")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("elements")]),t._v(": "),r("em",[t._v("Partial")]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/elementoptionsbytype.html"}},[r("em",[t._v("ElementOptionsByType")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1897",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1897"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/64.1370b0c2.js b/docs/latest/assets/js/64.1370b0c2.js deleted file mode 100644 index d23e336092..0000000000 --- a/docs/latest/assets/js/64.1370b0c2.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[64],{391:function(t,e,r){"use strict";r.r(e);var n=r(7),s=Object(n.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-elementoptionsbytype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-elementoptionsbytype"}},[t._v("#")]),t._v(" Interface: ElementOptionsByType")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"arc"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#arc"}},[t._v("#")]),t._v(" arc")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("arc")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[r("em",[t._v("ArcOptions")])]),t._v(" & "),r("RouterLink",{attrs:{to:"/api/interfaces/archoveroptions.html"}},[r("em",[t._v("ArcHoverOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1891",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1891"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bar"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bar"}},[t._v("#")]),t._v(" bar")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bar")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[r("em",[t._v("BarOptions")])]),t._v(" & "),r("RouterLink",{attrs:{to:"/api/interfaces/barhoveroptions.html"}},[r("em",[t._v("BarHoverOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1892",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1892"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"line"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#line"}},[t._v("#")]),t._v(" line")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("line")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[r("em",[t._v("LineOptions")])]),t._v(" & "),r("RouterLink",{attrs:{to:"/api/interfaces/linehoveroptions.html"}},[r("em",[t._v("LineHoverOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1893",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1893"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"point"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#point"}},[t._v("#")]),t._v(" point")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("point")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[r("em",[t._v("PointOptions")])]),t._v(" & "),r("RouterLink",{attrs:{to:"/api/interfaces/pointhoveroptions.html"}},[r("em",[t._v("PointHoverOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1894",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1894"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/64.61e33bb7.js b/docs/latest/assets/js/64.61e33bb7.js new file mode 100644 index 0000000000..67d661432c --- /dev/null +++ b/docs/latest/assets/js/64.61e33bb7.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[64],{388:function(t,e,r){"use strict";r.r(e);var n=r(7),s=Object(n.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-elementoptionsbytype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-elementoptionsbytype"}},[t._v("#")]),t._v(" Interface: ElementOptionsByType")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"arc"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#arc"}},[t._v("#")]),t._v(" arc")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("arc")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[r("em",[t._v("ArcOptions")])]),t._v(" & "),r("RouterLink",{attrs:{to:"/api/interfaces/archoveroptions.html"}},[r("em",[t._v("ArcHoverOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1891",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1891"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bar"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bar"}},[t._v("#")]),t._v(" bar")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bar")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[r("em",[t._v("BarOptions")])]),t._v(" & "),r("RouterLink",{attrs:{to:"/api/interfaces/barhoveroptions.html"}},[r("em",[t._v("BarHoverOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1892",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1892"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"line"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#line"}},[t._v("#")]),t._v(" line")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("line")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[r("em",[t._v("LineOptions")])]),t._v(" & "),r("RouterLink",{attrs:{to:"/api/interfaces/linehoveroptions.html"}},[r("em",[t._v("LineHoverOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1893",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1893"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"point"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#point"}},[t._v("#")]),t._v(" point")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("point")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[r("em",[t._v("PointOptions")])]),t._v(" & "),r("RouterLink",{attrs:{to:"/api/interfaces/pointhoveroptions.html"}},[r("em",[t._v("PointHoverOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1894",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1894"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/65.c9ea7df7.js b/docs/latest/assets/js/65.8b111d02.js similarity index 58% rename from docs/latest/assets/js/65.c9ea7df7.js rename to docs/latest/assets/js/65.8b111d02.js index fa6cbe7661..b05ca20c90 100644 --- a/docs/latest/assets/js/65.c9ea7df7.js +++ b/docs/latest/assets/js/65.8b111d02.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[65],{392:function(t,e,a){"use strict";a.r(e);var v=a(7),_=Object(v.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-extendedplugin-ttype-o-model"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-extendedplugin-ttype-o-model"}},[t._v("#")]),t._v(" Interface: ExtendedPlugin")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("AnyObject")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Model")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v("")],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("ExtendedPlugin")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"aftertooltipdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftertooltipdraw"}},[t._v("#")]),t._v(" afterTooltipDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterTooltipDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("tooltip")]),t._v(": Model }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after drawing the "),a("code",[t._v("tooltip")]),t._v(". Note that this hook will not\nbe called if the tooltip drawing has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.tooltip")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Model")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The tooltip.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2388",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2388"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforetooltipdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforetooltipdraw"}},[t._v("#")]),t._v(" beforeTooltipDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeTooltipDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("tooltip")]),t._v(": Model }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before drawing the "),a("code",[t._v("tooltip")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe tooltip drawing is cancelled until another "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.tooltip")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Model")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The tooltip.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart tooltip drawing.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2379",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2379"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[65],{389:function(t,e,a){"use strict";a.r(e);var v=a(7),_=Object(v.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-extendedplugin-ttype-o-model"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-extendedplugin-ttype-o-model"}},[t._v("#")]),t._v(" Interface: ExtendedPlugin")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("AnyObject")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Model")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v("")],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("ExtendedPlugin")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"aftertooltipdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftertooltipdraw"}},[t._v("#")]),t._v(" afterTooltipDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterTooltipDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("tooltip")]),t._v(": Model }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after drawing the "),a("code",[t._v("tooltip")]),t._v(". Note that this hook will not\nbe called if the tooltip drawing has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.tooltip")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Model")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The tooltip.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2388",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2388"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforetooltipdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforetooltipdraw"}},[t._v("#")]),t._v(" beforeTooltipDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeTooltipDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("tooltip")]),t._v(": Model }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before drawing the "),a("code",[t._v("tooltip")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe tooltip drawing is cancelled until another "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.tooltip")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Model")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The tooltip.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart tooltip drawing.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2379",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2379"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/66.c14fc7c9.js b/docs/latest/assets/js/66.e6b561e2.js similarity index 83% rename from docs/latest/assets/js/66.c14fc7c9.js rename to docs/latest/assets/js/66.e6b561e2.js index cf70c8718d..387271a047 100644 --- a/docs/latest/assets/js/66.c14fc7c9.js +++ b/docs/latest/assets/js/66.e6b561e2.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[66],{393:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-fillercontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-fillercontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: FillerControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"fill"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#fill"}},[t._v("#")]),t._v(" fill")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("fill")]),t._v(": "),r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("number")]),t._v(" | "),r("em",[t._v("boolean")]),t._v(" | { "),r("code",[t._v("value")]),t._v(": "),r("em",[t._v("number")]),t._v(" } | "),r("RouterLink",{attrs:{to:"/api/interfaces/complexfilltarget.html"}},[r("em",[t._v("ComplexFillTarget")])])],1),t._v(" "),r("p",[t._v("Both line and radar charts support a fill option on the dataset object which can be used to create area between two datasets or a dataset and a boundary, i.e. the scale origin, start or end")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2001",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2001"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[66],{390:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-fillercontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-fillercontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: FillerControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"fill"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#fill"}},[t._v("#")]),t._v(" fill")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("fill")]),t._v(": "),r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("number")]),t._v(" | "),r("em",[t._v("boolean")]),t._v(" | { "),r("code",[t._v("value")]),t._v(": "),r("em",[t._v("number")]),t._v(" } | "),r("RouterLink",{attrs:{to:"/api/interfaces/complexfilltarget.html"}},[r("em",[t._v("ComplexFillTarget")])])],1),t._v(" "),r("p",[t._v("Both line and radar charts support a fill option on the dataset object which can be used to create area between two datasets or a dataset and a boundary, i.e. the scale origin, start or end")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2001",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2001"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/67.50df0fc7.js b/docs/latest/assets/js/67.7fdf739f.js similarity index 50% rename from docs/latest/assets/js/67.50df0fc7.js rename to docs/latest/assets/js/67.7fdf739f.js index 1cd9ff0b2d..350ca649dc 100644 --- a/docs/latest/assets/js/67.50df0fc7.js +++ b/docs/latest/assets/js/67.7fdf739f.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[67],{394:function(e,t,r){"use strict";r.r(t);var a=r(7),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-filleroptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-filleroptions"}},[e._v("#")]),e._v(" Interface: FillerOptions")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"drawtime"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#drawtime"}},[e._v("#")]),e._v(" drawTime")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("drawTime")]),e._v(": "),r("em",[e._v("beforeDatasetDraw")]),e._v(" | "),r("em",[e._v("beforeDatasetsDraw")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1976",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1976"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"propagate"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#propagate"}},[e._v("#")]),e._v(" propagate")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("propagate")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1977",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1977"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[67],{391:function(e,t,r){"use strict";r.r(t);var a=r(7),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-filleroptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-filleroptions"}},[e._v("#")]),e._v(" Interface: FillerOptions")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"drawtime"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#drawtime"}},[e._v("#")]),e._v(" drawTime")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("drawTime")]),e._v(": "),r("em",[e._v("beforeDatasetDraw")]),e._v(" | "),r("em",[e._v("beforeDatasetsDraw")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1976",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1976"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"propagate"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#propagate"}},[e._v("#")]),e._v(" propagate")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("propagate")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1977",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1977"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/68.7f6a9b2d.js b/docs/latest/assets/js/68.7f6a9b2d.js deleted file mode 100644 index 9e891ee2ca..0000000000 --- a/docs/latest/assets/js/68.7f6a9b2d.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[68],{395:function(e,t,r){"use strict";r.r(t);var s=r(7),a=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-fontspec"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-fontspec"}},[e._v("#")]),e._v(" Interface: FontSpec")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"family"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#family"}},[e._v("#")]),e._v(" family")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("family")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Default font family for all text, follows CSS font-family options.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" \"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\"")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1552",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1552"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"lineheight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#lineheight"}},[e._v("#")]),e._v(" lineHeight")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("lineHeight")]),e._v(": "),r("em",[e._v("string")]),e._v(" | "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Height of an individual line of text (see MDN).")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 1.2")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1571",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1571"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"size"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#size"}},[e._v("#")]),e._v(" size")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("size")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Default font size (in px) for text. Does not apply to radialLinear scale point labels.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 12")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1557",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1557"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"style"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#style"}},[e._v("#")]),e._v(" style")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("style")]),e._v(": "),r("em",[e._v("normal")]),e._v(" | "),r("em",[e._v("italic")]),e._v(" | "),r("em",[e._v("oblique")]),e._v(" | "),r("em",[e._v("initial")]),e._v(" | "),r("em",[e._v("inherit")])]),e._v(" "),r("p",[e._v("Default font style. Does not apply to tooltip title or footer. Does not apply to chart title. Follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit)")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 'normal'")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1562",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1562"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"weight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[e._v("#")]),e._v(" weight")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("weight")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Default font weight (boldness). (see MDN).")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1566",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1566"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/68.9ba7535b.js b/docs/latest/assets/js/68.9ba7535b.js new file mode 100644 index 0000000000..9c6105cd5d --- /dev/null +++ b/docs/latest/assets/js/68.9ba7535b.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[68],{392:function(e,t,r){"use strict";r.r(t);var s=r(7),i=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-fontspec"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-fontspec"}},[e._v("#")]),e._v(" Interface: FontSpec")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"family"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#family"}},[e._v("#")]),e._v(" family")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("family")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Default font family for all text, follows CSS font-family options.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" \"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\"")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1552",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1552"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"lineheight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#lineheight"}},[e._v("#")]),e._v(" lineHeight")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("lineHeight")]),e._v(": "),r("em",[e._v("string")]),e._v(" | "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Height of an individual line of text (see MDN).")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 1.2")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1571",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1571"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"size"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#size"}},[e._v("#")]),e._v(" size")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("size")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Default font size (in px) for text. Does not apply to radialLinear scale point labels.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 12")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1557",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1557"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"style"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#style"}},[e._v("#")]),e._v(" style")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("style")]),e._v(": "),r("em",[e._v("normal")]),e._v(" | "),r("em",[e._v("italic")]),e._v(" | "),r("em",[e._v("oblique")]),e._v(" | "),r("em",[e._v("initial")]),e._v(" | "),r("em",[e._v("inherit")])]),e._v(" "),r("p",[e._v("Default font style. Does not apply to tooltip title or footer. Does not apply to chart title. Follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit)")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 'normal'")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1562",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1562"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"weight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[e._v("#")]),e._v(" weight")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("weight")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Default font weight (boldness). (see MDN).")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1566",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1566"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/69.9baf5afd.js b/docs/latest/assets/js/69.9baf5afd.js deleted file mode 100644 index 0cae23148a..0000000000 --- a/docs/latest/assets/js/69.9baf5afd.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[69],{396:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-gridlineoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-gridlineoptions"}},[t._v("#")]),t._v(" Interface: GridLineOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2634",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2634"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdash"}},[t._v("#")]),t._v(" borderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDash")]),t._v(": "),r("em",[t._v("number")]),t._v("[]")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" []")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2647",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2647"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdashoffset"}},[t._v("#")]),t._v(" borderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2651",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2651"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2635",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2635"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"circular"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#circular"}},[t._v("#")]),t._v(" circular")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("circular")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2639",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2639"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"color"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[t._v("#")]),t._v(" color")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("color")]),t._v(": "),r("em",[t._v("string")]),t._v(" | CanvasGradient | CanvasPattern | readonly "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v("[] | ("),r("code",[t._v("ctx")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[t._v("ScriptableScaleContext")])]),t._v(") => "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'rgba(0, 0, 0, 0.1)'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2643",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2643"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"display"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[t._v("#")]),t._v(" display")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("display")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2633",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2633"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"drawborder"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#drawborder"}},[t._v("#")]),t._v(" drawBorder")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("drawBorder")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2660",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2660"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"drawonchartarea"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#drawonchartarea"}},[t._v("#")]),t._v(" drawOnChartArea")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("drawOnChartArea")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2664",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2664"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"drawticks"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#drawticks"}},[t._v("#")]),t._v(" drawTicks")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("drawTicks")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2668",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2668"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"linewidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linewidth"}},[t._v("#")]),t._v(" lineWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("lineWidth")]),t._v(": "),r("em",[t._v("number")]),t._v(" | readonly "),r("em",[t._v("number")]),t._v("[] | ("),r("code",[t._v("ctx")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[t._v("ScriptableScaleContext")])]),t._v(") => "),r("em",[t._v("number")])],1),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 1")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2655",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2655"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"offset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#offset"}},[t._v("#")]),t._v(" offset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("offset")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2692",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2692"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tickborderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tickborderdash"}},[t._v("#")]),t._v(" tickBorderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tickBorderDash")]),t._v(": "),r("em",[t._v("number")]),t._v("[]")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" []")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2672",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2672"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tickborderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tickborderdashoffset"}},[t._v("#")]),t._v(" tickBorderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tickBorderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2676",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2676"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tickcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tickcolor"}},[t._v("#")]),t._v(" tickColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tickColor")]),t._v(": "),r("em",[t._v("string")]),t._v(" | CanvasGradient | CanvasPattern | readonly "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v("[] | ("),r("code",[t._v("ctx")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[t._v("ScriptableScaleContext")])]),t._v(") => "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'rgba(0, 0, 0, 0.1)'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2680",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2680"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"ticklength"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#ticklength"}},[t._v("#")]),t._v(" tickLength")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tickLength")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 10")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2684",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2684"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tickwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tickwidth"}},[t._v("#")]),t._v(" tickWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tickWidth")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 1")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2688",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2688"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/69.e5b7dac5.js b/docs/latest/assets/js/69.e5b7dac5.js new file mode 100644 index 0000000000..b67ab3b972 --- /dev/null +++ b/docs/latest/assets/js/69.e5b7dac5.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[69],{393:function(e,t,r){"use strict";r.r(t);var a=r(7),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-gridlineoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-gridlineoptions"}},[e._v("#")]),e._v(" Interface: GridLineOptions")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[e._v("#")]),e._v(" borderColor")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderColor")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2634",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2634"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"borderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdash"}},[e._v("#")]),e._v(" borderDash")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderDash")]),e._v(": "),r("em",[e._v("number")]),e._v("[]")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" []")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2647",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2647"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"borderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdashoffset"}},[e._v("#")]),e._v(" borderDashOffset")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderDashOffset")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[e._v("Scriptable")])]),e._v("")],1),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 0")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2651",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2651"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[e._v("#")]),e._v(" borderWidth")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderWidth")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2635",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2635"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"circular"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#circular"}},[e._v("#")]),e._v(" circular")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("circular")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" false")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2639",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2639"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"color"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[e._v("#")]),e._v(" color")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("color")]),e._v(": "),r("em",[e._v("string")]),e._v(" | CanvasGradient | CanvasPattern | readonly "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])]),e._v("[] | ("),r("code",[e._v("ctx")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[e._v("ScriptableScaleContext")])]),e._v(") => "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 'rgba(0, 0, 0, 0.1)'")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2643",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2643"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"display"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[e._v("#")]),e._v(" display")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("display")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" true")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2633",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2633"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"drawborder"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#drawborder"}},[e._v("#")]),e._v(" drawBorder")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("drawBorder")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" true")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2660",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2660"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"drawonchartarea"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#drawonchartarea"}},[e._v("#")]),e._v(" drawOnChartArea")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("drawOnChartArea")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" true")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2664",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2664"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"drawticks"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#drawticks"}},[e._v("#")]),e._v(" drawTicks")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("drawTicks")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" true")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2668",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2668"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"linewidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linewidth"}},[e._v("#")]),e._v(" lineWidth")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("lineWidth")]),e._v(": "),r("em",[e._v("number")]),e._v(" | readonly "),r("em",[e._v("number")]),e._v("[] | ("),r("code",[e._v("ctx")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[e._v("ScriptableScaleContext")])]),e._v(") => "),r("em",[e._v("number")])],1),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 1")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2655",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2655"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"offset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#offset"}},[e._v("#")]),e._v(" offset")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("offset")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" false")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2692",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2692"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"tickborderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tickborderdash"}},[e._v("#")]),e._v(" tickBorderDash")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("tickBorderDash")]),e._v(": "),r("em",[e._v("number")]),e._v("[]")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" []")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2672",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2672"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"tickborderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tickborderdashoffset"}},[e._v("#")]),e._v(" tickBorderDashOffset")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("tickBorderDashOffset")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[e._v("Scriptable")])]),e._v("")],1),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 0")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2676",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2676"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"tickcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tickcolor"}},[e._v("#")]),e._v(" tickColor")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("tickColor")]),e._v(": "),r("em",[e._v("string")]),e._v(" | CanvasGradient | CanvasPattern | readonly "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])]),e._v("[] | ("),r("code",[e._v("ctx")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[e._v("ScriptableScaleContext")])]),e._v(") => "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 'rgba(0, 0, 0, 0.1)'")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2680",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2680"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"ticklength"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#ticklength"}},[e._v("#")]),e._v(" tickLength")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("tickLength")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 10")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2684",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2684"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"tickwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tickwidth"}},[e._v("#")]),e._v(" tickWidth")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("tickWidth")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 1")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2688",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2688"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/7.a9072f57.js b/docs/latest/assets/js/7.882fe3fd.js similarity index 100% rename from docs/latest/assets/js/7.a9072f57.js rename to docs/latest/assets/js/7.882fe3fd.js diff --git a/docs/latest/assets/js/70.3999b0cd.js b/docs/latest/assets/js/70.3999b0cd.js deleted file mode 100644 index 97ce2112a8..0000000000 --- a/docs/latest/assets/js/70.3999b0cd.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[70],{397:function(e,t,r){"use strict";r.r(t);var n=r(7),a=Object(n.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-interactionitem"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-interactionitem"}},[e._v("#")]),e._v(" Interface: InteractionItem")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"datasetindex"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[e._v("#")]),e._v(" datasetIndex")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("datasetIndex")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L659",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:659"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"element"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#element"}},[e._v("#")]),e._v(" element")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("element")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])]),e._v("<{}, {}>")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L658",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:658"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"index"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[e._v("#")]),e._v(" index")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("index")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L660",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:660"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/70.5f575655.js b/docs/latest/assets/js/70.5f575655.js new file mode 100644 index 0000000000..96fbddfe9f --- /dev/null +++ b/docs/latest/assets/js/70.5f575655.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[70],{394:function(e,t,r){"use strict";r.r(t);var n=r(7),a=Object(n.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-interactionitem"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-interactionitem"}},[e._v("#")]),e._v(" Interface: InteractionItem")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"datasetindex"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[e._v("#")]),e._v(" datasetIndex")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("datasetIndex")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L659",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:659"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"element"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#element"}},[e._v("#")]),e._v(" element")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("element")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])]),e._v("<{}, {}>")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L658",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:658"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"index"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[e._v("#")]),e._v(" index")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("index")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L660",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:660"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/71.8b4b0011.js b/docs/latest/assets/js/71.8b4b0011.js deleted file mode 100644 index 05bc63f699..0000000000 --- a/docs/latest/assets/js/71.8b4b0011.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[71],{398:function(t,e,n){"use strict";n.r(e);var r=n(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[n("h1",{attrs:{id:"interface-interactionmodemap"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#interface-interactionmodemap"}},[t._v("#")]),t._v(" Interface: InteractionModeMap")]),t._v(" "),n("h2",{attrs:{id:"properties"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),n("h3",{attrs:{id:"dataset"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[t._v("#")]),t._v(" dataset")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("dataset")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("Returns items in the same dataset. If the options.intersect parameter is true, we only return items if we intersect something\nIf the options.intersect is false, we find the nearest item and return the items in that dataset")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L681",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:681"),n("OutboundLink")],1)]),t._v(" "),n("hr"),t._v(" "),n("h3",{attrs:{id:"index"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("index")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("Returns items at the same index. If the options.intersect parameter is true, we only return items if we intersect something\nIf the options.intersect mode is false, we find the nearest item and return the items at the same index as that item")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L675",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:675"),n("OutboundLink")],1)]),t._v(" "),n("hr"),t._v(" "),n("h3",{attrs:{id:"nearest"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#nearest"}},[t._v("#")]),t._v(" nearest")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("nearest")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("nearest mode returns the element closest to the point")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L690",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:690"),n("OutboundLink")],1)]),t._v(" "),n("hr"),t._v(" "),n("h3",{attrs:{id:"point"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#point"}},[t._v("#")]),t._v(" point")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("point")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("Point mode returns all elements that hit test based on the event position\nof the event")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L686",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:686"),n("OutboundLink")],1)]),t._v(" "),n("hr"),t._v(" "),n("h3",{attrs:{id:"x"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("x")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("x mode returns the elements that hit-test at the current x coordinate")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L694",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:694"),n("OutboundLink")],1)]),t._v(" "),n("hr"),t._v(" "),n("h3",{attrs:{id:"y"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("y")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("y mode returns the elements that hit-test at the current y coordinate")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L698",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:698"),n("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/71.e6886a7d.js b/docs/latest/assets/js/71.e6886a7d.js new file mode 100644 index 0000000000..ab62bc8dbe --- /dev/null +++ b/docs/latest/assets/js/71.e6886a7d.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[71],{395:function(t,e,n){"use strict";n.r(e);var r=n(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[n("h1",{attrs:{id:"interface-interactionmodemap"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#interface-interactionmodemap"}},[t._v("#")]),t._v(" Interface: InteractionModeMap")]),t._v(" "),n("h2",{attrs:{id:"properties"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),n("h3",{attrs:{id:"dataset"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[t._v("#")]),t._v(" dataset")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("dataset")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("Returns items in the same dataset. If the options.intersect parameter is true, we only return items if we intersect something\nIf the options.intersect is false, we find the nearest item and return the items in that dataset")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L681",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:681"),n("OutboundLink")],1)]),t._v(" "),n("hr"),t._v(" "),n("h3",{attrs:{id:"index"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("index")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("Returns items at the same index. If the options.intersect parameter is true, we only return items if we intersect something\nIf the options.intersect mode is false, we find the nearest item and return the items at the same index as that item")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L675",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:675"),n("OutboundLink")],1)]),t._v(" "),n("hr"),t._v(" "),n("h3",{attrs:{id:"nearest"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#nearest"}},[t._v("#")]),t._v(" nearest")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("nearest")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("nearest mode returns the element closest to the point")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L690",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:690"),n("OutboundLink")],1)]),t._v(" "),n("hr"),t._v(" "),n("h3",{attrs:{id:"point"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#point"}},[t._v("#")]),t._v(" point")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("point")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("Point mode returns all elements that hit test based on the event position\nof the event")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L686",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:686"),n("OutboundLink")],1)]),t._v(" "),n("hr"),t._v(" "),n("h3",{attrs:{id:"x"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("x")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("x mode returns the elements that hit-test at the current x coordinate")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L694",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:694"),n("OutboundLink")],1)]),t._v(" "),n("hr"),t._v(" "),n("h3",{attrs:{id:"y"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("y")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("y mode returns the elements that hit-test at the current y coordinate")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L698",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:698"),n("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/72.18792544.js b/docs/latest/assets/js/72.18792544.js deleted file mode 100644 index 2e14727c1b..0000000000 --- a/docs/latest/assets/js/72.18792544.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[72],{399:function(t,e,r){"use strict";r.r(e);var s=r(7),a=Object(s.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-interactionoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-interactionoptions"}},[t._v("#")]),t._v(" Interface: InteractionOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"axis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),r("p",[t._v("• "),r("code",[t._v("Optional")]),t._v(" "),r("strong",[t._v("axis")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L653",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:653"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"intersect"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#intersect"}},[t._v("#")]),t._v(" intersect")]),t._v(" "),r("p",[t._v("• "),r("code",[t._v("Optional")]),t._v(" "),r("strong",[t._v("intersect")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L654",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:654"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/72.3cbbf440.js b/docs/latest/assets/js/72.3cbbf440.js new file mode 100644 index 0000000000..864c1f534b --- /dev/null +++ b/docs/latest/assets/js/72.3cbbf440.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[72],{396:function(t,e,r){"use strict";r.r(e);var s=r(7),n=Object(s.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-interactionoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-interactionoptions"}},[t._v("#")]),t._v(" Interface: InteractionOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"axis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),r("p",[t._v("• "),r("code",[t._v("Optional")]),t._v(" "),r("strong",[t._v("axis")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L653",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:653"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"intersect"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#intersect"}},[t._v("#")]),t._v(" intersect")]),t._v(" "),r("p",[t._v("• "),r("code",[t._v("Optional")]),t._v(" "),r("strong",[t._v("intersect")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L654",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:654"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/73.7e0c7b18.js b/docs/latest/assets/js/73.7e0c7b18.js new file mode 100644 index 0000000000..52cf8855f2 --- /dev/null +++ b/docs/latest/assets/js/73.7e0c7b18.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[73],{397:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-layoutitem"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-layoutitem"}},[t._v("#")]),t._v(" Interface: LayoutItem")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("strong",[t._v("LayoutItem")])]),t._v(" "),r("p",[t._v("↳ "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[t._v("Scale")])])],1),t._v(" "),r("p",[t._v("↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[r("em",[t._v("LegendElement")])])],1)])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"bottom"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bottom")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Bottom edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L41",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:41"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"fullsize"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("fullSize")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("if true, and the item is horizontal, then push vertical boxes down")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:17"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"height"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("height")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Height of item. Must be valid after update()")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:25"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"left"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("left")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Left edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:29"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"position"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("position")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#layoutposition"}},[r("em",[t._v("LayoutPosition")])])],1),t._v(" "),r("p",[t._v("The position of the item in the chart layout. Possible values are")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:9"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"right"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("right")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Right edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:37"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"top"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("top")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Top edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:33"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"weight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("weight")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The weight used to sort the item. Higher weights are further away from the chart area")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:13"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"width"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("width")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Width of item. Must be valid after update()")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:21"),r("OutboundLink")],1)]),t._v(" "),r("h2",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("h3",{attrs:{id:"beforelayout"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),r("p",[t._v("▸ "),r("code",[t._v("Optional")]),r("strong",[t._v("beforeLayout")]),t._v("(): "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Called before the layout process starts")]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L46",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:46"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"draw"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("draw")]),t._v("("),r("code",[t._v("chartArea")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])]),t._v("): "),r("em",[t._v("void")])],1),t._v(" "),r("p",[t._v("Draws the element")]),t._v(" "),r("h4",{attrs:{id:"parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("chartArea")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L50",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:50"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"getpadding"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#getpadding"}},[t._v("#")]),t._v(" getPadding")]),t._v(" "),r("p",[t._v("▸ "),r("code",[t._v("Optional")]),r("strong",[t._v("getPadding")]),t._v("(): "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("Returns an object with padding on the edges")]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L54",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:54"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"ishorizontal"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#ishorizontal"}},[t._v("#")]),t._v(" isHorizontal")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("isHorizontal")]),t._v("(): "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("returns true if the layout item is horizontal (ie. top or bottom)")]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:58"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"update"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("update")]),t._v("("),r("code",[t._v("width")]),t._v(": "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("height")]),t._v(": "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("margins?")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])]),t._v("): "),r("em",[t._v("void")])],1),t._v(" "),r("p",[t._v("Takes two parameters: width and height.")]),t._v(" "),r("h4",{attrs:{id:"parameters-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("width")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("number")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("height")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("number")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("margins?")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:64"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/73.d442a441.js b/docs/latest/assets/js/73.d442a441.js deleted file mode 100644 index 29dc481674..0000000000 --- a/docs/latest/assets/js/73.d442a441.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[73],{400:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-layoutitem"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-layoutitem"}},[t._v("#")]),t._v(" Interface: LayoutItem")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("LayoutItem")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])])],1),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"bottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Bottom edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L41",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:41"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("fullSize")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("if true, and the item is horizontal, then push vertical boxes down")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"height"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("height")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Height of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"left"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("left")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Left edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:29"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])])],1),t._v(" "),a("p",[t._v("The position of the item in the chart layout. Possible values are")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"right"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("right")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Right edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:37"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"top"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("top")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Top edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:33"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the item. Higher weights are further away from the chart area")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"width"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("width")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Width of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"beforelayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeLayout")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Called before the layout process starts")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L46",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:46"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Draws the element")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L50",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:50"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpadding"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpadding"}},[t._v("#")]),t._v(" getPadding")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getPadding")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Returns an object with padding on the edges")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L54",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:54"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ishorizontal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ishorizontal"}},[t._v("#")]),t._v(" isHorizontal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isHorizontal")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("returns true if the layout item is horizontal (ie. top or bottom)")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("margins?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Takes two parameters: width and height.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("margins?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:64"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/74.26bae493.js b/docs/latest/assets/js/74.26bae493.js new file mode 100644 index 0000000000..130da2a926 --- /dev/null +++ b/docs/latest/assets/js/74.26bae493.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[74],{399:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-legendelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-legendelement"}},[t._v("#")]),t._v(" Interface: LegendElement")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])])],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("LegendElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Bottom edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#bottom"}},[t._v("bottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L41",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:41"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("fullSize")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("if true, and the item is horizontal, then push vertical boxes down")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#fullsize"}},[t._v("fullSize")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"height"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("height")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Height of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#height"}},[t._v("height")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"left"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("left")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Left edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#left"}},[t._v("left")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:29"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])])],1),t._v(" "),a("p",[t._v("The position of the item in the chart layout. Possible values are")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#position"}},[t._v("position")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"right"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("right")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Right edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#right"}},[t._v("right")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:37"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"top"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("top")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Top edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#top"}},[t._v("top")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:33"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the item. Higher weights are further away from the chart area")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#weight"}},[t._v("weight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"width"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("width")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Width of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#width"}},[t._v("width")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"beforelayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeLayout")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Called before the layout process starts")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L46",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:46"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Draws the element")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L50",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:50"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpadding"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpadding"}},[t._v("#")]),t._v(" getPadding")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getPadding")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Returns an object with padding on the edges")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L54",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:54"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": "),a("em",[t._v("never")]),t._v("[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ishorizontal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ishorizontal"}},[t._v("#")]),t._v(" isHorizontal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isHorizontal")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("returns true if the layout item is horizontal (ie. top or bottom)")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("margins?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Takes two parameters: width and height.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("margins?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:64"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/74.88418504.js b/docs/latest/assets/js/74.88418504.js deleted file mode 100644 index a87830f36f..0000000000 --- a/docs/latest/assets/js/74.88418504.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[74],{401:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-legendelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-legendelement"}},[t._v("#")]),t._v(" Interface: LegendElement")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])])],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("LegendElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Bottom edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#bottom"}},[t._v("bottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L41",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:41"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("fullSize")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("if true, and the item is horizontal, then push vertical boxes down")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#fullsize"}},[t._v("fullSize")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"height"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("height")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Height of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#height"}},[t._v("height")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"left"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("left")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Left edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#left"}},[t._v("left")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:29"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])])],1),t._v(" "),a("p",[t._v("The position of the item in the chart layout. Possible values are")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#position"}},[t._v("position")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"right"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("right")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Right edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#right"}},[t._v("right")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:37"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"top"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("top")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Top edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#top"}},[t._v("top")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:33"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the item. Higher weights are further away from the chart area")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#weight"}},[t._v("weight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"width"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("width")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Width of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#width"}},[t._v("width")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"beforelayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeLayout")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Called before the layout process starts")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L46",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:46"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Draws the element")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L50",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:50"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpadding"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpadding"}},[t._v("#")]),t._v(" getPadding")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getPadding")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Returns an object with padding on the edges")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L54",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:54"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": "),a("em",[t._v("never")]),t._v("[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ishorizontal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ishorizontal"}},[t._v("#")]),t._v(" isHorizontal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isHorizontal")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("returns true if the layout item is horizontal (ie. top or bottom)")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("margins?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Takes two parameters: width and height.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("margins?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:64"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/75.9641c3e4.js b/docs/latest/assets/js/75.9641c3e4.js new file mode 100644 index 0000000000..4695490347 --- /dev/null +++ b/docs/latest/assets/js/75.9641c3e4.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[75],{398:function(e,t,r){"use strict";r.r(t);var n=r(7),s=Object(n.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-legenditem"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-legenditem"}},[e._v("#")]),e._v(" Interface: LegendItem")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[e._v("#")]),e._v(" borderRadius")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("borderRadius")]),e._v(": "),r("em",[e._v("number")]),e._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/borderradius.html"}},[r("em",[e._v("BorderRadius")])])],1),e._v(" "),r("p",[e._v("Border radius of the legend box")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("since")])]),e._v(" 3.1.0")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2016",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2016"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"datasetindex"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[e._v("#")]),e._v(" datasetIndex")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("datasetIndex")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Index of the associated dataset")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2021",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2021"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"fillstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#fillstyle"}},[e._v("#")]),e._v(" fillStyle")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("fillStyle")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Fill style of the legend box")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2026",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2026"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"fontcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#fontcolor"}},[e._v("#")]),e._v(" fontColor")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("fontColor")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Font color for the text\nDefaults to LegendOptions.labels.color")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2032",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2032"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[e._v("#")]),e._v(" hidden")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("hidden")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("If true, this item represents a hidden dataset. Label will be rendered with a strike-through effect")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2037",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2037"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"linecap"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linecap"}},[e._v("#")]),e._v(" lineCap")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("lineCap")]),e._v(": CanvasLineCap")]),e._v(" "),r("p",[e._v("For box border.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("see")])]),e._v(" https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/lineCap")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2043",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2043"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"linedash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linedash"}},[e._v("#")]),e._v(" lineDash")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("lineDash")]),e._v(": "),r("em",[e._v("number")]),e._v("[]")]),e._v(" "),r("p",[e._v("For box border.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("see")])]),e._v(" https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2049",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2049"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"linedashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linedashoffset"}},[e._v("#")]),e._v(" lineDashOffset")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("lineDashOffset")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("For box border.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("see")])]),e._v(" https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2055",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2055"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"linejoin"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linejoin"}},[e._v("#")]),e._v(" lineJoin")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("lineJoin")]),e._v(": CanvasLineJoin")]),e._v(" "),r("p",[e._v("For box border.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("see")])]),e._v(" https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2061",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2061"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"linewidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linewidth"}},[e._v("#")]),e._v(" lineWidth")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("lineWidth")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Width of box border")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2066",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2066"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[e._v("#")]),e._v(" pointStyle")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("pointStyle")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[e._v("PointStyle")])])],1),e._v(" "),r("p",[e._v("Point style of the legend box (only used if usePointStyle is true)")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2076",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2076"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[e._v("#")]),e._v(" rotation")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("rotation")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Rotation of the point in degrees (only used if usePointStyle is true)")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2081",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2081"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"strokestyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#strokestyle"}},[e._v("#")]),e._v(" strokeStyle")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("strokeStyle")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Stroke style of the legend box")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2071",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2071"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"text"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#text"}},[e._v("#")]),e._v(" text")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("text")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Label that will be displayed")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2010",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2010"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"textalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#textalign"}},[e._v("#")]),e._v(" textAlign")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("textAlign")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[e._v("TextAlign")])])],1),e._v(" "),r("p",[e._v("Text alignment")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2086",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2086"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/75.c79342e2.js b/docs/latest/assets/js/75.c79342e2.js deleted file mode 100644 index a4f83f90f2..0000000000 --- a/docs/latest/assets/js/75.c79342e2.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[75],{402:function(e,t,r){"use strict";r.r(t);var s=r(7),n=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-legenditem"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-legenditem"}},[e._v("#")]),e._v(" Interface: LegendItem")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[e._v("#")]),e._v(" borderRadius")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("borderRadius")]),e._v(": "),r("em",[e._v("number")]),e._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/borderradius.html"}},[r("em",[e._v("BorderRadius")])])],1),e._v(" "),r("p",[e._v("Border radius of the legend box")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("since")])]),e._v(" 3.1.0")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2016",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2016"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"datasetindex"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[e._v("#")]),e._v(" datasetIndex")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("datasetIndex")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Index of the associated dataset")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2021",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2021"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"fillstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#fillstyle"}},[e._v("#")]),e._v(" fillStyle")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("fillStyle")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Fill style of the legend box")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2026",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2026"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"fontcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#fontcolor"}},[e._v("#")]),e._v(" fontColor")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("fontColor")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Font color for the text\nDefaults to LegendOptions.labels.color")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2032",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2032"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[e._v("#")]),e._v(" hidden")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("hidden")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("If true, this item represents a hidden dataset. Label will be rendered with a strike-through effect")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2037",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2037"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"linecap"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linecap"}},[e._v("#")]),e._v(" lineCap")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("lineCap")]),e._v(": CanvasLineCap")]),e._v(" "),r("p",[e._v("For box border.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("see")])]),e._v(" https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/lineCap")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2043",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2043"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"linedash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linedash"}},[e._v("#")]),e._v(" lineDash")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("lineDash")]),e._v(": "),r("em",[e._v("number")]),e._v("[]")]),e._v(" "),r("p",[e._v("For box border.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("see")])]),e._v(" https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2049",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2049"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"linedashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linedashoffset"}},[e._v("#")]),e._v(" lineDashOffset")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("lineDashOffset")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("For box border.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("see")])]),e._v(" https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2055",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2055"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"linejoin"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linejoin"}},[e._v("#")]),e._v(" lineJoin")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("lineJoin")]),e._v(": CanvasLineJoin")]),e._v(" "),r("p",[e._v("For box border.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("see")])]),e._v(" https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2061",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2061"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"linewidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linewidth"}},[e._v("#")]),e._v(" lineWidth")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("lineWidth")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Width of box border")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2066",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2066"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[e._v("#")]),e._v(" pointStyle")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("pointStyle")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[e._v("PointStyle")])])],1),e._v(" "),r("p",[e._v("Point style of the legend box (only used if usePointStyle is true)")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2076",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2076"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[e._v("#")]),e._v(" rotation")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("rotation")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Rotation of the point in degrees (only used if usePointStyle is true)")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2081",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2081"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"strokestyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#strokestyle"}},[e._v("#")]),e._v(" strokeStyle")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("strokeStyle")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Stroke style of the legend box")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2071",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2071"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"text"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#text"}},[e._v("#")]),e._v(" text")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("text")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Label that will be displayed")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2010",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2010"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"textalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#textalign"}},[e._v("#")]),e._v(" textAlign")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("textAlign")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[e._v("TextAlign")])])],1),e._v(" "),r("p",[e._v("Text alignment")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2086",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2086"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/76.8f533bcd.js b/docs/latest/assets/js/76.8f533bcd.js new file mode 100644 index 0000000000..f8ebc547d1 --- /dev/null +++ b/docs/latest/assets/js/76.8f533bcd.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[76],{402:function(t,e,a){"use strict";a.r(e);var v=a(7),i=Object(v.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-legendoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-legendoptions"}},[t._v("#")]),t._v(" Interface: LegendOptions")]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"align"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#align"}},[t._v("#")]),t._v(" align")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("align")]),t._v(": "),a("em",[t._v("start")]),t._v(" | "),a("em",[t._v("end")]),t._v(" | "),a("em",[t._v("center")])]),t._v(" "),a("p",[t._v("Alignment of the legend.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" 'center'")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2106",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2106"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"display"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[t._v("#")]),t._v(" display")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("display")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Is the legend shown?")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2096",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2096"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("fullSize")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Marks that this box should take the full width/height of the canvas (moving other boxes). This is unlikely to need to be changed in day-to-day use.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2111",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2111"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labels"}},[t._v("#")]),t._v(" labels")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("labels")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("boxHeight")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Height of the coloured box. "),a("strong",[a("code",[t._v("default")])]),t._v(" fontSize")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("boxWidth")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Width of colored box. "),a("strong",[a("code",[t._v("default")])]),t._v(" 40")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Color of label "),a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.color")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("font")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[a("em",[t._v("FontSpec")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Font of label "),a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.font")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Padding between rows of colored boxes. "),a("strong",[a("code",[t._v("default")])]),t._v(" 10")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#pointstyle"}},[a("em",[t._v("PointStyle")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Override point style for the legend. Only applies if usePointStyle is true")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("textAlign")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#textalign"}},[a("em",[t._v("TextAlign")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Text alignment")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("usePointStyle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Label style will match corresponding point style (size is based on the minimum value between boxWidth and font.size). "),a("strong",[a("code",[t._v("default")])]),t._v(" false")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("filter")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("item")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("data")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[a("em",[t._v("ChartData")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>) => "),a("em",[t._v("boolean")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("generateLabels")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>) => "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v("[]")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sort")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("a")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("b")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("data")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[a("em",[t._v("ChartData")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>) => "),a("em",[t._v("number")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2130",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2130"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])])],1),t._v(" "),a("p",[t._v("Position of the legend.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" 'top'")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2101",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2101"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reverse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reverse"}},[t._v("#")]),t._v(" reverse")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("reverse")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Legend will show datasets in reverse order.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2116",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2116"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"title"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" title")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("title")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Color of title "),a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.color")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("display")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Is the legend title displayed. "),a("strong",[a("code",[t._v("default")])]),t._v(" false")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("font")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[a("em",[t._v("FontSpec")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("see Fonts")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("position")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("start")]),t._v(" | "),a("em",[t._v("end")]),t._v(" | "),a("em",[t._v("center")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("text")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The string title.")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2188",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2188"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"onclick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onclick"}},[t._v("#")]),t._v(" onClick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onClick")]),t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("legendItem")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("legend")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("A callback that is called when a click event is registered on a label item.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("e")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legendItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legend")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2120",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2120"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"onhover"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onhover"}},[t._v("#")]),t._v(" onHover")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onHover")]),t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("legendItem")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("legend")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("A callback that is called when a 'mousemove' event is registered on top of a label item")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("e")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legendItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legend")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2124",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2124"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"onleave"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onleave"}},[t._v("#")]),t._v(" onLeave")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onLeave")]),t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("legendItem")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("legend")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("A callback that is called when a 'mousemove' event is registered outside of a previously hovered label item.")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("e")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legendItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legend")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2128",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2128"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/76.d00f66ea.js b/docs/latest/assets/js/76.d00f66ea.js deleted file mode 100644 index 76bc00b3d5..0000000000 --- a/docs/latest/assets/js/76.d00f66ea.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[76],{403:function(t,e,a){"use strict";a.r(e);var v=a(7),r=Object(v.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-legendoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-legendoptions"}},[t._v("#")]),t._v(" Interface: LegendOptions")]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"align"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#align"}},[t._v("#")]),t._v(" align")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("align")]),t._v(": "),a("em",[t._v("start")]),t._v(" | "),a("em",[t._v("end")]),t._v(" | "),a("em",[t._v("center")])]),t._v(" "),a("p",[t._v("Alignment of the legend.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" 'center'")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2106",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2106"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"display"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[t._v("#")]),t._v(" display")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("display")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Is the legend shown?")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2096",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2096"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("fullSize")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Marks that this box should take the full width/height of the canvas (moving other boxes). This is unlikely to need to be changed in day-to-day use.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2111",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2111"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labels"}},[t._v("#")]),t._v(" labels")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("labels")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("boxHeight")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Height of the coloured box. "),a("strong",[a("code",[t._v("default")])]),t._v(" fontSize")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("boxWidth")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Width of colored box. "),a("strong",[a("code",[t._v("default")])]),t._v(" 40")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Color of label "),a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.color")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("font")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[a("em",[t._v("FontSpec")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Font of label "),a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.font")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Padding between rows of colored boxes. "),a("strong",[a("code",[t._v("default")])]),t._v(" 10")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#pointstyle"}},[a("em",[t._v("PointStyle")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Override point style for the legend. Only applies if usePointStyle is true")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("textAlign")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#textalign"}},[a("em",[t._v("TextAlign")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Text alignment")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("usePointStyle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Label style will match corresponding point style (size is based on the minimum value between boxWidth and font.size). "),a("strong",[a("code",[t._v("default")])]),t._v(" false")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("filter")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("item")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("data")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[a("em",[t._v("ChartData")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>) => "),a("em",[t._v("boolean")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("generateLabels")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>) => "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v("[]")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sort")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("a")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("b")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("data")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[a("em",[t._v("ChartData")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>) => "),a("em",[t._v("number")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2130",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2130"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])])],1),t._v(" "),a("p",[t._v("Position of the legend.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" 'top'")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2101",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2101"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reverse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reverse"}},[t._v("#")]),t._v(" reverse")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("reverse")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Legend will show datasets in reverse order.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2116",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2116"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"title"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" title")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("title")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Color of title "),a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.color")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("display")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Is the legend title displayed. "),a("strong",[a("code",[t._v("default")])]),t._v(" false")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("font")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[a("em",[t._v("FontSpec")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("see Fonts")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("position")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("start")]),t._v(" | "),a("em",[t._v("end")]),t._v(" | "),a("em",[t._v("center")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("text")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The string title.")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2188",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2188"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"onclick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onclick"}},[t._v("#")]),t._v(" onClick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onClick")]),t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("legendItem")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("legend")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("A callback that is called when a click event is registered on a label item.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("e")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legendItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legend")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2120",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2120"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"onhover"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onhover"}},[t._v("#")]),t._v(" onHover")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onHover")]),t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("legendItem")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("legend")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("A callback that is called when a 'mousemove' event is registered on top of a label item")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("e")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legendItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legend")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2124",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2124"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"onleave"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onleave"}},[t._v("#")]),t._v(" onLeave")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onLeave")]),t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("legendItem")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("legend")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("A callback that is called when a 'mousemove' event is registered outside of a previously hovered label item.")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("e")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legendItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legend")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2128",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2128"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/77.9c7bbc3d.js b/docs/latest/assets/js/77.9c7bbc3d.js deleted file mode 100644 index b071fa2750..0000000000 --- a/docs/latest/assets/js/77.9c7bbc3d.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[77],{404:function(e,t,a){"use strict";a.r(t);var n=a(7),r=Object(n.a)({},(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[a("h1",{attrs:{id:"interface-linecontrollerchartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-linecontrollerchartoptions"}},[e._v("#")]),e._v(" Interface: LineControllerChartOptions")]),e._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),a("h3",{attrs:{id:"showline"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#showline"}},[e._v("#")]),e._v(" showLine")]),e._v(" "),a("p",[e._v("• "),a("strong",[e._v("showLine")]),e._v(": "),a("em",[e._v("boolean")])]),e._v(" "),a("p",[e._v("If false, the lines between points are not drawn.")]),e._v(" "),a("p",[a("strong",[a("code",[e._v("default")])]),e._v(" true")]),e._v(" "),a("p",[e._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L208",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:208"),a("OutboundLink")],1)]),e._v(" "),a("hr"),e._v(" "),a("h3",{attrs:{id:"spangaps"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#spangaps"}},[e._v("#")]),e._v(" spanGaps")]),e._v(" "),a("p",[e._v("• "),a("strong",[e._v("spanGaps")]),e._v(": "),a("em",[e._v("number")]),e._v(" | "),a("em",[e._v("boolean")])]),e._v(" "),a("p",[e._v("If true, lines will be drawn between points with no or null data. If false, points with NaN data will create a break in the line. Can also be a number specifying the maximum gap length to span. The unit of the value depends on the scale used.")]),e._v(" "),a("p",[a("strong",[a("code",[e._v("default")])]),e._v(" false")]),e._v(" "),a("p",[e._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L203",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:203"),a("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/77.aa12d9c5.js b/docs/latest/assets/js/77.aa12d9c5.js new file mode 100644 index 0000000000..7567651e51 --- /dev/null +++ b/docs/latest/assets/js/77.aa12d9c5.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[77],{400:function(e,t,n){"use strict";n.r(t);var a=n(7),r=Object(a.a)({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[n("h1",{attrs:{id:"interface-linecontrollerchartoptions"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#interface-linecontrollerchartoptions"}},[e._v("#")]),e._v(" Interface: LineControllerChartOptions")]),e._v(" "),n("h2",{attrs:{id:"properties"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),n("h3",{attrs:{id:"showline"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#showline"}},[e._v("#")]),e._v(" showLine")]),e._v(" "),n("p",[e._v("• "),n("strong",[e._v("showLine")]),e._v(": "),n("em",[e._v("boolean")])]),e._v(" "),n("p",[e._v("If false, the lines between points are not drawn.")]),e._v(" "),n("p",[n("strong",[n("code",[e._v("default")])]),e._v(" true")]),e._v(" "),n("p",[e._v("Defined in: "),n("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L208",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:208"),n("OutboundLink")],1)]),e._v(" "),n("hr"),e._v(" "),n("h3",{attrs:{id:"spangaps"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#spangaps"}},[e._v("#")]),e._v(" spanGaps")]),e._v(" "),n("p",[e._v("• "),n("strong",[e._v("spanGaps")]),e._v(": "),n("em",[e._v("number")]),e._v(" | "),n("em",[e._v("boolean")])]),e._v(" "),n("p",[e._v("If true, lines will be drawn between points with no or null data. If false, points with NaN data will create a break in the line. Can also be a number specifying the maximum gap length to span. The unit of the value depends on the scale used.")]),e._v(" "),n("p",[n("strong",[n("code",[e._v("default")])]),e._v(" false")]),e._v(" "),n("p",[e._v("Defined in: "),n("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L203",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:203"),n("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/78.52cd58bc.js b/docs/latest/assets/js/78.52cd58bc.js deleted file mode 100644 index 9837bf3225..0000000000 --- a/docs/latest/assets/js/78.52cd58bc.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[78],{405:function(t,e,r){"use strict";r.r(e);var a=r(7),o=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-linecontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-linecontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: LineControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[r("em",[t._v("ControllerDatasetOptions")])])],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableandarrayoptions"}},[r("em",[t._v("ScriptableAndArrayOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/pointprefixedoptions.html"}},[r("em",[t._v("PointPrefixedOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableoptions"}},[r("em",[t._v("ScriptableOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[r("em",[t._v("LineOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#animationoptions"}},[r("em",[t._v("AnimationOptions")])]),t._v("<"),r("em",[t._v("line")]),t._v(">")],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("LineControllerDatasetOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("em",[t._v("false")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("<"),r("em",[t._v("line")]),t._v("> & { "),r("code",[t._v("onComplete?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" ; "),r("code",[t._v("onProgress?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" }")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("<"),r("em",[t._v("line")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animations")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.backgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercapstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercapstyle"}},[t._v("#")]),t._v(" borderCapStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line cap style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'butt'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderCapStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1656",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1656"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdash"}},[t._v("#")]),t._v(" borderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line dash. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" []")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderDash")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1661",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1661"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdashoffset"}},[t._v("#")]),t._v(" borderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line dash offset. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0.0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderDashOffset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1666",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1666"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderjoinstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderjoinstyle"}},[t._v("#")]),t._v(" borderJoinStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line join style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'miter'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderJoinStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1671",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1671"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"capbezierpoints"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#capbezierpoints"}},[t._v("#")]),t._v(" capBezierPoints")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("capBezierPoints")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("true to keep Bézier control inside the chart, false for no restriction.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.capBezierPoints")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1676",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1676"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"cubicinterpolationmode"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#cubicinterpolationmode"}},[t._v("#")]),t._v(" cubicInterpolationMode")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("cubicInterpolationMode")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("em",[t._v("default")]),t._v(" | "),r("em",[t._v("monotone")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Interpolation mode to apply.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'default'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.cubicInterpolationMode")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1681",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1681"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercapstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercapstyle"}},[t._v("#")]),t._v(" hoverBorderCapStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderCapStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1705",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1705"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdash"}},[t._v("#")]),t._v(" hoverBorderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderDash")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1706",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1706"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdashoffset"}},[t._v("#")]),t._v(" hoverBorderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderDashOffset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1707",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1707"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderjoinstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderjoinstyle"}},[t._v("#")]),t._v(" hoverBorderJoinStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderJoinStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1708",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1708"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbackgroundcolor"}},[t._v("#")]),t._v(" pointBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("The fill color for points.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1783",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1783"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbordercolor"}},[t._v("#")]),t._v(" pointBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("The border color for points.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1787",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1787"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointborderwidth"}},[t._v("#")]),t._v(" pointBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The width of the point border in pixels.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1791",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1791"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhitradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhitradius"}},[t._v("#")]),t._v(" pointHitRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHitRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The pixel size of the non-displayed point that reacts to mouse events.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointHitRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1795",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1795"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbackgroundcolor"}},[t._v("#")]),t._v(" pointHoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Point background color when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointHoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1814",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1814"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbordercolor"}},[t._v("#")]),t._v(" pointHoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Point border color when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointHoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1818",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1818"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverborderwidth"}},[t._v("#")]),t._v(" pointHoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Border width of point when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointHoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1822",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1822"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverradius"}},[t._v("#")]),t._v(" pointHoverRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The radius of the point when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointHoverRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1826",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1826"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointradius"}},[t._v("#")]),t._v(" pointRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The radius of the point shape. If set to 0, the point is not rendered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1799",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1799"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointrotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointrotation"}},[t._v("#")]),t._v(" pointRotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRotation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The rotation of the point in degrees.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointRotation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1803",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1803"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Style of the point.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1807",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1807"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"segment"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#segment"}},[t._v("#")]),t._v(" segment")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("segment")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<{ "),r("code",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v("> ; "),r("code",[t._v("borderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v("> ; "),r("code",[t._v("borderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" }, "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.segment")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1693",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1693"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"showline"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#showline"}},[t._v("#")]),t._v(" showLine")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("showLine")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L195",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:195"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"spangaps"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#spangaps"}},[t._v("#")]),t._v(" spanGaps")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("spanGaps")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("If true, lines will be drawn between points with no or null data. If false, points with NaN data will create a break in the line. Can also be a number specifying the maximum gap length to span. The unit of the value depends on the scale used.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L193",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:193"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stepped"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stepped"}},[t._v("#")]),t._v(" stepped")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stepped")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("true to show the line as a stepped line (tension will be ignored).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.stepped")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1691",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1691"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tension"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tension"}},[t._v("#")]),t._v(" tension")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tension")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Bézier curve tension (0 for no Bézier curves).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.tension")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1686",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1686"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"transitions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("transitions")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[r("em",[t._v("TransitionsSpec")])]),t._v("<"),r("em",[t._v("line")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.transitions")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"xaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xaxisid"}},[t._v("#")]),t._v(" xAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("xAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the x axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L183",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:183"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"yaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yaxisid"}},[t._v("#")]),t._v(" yAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("yAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the y axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L187",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:187"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/78.de42f53f.js b/docs/latest/assets/js/78.de42f53f.js new file mode 100644 index 0000000000..57fcb59462 --- /dev/null +++ b/docs/latest/assets/js/78.de42f53f.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[78],{404:function(t,e,r){"use strict";r.r(e);var o=r(7),a=Object(o.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-linecontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-linecontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: LineControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[r("em",[t._v("ControllerDatasetOptions")])])],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableandarrayoptions"}},[r("em",[t._v("ScriptableAndArrayOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/pointprefixedoptions.html"}},[r("em",[t._v("PointPrefixedOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableoptions"}},[r("em",[t._v("ScriptableOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[r("em",[t._v("LineOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#animationoptions"}},[r("em",[t._v("AnimationOptions")])]),t._v("<"),r("em",[t._v("line")]),t._v(">")],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("LineControllerDatasetOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("em",[t._v("false")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("<"),r("em",[t._v("line")]),t._v("> & { "),r("code",[t._v("onComplete?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" ; "),r("code",[t._v("onProgress?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" }")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("<"),r("em",[t._v("line")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animations")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.backgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercapstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercapstyle"}},[t._v("#")]),t._v(" borderCapStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line cap style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'butt'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderCapStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1656",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1656"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdash"}},[t._v("#")]),t._v(" borderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line dash. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" []")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderDash")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1661",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1661"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdashoffset"}},[t._v("#")]),t._v(" borderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line dash offset. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0.0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderDashOffset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1666",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1666"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderjoinstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderjoinstyle"}},[t._v("#")]),t._v(" borderJoinStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line join style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'miter'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderJoinStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1671",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1671"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"capbezierpoints"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#capbezierpoints"}},[t._v("#")]),t._v(" capBezierPoints")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("capBezierPoints")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("true to keep Bézier control inside the chart, false for no restriction.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.capBezierPoints")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1676",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1676"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"cubicinterpolationmode"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#cubicinterpolationmode"}},[t._v("#")]),t._v(" cubicInterpolationMode")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("cubicInterpolationMode")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("em",[t._v("default")]),t._v(" | "),r("em",[t._v("monotone")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Interpolation mode to apply.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'default'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.cubicInterpolationMode")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1681",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1681"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercapstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercapstyle"}},[t._v("#")]),t._v(" hoverBorderCapStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderCapStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1705",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1705"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdash"}},[t._v("#")]),t._v(" hoverBorderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderDash")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1706",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1706"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdashoffset"}},[t._v("#")]),t._v(" hoverBorderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderDashOffset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1707",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1707"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderjoinstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderjoinstyle"}},[t._v("#")]),t._v(" hoverBorderJoinStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderJoinStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1708",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1708"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbackgroundcolor"}},[t._v("#")]),t._v(" pointBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("The fill color for points.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1783",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1783"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbordercolor"}},[t._v("#")]),t._v(" pointBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("The border color for points.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1787",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1787"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointborderwidth"}},[t._v("#")]),t._v(" pointBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The width of the point border in pixels.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1791",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1791"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhitradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhitradius"}},[t._v("#")]),t._v(" pointHitRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHitRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The pixel size of the non-displayed point that reacts to mouse events.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointHitRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1795",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1795"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbackgroundcolor"}},[t._v("#")]),t._v(" pointHoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Point background color when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointHoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1814",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1814"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbordercolor"}},[t._v("#")]),t._v(" pointHoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Point border color when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointHoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1818",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1818"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverborderwidth"}},[t._v("#")]),t._v(" pointHoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Border width of point when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointHoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1822",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1822"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverradius"}},[t._v("#")]),t._v(" pointHoverRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The radius of the point when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointHoverRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1826",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1826"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointradius"}},[t._v("#")]),t._v(" pointRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The radius of the point shape. If set to 0, the point is not rendered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1799",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1799"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointrotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointrotation"}},[t._v("#")]),t._v(" pointRotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRotation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The rotation of the point in degrees.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointRotation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1803",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1803"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Style of the point.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1807",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1807"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"segment"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#segment"}},[t._v("#")]),t._v(" segment")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("segment")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<{ "),r("code",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v("> ; "),r("code",[t._v("borderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v("> ; "),r("code",[t._v("borderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" }, "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.segment")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1693",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1693"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"showline"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#showline"}},[t._v("#")]),t._v(" showLine")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("showLine")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L195",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:195"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"spangaps"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#spangaps"}},[t._v("#")]),t._v(" spanGaps")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("spanGaps")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("If true, lines will be drawn between points with no or null data. If false, points with NaN data will create a break in the line. Can also be a number specifying the maximum gap length to span. The unit of the value depends on the scale used.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L193",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:193"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stepped"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stepped"}},[t._v("#")]),t._v(" stepped")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stepped")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("true to show the line as a stepped line (tension will be ignored).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.stepped")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1691",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1691"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tension"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tension"}},[t._v("#")]),t._v(" tension")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tension")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Bézier curve tension (0 for no Bézier curves).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.tension")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1686",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1686"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"transitions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("transitions")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[r("em",[t._v("TransitionsSpec")])]),t._v("<"),r("em",[t._v("line")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.transitions")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"xaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xaxisid"}},[t._v("#")]),t._v(" xAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("xAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the x axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L183",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:183"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"yaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yaxisid"}},[t._v("#")]),t._v(" yAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("yAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the y axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L187",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:187"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/79.260b827c.js b/docs/latest/assets/js/79.260b827c.js deleted file mode 100644 index c9e7e1b6ae..0000000000 --- a/docs/latest/assets/js/79.260b827c.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[79],{406:function(t,e,a){"use strict";a.r(e);var r=a(7),_=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-lineelement-t-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-lineelement-t-o"}},[t._v("#")]),t._v(" Interface: LineElement")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/lineprops.html"}},[a("em",[t._v("LineProps")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/lineprops.html"}},[a("em",[t._v("LineProps")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[a("em",[t._v("LineOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[a("em",[t._v("LineOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("")],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[a("em",[t._v("VisualElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("LineElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"points"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#points"}},[t._v("#")]),t._v(" points")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("points")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1715",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1715"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"segments"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#segments"}},[t._v("#")]),t._v(" segments")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("segments")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/segment.html"}},[a("em",[t._v("Segment")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1716",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1716"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1577",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1577"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"first"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#first"}},[t._v("#")]),t._v(" first")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("first")]),t._v("(): "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1717",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1717"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcenterpoint"}},[t._v("#")]),t._v(" getCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getCenterPoint")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1581"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": keyof T[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): T")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("keyof T[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getrange"}},[t._v("#")]),t._v(" getRange")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getRange")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inrange"}},[t._v("#")]),t._v(" inRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1578",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1578"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inxrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inxrange"}},[t._v("#")]),t._v(" inXRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inXRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1579",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1579"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inyrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inyrange"}},[t._v("#")]),t._v(" inYRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inYRange")]),t._v("("),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1580"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"interpolate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interpolate"}},[t._v("#")]),t._v(" interpolate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("interpolate")]),t._v("("),a("code",[t._v("point")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v(", "),a("code",[t._v("property")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("point")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("property")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1719",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1719"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"last"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#last"}},[t._v("#")]),t._v(" last")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("last")]),t._v("(): "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1718",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1718"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"path"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#path"}},[t._v("#")]),t._v(" path")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("path")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1721",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1721"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"pathsegment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pathsegment"}},[t._v("#")]),t._v(" pathSegment")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("pathSegment")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D, "),a("code",[t._v("segment")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/segment.html"}},[a("em",[t._v("Segment")])]),t._v(", "),a("code",[t._v("params")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("segment")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/segment.html"}},[a("em",[t._v("Segment")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("params")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1720",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1720"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatecontrolpoints"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatecontrolpoints"}},[t._v("#")]),t._v(" updateControlPoints")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateControlPoints")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1714",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1714"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/79.e5a50a48.js b/docs/latest/assets/js/79.e5a50a48.js new file mode 100644 index 0000000000..ec3e9a0b7e --- /dev/null +++ b/docs/latest/assets/js/79.e5a50a48.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[79],{401:function(t,e,a){"use strict";a.r(e);var r=a(7),_=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-lineelement-t-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-lineelement-t-o"}},[t._v("#")]),t._v(" Interface: LineElement")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/lineprops.html"}},[a("em",[t._v("LineProps")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/lineprops.html"}},[a("em",[t._v("LineProps")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[a("em",[t._v("LineOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[a("em",[t._v("LineOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("")],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[a("em",[t._v("VisualElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("LineElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"points"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#points"}},[t._v("#")]),t._v(" points")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("points")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1715",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1715"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"segments"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#segments"}},[t._v("#")]),t._v(" segments")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("segments")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/segment.html"}},[a("em",[t._v("Segment")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1716",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1716"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1577",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1577"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"first"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#first"}},[t._v("#")]),t._v(" first")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("first")]),t._v("(): "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1717",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1717"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcenterpoint"}},[t._v("#")]),t._v(" getCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getCenterPoint")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1581"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": keyof T[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): T")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("keyof T[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getrange"}},[t._v("#")]),t._v(" getRange")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getRange")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inrange"}},[t._v("#")]),t._v(" inRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1578",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1578"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inxrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inxrange"}},[t._v("#")]),t._v(" inXRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inXRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1579",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1579"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inyrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inyrange"}},[t._v("#")]),t._v(" inYRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inYRange")]),t._v("("),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1580"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"interpolate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interpolate"}},[t._v("#")]),t._v(" interpolate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("interpolate")]),t._v("("),a("code",[t._v("point")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v(", "),a("code",[t._v("property")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("point")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("property")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1719",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1719"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"last"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#last"}},[t._v("#")]),t._v(" last")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("last")]),t._v("(): "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1718",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1718"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"path"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#path"}},[t._v("#")]),t._v(" path")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("path")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1721",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1721"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"pathsegment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pathsegment"}},[t._v("#")]),t._v(" pathSegment")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("pathSegment")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D, "),a("code",[t._v("segment")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/segment.html"}},[a("em",[t._v("Segment")])]),t._v(", "),a("code",[t._v("params")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("segment")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/segment.html"}},[a("em",[t._v("Segment")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("params")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1720",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1720"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatecontrolpoints"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatecontrolpoints"}},[t._v("#")]),t._v(" updateControlPoints")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateControlPoints")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1714",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1714"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/8.f223931f.js b/docs/latest/assets/js/8.213592ca.js similarity index 100% rename from docs/latest/assets/js/8.f223931f.js rename to docs/latest/assets/js/8.213592ca.js diff --git a/docs/latest/assets/js/80.804afa63.js b/docs/latest/assets/js/80.804afa63.js new file mode 100644 index 0000000000..70f176ce22 --- /dev/null +++ b/docs/latest/assets/js/80.804afa63.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[80],{403:function(r,e,t){"use strict";t.r(e);var o=t(7),s=Object(o.a)({},(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[t("h1",{attrs:{id:"interface-linehoveroptions"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interface-linehoveroptions"}},[r._v("#")]),r._v(" Interface: LineHoverOptions")]),r._v(" "),t("h2",{attrs:{id:"hierarchy"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[r._v("#")]),r._v(" Hierarchy")]),r._v(" "),t("ul",[t("li",[t("p",[t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[t("em",[r._v("CommonHoverOptions")])])],1),r._v(" "),t("p",[r._v("↳ "),t("strong",[r._v("LineHoverOptions")])])])]),r._v(" "),t("h2",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),t("h3",{attrs:{id:"hoverbackgroundcolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[r._v("#")]),r._v(" hoverBackgroundColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBackgroundColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbackgroundcolor"}},[r._v("hoverBackgroundColor")])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1594"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverbordercapstyle"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercapstyle"}},[r._v("#")]),r._v(" hoverBorderCapStyle")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderCapStyle")]),r._v(": CanvasLineCap")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1705",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1705"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverbordercolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[r._v("#")]),r._v(" hoverBorderColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbordercolor"}},[r._v("hoverBorderColor")])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1593"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverborderdash"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdash"}},[r._v("#")]),r._v(" hoverBorderDash")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderDash")]),r._v(": "),t("em",[r._v("number")]),r._v("[]")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1706",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1706"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverborderdashoffset"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdashoffset"}},[r._v("#")]),r._v(" hoverBorderDashOffset")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderDashOffset")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1707",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1707"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverborderjoinstyle"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderjoinstyle"}},[r._v("#")]),r._v(" hoverBorderJoinStyle")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderJoinStyle")]),r._v(": CanvasLineJoin")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1708",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1708"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverborderwidth"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[r._v("#")]),r._v(" hoverBorderWidth")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderWidth")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverborderwidth"}},[r._v("hoverBorderWidth")])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1592"),t("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/80.a5cecfd5.js b/docs/latest/assets/js/80.a5cecfd5.js deleted file mode 100644 index 0e951a320b..0000000000 --- a/docs/latest/assets/js/80.a5cecfd5.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[80],{408:function(r,e,t){"use strict";t.r(e);var o=t(7),s=Object(o.a)({},(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[t("h1",{attrs:{id:"interface-linehoveroptions"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interface-linehoveroptions"}},[r._v("#")]),r._v(" Interface: LineHoverOptions")]),r._v(" "),t("h2",{attrs:{id:"hierarchy"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[r._v("#")]),r._v(" Hierarchy")]),r._v(" "),t("ul",[t("li",[t("p",[t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[t("em",[r._v("CommonHoverOptions")])])],1),r._v(" "),t("p",[r._v("↳ "),t("strong",[r._v("LineHoverOptions")])])])]),r._v(" "),t("h2",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),t("h3",{attrs:{id:"hoverbackgroundcolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[r._v("#")]),r._v(" hoverBackgroundColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBackgroundColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbackgroundcolor"}},[r._v("hoverBackgroundColor")])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1594"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverbordercapstyle"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercapstyle"}},[r._v("#")]),r._v(" hoverBorderCapStyle")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderCapStyle")]),r._v(": CanvasLineCap")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1705",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1705"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverbordercolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[r._v("#")]),r._v(" hoverBorderColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbordercolor"}},[r._v("hoverBorderColor")])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1593"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverborderdash"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdash"}},[r._v("#")]),r._v(" hoverBorderDash")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderDash")]),r._v(": "),t("em",[r._v("number")]),r._v("[]")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1706",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1706"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverborderdashoffset"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdashoffset"}},[r._v("#")]),r._v(" hoverBorderDashOffset")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderDashOffset")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1707",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1707"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverborderjoinstyle"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderjoinstyle"}},[r._v("#")]),r._v(" hoverBorderJoinStyle")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderJoinStyle")]),r._v(": CanvasLineJoin")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1708",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1708"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverborderwidth"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[r._v("#")]),r._v(" hoverBorderWidth")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderWidth")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverborderwidth"}},[r._v("hoverBorderWidth")])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1592"),t("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/81.0261566d.js b/docs/latest/assets/js/81.0261566d.js deleted file mode 100644 index db704b007b..0000000000 --- a/docs/latest/assets/js/81.0261566d.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[81],{407:function(t,e,r){"use strict";r.r(e);var o=r(7),n=Object(o.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-lineoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-lineoptions"}},[t._v("#")]),t._v(" Interface: LineOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[r("em",[t._v("CommonElementOptions")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("LineOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#backgroundcolor"}},[t._v("backgroundColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercapstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercapstyle"}},[t._v("#")]),t._v(" borderCapStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderCapStyle")]),t._v(": CanvasLineCap")]),t._v(" "),r("p",[t._v("Line cap style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'butt'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1656",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1656"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#bordercolor"}},[t._v("borderColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdash"}},[t._v("#")]),t._v(" borderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDash")]),t._v(": "),r("em",[t._v("number")]),t._v("[]")]),t._v(" "),r("p",[t._v("Line dash. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" []")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1661",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1661"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdashoffset"}},[t._v("#")]),t._v(" borderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDashOffset")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Line dash offset. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0.0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1666",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1666"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderjoinstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderjoinstyle"}},[t._v("#")]),t._v(" borderJoinStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderJoinStyle")]),t._v(": CanvasLineJoin")]),t._v(" "),r("p",[t._v("Line join style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'miter'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1671",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1671"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#borderwidth"}},[t._v("borderWidth")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"capbezierpoints"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#capbezierpoints"}},[t._v("#")]),t._v(" capBezierPoints")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("capBezierPoints")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("true to keep Bézier control inside the chart, false for no restriction.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1676",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1676"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"cubicinterpolationmode"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#cubicinterpolationmode"}},[t._v("#")]),t._v(" cubicInterpolationMode")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("cubicInterpolationMode")]),t._v(": "),r("em",[t._v("default")]),t._v(" | "),r("em",[t._v("monotone")])]),t._v(" "),r("p",[t._v("Interpolation mode to apply.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'default'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1681",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1681"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"segment"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#segment"}},[t._v("#")]),t._v(" segment")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("segment")]),t._v(": "),r("em",[t._v("object")])]),t._v(" "),r("h4",{attrs:{id:"type-declaration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("backgroundColor")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v(">")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderCapStyle")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderColor")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v(">")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderDash")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderDashOffset")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderJoinStyle")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderWidth")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1)])])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1693",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1693"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stepped"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stepped"}},[t._v("#")]),t._v(" stepped")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stepped")]),t._v(": "),r("em",[t._v("boolean")]),t._v(" | "),r("em",[t._v("before")]),t._v(" | "),r("em",[t._v("after")]),t._v(" | "),r("em",[t._v("middle")])]),t._v(" "),r("p",[t._v("true to show the line as a stepped line (tension will be ignored).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1691",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1691"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tension"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tension"}},[t._v("#")]),t._v(" tension")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tension")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Bézier curve tension (0 for no Bézier curves).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1686",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1686"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/81.3c4dfdab.js b/docs/latest/assets/js/81.3c4dfdab.js new file mode 100644 index 0000000000..731a201310 --- /dev/null +++ b/docs/latest/assets/js/81.3c4dfdab.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[81],{405:function(t,e,r){"use strict";r.r(e);var o=r(7),n=Object(o.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-lineoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-lineoptions"}},[t._v("#")]),t._v(" Interface: LineOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[r("em",[t._v("CommonElementOptions")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("LineOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#backgroundcolor"}},[t._v("backgroundColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercapstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercapstyle"}},[t._v("#")]),t._v(" borderCapStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderCapStyle")]),t._v(": CanvasLineCap")]),t._v(" "),r("p",[t._v("Line cap style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'butt'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1656",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1656"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#bordercolor"}},[t._v("borderColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdash"}},[t._v("#")]),t._v(" borderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDash")]),t._v(": "),r("em",[t._v("number")]),t._v("[]")]),t._v(" "),r("p",[t._v("Line dash. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" []")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1661",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1661"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdashoffset"}},[t._v("#")]),t._v(" borderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDashOffset")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Line dash offset. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0.0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1666",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1666"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderjoinstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderjoinstyle"}},[t._v("#")]),t._v(" borderJoinStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderJoinStyle")]),t._v(": CanvasLineJoin")]),t._v(" "),r("p",[t._v("Line join style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'miter'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1671",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1671"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#borderwidth"}},[t._v("borderWidth")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"capbezierpoints"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#capbezierpoints"}},[t._v("#")]),t._v(" capBezierPoints")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("capBezierPoints")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("true to keep Bézier control inside the chart, false for no restriction.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1676",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1676"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"cubicinterpolationmode"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#cubicinterpolationmode"}},[t._v("#")]),t._v(" cubicInterpolationMode")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("cubicInterpolationMode")]),t._v(": "),r("em",[t._v("default")]),t._v(" | "),r("em",[t._v("monotone")])]),t._v(" "),r("p",[t._v("Interpolation mode to apply.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'default'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1681",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1681"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"segment"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#segment"}},[t._v("#")]),t._v(" segment")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("segment")]),t._v(": "),r("em",[t._v("object")])]),t._v(" "),r("h4",{attrs:{id:"type-declaration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("backgroundColor")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v(">")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderCapStyle")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderColor")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v(">")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderDash")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderDashOffset")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderJoinStyle")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderWidth")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1)])])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1693",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1693"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stepped"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stepped"}},[t._v("#")]),t._v(" stepped")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stepped")]),t._v(": "),r("em",[t._v("boolean")]),t._v(" | "),r("em",[t._v("before")]),t._v(" | "),r("em",[t._v("after")]),t._v(" | "),r("em",[t._v("middle")])]),t._v(" "),r("p",[t._v("true to show the line as a stepped line (tension will be ignored).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1691",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1691"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tension"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tension"}},[t._v("#")]),t._v(" tension")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tension")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Bézier curve tension (0 for no Bézier curves).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1686",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1686"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/82.69931859.js b/docs/latest/assets/js/82.9906a286.js similarity index 86% rename from docs/latest/assets/js/82.69931859.js rename to docs/latest/assets/js/82.9906a286.js index f0ef152e5f..6370a1aa58 100644 --- a/docs/latest/assets/js/82.69931859.js +++ b/docs/latest/assets/js/82.9906a286.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[82],{409:function(t,e,s){"use strict";s.r(e);var n=s(7),r=Object(n.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[e("h1",{attrs:{id:"interface-lineprops"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#interface-lineprops"}},[this._v("#")]),this._v(" Interface: LineProps")])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[82],{406:function(t,e,s){"use strict";s.r(e);var n=s(7),r=Object(n.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[e("h1",{attrs:{id:"interface-lineprops"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#interface-lineprops"}},[this._v("#")]),this._v(" Interface: LineProps")])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/83.4d57cbe5.js b/docs/latest/assets/js/83.1464037a.js similarity index 58% rename from docs/latest/assets/js/83.4d57cbe5.js rename to docs/latest/assets/js/83.1464037a.js index 526a0fac27..1d3ad984ef 100644 --- a/docs/latest/assets/js/83.4d57cbe5.js +++ b/docs/latest/assets/js/83.1464037a.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[83],{411:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-parsingoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-parsingoptions"}},[t._v("#")]),t._v(" Interface: ParsingOptions")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("ParsingOptions")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[a("em",[t._v("ControllerDatasetOptions")])])],1),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[a("em",[t._v("CoreChartOptions")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"normalized"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("normalized")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("parsing")]),t._v(": "),a("em",[t._v("false")]),t._v(" | { [key: string]: "),a("em",[t._v("string")]),t._v("; }")]),t._v(" "),a("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[83],{407:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-parsingoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-parsingoptions"}},[t._v("#")]),t._v(" Interface: ParsingOptions")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("ParsingOptions")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[a("em",[t._v("ControllerDatasetOptions")])])],1),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[a("em",[t._v("CoreChartOptions")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"normalized"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("normalized")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("parsing")]),t._v(": "),a("em",[t._v("false")]),t._v(" | { [key: string]: "),a("em",[t._v("string")]),t._v("; }")]),t._v(" "),a("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/84.6c883a62.js b/docs/latest/assets/js/84.6c883a62.js new file mode 100644 index 0000000000..5d0ead3bd1 --- /dev/null +++ b/docs/latest/assets/js/84.6c883a62.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[84],{410:function(t,e,a){"use strict";a.r(e);var v=a(7),_=Object(v.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-plugin-ttype-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-plugin-ttype-o"}},[t._v("#")]),t._v(" Interface: Plugin")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("AnyObject")])])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/extendedplugin.html"}},[a("em",[t._v("ExtendedPlugin")])]),t._v("")],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("Plugin")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"id"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("id")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L746",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:746"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterBuildTicks")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v("> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after scale has build its ticks. This hook is called separately for each scale in the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The scale.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L905",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:905"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDataLimits")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v("> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after scale data limits are calculated. This hook is called separately for each scale in the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The scale.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L889",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:889"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatasetdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatasetdraw"}},[t._v("#")]),t._v(" afterDatasetDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDatasetDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" datasets at the given "),a("code",[t._v("args.index")]),t._v(" have been drawn\n(datasets are drawn in the reverse order). Note that this hook will not be called\nif the datasets drawing has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset index.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset metadata.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L987",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:987"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatasetupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatasetupdate"}},[t._v("#")]),t._v(" afterDatasetUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDatasetUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("false")]),t._v(" ; "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>> ; "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" datasets at the given "),a("code",[t._v("args.index")]),t._v(" has been updated. Note\nthat this hook will not be called if the datasets update has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("false")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset index.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset metadata.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L864",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:864"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatasetsdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatasetsdraw"}},[t._v("#")]),t._v(" afterDatasetsDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDatasetsDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O, "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("false")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" datasets have been drawn. Note that this hook\nwill not be called if the datasets drawing has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("false")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L964",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:964"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatasetsupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatasetsupdate"}},[t._v("#")]),t._v(" afterDatasetsUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDatasetsUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" ; "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" datasets have been updated. Note that this hook\nwill not be called if the datasets update has been previously cancelled.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" version 2.1.5")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L841",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:841"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdraw"}},[t._v("#")]),t._v(" afterDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" has been drawn. Note that this hook will not be called\nif the drawing has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L947",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:947"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterevent"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterevent"}},[t._v("#")]),t._v(" afterEvent")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterEvent")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("false")]),t._v(" ; "),a("code",[t._v("changed?")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(" ; "),a("code",[t._v("replay")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("event")]),t._v(" has been consumed. Note that this hook\nwill not be called if the "),a("code",[t._v("event")]),t._v(" has been previously discarded.")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("false")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.changed?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The event object.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.replay")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("True if this event is replayed from "),a("code",[t._v("Chart.update")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1008",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1008"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterinit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterinit"}},[t._v("#")]),t._v(" afterInit")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterInit")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after "),a("code",[t._v("chart")]),t._v(" has been initialized and before the first update.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L785",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:785"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterlayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterlayout"}},[t._v("#")]),t._v(" afterLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterLayout")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" has been laid out. Note that this hook will not\nbe called if the layout update has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L913",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:913"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterrender"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterrender"}},[t._v("#")]),t._v(" afterRender")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterRender")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" has been fully rendered (and animation completed). Note\nthat this hook will not be called if the rendering has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L930",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:930"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftertooltipdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftertooltipdraw"}},[t._v("#")]),t._v(" afterTooltipDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterTooltipDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("tooltip")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v(" }, "),a("code",[t._v("options")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after drawing the "),a("code",[t._v("tooltip")]),t._v(". Note that this hook will not\nbe called if the tooltip drawing has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.tooltip")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v("")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The tooltip.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/extendedplugin.html"}},[t._v("ExtendedPlugin")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2388",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2388"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after "),a("code",[t._v("chart")]),t._v(" has been updated and before rendering. Note that this\nhook will not be called if the chart update has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L804",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:804"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeBuildTicks")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v("> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before scale bulds its ticks. This hook is called separately for each scale in the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The scale.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L897",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:897"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDataLimits")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v("> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before scale data limits are calculated. This hook is called separately for each scale in the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The scale.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L881",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:881"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatasetdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatasetdraw"}},[t._v("#")]),t._v(" beforeDatasetDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDatasetDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before drawing the "),a("code",[t._v("chart")]),t._v(" dataset at the given "),a("code",[t._v("args.index")]),t._v(" (datasets\nare drawn in the reverse order). If any plugin returns "),a("code",[t._v("false")]),t._v(", the datasets drawing\nis cancelled until another "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset index.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset metadata.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart datasets drawing.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L976",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:976"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatasetupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatasetupdate"}},[t._v("#")]),t._v(" beforeDatasetUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDatasetUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" ; "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>> ; "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before updating the "),a("code",[t._v("chart")]),t._v(" dataset at the given "),a("code",[t._v("args.index")]),t._v(". If any plugin\nreturns "),a("code",[t._v("false")]),t._v(", the datasets update is cancelled until another "),a("code",[t._v("update")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset index.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset metadata.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart datasets drawing.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L853",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:853"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatasetsdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatasetsdraw"}},[t._v("#")]),t._v(" beforeDatasetsDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDatasetsDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before drawing the "),a("code",[t._v("chart")]),t._v(" datasets. If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe datasets drawing is cancelled until another "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart datasets drawing.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L956",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:956"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatasetsupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatasetsupdate"}},[t._v("#")]),t._v(" beforeDatasetsUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDatasetsUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before updating the "),a("code",[t._v("chart")]),t._v(" datasets. If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe datasets update is cancelled until another "),a("code",[t._v("update")]),t._v(" is triggered.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" version 2.1.5")]),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("false to cancel the datasets update.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L831",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:831"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedraw"}},[t._v("#")]),t._v(" beforeDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before drawing "),a("code",[t._v("chart")]),t._v(" at every animation frame. If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe frame drawing is cancelled untilanother "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart drawing.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L939",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:939"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeelementsupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeelementsupdate"}},[t._v("#")]),t._v(" beforeElementsUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeElementsUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called during the update process, before any chart elements have been created.\nThis can be used for data decimation by changing the data array inside a dataset.")]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L812",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:812"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeevent"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeevent"}},[t._v("#")]),t._v(" beforeEvent")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeEvent")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" ; "),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(" ; "),a("code",[t._v("replay")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before processing the specified "),a("code",[t._v("event")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe event will be discarded.")]),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The event object.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.replay")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("True if this event is replayed from "),a("code",[t._v("Chart.update")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L997",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:997"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeinit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeinit"}},[t._v("#")]),t._v(" beforeInit")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeInit")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before initializing "),a("code",[t._v("chart")]),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L778",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:778"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforelayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeLayout")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before laying out "),a("code",[t._v("chart")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe layout update is cancelled until another "),a("code",[t._v("update")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart layout.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L873",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:873"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforerender"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforerender"}},[t._v("#")]),t._v(" beforeRender")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeRender")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before rendering "),a("code",[t._v("chart")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe rendering is cancelled until another "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart rendering.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L922",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:922"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforetooltipdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforetooltipdraw"}},[t._v("#")]),t._v(" beforeTooltipDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeTooltipDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("tooltip")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v(" }, "),a("code",[t._v("options")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before drawing the "),a("code",[t._v("tooltip")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe tooltip drawing is cancelled until another "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-26"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-26"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.tooltip")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v("")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The tooltip.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart tooltip drawing.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/extendedplugin.html"}},[t._v("ExtendedPlugin")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2379",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2379"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" ; "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before updating "),a("code",[t._v("chart")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(", the update\nis cancelled (and thus subsequent render(s)) until another "),a("code",[t._v("update")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-27"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-27"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart update.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L795",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:795"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"destroy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#destroy"}},[t._v("#")]),t._v(" destroy")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("destroy")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called after the chart has been destroyed.")]),t._v(" "),a("h4",{attrs:{id:"parameters-28"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-28"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1023",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1023"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"install"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#install"}},[t._v("#")]),t._v(" install")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("install")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called when plugin is installed for this chart instance. This hook is also invoked for disabled plugins (options === false).")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" 3.0.0")]),t._v(" "),a("h4",{attrs:{id:"parameters-29"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-29"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L755",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:755"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" reset")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("reset")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called during chart reset")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" version 3.0.0")]),t._v(" "),a("h4",{attrs:{id:"parameters-30"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-30"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L820",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:820"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resize"}},[t._v("#")]),t._v(" resize")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("resize")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("size")]),t._v(": { "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(" } }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the chart as been resized.")]),t._v(" "),a("h4",{attrs:{id:"parameters-31"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-31"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.size")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The new canvas display size (eq. canvas.style width & height).")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.size.height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.size.width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1016",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1016"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"start"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#start"}},[t._v("#")]),t._v(" start")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("start")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called when a plugin is starting. This happens when chart is created or plugin is enabled.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" 3.0.0")]),t._v(" "),a("h4",{attrs:{id:"parameters-32"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-32"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L763",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:763"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"stop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stop"}},[t._v("#")]),t._v(" stop")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("stop")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called when a plugin stopping. This happens when chart is destroyed or plugin is disabled.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" 3.0.0")]),t._v(" "),a("h4",{attrs:{id:"parameters-33"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-33"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L771",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:771"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"uninstall"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#uninstall"}},[t._v("#")]),t._v(" uninstall")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("uninstall")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called after chart is destroyed on all plugins that were installed for that chart. This hook is also invoked for disabled plugins (options === false).")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" 3.0.0")]),t._v(" "),a("h4",{attrs:{id:"parameters-34"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-34"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1031",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1031"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/84.f8ea29f0.js b/docs/latest/assets/js/84.f8ea29f0.js deleted file mode 100644 index 7f5c7b75c9..0000000000 --- a/docs/latest/assets/js/84.f8ea29f0.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[84],{410:function(t,e,a){"use strict";a.r(e);var v=a(7),_=Object(v.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-plugin-ttype-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-plugin-ttype-o"}},[t._v("#")]),t._v(" Interface: Plugin")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("AnyObject")])])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/extendedplugin.html"}},[a("em",[t._v("ExtendedPlugin")])]),t._v("")],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("Plugin")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"id"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("id")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L746",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:746"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterBuildTicks")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v("> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after scale has build its ticks. This hook is called separately for each scale in the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The scale.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L905",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:905"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDataLimits")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v("> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after scale data limits are calculated. This hook is called separately for each scale in the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The scale.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L889",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:889"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatasetdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatasetdraw"}},[t._v("#")]),t._v(" afterDatasetDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDatasetDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" datasets at the given "),a("code",[t._v("args.index")]),t._v(" have been drawn\n(datasets are drawn in the reverse order). Note that this hook will not be called\nif the datasets drawing has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset index.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset metadata.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L987",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:987"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatasetupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatasetupdate"}},[t._v("#")]),t._v(" afterDatasetUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDatasetUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("false")]),t._v(" ; "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>> ; "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" datasets at the given "),a("code",[t._v("args.index")]),t._v(" has been updated. Note\nthat this hook will not be called if the datasets update has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("false")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset index.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset metadata.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L864",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:864"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatasetsdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatasetsdraw"}},[t._v("#")]),t._v(" afterDatasetsDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDatasetsDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O, "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("false")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" datasets have been drawn. Note that this hook\nwill not be called if the datasets drawing has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("false")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L964",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:964"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatasetsupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatasetsupdate"}},[t._v("#")]),t._v(" afterDatasetsUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDatasetsUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" ; "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" datasets have been updated. Note that this hook\nwill not be called if the datasets update has been previously cancelled.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" version 2.1.5")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L841",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:841"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdraw"}},[t._v("#")]),t._v(" afterDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" has been drawn. Note that this hook will not be called\nif the drawing has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L947",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:947"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterevent"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterevent"}},[t._v("#")]),t._v(" afterEvent")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterEvent")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("false")]),t._v(" ; "),a("code",[t._v("changed?")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(" ; "),a("code",[t._v("replay")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("event")]),t._v(" has been consumed. Note that this hook\nwill not be called if the "),a("code",[t._v("event")]),t._v(" has been previously discarded.")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("false")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.changed?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The event object.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.replay")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("True if this event is replayed from "),a("code",[t._v("Chart.update")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1008",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1008"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterinit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterinit"}},[t._v("#")]),t._v(" afterInit")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterInit")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after "),a("code",[t._v("chart")]),t._v(" has been initialized and before the first update.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L785",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:785"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterlayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterlayout"}},[t._v("#")]),t._v(" afterLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterLayout")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" has been laid out. Note that this hook will not\nbe called if the layout update has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L913",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:913"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterrender"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterrender"}},[t._v("#")]),t._v(" afterRender")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterRender")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" has been fully rendered (and animation completed). Note\nthat this hook will not be called if the rendering has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L930",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:930"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftertooltipdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftertooltipdraw"}},[t._v("#")]),t._v(" afterTooltipDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterTooltipDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("tooltip")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v(" }, "),a("code",[t._v("options")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after drawing the "),a("code",[t._v("tooltip")]),t._v(". Note that this hook will not\nbe called if the tooltip drawing has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.tooltip")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v("")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The tooltip.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/extendedplugin.html"}},[t._v("ExtendedPlugin")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2388",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2388"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after "),a("code",[t._v("chart")]),t._v(" has been updated and before rendering. Note that this\nhook will not be called if the chart update has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L804",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:804"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeBuildTicks")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v("> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before scale bulds its ticks. This hook is called separately for each scale in the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The scale.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L897",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:897"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDataLimits")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v("> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before scale data limits are calculated. This hook is called separately for each scale in the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The scale.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L881",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:881"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatasetdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatasetdraw"}},[t._v("#")]),t._v(" beforeDatasetDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDatasetDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before drawing the "),a("code",[t._v("chart")]),t._v(" dataset at the given "),a("code",[t._v("args.index")]),t._v(" (datasets\nare drawn in the reverse order). If any plugin returns "),a("code",[t._v("false")]),t._v(", the datasets drawing\nis cancelled until another "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset index.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset metadata.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart datasets drawing.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L976",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:976"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatasetupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatasetupdate"}},[t._v("#")]),t._v(" beforeDatasetUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDatasetUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" ; "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>> ; "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before updating the "),a("code",[t._v("chart")]),t._v(" dataset at the given "),a("code",[t._v("args.index")]),t._v(". If any plugin\nreturns "),a("code",[t._v("false")]),t._v(", the datasets update is cancelled until another "),a("code",[t._v("update")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset index.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset metadata.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart datasets drawing.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L853",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:853"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatasetsdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatasetsdraw"}},[t._v("#")]),t._v(" beforeDatasetsDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDatasetsDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before drawing the "),a("code",[t._v("chart")]),t._v(" datasets. If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe datasets drawing is cancelled until another "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart datasets drawing.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L956",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:956"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatasetsupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatasetsupdate"}},[t._v("#")]),t._v(" beforeDatasetsUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDatasetsUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before updating the "),a("code",[t._v("chart")]),t._v(" datasets. If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe datasets update is cancelled until another "),a("code",[t._v("update")]),t._v(" is triggered.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" version 2.1.5")]),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("false to cancel the datasets update.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L831",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:831"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedraw"}},[t._v("#")]),t._v(" beforeDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before drawing "),a("code",[t._v("chart")]),t._v(" at every animation frame. If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe frame drawing is cancelled untilanother "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart drawing.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L939",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:939"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeelementsupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeelementsupdate"}},[t._v("#")]),t._v(" beforeElementsUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeElementsUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called during the update process, before any chart elements have been created.\nThis can be used for data decimation by changing the data array inside a dataset.")]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L812",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:812"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeevent"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeevent"}},[t._v("#")]),t._v(" beforeEvent")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeEvent")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" ; "),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(" ; "),a("code",[t._v("replay")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before processing the specified "),a("code",[t._v("event")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe event will be discarded.")]),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The event object.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.replay")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("True if this event is replayed from "),a("code",[t._v("Chart.update")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L997",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:997"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeinit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeinit"}},[t._v("#")]),t._v(" beforeInit")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeInit")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before initializing "),a("code",[t._v("chart")]),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L778",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:778"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforelayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeLayout")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before laying out "),a("code",[t._v("chart")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe layout update is cancelled until another "),a("code",[t._v("update")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart layout.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L873",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:873"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforerender"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforerender"}},[t._v("#")]),t._v(" beforeRender")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeRender")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before rendering "),a("code",[t._v("chart")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe rendering is cancelled until another "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart rendering.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L922",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:922"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforetooltipdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforetooltipdraw"}},[t._v("#")]),t._v(" beforeTooltipDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeTooltipDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("tooltip")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v(" }, "),a("code",[t._v("options")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before drawing the "),a("code",[t._v("tooltip")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe tooltip drawing is cancelled until another "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-26"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-26"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.tooltip")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v("")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The tooltip.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart tooltip drawing.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/extendedplugin.html"}},[t._v("ExtendedPlugin")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2379",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2379"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" ; "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before updating "),a("code",[t._v("chart")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(", the update\nis cancelled (and thus subsequent render(s)) until another "),a("code",[t._v("update")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-27"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-27"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart update.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L795",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:795"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"destroy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#destroy"}},[t._v("#")]),t._v(" destroy")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("destroy")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called after the chart has been destroyed.")]),t._v(" "),a("h4",{attrs:{id:"parameters-28"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-28"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1023",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1023"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"install"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#install"}},[t._v("#")]),t._v(" install")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("install")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called when plugin is installed for this chart instance. This hook is also invoked for disabled plugins (options === false).")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" 3.0.0")]),t._v(" "),a("h4",{attrs:{id:"parameters-29"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-29"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L755",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:755"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" reset")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("reset")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called during chart reset")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" version 3.0.0")]),t._v(" "),a("h4",{attrs:{id:"parameters-30"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-30"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L820",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:820"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resize"}},[t._v("#")]),t._v(" resize")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("resize")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("size")]),t._v(": { "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(" } }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the chart as been resized.")]),t._v(" "),a("h4",{attrs:{id:"parameters-31"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-31"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.size")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The new canvas display size (eq. canvas.style width & height).")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.size.height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.size.width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1016",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1016"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"start"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#start"}},[t._v("#")]),t._v(" start")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("start")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called when a plugin is starting. This happens when chart is created or plugin is enabled.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" 3.0.0")]),t._v(" "),a("h4",{attrs:{id:"parameters-32"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-32"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L763",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:763"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"stop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stop"}},[t._v("#")]),t._v(" stop")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("stop")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called when a plugin stopping. This happens when chart is destroyed or plugin is disabled.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" 3.0.0")]),t._v(" "),a("h4",{attrs:{id:"parameters-33"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-33"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L771",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:771"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"uninstall"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#uninstall"}},[t._v("#")]),t._v(" uninstall")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("uninstall")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called after chart is destroyed on all plugins that were installed for that chart. This hook is also invoked for disabled plugins (options === false).")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" 3.0.0")]),t._v(" "),a("h4",{attrs:{id:"parameters-34"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-34"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1031",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1031"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/85.9fd220c2.js b/docs/latest/assets/js/85.ce19abc2.js similarity index 86% rename from docs/latest/assets/js/85.9fd220c2.js rename to docs/latest/assets/js/85.ce19abc2.js index 03a443865a..c34d149418 100644 --- a/docs/latest/assets/js/85.9fd220c2.js +++ b/docs/latest/assets/js/85.ce19abc2.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[85],{412:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-pluginchartoptions-ttype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-pluginchartoptions-ttype"}},[t._v("#")]),t._v(" Interface: PluginChartOptions")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("PluginChartOptions")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[a("em",[t._v("Defaults")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"plugins"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#plugins"}},[t._v("#")]),t._v(" plugins")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("plugins")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/pluginoptionsbytype.html"}},[a("em",[t._v("PluginOptionsByType")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2626",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2626"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[85],{408:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-pluginchartoptions-ttype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-pluginchartoptions-ttype"}},[t._v("#")]),t._v(" Interface: PluginChartOptions")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("PluginChartOptions")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[a("em",[t._v("Defaults")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"plugins"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#plugins"}},[t._v("#")]),t._v(" plugins")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("plugins")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/pluginoptionsbytype.html"}},[a("em",[t._v("PluginOptionsByType")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2626",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2626"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/86.44f69d78.js b/docs/latest/assets/js/86.44f69d78.js new file mode 100644 index 0000000000..3b211ae1e2 --- /dev/null +++ b/docs/latest/assets/js/86.44f69d78.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[86],{409:function(t,e,r){"use strict";r.r(e);var a=r(7),i=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-pluginoptionsbytype-ttype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-pluginoptionsbytype-ttype"}},[t._v("#")]),t._v(" Interface: PluginOptionsByType")]),t._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("TType")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#charttype"}},[r("em",[t._v("ChartType")])])],1)])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"decimation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#decimation"}},[t._v("#")]),t._v(" decimation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("decimation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#decimationoptions"}},[r("em",[t._v("DecimationOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2619",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2619"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"filler"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#filler"}},[t._v("#")]),t._v(" filler")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("filler")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/filleroptions.html"}},[r("em",[t._v("FillerOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2620",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2620"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"legend"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#legend"}},[t._v("#")]),t._v(" legend")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("legend")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/legendoptions.html"}},[r("em",[t._v("LegendOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2621",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2621"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"title"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" title")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("title")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/titleoptions.html"}},[r("em",[t._v("TitleOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2622",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2622"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tooltip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tooltip"}},[t._v("#")]),t._v(" tooltip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tooltip")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipoptions.html"}},[r("em",[t._v("TooltipOptions")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2623",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2623"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/86.b80eae92.js b/docs/latest/assets/js/86.b80eae92.js deleted file mode 100644 index db4bc9cc91..0000000000 --- a/docs/latest/assets/js/86.b80eae92.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[86],{413:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-pluginoptionsbytype-ttype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-pluginoptionsbytype-ttype"}},[t._v("#")]),t._v(" Interface: PluginOptionsByType")]),t._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("TType")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#charttype"}},[r("em",[t._v("ChartType")])])],1)])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"decimation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#decimation"}},[t._v("#")]),t._v(" decimation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("decimation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#decimationoptions"}},[r("em",[t._v("DecimationOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2619",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2619"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"filler"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#filler"}},[t._v("#")]),t._v(" filler")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("filler")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/filleroptions.html"}},[r("em",[t._v("FillerOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2620",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2620"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"legend"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#legend"}},[t._v("#")]),t._v(" legend")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("legend")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/legendoptions.html"}},[r("em",[t._v("LegendOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2621",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2621"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"title"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" title")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("title")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/titleoptions.html"}},[r("em",[t._v("TitleOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2622",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2622"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tooltip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tooltip"}},[t._v("#")]),t._v(" tooltip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tooltip")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipoptions.html"}},[r("em",[t._v("TooltipOptions")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2623",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2623"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/87.a0d58cde.js b/docs/latest/assets/js/87.3639bc16.js similarity index 51% rename from docs/latest/assets/js/87.a0d58cde.js rename to docs/latest/assets/js/87.3639bc16.js index 3dd03a47db..c9f9ea482e 100644 --- a/docs/latest/assets/js/87.a0d58cde.js +++ b/docs/latest/assets/js/87.3639bc16.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[87],{414:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-point"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-point"}},[t._v("#")]),t._v(" Interface: Point")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("x")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/geometric.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:9"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("y")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/geometric.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:10"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[87],{411:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-point"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-point"}},[t._v("#")]),t._v(" Interface: Point")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("x")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/geometric.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:9"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("y")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/geometric.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:10"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/88.14645b1d.js b/docs/latest/assets/js/88.14645b1d.js new file mode 100644 index 0000000000..6f821e39a2 --- /dev/null +++ b/docs/latest/assets/js/88.14645b1d.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[88],{412:function(t,e,a){"use strict";a.r(e);var r=a(7),_=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-pointelement-t-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointelement-t-o"}},[t._v("#")]),t._v(" Interface: PointElement")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[a("em",[t._v("PointProps")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[a("em",[t._v("PointProps")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[a("em",[t._v("PointOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[a("em",[t._v("PointOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("")],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[a("em",[t._v("VisualElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("PointElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsed"}},[t._v("#")]),t._v(" parsed")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("parsed")]),t._v(": CartesianParsedData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1833",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1833"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"skip"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#skip"}},[t._v("#")]),t._v(" skip")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("skip")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1832",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1832"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1577",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1577"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcenterpoint"}},[t._v("#")]),t._v(" getCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getCenterPoint")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1581"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": keyof T[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): T")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("keyof T[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getrange"}},[t._v("#")]),t._v(" getRange")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getRange")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inrange"}},[t._v("#")]),t._v(" inRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1578",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1578"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inxrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inxrange"}},[t._v("#")]),t._v(" inXRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inXRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1579",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1579"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inyrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inyrange"}},[t._v("#")]),t._v(" inYRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inYRange")]),t._v("("),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1580"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/88.6d6ec46f.js b/docs/latest/assets/js/88.6d6ec46f.js deleted file mode 100644 index fb015c49d2..0000000000 --- a/docs/latest/assets/js/88.6d6ec46f.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[88],{415:function(t,e,a){"use strict";a.r(e);var r=a(7),_=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-pointelement-t-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointelement-t-o"}},[t._v("#")]),t._v(" Interface: PointElement")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[a("em",[t._v("PointProps")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[a("em",[t._v("PointProps")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[a("em",[t._v("PointOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[a("em",[t._v("PointOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("")],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[a("em",[t._v("VisualElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("PointElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsed"}},[t._v("#")]),t._v(" parsed")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("parsed")]),t._v(": CartesianParsedData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1833",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1833"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"skip"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#skip"}},[t._v("#")]),t._v(" skip")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("skip")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1832",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1832"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1577",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1577"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcenterpoint"}},[t._v("#")]),t._v(" getCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getCenterPoint")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1581"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": keyof T[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): T")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("keyof T[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getrange"}},[t._v("#")]),t._v(" getRange")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getRange")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inrange"}},[t._v("#")]),t._v(" inRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1578",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1578"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inxrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inxrange"}},[t._v("#")]),t._v(" inXRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inXRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1579",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1579"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inyrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inyrange"}},[t._v("#")]),t._v(" inYRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inYRange")]),t._v("("),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1580"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/89.c98683cb.js b/docs/latest/assets/js/89.c98683cb.js deleted file mode 100644 index bd58ee5668..0000000000 --- a/docs/latest/assets/js/89.c98683cb.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[89],{416:function(r,o,t){"use strict";t.r(o);var e=t(7),n=Object(e.a)({},(function(){var r=this,o=r.$createElement,t=r._self._c||o;return t("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[t("h1",{attrs:{id:"interface-pointhoveroptions"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointhoveroptions"}},[r._v("#")]),r._v(" Interface: PointHoverOptions")]),r._v(" "),t("h2",{attrs:{id:"hierarchy"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[r._v("#")]),r._v(" Hierarchy")]),r._v(" "),t("ul",[t("li",[t("p",[t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[t("em",[r._v("CommonHoverOptions")])])],1),r._v(" "),t("p",[r._v("↳ "),t("strong",[r._v("PointHoverOptions")])])])]),r._v(" "),t("h2",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),t("h3",{attrs:{id:"hoverbackgroundcolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[r._v("#")]),r._v(" hoverBackgroundColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBackgroundColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbackgroundcolor"}},[r._v("hoverBackgroundColor")])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1594"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverbordercolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[r._v("#")]),r._v(" hoverBorderColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbordercolor"}},[r._v("hoverBorderColor")])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1593"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverborderwidth"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[r._v("#")]),r._v(" hoverBorderWidth")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderWidth")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverborderwidth"}},[r._v("hoverBorderWidth")])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1592"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverradius"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverradius"}},[r._v("#")]),r._v(" hoverRadius")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverRadius")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("Point radius when hovered.")]),r._v(" "),t("p",[t("strong",[t("code",[r._v("default")])]),r._v(" 4")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1776",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1776"),t("OutboundLink")],1)])])}),[],!1,null,null,null);o.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/89.e2401403.js b/docs/latest/assets/js/89.e2401403.js new file mode 100644 index 0000000000..e2499553b0 --- /dev/null +++ b/docs/latest/assets/js/89.e2401403.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[89],{413:function(r,e,o){"use strict";o.r(e);var t=o(7),n=Object(t.a)({},(function(){var r=this,e=r.$createElement,o=r._self._c||e;return o("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[o("h1",{attrs:{id:"interface-pointhoveroptions"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointhoveroptions"}},[r._v("#")]),r._v(" Interface: PointHoverOptions")]),r._v(" "),o("h2",{attrs:{id:"hierarchy"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[r._v("#")]),r._v(" Hierarchy")]),r._v(" "),o("ul",[o("li",[o("p",[o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[o("em",[r._v("CommonHoverOptions")])])],1),r._v(" "),o("p",[r._v("↳ "),o("strong",[r._v("PointHoverOptions")])])])]),r._v(" "),o("h2",{attrs:{id:"properties"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),o("h3",{attrs:{id:"hoverbackgroundcolor"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[r._v("#")]),r._v(" hoverBackgroundColor")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverBackgroundColor")]),r._v(": "),o("RouterLink",{attrs:{to:"/api/#color"}},[o("em",[r._v("Color")])])],1),r._v(" "),o("p",[r._v("Inherited from: "),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbackgroundcolor"}},[r._v("hoverBackgroundColor")])],1),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1594"),o("OutboundLink")],1)]),r._v(" "),o("hr"),r._v(" "),o("h3",{attrs:{id:"hoverbordercolor"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[r._v("#")]),r._v(" hoverBorderColor")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverBorderColor")]),r._v(": "),o("RouterLink",{attrs:{to:"/api/#color"}},[o("em",[r._v("Color")])])],1),r._v(" "),o("p",[r._v("Inherited from: "),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbordercolor"}},[r._v("hoverBorderColor")])],1),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1593"),o("OutboundLink")],1)]),r._v(" "),o("hr"),r._v(" "),o("h3",{attrs:{id:"hoverborderwidth"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[r._v("#")]),r._v(" hoverBorderWidth")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverBorderWidth")]),r._v(": "),o("em",[r._v("number")])]),r._v(" "),o("p",[r._v("Inherited from: "),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverborderwidth"}},[r._v("hoverBorderWidth")])],1),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1592"),o("OutboundLink")],1)]),r._v(" "),o("hr"),r._v(" "),o("h3",{attrs:{id:"hoverradius"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoverradius"}},[r._v("#")]),r._v(" hoverRadius")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverRadius")]),r._v(": "),o("em",[r._v("number")])]),r._v(" "),o("p",[r._v("Point radius when hovered.")]),r._v(" "),o("p",[o("strong",[o("code",[r._v("default")])]),r._v(" 4")]),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1776",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1776"),o("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/9.97a769a4.js b/docs/latest/assets/js/9.97a769a4.js new file mode 100644 index 0000000000..d1c9c5284c --- /dev/null +++ b/docs/latest/assets/js/9.97a769a4.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{336:function(t,e,a){"use strict";a.r(e);var r=a(7),i=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"chart-js-v3-1-0"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-js-v3-1-0"}},[t._v("#")]),t._v(" Chart.js - v3.1.0")]),t._v(" "),a("h2",{attrs:{id:"table-of-contents"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),a("h3",{attrs:{id:"enumerations"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enumerations"}},[t._v("#")]),t._v(" Enumerations")]),t._v(" "),a("ul",[a("li",[a("RouterLink",{attrs:{to:"/api/enums/decimationalgorithm.html"}},[t._v("DecimationAlgorithm")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/enums/updatemodeenum.html"}},[t._v("UpdateModeEnum")])],1)]),t._v(" "),a("h3",{attrs:{id:"classes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#classes"}},[t._v("#")]),t._v(" Classes")]),t._v(" "),a("ul",[a("li",[a("RouterLink",{attrs:{to:"/api/classes/animation.html"}},[t._v("Animation")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/animations.html"}},[t._v("Animations")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/animator.html"}},[t._v("Animator")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/basicplatform.html"}},[t._v("BasicPlatform")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[t._v("Chart")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/domplatform.html"}},[t._v("DomPlatform")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1)]),t._v(" "),a("h3",{attrs:{id:"interfaces"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interfaces"}},[t._v("#")]),t._v(" Interfaces")]),t._v(" "),a("ul",[a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[t._v("ActiveDataPoint")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[t._v("ActiveElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[t._v("AnimationEvent")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/arcborderradius.html"}},[t._v("ArcBorderRadius")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/arcelement.html"}},[t._v("ArcElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/archoveroptions.html"}},[t._v("ArcHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[t._v("ArcOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/arcprops.html"}},[t._v("ArcProps")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/barcontrollerchartoptions.html"}},[t._v("BarControllerChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/barcontrollerdatasetoptions.html"}},[t._v("BarControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/barelement.html"}},[t._v("BarElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/barhoveroptions.html"}},[t._v("BarHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[t._v("BarOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/barprops.html"}},[t._v("BarProps")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/borderradius.html"}},[t._v("BorderRadius")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/bubblecontrollerdatasetoptions.html"}},[t._v("BubbleControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[t._v("BubbleDataPoint")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[t._v("CartesianScaleOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[t._v("ChartArea")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartconfiguration.html"}},[t._v("ChartConfiguration")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[t._v("ChartData")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartdatasetproperties.html"}},[t._v("ChartDatasetProperties")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[t._v("ChartMeta")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[t._v("ChartTypeRegistry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[t._v("CommonHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/complexfilltarget.html"}},[t._v("ComplexFillTarget")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[t._v("CoreInteractionOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/datasetcontrollerchartcomponent.html"}},[t._v("DatasetControllerChartComponent")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/dateadapter.html"}},[t._v("DateAdapter")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[t._v("Defaults")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutanimationoptions.html"}},[t._v("DoughnutAnimationOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontroller.html"}},[t._v("DoughnutController")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerchartoptions.html"}},[t._v("DoughnutControllerChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/element.html"}},[t._v("Element")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[t._v("ElementChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/elementoptionsbytype.html"}},[t._v("ElementOptionsByType")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/extendedplugin.html"}},[t._v("ExtendedPlugin")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/fillercontrollerdatasetoptions.html"}},[t._v("FillerControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/filleroptions.html"}},[t._v("FillerOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[t._v("FontSpec")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/gridlineoptions.html"}},[t._v("GridLineOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[t._v("InteractionItem")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/interactionmodemap.html"}},[t._v("InteractionModeMap")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[t._v("InteractionOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[t._v("LegendElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[t._v("LegendItem")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/legendoptions.html"}},[t._v("LegendOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[t._v("LineControllerChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerdatasetoptions.html"}},[t._v("LineControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/lineelement.html"}},[t._v("LineElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/linehoveroptions.html"}},[t._v("LineHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[t._v("LineOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/lineprops.html"}},[t._v("LineProps")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[t._v("ParsingOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[t._v("Plugin")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[t._v("PluginChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pluginoptionsbytype.html"}},[t._v("PluginOptionsByType")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[t._v("Point")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointelement.html"}},[t._v("PointElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointhoveroptions.html"}},[t._v("PointHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[t._v("PointOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointprefixedhoveroptions.html"}},[t._v("PointPrefixedHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointprefixedoptions.html"}},[t._v("PointPrefixedOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[t._v("PointProps")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/polarareacontroller.html"}},[t._v("PolarAreaController")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/polarareacontrollerchartoptions.html"}},[t._v("PolarAreaControllerChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/polarareacontrollerdatasetoptions.html"}},[t._v("PolarAreaControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/radarcontrollerdatasetoptions.html"}},[t._v("RadarControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/radiallinearscale.html"}},[t._v("RadialLinearScale")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/radialscaletyperegistry.html"}},[t._v("RadialScaleTypeRegistry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/registry.html"}},[t._v("Registry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scaletyperegistry.html"}},[t._v("ScaleTypeRegistry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[t._v("ScatterDataPoint")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[t._v("ScriptableContext")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[t._v("ScriptableLineSegmentContext")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[t._v("ScriptableScaleContext")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[t._v("ScriptableTooltipContext")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/segment.html"}},[t._v("Segment")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[t._v("Tick")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tickoptions.html"}},[t._v("TickOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/timescale.html"}},[t._v("TimeScale")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/titleoptions.html"}},[t._v("TitleOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipcallbacks.html"}},[t._v("TooltipCallbacks")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[t._v("TooltipItem")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tooltiplabelstyle.html"}},[t._v("TooltipLabelStyle")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[t._v("TooltipModel")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipoptions.html"}},[t._v("TooltipOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/typedregistry.html"}},[t._v("TypedRegistry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1)]),t._v(" "),a("h2",{attrs:{id:"type-aliases"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-aliases"}},[t._v("#")]),t._v(" Type aliases")]),t._v(" "),a("h3",{attrs:{id:"animationoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animationoptions"}},[t._v("#")]),t._v(" AnimationOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("AnimationOptions")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animation")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/#animationspec"}},[a("em",[t._v("AnimationSpec")])]),t._v(" & { "),a("code",[t._v("onComplete?")]),t._v(": ("),a("code",[t._v("this")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v(", "),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v(" ; "),a("code",[t._v("onProgress?")]),t._v(": ("),a("code",[t._v("this")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v(", "),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v(" }")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animations")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#animationsspec"}},[a("em",[t._v("AnimationsSpec")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("transitions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[a("em",[t._v("TransitionsSpec")])]),t._v("")],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1532",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1532"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"animationspec"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animationspec"}},[t._v("#")]),t._v(" AnimationSpec")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("AnimationSpec")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("delay")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Delay before starting the animations. "),a("strong",[a("code",[t._v("default")])]),t._v(" 0")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("duration")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The number of milliseconds an animation takes. "),a("strong",[a("code",[t._v("default")])]),t._v(" 1000")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("easing")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#easingfunction"}},[a("em",[t._v("EasingFunction")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[a("em",[t._v("ScriptableContext")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Easing function to use "),a("strong",[a("code",[t._v("default")])]),t._v(" 'easeOutQuart'")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("loop")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("If set to true, the animations loop endlessly. "),a("strong",[a("code",[t._v("default")])]),t._v(" false")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1476",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1476"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"animationsspec"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animationsspec"}},[t._v("#")]),t._v(" AnimationsSpec")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("AnimationsSpec")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-3"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1501",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1501"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"barcontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barcontroller"}},[t._v("#")]),t._v(" BarController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("BarController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L139",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:139"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bubblecontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bubblecontroller"}},[t._v("#")]),t._v(" BubbleController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("BubbleController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L167",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:167"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"categoryscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#categoryscale"}},[t._v("#")]),t._v(" CategoryScale")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("CategoryScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#categoryscaleoptions"}},[a("em",[t._v("CategoryScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#categoryscaleoptions"}},[a("em",[t._v("CategoryScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2852",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2852"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"categoryscaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#categoryscaleoptions"}},[t._v("#")]),t._v(" CategoryScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("CategoryScaleOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[a("em",[t._v("CartesianScaleOptions")])]),t._v(" & { "),a("code",[t._v("labels")]),t._v(": "),a("em",[t._v("string")]),t._v("[] | "),a("em",[t._v("string")]),t._v("[][] ; "),a("code",[t._v("max")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("min")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2846",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2846"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chartcomponentlike"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chartcomponentlike"}},[t._v("#")]),t._v(" ChartComponentLike")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ChartComponentLike")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v("[] | { [key: string]: "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v("; }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1034",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1034"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chartdataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chartdataset"}},[t._v("#")]),t._v(" ChartDataset")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ChartDataset")]),t._v(": "),a("em",[t._v("DeepPartial")]),t._v('<{ [key in ChartType]: object & ChartTypeRegistry[key]["datasetOptions"]}[TType]> & '),a("RouterLink",{attrs:{to:"/api/interfaces/chartdatasetproperties.html"}},[a("em",[t._v("ChartDatasetProperties")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TType[]")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3341",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3341"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chartitem"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chartitem"}},[t._v("#")]),t._v(" ChartItem")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ChartItem")]),t._v(": "),a("em",[t._v("string")]),t._v(" | CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D | HTMLCanvasElement | OffscreenCanvas | { "),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement | OffscreenCanvas } | "),a("em",[t._v("ArrayLike")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L506",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:506"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chartoptions"}},[t._v("#")]),t._v(" ChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ChartOptions")]),t._v(": "),a("em",[t._v("DeepPartial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[a("em",[t._v("CoreChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[a("em",[t._v("ElementChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[a("em",[t._v("PluginChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#datasetchartoptions"}},[a("em",[t._v("DatasetChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#scalechartoptions"}},[a("em",[t._v("ScaleChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("chartOptions")]),t._v("]>")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3323",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3323"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"charttype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#charttype"}},[t._v("#")]),t._v(" ChartType")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ChartType")]),t._v(": keyof "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3302",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3302"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"color"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[t._v("#")]),t._v(" Color")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("Color")]),t._v(": "),a("em",[t._v("string")]),t._v(" | CanvasGradient | CanvasPattern")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/color.d.ts#L1",target:"_blank",rel:"noopener noreferrer"}},[t._v("color.d.ts:1"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"datasetchartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasetchartoptions"}},[t._v("#")]),t._v(" DatasetChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("DatasetChartOptions")]),t._v(": { [key in TType]: object}")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-7"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3311",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3311"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"decimationoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#decimationoptions"}},[t._v("#")]),t._v(" DecimationOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("DecimationOptions")]),t._v(": LttbDecimationOptions | MinMaxDecimationOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1972",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1972"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"defaultdatapoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defaultdatapoint"}},[t._v("#")]),t._v(" DefaultDataPoint")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("DefaultDataPoint")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("defaultDataPoint")]),t._v("][]")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-8"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3332",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3332"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"doughnutdatapoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#doughnutdatapoint"}},[t._v("#")]),t._v(" DoughnutDataPoint")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("DoughnutDataPoint")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L300",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:300"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"easingfunction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#easingfunction"}},[t._v("#")]),t._v(" EasingFunction")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("EasingFunction")]),t._v(": "),a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("easeInQuad")]),t._v(" | "),a("em",[t._v("easeOutQuad")]),t._v(" | "),a("em",[t._v("easeInOutQuad")]),t._v(" | "),a("em",[t._v("easeInCubic")]),t._v(" | "),a("em",[t._v("easeOutCubic")]),t._v(" | "),a("em",[t._v("easeInOutCubic")]),t._v(" | "),a("em",[t._v("easeInQuart")]),t._v(" | "),a("em",[t._v("easeOutQuart")]),t._v(" | "),a("em",[t._v("easeInOutQuart")]),t._v(" | "),a("em",[t._v("easeInQuint")]),t._v(" | "),a("em",[t._v("easeOutQuint")]),t._v(" | "),a("em",[t._v("easeInOutQuint")]),t._v(" | "),a("em",[t._v("easeInSine")]),t._v(" | "),a("em",[t._v("easeOutSine")]),t._v(" | "),a("em",[t._v("easeInOutSine")]),t._v(" | "),a("em",[t._v("easeInExpo")]),t._v(" | "),a("em",[t._v("easeOutExpo")]),t._v(" | "),a("em",[t._v("easeInOutExpo")]),t._v(" | "),a("em",[t._v("easeInCirc")]),t._v(" | "),a("em",[t._v("easeOutCirc")]),t._v(" | "),a("em",[t._v("easeInOutCirc")]),t._v(" | "),a("em",[t._v("easeInElastic")]),t._v(" | "),a("em",[t._v("easeOutElastic")]),t._v(" | "),a("em",[t._v("easeInOutElastic")]),t._v(" | "),a("em",[t._v("easeInBack")]),t._v(" | "),a("em",[t._v("easeOutBack")]),t._v(" | "),a("em",[t._v("easeInOutBack")]),t._v(" | "),a("em",[t._v("easeInBounce")]),t._v(" | "),a("em",[t._v("easeOutBounce")]),t._v(" | "),a("em",[t._v("easeInOutBounce")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1443",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1443"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"filltarget"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#filltarget"}},[t._v("#")]),t._v(" FillTarget")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("FillTarget")]),t._v(": "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("string")]),t._v(" | { "),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v(" } | "),a("em",[t._v("start")]),t._v(" | "),a("em",[t._v("end")]),t._v(" | "),a("em",[t._v("origin")]),t._v(" | "),a("em",[t._v("stack")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1980",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1980"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"interactionmode"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactionmode"}},[t._v("#")]),t._v(" InteractionMode")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("InteractionMode")]),t._v(": keyof "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionmodemap.html"}},[a("em",[t._v("InteractionModeMap")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L701",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:701"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"interactionmodefunction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactionmodefunction"}},[t._v("#")]),t._v(" InteractionModeFunction")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("InteractionModeFunction")]),t._v(": ("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v(", "),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("options")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[a("em",[t._v("InteractionOptions")])]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v(") => "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[a("em",[t._v("InteractionItem")])]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"type-declaration-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-4"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("▸ ("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v(", "),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("options")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[a("em",[t._v("InteractionOptions")])]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[a("em",[t._v("InteractionItem")])]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("e")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[a("em",[t._v("InteractionOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[a("em",[t._v("InteractionItem")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L663",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:663"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"layoutposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#layoutposition"}},[t._v("#")]),t._v(" LayoutPosition")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LayoutPosition")]),t._v(": "),a("em",[t._v("left")]),t._v(" | "),a("em",[t._v("top")]),t._v(" | "),a("em",[t._v("right")]),t._v(" | "),a("em",[t._v("bottom")]),t._v(" | "),a("em",[t._v("center")]),t._v(" | "),a("em",[t._v("chartArea")]),t._v(" | { [scaleId: string]: "),a("em",[t._v("number")]),t._v("; }")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L3",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:3"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linecontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linecontroller"}},[t._v("#")]),t._v(" LineController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LineController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L211",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:211"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linearscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linearscale"}},[t._v("#")]),t._v(" LinearScale")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LinearScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-9"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#linearscaleoptions"}},[a("em",[t._v("LinearScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#linearscaleoptions"}},[a("em",[t._v("LinearScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2907",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2907"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linearscaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linearscaleoptions"}},[t._v("#")]),t._v(" LinearScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LinearScaleOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[a("em",[t._v("CartesianScaleOptions")])]),t._v(" & { "),a("code",[t._v("beginAtZero")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("grace?")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("suggestedMax?")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("suggestedMin?")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("ticks")]),t._v(": { "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("format")]),t._v(": Intl.NumberFormatOptions ; "),a("code",[t._v("maxTicksLimit")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("precision")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("stepSize")]),t._v(": "),a("em",[t._v("number")]),t._v(" } }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2858",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2858"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"logarithmicscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#logarithmicscale"}},[t._v("#")]),t._v(" LogarithmicScale")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LogarithmicScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-10"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#logarithmicscaleoptions"}},[a("em",[t._v("LogarithmicScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#logarithmicscaleoptions"}},[a("em",[t._v("LogarithmicScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2932",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2932"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"logarithmicscaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#logarithmicscaleoptions"}},[t._v("#")]),t._v(" LogarithmicScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LogarithmicScaleOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[a("em",[t._v("CartesianScaleOptions")])]),t._v(" & { "),a("code",[t._v("suggestedMax?")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("suggestedMin?")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("ticks")]),t._v(": { "),a("code",[t._v("format")]),t._v(": Intl.NumberFormatOptions } }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2913",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2913"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"overrides"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#overrides"}},[t._v("#")]),t._v(" Overrides")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("Overrides")]),t._v(': { [key in ChartType]: CoreChartOptions & ElementChartOptions & PluginChartOptions & DatasetChartOptions & ScaleChartOptions & ChartTypeRegistry[key]["chartOptions"]}')]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L641",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:641"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseddatatype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseddatatype"}},[t._v("#")]),t._v(" ParsedDataType")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ParsedDataType")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("parsedDataType")]),t._v("]")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-11"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3334",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3334"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"pieanimationoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pieanimationoptions"}},[t._v("#")]),t._v(" PieAnimationOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PieAnimationOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/doughnutanimationoptions.html"}},[a("em",[t._v("DoughnutAnimationOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L319",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:319"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"piecontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#piecontroller"}},[t._v("#")]),t._v(" PieController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PieController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#doughnutcontroller"}},[a("em",[t._v("DoughnutController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L323",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:323"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"piecontrollerchartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#piecontrollerchartoptions"}},[t._v("#")]),t._v(" PieControllerChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PieControllerChartOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerchartoptions.html"}},[a("em",[t._v("DoughnutControllerChartOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L318",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:318"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"piecontrollerdatasetoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#piecontrollerdatasetoptions"}},[t._v("#")]),t._v(" PieControllerDatasetOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PieControllerDatasetOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[a("em",[t._v("DoughnutControllerDatasetOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L317",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:317"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"piedatapoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#piedatapoint"}},[t._v("#")]),t._v(" PieDataPoint")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PieDataPoint")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#doughnutdatapoint"}},[a("em",[t._v("DoughnutDataPoint")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L321",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:321"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"pointstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" PointStyle")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PointStyle")]),t._v(": "),a("em",[t._v("circle")]),t._v(" | "),a("em",[t._v("cross")]),t._v(" | "),a("em",[t._v("crossRot")]),t._v(" | "),a("em",[t._v("dash")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("rect")]),t._v(" | "),a("em",[t._v("rectRounded")]),t._v(" | "),a("em",[t._v("rectRot")]),t._v(" | "),a("em",[t._v("star")]),t._v(" | "),a("em",[t._v("triangle")]),t._v(" | HTMLImageElement | HTMLCanvasElement")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1734",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1734"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"polarareaanimationoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#polarareaanimationoptions"}},[t._v("#")]),t._v(" PolarAreaAnimationOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PolarAreaAnimationOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/doughnutanimationoptions.html"}},[a("em",[t._v("DoughnutAnimationOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L337",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:337"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radarcontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radarcontroller"}},[t._v("#")]),t._v(" RadarController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("RadarController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L386",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:386"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radarcontrollerchartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radarcontrollerchartoptions"}},[t._v("#")]),t._v(" RadarControllerChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("RadarControllerChartOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[a("em",[t._v("LineControllerChartOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L384",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:384"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radiallinearscaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radiallinearscaleoptions"}},[t._v("#")]),t._v(" RadialLinearScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("RadialLinearScaleOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(" & { "),a("code",[t._v("angleLines")]),t._v(": { "),a("code",[t._v("borderDash")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(" ; "),a("code",[t._v("borderDashOffset")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(" ; "),a("code",[t._v("color")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[a("em",[t._v("ScriptableScaleContext")])]),t._v("> ; "),a("code",[t._v("display")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("lineWidth")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(" } ; "),a("code",[t._v("animate")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("beginAtZero")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("grid")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/gridlineoptions.html"}},[a("em",[t._v("GridLineOptions")])]),t._v(" ; "),a("code",[t._v("max")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("min")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("pointLabels")]),t._v(": { "),a("code",[t._v("backdropColor")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[a("em",[t._v("ScriptableScaleContext")])]),t._v("> ; "),a("code",[t._v("backdropPadding")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(" ; "),a("code",[t._v("callback")]),t._v(": ("),a("code",[t._v("label")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(") => "),a("em",[t._v("string")]),t._v(" ; "),a("code",[t._v("color")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[a("em",[t._v("ScriptableScaleContext")])]),t._v("> ; "),a("code",[t._v("display")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("font")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[a("em",[t._v("FontSpec")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[a("em",[t._v("ScriptableScaleContext")])]),t._v("> } ; "),a("code",[t._v("suggestedMax")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("suggestedMin")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tickoptions.html"}},[a("em",[t._v("TickOptions")])]),t._v(" & { "),a("code",[t._v("backdropColor")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[a("em",[t._v("ScriptableScaleContext")])]),t._v("> ; "),a("code",[t._v("backdropPadding")]),t._v(": "),a("em",[t._v("number")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v(" ; "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("format")]),t._v(": Intl.NumberFormatOptions ; "),a("code",[t._v("maxTicksLimit")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("precision")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("showLabelBackdrop")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(" ; "),a("code",[t._v("stepSize")]),t._v(": "),a("em",[t._v("number")]),t._v(" } }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3029",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3029"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scalechartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scalechartoptions"}},[t._v("#")]),t._v(" ScaleChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScaleChartOptions")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-12"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-5"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3317",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3317"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scaleoptions"}},[t._v("#")]),t._v(" ScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScaleOptions")]),t._v(": "),a("em",[t._v("DeepPartial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#scaleoptionsbytype"}},[a("em",[t._v("ScaleOptionsByType")])]),t._v(">")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-13"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TScale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scaletype"}},[a("em",[t._v("ScaleType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scaletype"}},[a("em",[t._v("ScaleType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3309",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3309"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scaleoptionsbytype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scaleoptionsbytype"}},[t._v("#")]),t._v(" ScaleOptionsByType")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScaleOptionsByType")]),t._v(': { [key in ScaleType]: object & ScaleTypeRegistry[key]["options"]}[TScale]')]),t._v(" "),a("h4",{attrs:{id:"type-parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-14"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TScale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scaletype"}},[a("em",[t._v("ScaleType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scaletype"}},[a("em",[t._v("ScaleType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3304",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3304"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scaletype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scaletype"}},[t._v("#")]),t._v(" ScaleType")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScaleType")]),t._v(": keyof "),a("RouterLink",{attrs:{to:"/api/interfaces/scaletyperegistry.html"}},[a("em",[t._v("ScaleTypeRegistry")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3206",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3206"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scattercontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scattercontroller"}},[t._v("#")]),t._v(" ScatterController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScatterController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#linecontroller"}},[a("em",[t._v("LineController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L226",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:226"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scattercontrollerchartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scattercontrollerchartoptions"}},[t._v("#")]),t._v(" ScatterControllerChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScatterControllerChartOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[a("em",[t._v("LineControllerChartOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L224",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:224"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scattercontrollerdatasetoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scattercontrollerdatasetoptions"}},[t._v("#")]),t._v(" ScatterControllerDatasetOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScatterControllerDatasetOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerdatasetoptions.html"}},[a("em",[t._v("LineControllerDatasetOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L217",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:217"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scriptable"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scriptable"}},[t._v("#")]),t._v(" Scriptable")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("Scriptable")]),t._v(": T | ("),a("code",[t._v("ctx")]),t._v(": TContext) => T")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-15"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TContext")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L34",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:34"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scriptableandarray"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scriptableandarray"}},[t._v("#")]),t._v(" ScriptableAndArray")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScriptableAndArray")]),t._v(": readonly T[] | "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-16"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TContext")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L36",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:36"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scriptableandarrayoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scriptableandarrayoptions"}},[t._v("#")]),t._v(" ScriptableAndArrayOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScriptableAndArrayOptions")]),t._v(": { [P in keyof T]: ScriptableAndArray}")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-17"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TContext")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:37"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scriptableoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scriptableoptions"}},[t._v("#")]),t._v(" ScriptableOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScriptableOptions")]),t._v(": { [P in keyof T]: Scriptable}")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-18"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TContext")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L35",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:35"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"textalign"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#textalign"}},[t._v("#")]),t._v(" TextAlign")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TextAlign")]),t._v(": "),a("em",[t._v("left")]),t._v(" | "),a("em",[t._v("center")]),t._v(" | "),a("em",[t._v("right")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1574",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1574"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timescaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timescaleoptions"}},[t._v("#")]),t._v(" TimeScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TimeScaleOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[a("em",[t._v("CartesianScaleOptions")])]),t._v(" & { "),a("code",[t._v("adapters")]),t._v(": { "),a("code",[t._v("date")]),t._v(": "),a("em",[t._v("unknown")]),t._v(" } ; "),a("code",[t._v("bounds")]),t._v(": "),a("em",[t._v("ticks")]),t._v(" | "),a("em",[t._v("data")]),t._v(" ; "),a("code",[t._v("ticks")]),t._v(": { "),a("code",[t._v("source")]),t._v(": "),a("em",[t._v("labels")]),t._v(" | "),a("em",[t._v("auto")]),t._v(" | "),a("em",[t._v("data")]),t._v(" } ; "),a("code",[t._v("time")]),t._v(": { "),a("code",[t._v("displayFormats")]),t._v(": { [key: string]: "),a("em",[t._v("string")]),t._v("; } ; "),a("code",[t._v("isoWeekday")]),t._v(": "),a("em",[t._v("false")]),t._v(" | "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("minUnit")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v(" ; "),a("code",[t._v("parser")]),t._v(": "),a("em",[t._v("string")]),t._v(" | ("),a("code",[t._v("v")]),t._v(": "),a("em",[t._v("unknown")]),t._v(") => "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("round")]),t._v(": "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v(" ; "),a("code",[t._v("stepSize")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("tooltipFormat")]),t._v(": "),a("em",[t._v("string")]),t._v(" ; "),a("code",[t._v("unit")]),t._v(": "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v(" } }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2938",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2938"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timeseriesscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timeseriesscale"}},[t._v("#")]),t._v(" TimeSeriesScale")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TimeSeriesScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timescale"}},[a("em",[t._v("TimeScale")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-19"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3023",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3023"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timeunit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timeunit"}},[t._v("#")]),t._v(" TimeUnit")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TimeUnit")]),t._v(": "),a("em",[t._v("millisecond")]),t._v(" | "),a("em",[t._v("second")]),t._v(" | "),a("em",[t._v("minute")]),t._v(" | "),a("em",[t._v("hour")]),t._v(" | "),a("em",[t._v("day")]),t._v(" | "),a("em",[t._v("week")]),t._v(" | "),a("em",[t._v("month")]),t._v(" | "),a("em",[t._v("quarter")]),t._v(" | "),a("em",[t._v("year")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/adapters.d.ts#L1",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:1"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipxalignment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipxalignment"}},[t._v("#")]),t._v(" TooltipXAlignment")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TooltipXAlignment")]),t._v(": "),a("em",[t._v("left")]),t._v(" | "),a("em",[t._v("center")]),t._v(" | "),a("em",[t._v("right")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2253",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2253"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipyalignment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipyalignment"}},[t._v("#")]),t._v(" TooltipYAlignment")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TooltipYAlignment")]),t._v(": "),a("em",[t._v("top")]),t._v(" | "),a("em",[t._v("center")]),t._v(" | "),a("em",[t._v("bottom")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2254",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2254"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"transitionspec"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#transitionspec"}},[t._v("#")]),t._v(" TransitionSpec")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TransitionSpec")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-20"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-6"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animation")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#animationspec"}},[a("em",[t._v("AnimationSpec")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animations")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#animationsspec"}},[a("em",[t._v("AnimationsSpec")])]),t._v("")],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1523",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1523"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"transitionsspec"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#transitionsspec"}},[t._v("#")]),t._v(" TransitionsSpec")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TransitionsSpec")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-21"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-7"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1528",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1528"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatemode"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatemode"}},[t._v("#")]),t._v(" UpdateMode")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("UpdateMode")]),t._v(": keyof "),a("em",[t._v("typeof")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/enums/updatemodeenum.html"}},[a("em",[t._v("UpdateModeEnum")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L525",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:525"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"variables"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#variables"}},[t._v("#")]),t._v(" Variables")]),t._v(" "),a("h3",{attrs:{id:"arcelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#arcelement"}},[t._v("#")]),t._v(" ArcElement")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ArcElement")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#arcelement"}},[a("em",[t._v("ArcElement")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/arcprops.html"}},[a("em",[t._v("ArcProps")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[a("em",[t._v("ArcOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1644",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1644"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"barcontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barcontroller-2"}},[t._v("#")]),t._v(" BarController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("BarController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#barcontroller"}},[a("em",[t._v("BarController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L140",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:140"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"barelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barelement"}},[t._v("#")]),t._v(" BarElement")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("BarElement")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#barelement"}},[a("em",[t._v("BarElement")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/barprops.html"}},[a("em",[t._v("BarProps")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[a("em",[t._v("BarOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1885",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1885"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bubblecontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bubblecontroller-2"}},[t._v("#")]),t._v(" BubbleController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("BubbleController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#bubblecontroller"}},[a("em",[t._v("BubbleController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L168",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:168"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"categoryscale-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#categoryscale-2"}},[t._v("#")]),t._v(" CategoryScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("CategoryScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#categoryscale"}},[a("em",[t._v("CategoryScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#categoryscaleoptions"}},[a("em",[t._v("CategoryScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2853",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2853"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"doughnutcontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#doughnutcontroller"}},[t._v("#")]),t._v(" DoughnutController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("DoughnutController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#doughnutcontroller"}},[a("em",[t._v("DoughnutController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L312",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:312"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"element"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#element"}},[t._v("#")]),t._v(" Element")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("Element")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-8"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("prototype")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L27",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:27"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"filler"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#filler"}},[t._v("#")]),t._v(" Filler")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Filler")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1974",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1974"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"interaction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interaction"}},[t._v("#")]),t._v(" Interaction")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Interaction")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-9"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("modes")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/interactionmodemap.html"}},[a("em",[t._v("InteractionModeMap")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L703",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:703"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"legend"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#legend"}},[t._v("#")]),t._v(" Legend")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Legend")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2004",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2004"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linecontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linecontroller-2"}},[t._v("#")]),t._v(" LineController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("LineController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#linecontroller"}},[a("em",[t._v("LineController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L212",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:212"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"lineelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#lineelement"}},[t._v("#")]),t._v(" LineElement")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("LineElement")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#lineelement"}},[a("em",[t._v("LineElement")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/lineprops.html"}},[a("em",[t._v("LineProps")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[a("em",[t._v("LineOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1724",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1724"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linearscale-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linearscale-2"}},[t._v("#")]),t._v(" LinearScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("LinearScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#linearscale"}},[a("em",[t._v("LinearScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#linearscaleoptions"}},[a("em",[t._v("LinearScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2908",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2908"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"logarithmicscale-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#logarithmicscale-2"}},[t._v("#")]),t._v(" LogarithmicScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("LogarithmicScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#logarithmicscale"}},[a("em",[t._v("LogarithmicScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#logarithmicscaleoptions"}},[a("em",[t._v("LogarithmicScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2933",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2933"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"piecontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#piecontroller-2"}},[t._v("#")]),t._v(" PieController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("PieController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#doughnutcontroller"}},[a("em",[t._v("DoughnutController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L324",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:324"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"pointelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pointelement"}},[t._v("#")]),t._v(" PointElement")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("PointElement")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#pointelement"}},[a("em",[t._v("PointElement")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[a("em",[t._v("PointProps")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[a("em",[t._v("PointOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1836",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1836"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"polarareacontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#polarareacontroller"}},[t._v("#")]),t._v(" PolarAreaController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("PolarAreaController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#polarareacontroller"}},[a("em",[t._v("PolarAreaController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L352",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:352"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radarcontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radarcontroller-2"}},[t._v("#")]),t._v(" RadarController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("RadarController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#radarcontroller"}},[a("em",[t._v("RadarController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L387",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:387"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radiallinearscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radiallinearscale"}},[t._v("#")]),t._v(" RadialLinearScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("RadialLinearScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#radiallinearscale"}},[a("em",[t._v("RadialLinearScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#radiallinearscaleoptions"}},[a("em",[t._v("RadialLinearScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3174",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3174"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scattercontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scattercontroller-2"}},[t._v("#")]),t._v(" ScatterController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ScatterController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#linecontroller"}},[a("em",[t._v("LineController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L227",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:227"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[t._v("#")]),t._v(" Ticks")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Ticks")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-10"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("formatters")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("formatters.logarithmic")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[object Object]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("formatters.numeric")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[object Object]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("formatters.values")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[object Object]")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1268",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1268"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timescale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timescale"}},[t._v("#")]),t._v(" TimeScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("TimeScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timescale"}},[a("em",[t._v("TimeScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3018",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3018"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timeseriesscale-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timeseriesscale-2"}},[t._v("#")]),t._v(" TimeSeriesScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("TimeSeriesScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeseriesscale"}},[a("em",[t._v("TimeSeriesScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3024",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3024"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"title"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" Title")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Title")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2212",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2212"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltip"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltip"}},[t._v("#")]),t._v(" Tooltip")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Tooltip")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])]),t._v(" & { "),a("code",[t._v("positioners")]),t._v(": { [key: string]: ("),a("code",[t._v("items")]),t._v(": readonly "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("[], "),a("code",[t._v("eventPosition")]),t._v(": { "),a("code",[t._v("x")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("y")]),t._v(": "),a("em",[t._v("number")]),t._v(" }) => { "),a("code",[t._v("x")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("y")]),t._v(": "),a("em",[t._v("number")]),t._v(" }; } ; "),a("code",[t._v("getActiveElements")]),t._v(": () => "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[] ; "),a("code",[t._v("setActiveElements")]),t._v(": ("),a("code",[t._v("active")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[a("em",[t._v("ActiveDataPoint")])]),t._v("[], "),a("code",[t._v("eventPosition")]),t._v(": { "),a("code",[t._v("x")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("y")]),t._v(": "),a("em",[t._v("number")]),t._v(" }) => "),a("em",[t._v("void")]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2332",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2332"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"adapters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#adapters"}},[t._v("#")]),t._v(" _adapters")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("_adapters")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-11"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("_date")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/dateadapter.html"}},[a("em",[t._v("DateAdapter")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/adapters.d.ts#L61",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:61"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"defaults"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defaults"}},[t._v("#")]),t._v(" defaults")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("defaults")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[a("em",[t._v("Defaults")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L651",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:651"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"layouts"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#layouts"}},[t._v("#")]),t._v(" layouts")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("layouts")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-12"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("addBox")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("item")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])]),t._v(") => "),a("em",[t._v("void")])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("configure")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("item")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])]),t._v(", "),a("code",[t._v("options")]),t._v(": { "),a("code",[t._v("fullSize?")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("position?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])]),t._v(" ; "),a("code",[t._v("weight?")]),t._v(": "),a("em",[t._v("number")]),t._v(" }) => "),a("em",[t._v("void")])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("removeBox")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("layoutItem")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])]),t._v(") => "),a("em",[t._v("void")])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("update")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(") => "),a("em",[t._v("void")])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L707",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:707"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"registerables"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#registerables"}},[t._v("#")]),t._v(" registerables")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("registerables")]),t._v(": readonly "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L504",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:504"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"registry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#registry"}},[t._v("#")]),t._v(" registry")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("registry")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/registry.html"}},[a("em",[t._v("Registry")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1060",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1060"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/9.e5e73499.js b/docs/latest/assets/js/9.e5e73499.js deleted file mode 100644 index ba9725f33e..0000000000 --- a/docs/latest/assets/js/9.e5e73499.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{336:function(t,e,a){"use strict";a.r(e);var r=a(7),i=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"chart-js-v3-1-0"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-js-v3-1-0"}},[t._v("#")]),t._v(" Chart.js - v3.1.0")]),t._v(" "),a("h2",{attrs:{id:"table-of-contents"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),a("h3",{attrs:{id:"enumerations"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enumerations"}},[t._v("#")]),t._v(" Enumerations")]),t._v(" "),a("ul",[a("li",[a("RouterLink",{attrs:{to:"/api/enums/decimationalgorithm.html"}},[t._v("DecimationAlgorithm")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/enums/updatemodeenum.html"}},[t._v("UpdateModeEnum")])],1)]),t._v(" "),a("h3",{attrs:{id:"classes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#classes"}},[t._v("#")]),t._v(" Classes")]),t._v(" "),a("ul",[a("li",[a("RouterLink",{attrs:{to:"/api/classes/animation.html"}},[t._v("Animation")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/animations.html"}},[t._v("Animations")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/animator.html"}},[t._v("Animator")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/basicplatform.html"}},[t._v("BasicPlatform")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[t._v("Chart")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/domplatform.html"}},[t._v("DomPlatform")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1)]),t._v(" "),a("h3",{attrs:{id:"interfaces"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interfaces"}},[t._v("#")]),t._v(" Interfaces")]),t._v(" "),a("ul",[a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[t._v("ActiveDataPoint")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[t._v("ActiveElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[t._v("AnimationEvent")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/arcborderradius.html"}},[t._v("ArcBorderRadius")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/arcelement.html"}},[t._v("ArcElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/archoveroptions.html"}},[t._v("ArcHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[t._v("ArcOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/arcprops.html"}},[t._v("ArcProps")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/barcontrollerchartoptions.html"}},[t._v("BarControllerChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/barcontrollerdatasetoptions.html"}},[t._v("BarControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/barelement.html"}},[t._v("BarElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/barhoveroptions.html"}},[t._v("BarHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[t._v("BarOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/barprops.html"}},[t._v("BarProps")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/borderradius.html"}},[t._v("BorderRadius")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/bubblecontrollerdatasetoptions.html"}},[t._v("BubbleControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[t._v("BubbleDataPoint")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[t._v("CartesianScaleOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[t._v("ChartArea")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartconfiguration.html"}},[t._v("ChartConfiguration")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[t._v("ChartData")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartdatasetproperties.html"}},[t._v("ChartDatasetProperties")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[t._v("ChartMeta")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[t._v("ChartTypeRegistry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[t._v("CommonHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/complexfilltarget.html"}},[t._v("ComplexFillTarget")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[t._v("CoreInteractionOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/datasetcontrollerchartcomponent.html"}},[t._v("DatasetControllerChartComponent")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/dateadapter.html"}},[t._v("DateAdapter")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[t._v("Defaults")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutanimationoptions.html"}},[t._v("DoughnutAnimationOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontroller.html"}},[t._v("DoughnutController")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerchartoptions.html"}},[t._v("DoughnutControllerChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/element.html"}},[t._v("Element")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[t._v("ElementChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/elementoptionsbytype.html"}},[t._v("ElementOptionsByType")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/extendedplugin.html"}},[t._v("ExtendedPlugin")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/fillercontrollerdatasetoptions.html"}},[t._v("FillerControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/filleroptions.html"}},[t._v("FillerOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[t._v("FontSpec")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/gridlineoptions.html"}},[t._v("GridLineOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[t._v("InteractionItem")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/interactionmodemap.html"}},[t._v("InteractionModeMap")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[t._v("InteractionOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[t._v("LegendElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[t._v("LegendItem")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/legendoptions.html"}},[t._v("LegendOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[t._v("LineControllerChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerdatasetoptions.html"}},[t._v("LineControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/lineelement.html"}},[t._v("LineElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/linehoveroptions.html"}},[t._v("LineHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[t._v("LineOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/lineprops.html"}},[t._v("LineProps")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[t._v("ParsingOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[t._v("Plugin")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[t._v("PluginChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pluginoptionsbytype.html"}},[t._v("PluginOptionsByType")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[t._v("Point")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointelement.html"}},[t._v("PointElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointhoveroptions.html"}},[t._v("PointHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[t._v("PointOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointprefixedhoveroptions.html"}},[t._v("PointPrefixedHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointprefixedoptions.html"}},[t._v("PointPrefixedOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[t._v("PointProps")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/polarareacontroller.html"}},[t._v("PolarAreaController")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/polarareacontrollerchartoptions.html"}},[t._v("PolarAreaControllerChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/polarareacontrollerdatasetoptions.html"}},[t._v("PolarAreaControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/radarcontrollerdatasetoptions.html"}},[t._v("RadarControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/radiallinearscale.html"}},[t._v("RadialLinearScale")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/radialscaletyperegistry.html"}},[t._v("RadialScaleTypeRegistry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/registry.html"}},[t._v("Registry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scaletyperegistry.html"}},[t._v("ScaleTypeRegistry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[t._v("ScatterDataPoint")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[t._v("ScriptableContext")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[t._v("ScriptableLineSegmentContext")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[t._v("ScriptableScaleContext")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[t._v("ScriptableTooltipContext")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/segment.html"}},[t._v("Segment")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[t._v("Tick")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tickoptions.html"}},[t._v("TickOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/timescale.html"}},[t._v("TimeScale")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/titleoptions.html"}},[t._v("TitleOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipcallbacks.html"}},[t._v("TooltipCallbacks")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[t._v("TooltipItem")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tooltiplabelstyle.html"}},[t._v("TooltipLabelStyle")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[t._v("TooltipModel")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipoptions.html"}},[t._v("TooltipOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/typedregistry.html"}},[t._v("TypedRegistry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1)]),t._v(" "),a("h2",{attrs:{id:"type-aliases"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-aliases"}},[t._v("#")]),t._v(" Type aliases")]),t._v(" "),a("h3",{attrs:{id:"animationoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animationoptions"}},[t._v("#")]),t._v(" AnimationOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("AnimationOptions")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animation")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/#animationspec"}},[a("em",[t._v("AnimationSpec")])]),t._v(" & { "),a("code",[t._v("onComplete?")]),t._v(": ("),a("code",[t._v("this")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v(", "),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v(" ; "),a("code",[t._v("onProgress?")]),t._v(": ("),a("code",[t._v("this")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v(", "),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v(" }")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animations")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#animationsspec"}},[a("em",[t._v("AnimationsSpec")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("transitions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[a("em",[t._v("TransitionsSpec")])]),t._v("")],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1532",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1532"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"animationspec"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animationspec"}},[t._v("#")]),t._v(" AnimationSpec")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("AnimationSpec")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("delay")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Delay before starting the animations. "),a("strong",[a("code",[t._v("default")])]),t._v(" 0")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("duration")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The number of milliseconds an animation takes. "),a("strong",[a("code",[t._v("default")])]),t._v(" 1000")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("easing")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#easingfunction"}},[a("em",[t._v("EasingFunction")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[a("em",[t._v("ScriptableContext")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Easing function to use "),a("strong",[a("code",[t._v("default")])]),t._v(" 'easeOutQuart'")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("loop")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("If set to true, the animations loop endlessly. "),a("strong",[a("code",[t._v("default")])]),t._v(" false")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1476",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1476"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"animationsspec"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animationsspec"}},[t._v("#")]),t._v(" AnimationsSpec")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("AnimationsSpec")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-3"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1501",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1501"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"barcontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barcontroller"}},[t._v("#")]),t._v(" BarController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("BarController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L139",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:139"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bubblecontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bubblecontroller"}},[t._v("#")]),t._v(" BubbleController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("BubbleController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L167",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:167"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"categoryscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#categoryscale"}},[t._v("#")]),t._v(" CategoryScale")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("CategoryScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#categoryscaleoptions"}},[a("em",[t._v("CategoryScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#categoryscaleoptions"}},[a("em",[t._v("CategoryScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2852",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2852"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"categoryscaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#categoryscaleoptions"}},[t._v("#")]),t._v(" CategoryScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("CategoryScaleOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[a("em",[t._v("CartesianScaleOptions")])]),t._v(" & { "),a("code",[t._v("labels")]),t._v(": "),a("em",[t._v("string")]),t._v("[] | "),a("em",[t._v("string")]),t._v("[][] ; "),a("code",[t._v("max")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("min")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2846",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2846"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chartcomponentlike"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chartcomponentlike"}},[t._v("#")]),t._v(" ChartComponentLike")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ChartComponentLike")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v("[] | { [key: string]: "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v("; }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1034",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1034"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chartdataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chartdataset"}},[t._v("#")]),t._v(" ChartDataset")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ChartDataset")]),t._v(": "),a("em",[t._v("DeepPartial")]),t._v('<{ [key in ChartType]: object & ChartTypeRegistry[key]["datasetOptions"]}[TType]> & '),a("RouterLink",{attrs:{to:"/api/interfaces/chartdatasetproperties.html"}},[a("em",[t._v("ChartDatasetProperties")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TType[]")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3341",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3341"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chartitem"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chartitem"}},[t._v("#")]),t._v(" ChartItem")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ChartItem")]),t._v(": "),a("em",[t._v("string")]),t._v(" | CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D | HTMLCanvasElement | OffscreenCanvas | { "),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement | OffscreenCanvas } | "),a("em",[t._v("ArrayLike")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L506",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:506"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chartoptions"}},[t._v("#")]),t._v(" ChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ChartOptions")]),t._v(": "),a("em",[t._v("DeepPartial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[a("em",[t._v("CoreChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[a("em",[t._v("ElementChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[a("em",[t._v("PluginChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#datasetchartoptions"}},[a("em",[t._v("DatasetChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#scalechartoptions"}},[a("em",[t._v("ScaleChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("chartOptions")]),t._v("]>")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3323",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3323"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"charttype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#charttype"}},[t._v("#")]),t._v(" ChartType")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ChartType")]),t._v(": keyof "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3302",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3302"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"color"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[t._v("#")]),t._v(" Color")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("Color")]),t._v(": "),a("em",[t._v("string")]),t._v(" | CanvasGradient | CanvasPattern")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/color.d.ts#L1",target:"_blank",rel:"noopener noreferrer"}},[t._v("color.d.ts:1"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"datasetchartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasetchartoptions"}},[t._v("#")]),t._v(" DatasetChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("DatasetChartOptions")]),t._v(": { [key in TType]: object}")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-7"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3311",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3311"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"decimationoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#decimationoptions"}},[t._v("#")]),t._v(" DecimationOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("DecimationOptions")]),t._v(": LttbDecimationOptions | MinMaxDecimationOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1972",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1972"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"defaultdatapoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defaultdatapoint"}},[t._v("#")]),t._v(" DefaultDataPoint")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("DefaultDataPoint")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("defaultDataPoint")]),t._v("][]")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-8"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3332",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3332"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"doughnutdatapoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#doughnutdatapoint"}},[t._v("#")]),t._v(" DoughnutDataPoint")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("DoughnutDataPoint")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L300",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:300"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"easingfunction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#easingfunction"}},[t._v("#")]),t._v(" EasingFunction")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("EasingFunction")]),t._v(": "),a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("easeInQuad")]),t._v(" | "),a("em",[t._v("easeOutQuad")]),t._v(" | "),a("em",[t._v("easeInOutQuad")]),t._v(" | "),a("em",[t._v("easeInCubic")]),t._v(" | "),a("em",[t._v("easeOutCubic")]),t._v(" | "),a("em",[t._v("easeInOutCubic")]),t._v(" | "),a("em",[t._v("easeInQuart")]),t._v(" | "),a("em",[t._v("easeOutQuart")]),t._v(" | "),a("em",[t._v("easeInOutQuart")]),t._v(" | "),a("em",[t._v("easeInQuint")]),t._v(" | "),a("em",[t._v("easeOutQuint")]),t._v(" | "),a("em",[t._v("easeInOutQuint")]),t._v(" | "),a("em",[t._v("easeInSine")]),t._v(" | "),a("em",[t._v("easeOutSine")]),t._v(" | "),a("em",[t._v("easeInOutSine")]),t._v(" | "),a("em",[t._v("easeInExpo")]),t._v(" | "),a("em",[t._v("easeOutExpo")]),t._v(" | "),a("em",[t._v("easeInOutExpo")]),t._v(" | "),a("em",[t._v("easeInCirc")]),t._v(" | "),a("em",[t._v("easeOutCirc")]),t._v(" | "),a("em",[t._v("easeInOutCirc")]),t._v(" | "),a("em",[t._v("easeInElastic")]),t._v(" | "),a("em",[t._v("easeOutElastic")]),t._v(" | "),a("em",[t._v("easeInOutElastic")]),t._v(" | "),a("em",[t._v("easeInBack")]),t._v(" | "),a("em",[t._v("easeOutBack")]),t._v(" | "),a("em",[t._v("easeInOutBack")]),t._v(" | "),a("em",[t._v("easeInBounce")]),t._v(" | "),a("em",[t._v("easeOutBounce")]),t._v(" | "),a("em",[t._v("easeInOutBounce")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1443",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1443"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"filltarget"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#filltarget"}},[t._v("#")]),t._v(" FillTarget")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("FillTarget")]),t._v(": "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("string")]),t._v(" | { "),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v(" } | "),a("em",[t._v("start")]),t._v(" | "),a("em",[t._v("end")]),t._v(" | "),a("em",[t._v("origin")]),t._v(" | "),a("em",[t._v("stack")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1980",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1980"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"interactionmode"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactionmode"}},[t._v("#")]),t._v(" InteractionMode")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("InteractionMode")]),t._v(": keyof "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionmodemap.html"}},[a("em",[t._v("InteractionModeMap")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L701",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:701"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"interactionmodefunction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactionmodefunction"}},[t._v("#")]),t._v(" InteractionModeFunction")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("InteractionModeFunction")]),t._v(": ("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v(", "),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("options")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[a("em",[t._v("InteractionOptions")])]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v(") => "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[a("em",[t._v("InteractionItem")])]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"type-declaration-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-4"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("▸ ("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v(", "),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("options")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[a("em",[t._v("InteractionOptions")])]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[a("em",[t._v("InteractionItem")])]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("e")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[a("em",[t._v("InteractionOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[a("em",[t._v("InteractionItem")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L663",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:663"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"layoutposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#layoutposition"}},[t._v("#")]),t._v(" LayoutPosition")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LayoutPosition")]),t._v(": "),a("em",[t._v("left")]),t._v(" | "),a("em",[t._v("top")]),t._v(" | "),a("em",[t._v("right")]),t._v(" | "),a("em",[t._v("bottom")]),t._v(" | "),a("em",[t._v("center")]),t._v(" | "),a("em",[t._v("chartArea")]),t._v(" | { [scaleId: string]: "),a("em",[t._v("number")]),t._v("; }")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L3",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:3"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linecontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linecontroller"}},[t._v("#")]),t._v(" LineController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LineController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L211",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:211"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linearscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linearscale"}},[t._v("#")]),t._v(" LinearScale")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LinearScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-9"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#linearscaleoptions"}},[a("em",[t._v("LinearScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#linearscaleoptions"}},[a("em",[t._v("LinearScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2907",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2907"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linearscaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linearscaleoptions"}},[t._v("#")]),t._v(" LinearScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LinearScaleOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[a("em",[t._v("CartesianScaleOptions")])]),t._v(" & { "),a("code",[t._v("beginAtZero")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("grace?")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("suggestedMax?")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("suggestedMin?")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("ticks")]),t._v(": { "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("format")]),t._v(": Intl.NumberFormatOptions ; "),a("code",[t._v("maxTicksLimit")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("precision")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("stepSize")]),t._v(": "),a("em",[t._v("number")]),t._v(" } }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2858",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2858"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"logarithmicscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#logarithmicscale"}},[t._v("#")]),t._v(" LogarithmicScale")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LogarithmicScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-10"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#logarithmicscaleoptions"}},[a("em",[t._v("LogarithmicScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#logarithmicscaleoptions"}},[a("em",[t._v("LogarithmicScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2932",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2932"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"logarithmicscaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#logarithmicscaleoptions"}},[t._v("#")]),t._v(" LogarithmicScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LogarithmicScaleOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[a("em",[t._v("CartesianScaleOptions")])]),t._v(" & { "),a("code",[t._v("suggestedMax?")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("suggestedMin?")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("ticks")]),t._v(": { "),a("code",[t._v("format")]),t._v(": Intl.NumberFormatOptions } }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2913",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2913"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"overrides"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#overrides"}},[t._v("#")]),t._v(" Overrides")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("Overrides")]),t._v(': { [key in ChartType]: CoreChartOptions & ElementChartOptions & PluginChartOptions & DatasetChartOptions & ScaleChartOptions & ChartTypeRegistry[key]["chartOptions"]}')]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L641",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:641"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseddatatype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseddatatype"}},[t._v("#")]),t._v(" ParsedDataType")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ParsedDataType")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("parsedDataType")]),t._v("]")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-11"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3334",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3334"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"pieanimationoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pieanimationoptions"}},[t._v("#")]),t._v(" PieAnimationOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PieAnimationOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/doughnutanimationoptions.html"}},[a("em",[t._v("DoughnutAnimationOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L319",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:319"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"piecontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#piecontroller"}},[t._v("#")]),t._v(" PieController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PieController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#doughnutcontroller"}},[a("em",[t._v("DoughnutController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L323",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:323"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"piecontrollerchartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#piecontrollerchartoptions"}},[t._v("#")]),t._v(" PieControllerChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PieControllerChartOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerchartoptions.html"}},[a("em",[t._v("DoughnutControllerChartOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L318",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:318"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"piecontrollerdatasetoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#piecontrollerdatasetoptions"}},[t._v("#")]),t._v(" PieControllerDatasetOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PieControllerDatasetOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[a("em",[t._v("DoughnutControllerDatasetOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L317",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:317"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"piedatapoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#piedatapoint"}},[t._v("#")]),t._v(" PieDataPoint")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PieDataPoint")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#doughnutdatapoint"}},[a("em",[t._v("DoughnutDataPoint")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L321",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:321"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"pointstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" PointStyle")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PointStyle")]),t._v(": "),a("em",[t._v("circle")]),t._v(" | "),a("em",[t._v("cross")]),t._v(" | "),a("em",[t._v("crossRot")]),t._v(" | "),a("em",[t._v("dash")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("rect")]),t._v(" | "),a("em",[t._v("rectRounded")]),t._v(" | "),a("em",[t._v("rectRot")]),t._v(" | "),a("em",[t._v("star")]),t._v(" | "),a("em",[t._v("triangle")]),t._v(" | HTMLImageElement | HTMLCanvasElement")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1734",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1734"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"polarareaanimationoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#polarareaanimationoptions"}},[t._v("#")]),t._v(" PolarAreaAnimationOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PolarAreaAnimationOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/doughnutanimationoptions.html"}},[a("em",[t._v("DoughnutAnimationOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L337",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:337"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radarcontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radarcontroller"}},[t._v("#")]),t._v(" RadarController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("RadarController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L386",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:386"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radarcontrollerchartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radarcontrollerchartoptions"}},[t._v("#")]),t._v(" RadarControllerChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("RadarControllerChartOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[a("em",[t._v("LineControllerChartOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L384",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:384"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radiallinearscaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radiallinearscaleoptions"}},[t._v("#")]),t._v(" RadialLinearScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("RadialLinearScaleOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(" & { "),a("code",[t._v("angleLines")]),t._v(": { "),a("code",[t._v("borderDash")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(" ; "),a("code",[t._v("borderDashOffset")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(" ; "),a("code",[t._v("color")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[a("em",[t._v("ScriptableScaleContext")])]),t._v("> ; "),a("code",[t._v("display")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("lineWidth")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(" } ; "),a("code",[t._v("animate")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("beginAtZero")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("grid")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/gridlineoptions.html"}},[a("em",[t._v("GridLineOptions")])]),t._v(" ; "),a("code",[t._v("max")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("min")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("pointLabels")]),t._v(": { "),a("code",[t._v("backdropColor")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[a("em",[t._v("ScriptableScaleContext")])]),t._v("> ; "),a("code",[t._v("backdropPadding")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(" ; "),a("code",[t._v("callback")]),t._v(": ("),a("code",[t._v("label")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(") => "),a("em",[t._v("string")]),t._v(" ; "),a("code",[t._v("color")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[a("em",[t._v("ScriptableScaleContext")])]),t._v("> ; "),a("code",[t._v("display")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("font")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[a("em",[t._v("FontSpec")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[a("em",[t._v("ScriptableScaleContext")])]),t._v("> } ; "),a("code",[t._v("suggestedMax")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("suggestedMin")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tickoptions.html"}},[a("em",[t._v("TickOptions")])]),t._v(" & { "),a("code",[t._v("backdropColor")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[a("em",[t._v("ScriptableScaleContext")])]),t._v("> ; "),a("code",[t._v("backdropPadding")]),t._v(": "),a("em",[t._v("number")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v(" ; "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("format")]),t._v(": Intl.NumberFormatOptions ; "),a("code",[t._v("maxTicksLimit")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("precision")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("showLabelBackdrop")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(" ; "),a("code",[t._v("stepSize")]),t._v(": "),a("em",[t._v("number")]),t._v(" } }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3029",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3029"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scalechartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scalechartoptions"}},[t._v("#")]),t._v(" ScaleChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScaleChartOptions")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-12"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-5"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3317",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3317"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scaleoptions"}},[t._v("#")]),t._v(" ScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScaleOptions")]),t._v(": "),a("em",[t._v("DeepPartial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#scaleoptionsbytype"}},[a("em",[t._v("ScaleOptionsByType")])]),t._v(">")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-13"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TScale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scaletype"}},[a("em",[t._v("ScaleType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scaletype"}},[a("em",[t._v("ScaleType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3309",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3309"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scaleoptionsbytype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scaleoptionsbytype"}},[t._v("#")]),t._v(" ScaleOptionsByType")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScaleOptionsByType")]),t._v(': { [key in ScaleType]: object & ScaleTypeRegistry[key]["options"]}[TScale]')]),t._v(" "),a("h4",{attrs:{id:"type-parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-14"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TScale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scaletype"}},[a("em",[t._v("ScaleType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scaletype"}},[a("em",[t._v("ScaleType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3304",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3304"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scaletype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scaletype"}},[t._v("#")]),t._v(" ScaleType")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScaleType")]),t._v(": keyof "),a("RouterLink",{attrs:{to:"/api/interfaces/scaletyperegistry.html"}},[a("em",[t._v("ScaleTypeRegistry")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3206",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3206"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scattercontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scattercontroller"}},[t._v("#")]),t._v(" ScatterController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScatterController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#linecontroller"}},[a("em",[t._v("LineController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L226",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:226"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scattercontrollerchartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scattercontrollerchartoptions"}},[t._v("#")]),t._v(" ScatterControllerChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScatterControllerChartOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[a("em",[t._v("LineControllerChartOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L224",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:224"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scattercontrollerdatasetoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scattercontrollerdatasetoptions"}},[t._v("#")]),t._v(" ScatterControllerDatasetOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScatterControllerDatasetOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerdatasetoptions.html"}},[a("em",[t._v("LineControllerDatasetOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L217",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:217"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scriptable"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scriptable"}},[t._v("#")]),t._v(" Scriptable")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("Scriptable")]),t._v(": T | ("),a("code",[t._v("ctx")]),t._v(": TContext) => T")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-15"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TContext")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L34",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:34"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scriptableandarray"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scriptableandarray"}},[t._v("#")]),t._v(" ScriptableAndArray")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScriptableAndArray")]),t._v(": readonly T[] | "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-16"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TContext")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L36",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:36"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scriptableandarrayoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scriptableandarrayoptions"}},[t._v("#")]),t._v(" ScriptableAndArrayOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScriptableAndArrayOptions")]),t._v(": { [P in keyof T]: ScriptableAndArray}")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-17"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TContext")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:37"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scriptableoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scriptableoptions"}},[t._v("#")]),t._v(" ScriptableOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScriptableOptions")]),t._v(": { [P in keyof T]: Scriptable}")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-18"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TContext")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L35",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:35"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"textalign"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#textalign"}},[t._v("#")]),t._v(" TextAlign")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TextAlign")]),t._v(": "),a("em",[t._v("left")]),t._v(" | "),a("em",[t._v("center")]),t._v(" | "),a("em",[t._v("right")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1574",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1574"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timescaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timescaleoptions"}},[t._v("#")]),t._v(" TimeScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TimeScaleOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[a("em",[t._v("CartesianScaleOptions")])]),t._v(" & { "),a("code",[t._v("adapters")]),t._v(": { "),a("code",[t._v("date")]),t._v(": "),a("em",[t._v("unknown")]),t._v(" } ; "),a("code",[t._v("bounds")]),t._v(": "),a("em",[t._v("ticks")]),t._v(" | "),a("em",[t._v("data")]),t._v(" ; "),a("code",[t._v("ticks")]),t._v(": { "),a("code",[t._v("source")]),t._v(": "),a("em",[t._v("labels")]),t._v(" | "),a("em",[t._v("auto")]),t._v(" | "),a("em",[t._v("data")]),t._v(" } ; "),a("code",[t._v("time")]),t._v(": { "),a("code",[t._v("displayFormats")]),t._v(": { [key: string]: "),a("em",[t._v("string")]),t._v("; } ; "),a("code",[t._v("isoWeekday")]),t._v(": "),a("em",[t._v("false")]),t._v(" | "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("minUnit")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v(" ; "),a("code",[t._v("parser")]),t._v(": "),a("em",[t._v("string")]),t._v(" | ("),a("code",[t._v("v")]),t._v(": "),a("em",[t._v("unknown")]),t._v(") => "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("round")]),t._v(": "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v(" ; "),a("code",[t._v("stepSize")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("tooltipFormat")]),t._v(": "),a("em",[t._v("string")]),t._v(" ; "),a("code",[t._v("unit")]),t._v(": "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v(" } }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2938",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2938"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timeseriesscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timeseriesscale"}},[t._v("#")]),t._v(" TimeSeriesScale")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TimeSeriesScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timescale"}},[a("em",[t._v("TimeScale")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-19"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3023",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3023"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timeunit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timeunit"}},[t._v("#")]),t._v(" TimeUnit")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TimeUnit")]),t._v(": "),a("em",[t._v("millisecond")]),t._v(" | "),a("em",[t._v("second")]),t._v(" | "),a("em",[t._v("minute")]),t._v(" | "),a("em",[t._v("hour")]),t._v(" | "),a("em",[t._v("day")]),t._v(" | "),a("em",[t._v("week")]),t._v(" | "),a("em",[t._v("month")]),t._v(" | "),a("em",[t._v("quarter")]),t._v(" | "),a("em",[t._v("year")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/adapters.d.ts#L1",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:1"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipxalignment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipxalignment"}},[t._v("#")]),t._v(" TooltipXAlignment")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TooltipXAlignment")]),t._v(": "),a("em",[t._v("left")]),t._v(" | "),a("em",[t._v("center")]),t._v(" | "),a("em",[t._v("right")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2253",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2253"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipyalignment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipyalignment"}},[t._v("#")]),t._v(" TooltipYAlignment")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TooltipYAlignment")]),t._v(": "),a("em",[t._v("top")]),t._v(" | "),a("em",[t._v("center")]),t._v(" | "),a("em",[t._v("bottom")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2254",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2254"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"transitionspec"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#transitionspec"}},[t._v("#")]),t._v(" TransitionSpec")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TransitionSpec")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-20"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-6"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animation")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#animationspec"}},[a("em",[t._v("AnimationSpec")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animations")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#animationsspec"}},[a("em",[t._v("AnimationsSpec")])]),t._v("")],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1523",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1523"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"transitionsspec"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#transitionsspec"}},[t._v("#")]),t._v(" TransitionsSpec")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TransitionsSpec")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-21"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-7"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1528",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1528"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatemode"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatemode"}},[t._v("#")]),t._v(" UpdateMode")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("UpdateMode")]),t._v(": keyof "),a("em",[t._v("typeof")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/enums/updatemodeenum.html"}},[a("em",[t._v("UpdateModeEnum")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L525",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:525"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"variables"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#variables"}},[t._v("#")]),t._v(" Variables")]),t._v(" "),a("h3",{attrs:{id:"arcelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#arcelement"}},[t._v("#")]),t._v(" ArcElement")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ArcElement")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#arcelement"}},[a("em",[t._v("ArcElement")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/arcprops.html"}},[a("em",[t._v("ArcProps")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[a("em",[t._v("ArcOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1644",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1644"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"barcontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barcontroller-2"}},[t._v("#")]),t._v(" BarController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("BarController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#barcontroller"}},[a("em",[t._v("BarController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L140",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:140"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"barelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barelement"}},[t._v("#")]),t._v(" BarElement")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("BarElement")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#barelement"}},[a("em",[t._v("BarElement")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/barprops.html"}},[a("em",[t._v("BarProps")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[a("em",[t._v("BarOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1885",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1885"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bubblecontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bubblecontroller-2"}},[t._v("#")]),t._v(" BubbleController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("BubbleController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#bubblecontroller"}},[a("em",[t._v("BubbleController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L168",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:168"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"categoryscale-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#categoryscale-2"}},[t._v("#")]),t._v(" CategoryScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("CategoryScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#categoryscale"}},[a("em",[t._v("CategoryScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#categoryscaleoptions"}},[a("em",[t._v("CategoryScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2853",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2853"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"doughnutcontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#doughnutcontroller"}},[t._v("#")]),t._v(" DoughnutController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("DoughnutController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#doughnutcontroller"}},[a("em",[t._v("DoughnutController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L312",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:312"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"element"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#element"}},[t._v("#")]),t._v(" Element")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("Element")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-8"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("prototype")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L27",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:27"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"filler"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#filler"}},[t._v("#")]),t._v(" Filler")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Filler")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1974",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1974"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"interaction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interaction"}},[t._v("#")]),t._v(" Interaction")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Interaction")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-9"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("modes")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/interactionmodemap.html"}},[a("em",[t._v("InteractionModeMap")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L703",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:703"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"legend"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#legend"}},[t._v("#")]),t._v(" Legend")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Legend")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2004",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2004"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linecontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linecontroller-2"}},[t._v("#")]),t._v(" LineController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("LineController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#linecontroller"}},[a("em",[t._v("LineController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L212",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:212"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"lineelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#lineelement"}},[t._v("#")]),t._v(" LineElement")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("LineElement")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#lineelement"}},[a("em",[t._v("LineElement")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/lineprops.html"}},[a("em",[t._v("LineProps")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[a("em",[t._v("LineOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1724",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1724"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linearscale-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linearscale-2"}},[t._v("#")]),t._v(" LinearScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("LinearScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#linearscale"}},[a("em",[t._v("LinearScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#linearscaleoptions"}},[a("em",[t._v("LinearScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2908",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2908"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"logarithmicscale-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#logarithmicscale-2"}},[t._v("#")]),t._v(" LogarithmicScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("LogarithmicScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#logarithmicscale"}},[a("em",[t._v("LogarithmicScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#logarithmicscaleoptions"}},[a("em",[t._v("LogarithmicScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2933",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2933"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"piecontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#piecontroller-2"}},[t._v("#")]),t._v(" PieController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("PieController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#doughnutcontroller"}},[a("em",[t._v("DoughnutController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L324",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:324"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"pointelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pointelement"}},[t._v("#")]),t._v(" PointElement")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("PointElement")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#pointelement"}},[a("em",[t._v("PointElement")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[a("em",[t._v("PointProps")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[a("em",[t._v("PointOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1836",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1836"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"polarareacontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#polarareacontroller"}},[t._v("#")]),t._v(" PolarAreaController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("PolarAreaController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#polarareacontroller"}},[a("em",[t._v("PolarAreaController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L352",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:352"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radarcontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radarcontroller-2"}},[t._v("#")]),t._v(" RadarController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("RadarController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#radarcontroller"}},[a("em",[t._v("RadarController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L387",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:387"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radiallinearscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radiallinearscale"}},[t._v("#")]),t._v(" RadialLinearScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("RadialLinearScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#radiallinearscale"}},[a("em",[t._v("RadialLinearScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#radiallinearscaleoptions"}},[a("em",[t._v("RadialLinearScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3174",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3174"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scattercontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scattercontroller-2"}},[t._v("#")]),t._v(" ScatterController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ScatterController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#linecontroller"}},[a("em",[t._v("LineController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L227",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:227"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[t._v("#")]),t._v(" Ticks")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Ticks")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-10"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("formatters")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("formatters.logarithmic")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[object Object]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("formatters.numeric")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[object Object]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("formatters.values")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[object Object]")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1268",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1268"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timescale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timescale"}},[t._v("#")]),t._v(" TimeScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("TimeScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timescale"}},[a("em",[t._v("TimeScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3018",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3018"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timeseriesscale-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timeseriesscale-2"}},[t._v("#")]),t._v(" TimeSeriesScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("TimeSeriesScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeseriesscale"}},[a("em",[t._v("TimeSeriesScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3024",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3024"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"title"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" Title")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Title")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2212",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2212"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltip"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltip"}},[t._v("#")]),t._v(" Tooltip")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Tooltip")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])]),t._v(" & { "),a("code",[t._v("positioners")]),t._v(": { [key: string]: ("),a("code",[t._v("items")]),t._v(": readonly "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("[], "),a("code",[t._v("eventPosition")]),t._v(": { "),a("code",[t._v("x")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("y")]),t._v(": "),a("em",[t._v("number")]),t._v(" }) => { "),a("code",[t._v("x")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("y")]),t._v(": "),a("em",[t._v("number")]),t._v(" }; } ; "),a("code",[t._v("getActiveElements")]),t._v(": () => "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[] ; "),a("code",[t._v("setActiveElements")]),t._v(": ("),a("code",[t._v("active")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[a("em",[t._v("ActiveDataPoint")])]),t._v("[], "),a("code",[t._v("eventPosition")]),t._v(": { "),a("code",[t._v("x")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("y")]),t._v(": "),a("em",[t._v("number")]),t._v(" }) => "),a("em",[t._v("void")]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2332",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2332"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"adapters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#adapters"}},[t._v("#")]),t._v(" _adapters")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("_adapters")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-11"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("_date")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/dateadapter.html"}},[a("em",[t._v("DateAdapter")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/adapters.d.ts#L61",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:61"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"defaults"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defaults"}},[t._v("#")]),t._v(" defaults")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("defaults")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[a("em",[t._v("Defaults")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L651",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:651"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"layouts"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#layouts"}},[t._v("#")]),t._v(" layouts")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("layouts")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-12"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("addBox")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("item")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])]),t._v(") => "),a("em",[t._v("void")])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("configure")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("item")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])]),t._v(", "),a("code",[t._v("options")]),t._v(": { "),a("code",[t._v("fullSize?")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("position?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])]),t._v(" ; "),a("code",[t._v("weight?")]),t._v(": "),a("em",[t._v("number")]),t._v(" }) => "),a("em",[t._v("void")])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("removeBox")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("layoutItem")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])]),t._v(") => "),a("em",[t._v("void")])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("update")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(") => "),a("em",[t._v("void")])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L707",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:707"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"registerables"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#registerables"}},[t._v("#")]),t._v(" registerables")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("registerables")]),t._v(": readonly "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L504",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:504"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"registry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#registry"}},[t._v("#")]),t._v(" registry")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("registry")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/registry.html"}},[a("em",[t._v("Registry")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1060",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1060"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/90.93280334.js b/docs/latest/assets/js/90.93280334.js new file mode 100644 index 0000000000..dc9d8f86b6 --- /dev/null +++ b/docs/latest/assets/js/90.93280334.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[90],{414:function(t,e,r){"use strict";r.r(e);var o=r(7),n=Object(o.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-pointoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointoptions"}},[t._v("#")]),t._v(" Interface: PointOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[r("em",[t._v("CommonElementOptions")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("PointOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#backgroundcolor"}},[t._v("backgroundColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#bordercolor"}},[t._v("borderColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#borderwidth"}},[t._v("borderWidth")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hitradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hitradius"}},[t._v("#")]),t._v(" hitRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hitRadius")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Extra radius added to point radius for hit detection.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 1")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1758",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1758"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])])],1),t._v(" "),r("p",[t._v("Point style")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'circle;")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1763",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1763"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"radius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#radius"}},[t._v("#")]),t._v(" radius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("radius")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Point radius")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 3")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1753",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1753"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[t._v("#")]),t._v(" rotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rotation")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Point rotation (in degrees).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1768",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1768"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/90.ddd33458.js b/docs/latest/assets/js/90.ddd33458.js deleted file mode 100644 index 8086dc4507..0000000000 --- a/docs/latest/assets/js/90.ddd33458.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[90],{417:function(t,e,r){"use strict";r.r(e);var o=r(7),n=Object(o.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-pointoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointoptions"}},[t._v("#")]),t._v(" Interface: PointOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[r("em",[t._v("CommonElementOptions")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("PointOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#backgroundcolor"}},[t._v("backgroundColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#bordercolor"}},[t._v("borderColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#borderwidth"}},[t._v("borderWidth")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hitradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hitradius"}},[t._v("#")]),t._v(" hitRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hitRadius")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Extra radius added to point radius for hit detection.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 1")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1758",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1758"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])])],1),t._v(" "),r("p",[t._v("Point style")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'circle;")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1763",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1763"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"radius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#radius"}},[t._v("#")]),t._v(" radius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("radius")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Point radius")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 3")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1753",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1753"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[t._v("#")]),t._v(" rotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rotation")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Point rotation (in degrees).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1768",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1768"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/91.2a2bd3d2.js b/docs/latest/assets/js/91.2a2bd3d2.js new file mode 100644 index 0000000000..c379918eed --- /dev/null +++ b/docs/latest/assets/js/91.2a2bd3d2.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[91],{415:function(r,e,t){"use strict";t.r(e);var o=t(7),n=Object(o.a)({},(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[t("h1",{attrs:{id:"interface-pointprefixedhoveroptions"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointprefixedhoveroptions"}},[r._v("#")]),r._v(" Interface: PointPrefixedHoverOptions")]),r._v(" "),t("h2",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),t("h3",{attrs:{id:"pointhoverbackgroundcolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbackgroundcolor"}},[r._v("#")]),r._v(" pointHoverBackgroundColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("pointHoverBackgroundColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Point background color when hovered.")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1814",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1814"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"pointhoverbordercolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbordercolor"}},[r._v("#")]),r._v(" pointHoverBorderColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("pointHoverBorderColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Point border color when hovered.")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1818",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1818"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"pointhoverborderwidth"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverborderwidth"}},[r._v("#")]),r._v(" pointHoverBorderWidth")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("pointHoverBorderWidth")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("Border width of point when hovered.")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1822",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1822"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"pointhoverradius"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverradius"}},[r._v("#")]),r._v(" pointHoverRadius")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("pointHoverRadius")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("The radius of the point when hovered.")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1826",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1826"),t("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/91.5d8e0821.js b/docs/latest/assets/js/91.5d8e0821.js deleted file mode 100644 index 2c999530b6..0000000000 --- a/docs/latest/assets/js/91.5d8e0821.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[91],{418:function(r,e,t){"use strict";t.r(e);var o=t(7),n=Object(o.a)({},(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[t("h1",{attrs:{id:"interface-pointprefixedhoveroptions"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointprefixedhoveroptions"}},[r._v("#")]),r._v(" Interface: PointPrefixedHoverOptions")]),r._v(" "),t("h2",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),t("h3",{attrs:{id:"pointhoverbackgroundcolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbackgroundcolor"}},[r._v("#")]),r._v(" pointHoverBackgroundColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("pointHoverBackgroundColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Point background color when hovered.")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1814",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1814"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"pointhoverbordercolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbordercolor"}},[r._v("#")]),r._v(" pointHoverBorderColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("pointHoverBorderColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Point border color when hovered.")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1818",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1818"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"pointhoverborderwidth"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverborderwidth"}},[r._v("#")]),r._v(" pointHoverBorderWidth")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("pointHoverBorderWidth")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("Border width of point when hovered.")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1822",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1822"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"pointhoverradius"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverradius"}},[r._v("#")]),r._v(" pointHoverRadius")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("pointHoverRadius")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("The radius of the point when hovered.")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1826",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1826"),t("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/92.1906a5fc.js b/docs/latest/assets/js/92.1906a5fc.js new file mode 100644 index 0000000000..7c7378322a --- /dev/null +++ b/docs/latest/assets/js/92.1906a5fc.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[92],{416:function(t,e,r){"use strict";r.r(e);var o=r(7),n=Object(o.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-pointprefixedoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointprefixedoptions"}},[t._v("#")]),t._v(" Interface: PointPrefixedOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"pointbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbackgroundcolor"}},[t._v("#")]),t._v(" pointBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("The fill color for points.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1783",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1783"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbordercolor"}},[t._v("#")]),t._v(" pointBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("The border color for points.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1787",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1787"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointborderwidth"}},[t._v("#")]),t._v(" pointBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderWidth")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The width of the point border in pixels.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1791",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1791"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhitradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhitradius"}},[t._v("#")]),t._v(" pointHitRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHitRadius")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The pixel size of the non-displayed point that reacts to mouse events.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1795",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1795"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointradius"}},[t._v("#")]),t._v(" pointRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRadius")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The radius of the point shape. If set to 0, the point is not rendered.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1799",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1799"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointrotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointrotation"}},[t._v("#")]),t._v(" pointRotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRotation")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The rotation of the point in degrees.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1803",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1803"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])])],1),t._v(" "),r("p",[t._v("Style of the point.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1807",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1807"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/92.f0d6cb32.js b/docs/latest/assets/js/92.f0d6cb32.js deleted file mode 100644 index 5eb41dead0..0000000000 --- a/docs/latest/assets/js/92.f0d6cb32.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[92],{419:function(t,e,r){"use strict";r.r(e);var o=r(7),n=Object(o.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-pointprefixedoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointprefixedoptions"}},[t._v("#")]),t._v(" Interface: PointPrefixedOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"pointbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbackgroundcolor"}},[t._v("#")]),t._v(" pointBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("The fill color for points.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1783",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1783"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbordercolor"}},[t._v("#")]),t._v(" pointBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("The border color for points.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1787",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1787"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointborderwidth"}},[t._v("#")]),t._v(" pointBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderWidth")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The width of the point border in pixels.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1791",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1791"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhitradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhitradius"}},[t._v("#")]),t._v(" pointHitRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHitRadius")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The pixel size of the non-displayed point that reacts to mouse events.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1795",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1795"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointradius"}},[t._v("#")]),t._v(" pointRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRadius")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The radius of the point shape. If set to 0, the point is not rendered.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1799",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1799"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointrotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointrotation"}},[t._v("#")]),t._v(" pointRotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRotation")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The rotation of the point in degrees.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1803",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1803"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])])],1),t._v(" "),r("p",[t._v("Style of the point.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1807",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1807"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/93.f4fec444.js b/docs/latest/assets/js/93.040a325e.js similarity index 50% rename from docs/latest/assets/js/93.f4fec444.js rename to docs/latest/assets/js/93.040a325e.js index 9968e4cb59..fe7eb5522b 100644 --- a/docs/latest/assets/js/93.f4fec444.js +++ b/docs/latest/assets/js/93.040a325e.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[93],{420:function(t,e,r){"use strict";r.r(e);var s=r(7),a=Object(s.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-pointprops"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointprops"}},[t._v("#")]),t._v(" Interface: PointProps")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("x")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1730",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1730"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("y")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1731",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1731"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[93],{417:function(t,e,r){"use strict";r.r(e);var s=r(7),a=Object(s.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-pointprops"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointprops"}},[t._v("#")]),t._v(" Interface: PointProps")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("x")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1730",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1730"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("y")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1731",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1731"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/94.0f576cde.js b/docs/latest/assets/js/94.0f576cde.js deleted file mode 100644 index f80f20abd4..0000000000 --- a/docs/latest/assets/js/94.0f576cde.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[94],{421:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-polarareacontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-polarareacontroller"}},[t._v("#")]),t._v(" Interface: PolarAreaController")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#doughnutcontroller"}},[a("em",[t._v("DoughnutController")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("PolarAreaController")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"cachedmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cachedmeta"}},[t._v("#")]),t._v(" _cachedMeta")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("_cachedMeta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Inherited from: DoughnutController._cachedMeta")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L537",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:537"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.chart")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L535",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:535"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"enableoptionsharing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enableoptionsharing"}},[t._v("#")]),t._v(" enableOptionSharing")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("enableOptionSharing")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.enableOptionSharing")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L538",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:538"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"index"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("index")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.index")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L536",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:536"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"innerradius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#innerradius"}},[t._v("#")]),t._v(" innerRadius")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("innerRadius")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.innerRadius")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L303",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:303"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"offsetx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offsetx"}},[t._v("#")]),t._v(" offsetX")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("offsetX")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.offsetX")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L305",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:305"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"offsety"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offsety"}},[t._v("#")]),t._v(" offsetY")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("offsetY")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.offsetY")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L306",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:306"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"outerradius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#outerradius"}},[t._v("#")]),t._v(" outerRadius")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("outerRadius")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.outerRadius")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L304",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:304"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"addelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addelements"}},[t._v("#")]),t._v(" addElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addElements")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.addElements")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L554",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:554"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"applystack"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#applystack"}},[t._v("#")]),t._v(" applyStack")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("applyStack")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[]): "),a("em",[t._v("number")])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.applyStack")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L590",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:590"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildorupdateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildorupdateelements"}},[t._v("#")]),t._v(" buildOrUpdateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildOrUpdateElements")]),t._v("("),a("code",[t._v("resetNewElements?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("resetNewElements?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.buildOrUpdateElements")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L555",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:555"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatecircumference"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatecircumference"}},[t._v("#")]),t._v(" calculateCircumference")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateCircumference")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.calculateCircumference")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L309",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:309"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatetotal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatetotal"}},[t._v("#")]),t._v(" calculateTotal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateTotal")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.calculateTotal")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L308",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:308"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.configure")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L552",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:552"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"countvisibleelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#countvisibleelements"}},[t._v("#")]),t._v(" countVisibleElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("countVisibleElements")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L350",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:350"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.draw")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L547",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:547"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getallparsedvalues"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getallparsedvalues"}},[t._v("#")]),t._v(" getAllParsedValues")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getAllParsedValues")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("number")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getAllParsedValues")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L541",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:541"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdataset"}},[t._v("#")]),t._v(" getDataset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDataset")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getDataset")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L549",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:549"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelandvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelandvalue"}},[t._v("#")]),t._v(" getLabelAndValue")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getLabelAndValue")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("label")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getLabelAndValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L542",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:542"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaxoverflow"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaxoverflow"}},[t._v("#")]),t._v(" getMaxOverflow")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMaxOverflow")]),t._v("(): "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getMaxOverflow")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L546",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:546"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmeta"}},[t._v("#")]),t._v(" getMeta")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMeta")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getMeta")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L550",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:550"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("canStack?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getMinMax")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L597",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:597"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getparsed"}},[t._v("#")]),t._v(" getParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getParsed")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")]),t._v(" | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v(" | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getParsed")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L589",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:589"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getscaleforid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getscaleforid"}},[t._v("#")]),t._v(" getScaleForId")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getScaleForId")]),t._v("("),a("code",[t._v("scaleID")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scaleID")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getScaleForId")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L551",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:551"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getsharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getsharedoptions"}},[t._v("#")]),t._v(" getSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getSharedOptions")]),t._v("("),a("code",[t._v("options")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Utility for checking if the options are shared and should be animated separately.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getSharedOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L564",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:564"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getstyle"}},[t._v("#")]),t._v(" getStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getStyle")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getStyle")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L557",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:557"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"includeoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#includeoptions"}},[t._v("#")]),t._v(" includeOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("includeOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Utility for determining if "),a("code",[t._v("options")]),t._v(" should be included in the updated properties")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.includeOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L569",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:569"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"initialize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#initialize"}},[t._v("#")]),t._v(" initialize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("initialize")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.initialize")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L553",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:553"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linkscales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linkscales"}},[t._v("#")]),t._v(" linkScales")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("linkScales")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.linkScales")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L540",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:540"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.parse")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L585",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:585"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsearraydata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsearraydata"}},[t._v("#")]),t._v(" parseArrayData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseArrayData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.parseArrayData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:587"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseobjectdata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseobjectdata"}},[t._v("#")]),t._v(" parseObjectData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseObjectData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.parseObjectData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:588"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseprimitivedata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseprimitivedata"}},[t._v("#")]),t._v(" parsePrimitiveData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parsePrimitiveData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.parsePrimitiveData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:586"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removehoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removehoverstyle"}},[t._v("#")]),t._v(" removeHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.removeHoverStyle")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" reset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("reset")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.reset")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L548",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:548"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedataelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedataelementoptions"}},[t._v("#")]),t._v(" resolveDataElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDataElementOptions")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.resolveDataElementOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L559",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:559"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedatasetelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedatasetelementoptions"}},[t._v("#")]),t._v(" resolveDatasetElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDatasetElementOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.resolveDatasetElementOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L558",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:558"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"sethoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#sethoverstyle"}},[t._v("#")]),t._v(" setHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.setHoverStyle")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L583",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:583"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.update")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:544"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelement"}},[t._v("#")]),t._v(" updateElement")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateElement")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("properties")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Utility for updating an element with new properties, using animations when appropriate.")]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("properties")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.updateElement")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L575",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:575"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelements"}},[t._v("#")]),t._v(" updateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateElements")]),t._v("("),a("code",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>[]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.updateElements")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:543"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateindex"}},[t._v("#")]),t._v(" updateIndex")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateIndex")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.updateIndex")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L545",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:545"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updaterangefromparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updaterangefromparsed"}},[t._v("#")]),t._v(" updateRangeFromParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateRangeFromParsed")]),t._v("("),a("code",[t._v("range")]),t._v(": { "),a("code",[t._v("max")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("min")]),t._v(": "),a("em",[t._v("number")]),t._v(" }, "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[], "),a("code",[t._v("stack")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("stack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.updateRangeFromParsed")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L591",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:591"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatesharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatesharedoptions"}},[t._v("#")]),t._v(" updateSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateSharedOptions")]),t._v("("),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("newOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Utility to animate the shared options, that are potentially affecting multiple elements.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("newOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.updateSharedOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:581"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/94.e69ba595.js b/docs/latest/assets/js/94.e69ba595.js new file mode 100644 index 0000000000..c22b464b9f --- /dev/null +++ b/docs/latest/assets/js/94.e69ba595.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[94],{418:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-polarareacontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-polarareacontroller"}},[t._v("#")]),t._v(" Interface: PolarAreaController")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#doughnutcontroller"}},[a("em",[t._v("DoughnutController")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("PolarAreaController")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"cachedmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cachedmeta"}},[t._v("#")]),t._v(" _cachedMeta")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("_cachedMeta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Inherited from: DoughnutController._cachedMeta")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L537",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:537"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.chart")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L535",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:535"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"enableoptionsharing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enableoptionsharing"}},[t._v("#")]),t._v(" enableOptionSharing")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("enableOptionSharing")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.enableOptionSharing")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L538",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:538"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"index"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("index")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.index")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L536",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:536"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"innerradius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#innerradius"}},[t._v("#")]),t._v(" innerRadius")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("innerRadius")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.innerRadius")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L303",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:303"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"offsetx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offsetx"}},[t._v("#")]),t._v(" offsetX")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("offsetX")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.offsetX")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L305",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:305"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"offsety"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offsety"}},[t._v("#")]),t._v(" offsetY")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("offsetY")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.offsetY")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L306",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:306"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"outerradius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#outerradius"}},[t._v("#")]),t._v(" outerRadius")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("outerRadius")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.outerRadius")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L304",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:304"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"addelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addelements"}},[t._v("#")]),t._v(" addElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addElements")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.addElements")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L554",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:554"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"applystack"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#applystack"}},[t._v("#")]),t._v(" applyStack")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("applyStack")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[]): "),a("em",[t._v("number")])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.applyStack")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L590",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:590"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildorupdateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildorupdateelements"}},[t._v("#")]),t._v(" buildOrUpdateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildOrUpdateElements")]),t._v("("),a("code",[t._v("resetNewElements?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("resetNewElements?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.buildOrUpdateElements")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L555",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:555"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatecircumference"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatecircumference"}},[t._v("#")]),t._v(" calculateCircumference")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateCircumference")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.calculateCircumference")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L309",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:309"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatetotal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatetotal"}},[t._v("#")]),t._v(" calculateTotal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateTotal")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.calculateTotal")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L308",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:308"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.configure")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L552",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:552"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"countvisibleelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#countvisibleelements"}},[t._v("#")]),t._v(" countVisibleElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("countVisibleElements")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L350",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:350"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.draw")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L547",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:547"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getallparsedvalues"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getallparsedvalues"}},[t._v("#")]),t._v(" getAllParsedValues")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getAllParsedValues")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("number")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getAllParsedValues")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L541",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:541"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdataset"}},[t._v("#")]),t._v(" getDataset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDataset")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getDataset")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L549",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:549"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelandvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelandvalue"}},[t._v("#")]),t._v(" getLabelAndValue")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getLabelAndValue")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("label")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getLabelAndValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L542",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:542"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaxoverflow"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaxoverflow"}},[t._v("#")]),t._v(" getMaxOverflow")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMaxOverflow")]),t._v("(): "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getMaxOverflow")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L546",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:546"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmeta"}},[t._v("#")]),t._v(" getMeta")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMeta")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getMeta")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L550",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:550"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("canStack?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getMinMax")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L597",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:597"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getparsed"}},[t._v("#")]),t._v(" getParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getParsed")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")]),t._v(" | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v(" | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getParsed")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L589",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:589"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getscaleforid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getscaleforid"}},[t._v("#")]),t._v(" getScaleForId")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getScaleForId")]),t._v("("),a("code",[t._v("scaleID")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scaleID")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getScaleForId")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L551",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:551"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getsharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getsharedoptions"}},[t._v("#")]),t._v(" getSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getSharedOptions")]),t._v("("),a("code",[t._v("options")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Utility for checking if the options are shared and should be animated separately.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getSharedOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L564",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:564"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getstyle"}},[t._v("#")]),t._v(" getStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getStyle")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getStyle")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L557",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:557"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"includeoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#includeoptions"}},[t._v("#")]),t._v(" includeOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("includeOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Utility for determining if "),a("code",[t._v("options")]),t._v(" should be included in the updated properties")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.includeOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L569",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:569"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"initialize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#initialize"}},[t._v("#")]),t._v(" initialize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("initialize")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.initialize")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L553",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:553"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linkscales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linkscales"}},[t._v("#")]),t._v(" linkScales")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("linkScales")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.linkScales")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L540",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:540"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.parse")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L585",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:585"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsearraydata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsearraydata"}},[t._v("#")]),t._v(" parseArrayData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseArrayData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.parseArrayData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:587"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseobjectdata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseobjectdata"}},[t._v("#")]),t._v(" parseObjectData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseObjectData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.parseObjectData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:588"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseprimitivedata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseprimitivedata"}},[t._v("#")]),t._v(" parsePrimitiveData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parsePrimitiveData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.parsePrimitiveData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:586"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removehoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removehoverstyle"}},[t._v("#")]),t._v(" removeHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.removeHoverStyle")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" reset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("reset")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.reset")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L548",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:548"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedataelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedataelementoptions"}},[t._v("#")]),t._v(" resolveDataElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDataElementOptions")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.resolveDataElementOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L559",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:559"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedatasetelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedatasetelementoptions"}},[t._v("#")]),t._v(" resolveDatasetElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDatasetElementOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.resolveDatasetElementOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L558",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:558"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"sethoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#sethoverstyle"}},[t._v("#")]),t._v(" setHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.setHoverStyle")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L583",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:583"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.update")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:544"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelement"}},[t._v("#")]),t._v(" updateElement")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateElement")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("properties")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Utility for updating an element with new properties, using animations when appropriate.")]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("properties")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.updateElement")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L575",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:575"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelements"}},[t._v("#")]),t._v(" updateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateElements")]),t._v("("),a("code",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>[]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.updateElements")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:543"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateindex"}},[t._v("#")]),t._v(" updateIndex")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateIndex")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.updateIndex")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L545",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:545"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updaterangefromparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updaterangefromparsed"}},[t._v("#")]),t._v(" updateRangeFromParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateRangeFromParsed")]),t._v("("),a("code",[t._v("range")]),t._v(": { "),a("code",[t._v("max")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("min")]),t._v(": "),a("em",[t._v("number")]),t._v(" }, "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[], "),a("code",[t._v("stack")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("stack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.updateRangeFromParsed")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L591",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:591"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatesharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatesharedoptions"}},[t._v("#")]),t._v(" updateSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateSharedOptions")]),t._v("("),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("newOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Utility to animate the shared options, that are potentially affecting multiple elements.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("newOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.updateSharedOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:581"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/95.9d59b30f.js b/docs/latest/assets/js/95.9d59b30f.js new file mode 100644 index 0000000000..94b69912e6 --- /dev/null +++ b/docs/latest/assets/js/95.9d59b30f.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[95],{419:function(t,e,r){"use strict";r.r(e);var a=r(7),n=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-polarareacontrollerchartoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-polarareacontrollerchartoptions"}},[t._v("#")]),t._v(" Interface: PolarAreaControllerChartOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutanimationoptions.html"}},[r("em",[t._v("DoughnutAnimationOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L346",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:346"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"startangle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#startangle"}},[t._v("#")]),t._v(" startAngle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("startAngle")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Starting angle to draw arcs for the first item in a dataset. In degrees, 0 is at top.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L344",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:344"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/95.a4aec8ca.js b/docs/latest/assets/js/95.a4aec8ca.js deleted file mode 100644 index 65ceb277bc..0000000000 --- a/docs/latest/assets/js/95.a4aec8ca.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[95],{422:function(t,e,r){"use strict";r.r(e);var a=r(7),n=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-polarareacontrollerchartoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-polarareacontrollerchartoptions"}},[t._v("#")]),t._v(" Interface: PolarAreaControllerChartOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutanimationoptions.html"}},[r("em",[t._v("DoughnutAnimationOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L346",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:346"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"startangle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#startangle"}},[t._v("#")]),t._v(" startAngle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("startAngle")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Starting angle to draw arcs for the first item in a dataset. In degrees, 0 is at top.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L344",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:344"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/96.281b52d0.js b/docs/latest/assets/js/96.281b52d0.js new file mode 100644 index 0000000000..16c0123e18 --- /dev/null +++ b/docs/latest/assets/js/96.281b52d0.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[96],{420:function(t,e,r){"use strict";r.r(e);var o=r(7),a=Object(o.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-polarareacontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-polarareacontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: PolarAreaControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[r("em",[t._v("DoughnutControllerDatasetOptions")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("PolarAreaControllerDatasetOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"angle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#angle"}},[t._v("#")]),t._v(" angle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("angle")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Arc angle to cover. - for polar only")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" circumference / (arc count)")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L334",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:334"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("em",[t._v("false")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v("> & { "),r("code",[t._v("onComplete?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" ; "),r("code",[t._v("onProgress?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" }")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#animation"}},[t._v("animation")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#animations"}},[t._v("animations")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#backgroundcolor"}},[t._v("backgroundColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderalign"}},[t._v("#")]),t._v(" borderAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("em",[t._v("center")]),t._v(" | "),r("em",[t._v("inner")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Arc stroke alignment.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#borderalign"}},[t._v("borderAlign")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1624",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1624"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#bordercolor"}},[t._v("borderColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[t._v("#")]),t._v(" borderRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Sets the border radius for arcs")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#borderradius"}},[t._v("borderRadius")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1633",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1633"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#borderwidth"}},[t._v("borderWidth")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"circumference"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#circumference"}},[t._v("#")]),t._v(" circumference")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("circumference")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Sweep to allow arcs to cover.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 360")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#circumference"}},[t._v("circumference")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L242",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:242"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#hoverbackgroundcolor"}},[t._v("hoverBackgroundColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#hoverbordercolor"}},[t._v("hoverBorderColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#hoverborderwidth"}},[t._v("hoverBorderWidth")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoveroffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoveroffset"}},[t._v("#")]),t._v(" hoverOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#hoveroffset"}},[t._v("hoverOffset")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1637",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1637"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"offset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#offset"}},[t._v("#")]),t._v(" offset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("offset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Arc offset (in pixels).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#offset"}},[t._v("offset")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1628",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1628"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[t._v("#")]),t._v(" rotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rotation")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Starting angle to draw this dataset from.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#rotation"}},[t._v("rotation")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L248",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:248"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"transitions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("transitions")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[r("em",[t._v("TransitionsSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#transitions"}},[t._v("transitions")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"weight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("weight")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The relative thickness of the dataset. Providing a value for weight will cause the pie or doughnut dataset to be drawn with a thickness relative to the sum of all the dataset weight values.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 1")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#weight"}},[t._v("weight")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L254",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:254"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/96.f66957a0.js b/docs/latest/assets/js/96.f66957a0.js deleted file mode 100644 index dc2a74ac60..0000000000 --- a/docs/latest/assets/js/96.f66957a0.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[96],{423:function(t,e,r){"use strict";r.r(e);var o=r(7),a=Object(o.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-polarareacontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-polarareacontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: PolarAreaControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[r("em",[t._v("DoughnutControllerDatasetOptions")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("PolarAreaControllerDatasetOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"angle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#angle"}},[t._v("#")]),t._v(" angle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("angle")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Arc angle to cover. - for polar only")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" circumference / (arc count)")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L334",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:334"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("em",[t._v("false")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v("> & { "),r("code",[t._v("onComplete?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" ; "),r("code",[t._v("onProgress?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" }")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#animation"}},[t._v("animation")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#animations"}},[t._v("animations")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#backgroundcolor"}},[t._v("backgroundColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderalign"}},[t._v("#")]),t._v(" borderAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("em",[t._v("center")]),t._v(" | "),r("em",[t._v("inner")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Arc stroke alignment.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#borderalign"}},[t._v("borderAlign")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1624",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1624"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#bordercolor"}},[t._v("borderColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[t._v("#")]),t._v(" borderRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Sets the border radius for arcs")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#borderradius"}},[t._v("borderRadius")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1633",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1633"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#borderwidth"}},[t._v("borderWidth")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"circumference"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#circumference"}},[t._v("#")]),t._v(" circumference")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("circumference")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Sweep to allow arcs to cover.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 360")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#circumference"}},[t._v("circumference")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L242",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:242"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#hoverbackgroundcolor"}},[t._v("hoverBackgroundColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#hoverbordercolor"}},[t._v("hoverBorderColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#hoverborderwidth"}},[t._v("hoverBorderWidth")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoveroffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoveroffset"}},[t._v("#")]),t._v(" hoverOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#hoveroffset"}},[t._v("hoverOffset")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1637",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1637"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"offset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#offset"}},[t._v("#")]),t._v(" offset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("offset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Arc offset (in pixels).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#offset"}},[t._v("offset")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1628",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1628"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[t._v("#")]),t._v(" rotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rotation")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Starting angle to draw this dataset from.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#rotation"}},[t._v("rotation")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L248",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:248"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"transitions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("transitions")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[r("em",[t._v("TransitionsSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#transitions"}},[t._v("transitions")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"weight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("weight")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The relative thickness of the dataset. Providing a value for weight will cause the pie or doughnut dataset to be drawn with a thickness relative to the sum of all the dataset weight values.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 1")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#weight"}},[t._v("weight")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L254",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:254"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/97.5181339d.js b/docs/latest/assets/js/97.5181339d.js new file mode 100644 index 0000000000..83451bb596 --- /dev/null +++ b/docs/latest/assets/js/97.5181339d.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[97],{421:function(t,e,r){"use strict";r.r(e);var a=r(7),o=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-radarcontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-radarcontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: RadarControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[r("em",[t._v("ControllerDatasetOptions")])])],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableoptions"}},[r("em",[t._v("ScriptableOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/pointprefixedoptions.html"}},[r("em",[t._v("PointPrefixedOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#animationoptions"}},[r("em",[t._v("AnimationOptions")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">")],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("RadarControllerDatasetOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("em",[t._v("false")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("<"),r("em",[t._v("radar")]),t._v("> & { "),r("code",[t._v("onComplete?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" ; "),r("code",[t._v("onProgress?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" }")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animations")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.backgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercapstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercapstyle"}},[t._v("#")]),t._v(" borderCapStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line cap style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'butt'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderCapStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1656",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1656"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdash"}},[t._v("#")]),t._v(" borderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line dash. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" []")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderDash")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1661",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1661"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdashoffset"}},[t._v("#")]),t._v(" borderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line dash offset. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0.0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderDashOffset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1666",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1666"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderjoinstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderjoinstyle"}},[t._v("#")]),t._v(" borderJoinStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line join style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'miter'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderJoinStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1671",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1671"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"capbezierpoints"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#capbezierpoints"}},[t._v("#")]),t._v(" capBezierPoints")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("capBezierPoints")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("true to keep Bézier control inside the chart, false for no restriction.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.capBezierPoints")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1676",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1676"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"cubicinterpolationmode"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#cubicinterpolationmode"}},[t._v("#")]),t._v(" cubicInterpolationMode")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("cubicInterpolationMode")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("em",[t._v("default")]),t._v(" | "),r("em",[t._v("monotone")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Interpolation mode to apply.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'default'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.cubicInterpolationMode")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1681",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1681"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercapstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercapstyle"}},[t._v("#")]),t._v(" hoverBorderCapStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderCapStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1705",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1705"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdash"}},[t._v("#")]),t._v(" hoverBorderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderDash")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1706",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1706"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdashoffset"}},[t._v("#")]),t._v(" hoverBorderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderDashOffset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1707",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1707"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderjoinstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderjoinstyle"}},[t._v("#")]),t._v(" hoverBorderJoinStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderJoinStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1708",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1708"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbackgroundcolor"}},[t._v("#")]),t._v(" pointBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("The fill color for points.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1783",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1783"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbordercolor"}},[t._v("#")]),t._v(" pointBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("The border color for points.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1787",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1787"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointborderwidth"}},[t._v("#")]),t._v(" pointBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The width of the point border in pixels.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1791",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1791"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhitradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhitradius"}},[t._v("#")]),t._v(" pointHitRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHitRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The pixel size of the non-displayed point that reacts to mouse events.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointHitRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1795",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1795"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbackgroundcolor"}},[t._v("#")]),t._v(" pointHoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Point background color when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointHoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1814",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1814"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbordercolor"}},[t._v("#")]),t._v(" pointHoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Point border color when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointHoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1818",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1818"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverborderwidth"}},[t._v("#")]),t._v(" pointHoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Border width of point when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointHoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1822",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1822"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverradius"}},[t._v("#")]),t._v(" pointHoverRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The radius of the point when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointHoverRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1826",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1826"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointradius"}},[t._v("#")]),t._v(" pointRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The radius of the point shape. If set to 0, the point is not rendered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1799",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1799"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointrotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointrotation"}},[t._v("#")]),t._v(" pointRotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRotation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The rotation of the point in degrees.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointRotation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1803",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1803"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Style of the point.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1807",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1807"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"segment"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#segment"}},[t._v("#")]),t._v(" segment")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("segment")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<{ "),r("code",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v("> ; "),r("code",[t._v("borderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v("> ; "),r("code",[t._v("borderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" }, "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.segment")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1693",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1693"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"showline"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#showline"}},[t._v("#")]),t._v(" showLine")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("showLine")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("If false, the line is not drawn for this dataset.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L381",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:381"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"spangaps"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#spangaps"}},[t._v("#")]),t._v(" spanGaps")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("spanGaps")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("If true, lines will be drawn between points with no or null data. If false, points with NaN data will create a break in the line. Can also be a number specifying the maximum gap length to span. The unit of the value depends on the scale used.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L376",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:376"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stepped"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stepped"}},[t._v("#")]),t._v(" stepped")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stepped")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("true to show the line as a stepped line (tension will be ignored).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.stepped")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1691",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1691"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tension"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tension"}},[t._v("#")]),t._v(" tension")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tension")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Bézier curve tension (0 for no Bézier curves).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.tension")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1686",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1686"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"transitions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("transitions")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[r("em",[t._v("TransitionsSpec")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.transitions")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"xaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xaxisid"}},[t._v("#")]),t._v(" xAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("xAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the x axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L367",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:367"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"yaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yaxisid"}},[t._v("#")]),t._v(" yAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("yAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the y axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L371",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:371"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/97.b0116fe9.js b/docs/latest/assets/js/97.b0116fe9.js deleted file mode 100644 index 3c937c7c3a..0000000000 --- a/docs/latest/assets/js/97.b0116fe9.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[97],{424:function(t,e,r){"use strict";r.r(e);var a=r(7),o=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-radarcontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-radarcontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: RadarControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[r("em",[t._v("ControllerDatasetOptions")])])],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableoptions"}},[r("em",[t._v("ScriptableOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/pointprefixedoptions.html"}},[r("em",[t._v("PointPrefixedOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#animationoptions"}},[r("em",[t._v("AnimationOptions")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">")],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("RadarControllerDatasetOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("em",[t._v("false")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("<"),r("em",[t._v("radar")]),t._v("> & { "),r("code",[t._v("onComplete?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" ; "),r("code",[t._v("onProgress?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" }")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animations")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.backgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercapstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercapstyle"}},[t._v("#")]),t._v(" borderCapStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line cap style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'butt'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderCapStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1656",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1656"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdash"}},[t._v("#")]),t._v(" borderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line dash. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" []")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderDash")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1661",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1661"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdashoffset"}},[t._v("#")]),t._v(" borderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line dash offset. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0.0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderDashOffset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1666",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1666"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderjoinstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderjoinstyle"}},[t._v("#")]),t._v(" borderJoinStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line join style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'miter'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderJoinStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1671",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1671"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"capbezierpoints"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#capbezierpoints"}},[t._v("#")]),t._v(" capBezierPoints")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("capBezierPoints")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("true to keep Bézier control inside the chart, false for no restriction.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.capBezierPoints")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1676",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1676"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"cubicinterpolationmode"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#cubicinterpolationmode"}},[t._v("#")]),t._v(" cubicInterpolationMode")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("cubicInterpolationMode")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("em",[t._v("default")]),t._v(" | "),r("em",[t._v("monotone")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Interpolation mode to apply.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'default'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.cubicInterpolationMode")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1681",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1681"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercapstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercapstyle"}},[t._v("#")]),t._v(" hoverBorderCapStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderCapStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1705",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1705"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdash"}},[t._v("#")]),t._v(" hoverBorderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderDash")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1706",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1706"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdashoffset"}},[t._v("#")]),t._v(" hoverBorderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderDashOffset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1707",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1707"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderjoinstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderjoinstyle"}},[t._v("#")]),t._v(" hoverBorderJoinStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderJoinStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1708",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1708"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbackgroundcolor"}},[t._v("#")]),t._v(" pointBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("The fill color for points.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1783",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1783"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbordercolor"}},[t._v("#")]),t._v(" pointBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("The border color for points.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1787",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1787"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointborderwidth"}},[t._v("#")]),t._v(" pointBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The width of the point border in pixels.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1791",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1791"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhitradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhitradius"}},[t._v("#")]),t._v(" pointHitRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHitRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The pixel size of the non-displayed point that reacts to mouse events.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointHitRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1795",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1795"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbackgroundcolor"}},[t._v("#")]),t._v(" pointHoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Point background color when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointHoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1814",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1814"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbordercolor"}},[t._v("#")]),t._v(" pointHoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Point border color when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointHoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1818",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1818"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverborderwidth"}},[t._v("#")]),t._v(" pointHoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Border width of point when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointHoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1822",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1822"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverradius"}},[t._v("#")]),t._v(" pointHoverRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The radius of the point when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointHoverRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1826",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1826"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointradius"}},[t._v("#")]),t._v(" pointRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The radius of the point shape. If set to 0, the point is not rendered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1799",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1799"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointrotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointrotation"}},[t._v("#")]),t._v(" pointRotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRotation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The rotation of the point in degrees.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointRotation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1803",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1803"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Style of the point.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1807",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1807"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"segment"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#segment"}},[t._v("#")]),t._v(" segment")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("segment")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<{ "),r("code",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v("> ; "),r("code",[t._v("borderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v("> ; "),r("code",[t._v("borderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" }, "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.segment")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1693",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1693"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"showline"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#showline"}},[t._v("#")]),t._v(" showLine")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("showLine")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("If false, the line is not drawn for this dataset.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L381",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:381"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"spangaps"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#spangaps"}},[t._v("#")]),t._v(" spanGaps")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("spanGaps")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("If true, lines will be drawn between points with no or null data. If false, points with NaN data will create a break in the line. Can also be a number specifying the maximum gap length to span. The unit of the value depends on the scale used.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L376",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:376"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stepped"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stepped"}},[t._v("#")]),t._v(" stepped")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stepped")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("true to show the line as a stepped line (tension will be ignored).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.stepped")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1691",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1691"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tension"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tension"}},[t._v("#")]),t._v(" tension")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tension")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Bézier curve tension (0 for no Bézier curves).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.tension")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1686",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1686"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"transitions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("transitions")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[r("em",[t._v("TransitionsSpec")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.transitions")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"xaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xaxisid"}},[t._v("#")]),t._v(" xAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("xAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the x axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L367",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:367"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"yaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yaxisid"}},[t._v("#")]),t._v(" yAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("yAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the y axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L371",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:371"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/98.0d8d1de7.js b/docs/latest/assets/js/98.0d8d1de7.js deleted file mode 100644 index 338be00395..0000000000 --- a/docs/latest/assets/js/98.0d8d1de7.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[98],{425:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-radiallinearscale-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-radiallinearscale-o"}},[t._v("#")]),t._v(" Interface: RadialLinearScale")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#radiallinearscaleoptions"}},[a("em",[t._v("RadialLinearScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#radiallinearscaleoptions"}},[a("em",[t._v("RadialLinearScaleOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("RadialLinearScale")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#active"}},[t._v("active")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"axis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("axis")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#axis"}},[t._v("axis")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1160",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1160"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Bottom edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#bottom"}},[t._v("bottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L41",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:41"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#chart"}},[t._v("chart")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1150",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1150"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ctx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ctx"}},[t._v("#")]),t._v(" ctx")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("ctx")]),t._v(": CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#ctx"}},[t._v("ctx")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1149",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1149"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("fullSize")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("if true, and the item is horizontal, then push vertical boxes down")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#fullsize"}},[t._v("fullSize")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"height"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("height")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Height of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#height"}},[t._v("height")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"id"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("id")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#id"}},[t._v("id")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1147",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1147"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labelrotation"}},[t._v("#")]),t._v(" labelRotation")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("labelRotation")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#labelrotation"}},[t._v("labelRotation")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1161",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1161"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"left"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("left")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Left edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#left"}},[t._v("left")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:29"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"max"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#max"}},[t._v("#")]),t._v(" max")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("max")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#max"}},[t._v("max")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1163",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1163"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxheight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxheight"}},[t._v("#")]),t._v(" maxHeight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxHeight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#maxheight"}},[t._v("maxHeight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1153",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1153"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxwidth"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxwidth"}},[t._v("#")]),t._v(" maxWidth")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxWidth")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#maxwidth"}},[t._v("maxWidth")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1152",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1152"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"min"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#min"}},[t._v("#")]),t._v(" min")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("min")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#min"}},[t._v("min")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1162",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1162"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#options"}},[t._v("options")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingbottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingbottom"}},[t._v("#")]),t._v(" paddingBottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingBottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingbottom"}},[t._v("paddingBottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1156",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1156"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingleft"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingleft"}},[t._v("#")]),t._v(" paddingLeft")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingLeft")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingleft"}},[t._v("paddingLeft")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1157",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1157"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingright"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingright"}},[t._v("#")]),t._v(" paddingRight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingRight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingright"}},[t._v("paddingRight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1158",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1158"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingtop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingtop"}},[t._v("#")]),t._v(" paddingTop")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingTop")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingtop"}},[t._v("paddingTop")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1155",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1155"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])])],1),t._v(" "),a("p",[t._v("The position of the item in the chart layout. Possible values are")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#position"}},[t._v("position")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"right"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("right")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Right edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#right"}},[t._v("right")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:37"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[t._v("#")]),t._v(" ticks")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#ticks"}},[t._v("ticks")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1164",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1164"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"top"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("top")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Top edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#top"}},[t._v("top")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:33"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("type")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#type"}},[t._v("type")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1148",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1148"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the item. Higher weights are further away from the chart area")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#weight"}},[t._v("weight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"width"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("width")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Width of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#width"}},[t._v("width")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#x"}},[t._v("x")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#y"}},[t._v("y")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1244",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1244"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftercalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftercalculatelabelrotation"}},[t._v("#")]),t._v(" afterCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1250",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1250"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1241",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1241"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfit"}},[t._v("#")]),t._v(" afterFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1253",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1253"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftersetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftersetdimensions"}},[t._v("#")]),t._v(" afterSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1238",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1238"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterticktolabelconversion"}},[t._v("#")]),t._v(" afterTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1247",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1247"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1235",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1235"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1242",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1242"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforecalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforecalculatelabelrotation"}},[t._v("#")]),t._v(" beforeCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1248",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1248"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1239",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1239"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefit"}},[t._v("#")]),t._v(" beforeFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1251",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1251"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforelayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeLayout")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Called before the layout process starts")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L46",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:46"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforesetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforesetdimensions"}},[t._v("#")]),t._v(" beforeSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1236",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1236"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeticktolabelconversion"}},[t._v("#")]),t._v(" beforeTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1245",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1245"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1233",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1233"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildticks"}},[t._v("#")]),t._v(" buildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1243",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1243"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatelabelrotation"}},[t._v("#")]),t._v(" calculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1249",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1249"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1234",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1234"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"determinedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#determinedatalimits"}},[t._v("#")]),t._v(" determineDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("determineDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1240",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1240"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Draws the element")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L50",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:50"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawgrid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawgrid"}},[t._v("#")]),t._v(" drawGrid")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawGrid")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1169",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1169"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawlabels"}},[t._v("#")]),t._v(" drawLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawLabels")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1168",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1168"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawtitle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawtitle"}},[t._v("#")]),t._v(" drawTitle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawTitle")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1167",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1167"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fit"}},[t._v("#")]),t._v(" fit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("fit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1252",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1252"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"generateticklabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#generateticklabels"}},[t._v("#")]),t._v(" generateTickLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("generateTickLabels")]),t._v("("),a("code",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ticks")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1246",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1246"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasepixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasepixel"}},[t._v("#")]),t._v(" getBasePixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBasePixel")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the pixel for the minimum chart value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1225",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1225"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbaseposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbaseposition"}},[t._v("#")]),t._v(" getBasePosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBasePosition")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("angle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3172",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3172"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasevalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasevalue"}},[t._v("#")]),t._v(" getBaseValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBaseValue")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1219",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1219"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdecimalforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdecimalforpixel"}},[t._v("#")]),t._v(" getDecimalForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDecimalForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1175",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1175"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdistancefromcenterforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdistancefromcenterforvalue"}},[t._v("#")]),t._v(" getDistanceFromCenterForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDistanceFromCenterForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3167",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3167"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getindexangle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getindexangle"}},[t._v("#")]),t._v(" getIndexAngle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getIndexAngle")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3166",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3166"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelforvalue"}},[t._v("#")]),t._v(" getLabelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Used to get the label to display in the tooltip for the given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1195",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1195"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabels"}},[t._v("#")]),t._v(" getLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabels")]),t._v("(): "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1232",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1232"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlinewidthforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlinewidthforvalue"}},[t._v("#")]),t._v(" getLineWidthForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLineWidthForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the grid line width at given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1200",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1200"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmatchingvisiblemetas"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmatchingvisiblemetas"}},[t._v("#")]),t._v(" getMatchingVisibleMetas")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMatchingVisibleMetas")]),t._v("("),a("code",[t._v("type?")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1165",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1165"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("canStack")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1230",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1230"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpadding"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpadding"}},[t._v("#")]),t._v(" getPadding")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getPadding")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Returns an object with padding on the edges")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L54",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:54"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfordecimal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfordecimal"}},[t._v("#")]),t._v(" getPixelForDecimal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForDecimal")]),t._v("("),a("code",[t._v("decimal")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Utility for getting the pixel location of a percentage of scale\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("decimal")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1182",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1182"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfortick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfortick"}},[t._v("#")]),t._v(" getPixelForTick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForTick")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the tick at the given index\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1189",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1189"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelforvalue"}},[t._v("#")]),t._v(" getPixelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the given data point. Value can either be an index or a numerical value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1209",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1209"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpointlabelposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpointlabelposition"}},[t._v("#")]),t._v(" getPointLabelPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPointLabelPosition")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3171",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3171"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpointposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpointposition"}},[t._v("#")]),t._v(" getPointPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPointPosition")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("distanceFromCenter")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("distanceFromCenter")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("angle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3169",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3169"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpointpositionforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpointpositionforvalue"}},[t._v("#")]),t._v(" getPointPositionForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPointPositionForValue")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("angle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3170",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3170"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": "),a("em",[t._v("never")]),t._v("[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getticks"}},[t._v("#")]),t._v(" getTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1231",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1231"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getuserbounds"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getuserbounds"}},[t._v("#")]),t._v(" getUserBounds")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getUserBounds")]),t._v("(): "),a("em",[t._v("object")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("maxDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("minDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1229",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1229"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getvaluefordistancefromcenter"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getvaluefordistancefromcenter"}},[t._v("#")]),t._v(" getValueForDistanceFromCenter")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getValueForDistanceFromCenter")]),t._v("("),a("code",[t._v("distance")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-26"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-26"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("distance")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3168",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3168"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getvalueforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getvalueforpixel"}},[t._v("#")]),t._v(" getValueForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getValueForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Used to get the data value from a given pixel. This is the inverse of getPixelForValue\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-27"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-27"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1217",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1217"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"init"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#init"}},[t._v("#")]),t._v(" init")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("init")]),t._v("("),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-28"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-28"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1227",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1227"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isfullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isfullsize"}},[t._v("#")]),t._v(" isFullSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isFullSize")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1255",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1255"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ishorizontal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ishorizontal"}},[t._v("#")]),t._v(" isHorizontal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isHorizontal")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("returns true if the layout item is horizontal (ie. top or bottom)")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("raw")]),t._v(": "),a("em",[t._v("unknown")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("unknown")])]),t._v(" "),a("h4",{attrs:{id:"parameters-29"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-29"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("raw")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("unknown")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1228",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1228"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setcenterpoint"}},[t._v("#")]),t._v(" setCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setCenterPoint")]),t._v("("),a("code",[t._v("leftMovement")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("rightMovement")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("topMovement")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("bottomMovement")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-30"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-30"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("leftMovement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("rightMovement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("topMovement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("bottomMovement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3165",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3165"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setdimensions"}},[t._v("#")]),t._v(" setDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1237",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1237"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-31"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-31"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("margins?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Takes two parameters: width and height.")]),t._v(" "),a("h4",{attrs:{id:"parameters-32"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-32"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("margins?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:64"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/98.c10d3dd8.js b/docs/latest/assets/js/98.c10d3dd8.js new file mode 100644 index 0000000000..323de6a419 --- /dev/null +++ b/docs/latest/assets/js/98.c10d3dd8.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[98],{422:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-radiallinearscale-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-radiallinearscale-o"}},[t._v("#")]),t._v(" Interface: RadialLinearScale")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#radiallinearscaleoptions"}},[a("em",[t._v("RadialLinearScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#radiallinearscaleoptions"}},[a("em",[t._v("RadialLinearScaleOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("RadialLinearScale")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#active"}},[t._v("active")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"axis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("axis")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#axis"}},[t._v("axis")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1160",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1160"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Bottom edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#bottom"}},[t._v("bottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L41",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:41"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#chart"}},[t._v("chart")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1150",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1150"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ctx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ctx"}},[t._v("#")]),t._v(" ctx")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("ctx")]),t._v(": CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#ctx"}},[t._v("ctx")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1149",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1149"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("fullSize")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("if true, and the item is horizontal, then push vertical boxes down")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#fullsize"}},[t._v("fullSize")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"height"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("height")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Height of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#height"}},[t._v("height")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"id"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("id")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#id"}},[t._v("id")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1147",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1147"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labelrotation"}},[t._v("#")]),t._v(" labelRotation")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("labelRotation")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#labelrotation"}},[t._v("labelRotation")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1161",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1161"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"left"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("left")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Left edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#left"}},[t._v("left")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:29"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"max"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#max"}},[t._v("#")]),t._v(" max")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("max")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#max"}},[t._v("max")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1163",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1163"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxheight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxheight"}},[t._v("#")]),t._v(" maxHeight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxHeight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#maxheight"}},[t._v("maxHeight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1153",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1153"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxwidth"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxwidth"}},[t._v("#")]),t._v(" maxWidth")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxWidth")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#maxwidth"}},[t._v("maxWidth")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1152",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1152"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"min"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#min"}},[t._v("#")]),t._v(" min")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("min")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#min"}},[t._v("min")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1162",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1162"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#options"}},[t._v("options")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingbottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingbottom"}},[t._v("#")]),t._v(" paddingBottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingBottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingbottom"}},[t._v("paddingBottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1156",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1156"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingleft"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingleft"}},[t._v("#")]),t._v(" paddingLeft")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingLeft")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingleft"}},[t._v("paddingLeft")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1157",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1157"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingright"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingright"}},[t._v("#")]),t._v(" paddingRight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingRight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingright"}},[t._v("paddingRight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1158",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1158"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingtop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingtop"}},[t._v("#")]),t._v(" paddingTop")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingTop")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingtop"}},[t._v("paddingTop")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1155",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1155"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])])],1),t._v(" "),a("p",[t._v("The position of the item in the chart layout. Possible values are")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#position"}},[t._v("position")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"right"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("right")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Right edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#right"}},[t._v("right")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:37"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[t._v("#")]),t._v(" ticks")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#ticks"}},[t._v("ticks")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1164",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1164"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"top"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("top")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Top edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#top"}},[t._v("top")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:33"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("type")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#type"}},[t._v("type")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1148",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1148"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the item. Higher weights are further away from the chart area")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#weight"}},[t._v("weight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"width"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("width")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Width of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#width"}},[t._v("width")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#x"}},[t._v("x")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#y"}},[t._v("y")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1244",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1244"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftercalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftercalculatelabelrotation"}},[t._v("#")]),t._v(" afterCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1250",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1250"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1241",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1241"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfit"}},[t._v("#")]),t._v(" afterFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1253",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1253"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftersetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftersetdimensions"}},[t._v("#")]),t._v(" afterSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1238",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1238"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterticktolabelconversion"}},[t._v("#")]),t._v(" afterTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1247",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1247"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1235",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1235"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1242",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1242"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforecalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforecalculatelabelrotation"}},[t._v("#")]),t._v(" beforeCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1248",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1248"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1239",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1239"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefit"}},[t._v("#")]),t._v(" beforeFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1251",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1251"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforelayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeLayout")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Called before the layout process starts")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L46",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:46"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforesetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforesetdimensions"}},[t._v("#")]),t._v(" beforeSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1236",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1236"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeticktolabelconversion"}},[t._v("#")]),t._v(" beforeTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1245",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1245"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1233",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1233"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildticks"}},[t._v("#")]),t._v(" buildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1243",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1243"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatelabelrotation"}},[t._v("#")]),t._v(" calculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1249",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1249"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1234",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1234"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"determinedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#determinedatalimits"}},[t._v("#")]),t._v(" determineDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("determineDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1240",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1240"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Draws the element")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L50",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:50"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawgrid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawgrid"}},[t._v("#")]),t._v(" drawGrid")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawGrid")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1169",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1169"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawlabels"}},[t._v("#")]),t._v(" drawLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawLabels")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1168",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1168"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawtitle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawtitle"}},[t._v("#")]),t._v(" drawTitle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawTitle")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1167",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1167"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fit"}},[t._v("#")]),t._v(" fit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("fit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1252",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1252"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"generateticklabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#generateticklabels"}},[t._v("#")]),t._v(" generateTickLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("generateTickLabels")]),t._v("("),a("code",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ticks")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1246",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1246"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasepixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasepixel"}},[t._v("#")]),t._v(" getBasePixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBasePixel")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the pixel for the minimum chart value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1225",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1225"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbaseposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbaseposition"}},[t._v("#")]),t._v(" getBasePosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBasePosition")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("angle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3172",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3172"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasevalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasevalue"}},[t._v("#")]),t._v(" getBaseValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBaseValue")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1219",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1219"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdecimalforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdecimalforpixel"}},[t._v("#")]),t._v(" getDecimalForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDecimalForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1175",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1175"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdistancefromcenterforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdistancefromcenterforvalue"}},[t._v("#")]),t._v(" getDistanceFromCenterForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDistanceFromCenterForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3167",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3167"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getindexangle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getindexangle"}},[t._v("#")]),t._v(" getIndexAngle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getIndexAngle")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3166",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3166"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelforvalue"}},[t._v("#")]),t._v(" getLabelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Used to get the label to display in the tooltip for the given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1195",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1195"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabels"}},[t._v("#")]),t._v(" getLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabels")]),t._v("(): "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1232",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1232"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlinewidthforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlinewidthforvalue"}},[t._v("#")]),t._v(" getLineWidthForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLineWidthForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the grid line width at given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1200",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1200"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmatchingvisiblemetas"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmatchingvisiblemetas"}},[t._v("#")]),t._v(" getMatchingVisibleMetas")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMatchingVisibleMetas")]),t._v("("),a("code",[t._v("type?")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1165",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1165"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("canStack")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1230",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1230"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpadding"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpadding"}},[t._v("#")]),t._v(" getPadding")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getPadding")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Returns an object with padding on the edges")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L54",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:54"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfordecimal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfordecimal"}},[t._v("#")]),t._v(" getPixelForDecimal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForDecimal")]),t._v("("),a("code",[t._v("decimal")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Utility for getting the pixel location of a percentage of scale\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("decimal")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1182",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1182"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfortick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfortick"}},[t._v("#")]),t._v(" getPixelForTick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForTick")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the tick at the given index\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1189",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1189"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelforvalue"}},[t._v("#")]),t._v(" getPixelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the given data point. Value can either be an index or a numerical value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1209",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1209"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpointlabelposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpointlabelposition"}},[t._v("#")]),t._v(" getPointLabelPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPointLabelPosition")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3171",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3171"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpointposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpointposition"}},[t._v("#")]),t._v(" getPointPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPointPosition")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("distanceFromCenter")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("distanceFromCenter")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("angle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3169",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3169"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpointpositionforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpointpositionforvalue"}},[t._v("#")]),t._v(" getPointPositionForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPointPositionForValue")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("angle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3170",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3170"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": "),a("em",[t._v("never")]),t._v("[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getticks"}},[t._v("#")]),t._v(" getTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1231",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1231"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getuserbounds"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getuserbounds"}},[t._v("#")]),t._v(" getUserBounds")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getUserBounds")]),t._v("(): "),a("em",[t._v("object")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("maxDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("minDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1229",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1229"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getvaluefordistancefromcenter"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getvaluefordistancefromcenter"}},[t._v("#")]),t._v(" getValueForDistanceFromCenter")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getValueForDistanceFromCenter")]),t._v("("),a("code",[t._v("distance")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-26"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-26"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("distance")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3168",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3168"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getvalueforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getvalueforpixel"}},[t._v("#")]),t._v(" getValueForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getValueForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Used to get the data value from a given pixel. This is the inverse of getPixelForValue\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-27"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-27"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1217",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1217"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"init"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#init"}},[t._v("#")]),t._v(" init")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("init")]),t._v("("),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-28"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-28"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1227",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1227"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isfullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isfullsize"}},[t._v("#")]),t._v(" isFullSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isFullSize")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1255",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1255"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ishorizontal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ishorizontal"}},[t._v("#")]),t._v(" isHorizontal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isHorizontal")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("returns true if the layout item is horizontal (ie. top or bottom)")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("raw")]),t._v(": "),a("em",[t._v("unknown")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("unknown")])]),t._v(" "),a("h4",{attrs:{id:"parameters-29"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-29"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("raw")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("unknown")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1228",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1228"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setcenterpoint"}},[t._v("#")]),t._v(" setCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setCenterPoint")]),t._v("("),a("code",[t._v("leftMovement")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("rightMovement")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("topMovement")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("bottomMovement")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-30"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-30"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("leftMovement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("rightMovement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("topMovement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("bottomMovement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3165",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3165"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setdimensions"}},[t._v("#")]),t._v(" setDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1237",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1237"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-31"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-31"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("margins?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Takes two parameters: width and height.")]),t._v(" "),a("h4",{attrs:{id:"parameters-32"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-32"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("margins?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:64"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/99.f6a17e01.js b/docs/latest/assets/js/99.43c1ef40.js similarity index 84% rename from docs/latest/assets/js/99.f6a17e01.js rename to docs/latest/assets/js/99.43c1ef40.js index d27512b759..8eb3602983 100644 --- a/docs/latest/assets/js/99.f6a17e01.js +++ b/docs/latest/assets/js/99.43c1ef40.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[99],{426:function(t,e,a){"use strict";a.r(e);var r=a(7),i=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-radialscaletyperegistry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-radialscaletyperegistry"}},[t._v("#")]),t._v(" Interface: RadialScaleTypeRegistry")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("RadialScaleTypeRegistry")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/scaletyperegistry.html"}},[a("em",[t._v("ScaleTypeRegistry")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"radiallinear"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radiallinear"}},[t._v("#")]),t._v(" radialLinear")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("radialLinear")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#radiallinearscaleoptions"}},[a("em",[t._v("RadialLinearScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3198",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3198"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[99],{423:function(t,e,a){"use strict";a.r(e);var r=a(7),i=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-radialscaletyperegistry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-radialscaletyperegistry"}},[t._v("#")]),t._v(" Interface: RadialScaleTypeRegistry")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("RadialScaleTypeRegistry")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/scaletyperegistry.html"}},[a("em",[t._v("ScaleTypeRegistry")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"radiallinear"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radiallinear"}},[t._v("#")]),t._v(" radialLinear")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("radialLinear")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#radiallinearscaleoptions"}},[a("em",[t._v("RadialLinearScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3198",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3198"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/docs/latest/assets/js/app.868dcc37.js b/docs/latest/assets/js/app.868dcc37.js new file mode 100644 index 0000000000..73fc504f9e --- /dev/null +++ b/docs/latest/assets/js/app.868dcc37.js @@ -0,0 +1,35 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[]]);!function(e){function n(n){for(var a,o,s=n[0],l=n[1],d=n[2],u=0,h=[];uArray.prototype.slice.call(e));let r=!1,o=[];return function(...t){o=i(t),r||(r=!0,a.call(window,()=>{r=!1,e.apply(n,o)}))}}function r(e,n){let t;return function(){return n?(clearTimeout(t),t=setTimeout(e,n)):e(),n}}const o=e=>"start"===e?"left":"end"===e?"right":"center",s=(e,n,t)=>"start"===e?n:"end"===e?t:(n+t)/2,l=(e,n,t)=>"right"===e?t:"center"===e?(n+t)/2:n;function d(){}const c=function(){let e=0;return function(){return e++}}();function u(e){return null==e}function h(e){if(Array.isArray&&Array.isArray(e))return!0;const n=Object.prototype.toString.call(e);return"[object"===n.substr(0,7)&&"Array]"===n.substr(-6)}function p(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}const m=e=>("number"==typeof e||e instanceof Number)&&isFinite(+e);function f(e,n){return m(e)?e:n}function g(e,n){return void 0===e?n:e}const b=(e,n)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:e/n,v=(e,n)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*n:+e;function y(e,n,t){if(e&&"function"==typeof e.call)return e.apply(t,n)}function x(e,n,t,a){let i,r,o;if(h(e))if(r=e.length,a)for(i=r-1;i>=0;i--)n.call(t,e[i],i);else for(i=0;it;)e=e[n.substr(t,a-t)],t=a+1,a=O(n,t);return e}function R(e){return e.charAt(0).toUpperCase()+e.slice(1)}const I=e=>void 0!==e,_=e=>"function"==typeof e,E=Math.PI,L=2*E,M=L+E,j=Number.POSITIVE_INFINITY,N=E/180,B=E/2,U=E/4,z=2*E/3,F=Math.log10,H=Math.sign;function V(e){const n=Math.pow(10,Math.floor(F(e))),t=e/n;return(t<=1?1:t<=2?2:t<=5?5:10)*n}function W(e){const n=[],t=Math.sqrt(e);let a;for(a=1;ae-n).pop(),n}function Y(e){return!isNaN(parseFloat(e))&&isFinite(e)}function $(e,n,t){return Math.abs(e-n)=e}function q(e,n,t){let a,i,r;for(a=0,i=e.length;as&&l0===e||1===e,oe=(e,n,t)=>-Math.pow(2,10*(e-=1))*Math.sin((e-n)*L/t),se=(e,n,t)=>Math.pow(2,-10*e)*Math.sin((e-n)*L/t)+1,le={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*B),easeOutSine:e=>Math.sin(e*B),easeInOutSine:e=>-.5*(Math.cos(E*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>re(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>re(e)?e:oe(e,.075,.3),easeOutElastic:e=>re(e)?e:se(e,.075,.3),easeInOutElastic(e){const n=.1125;return re(e)?e:e<.5?.5*oe(2*e,n,.45):.5+.5*se(2*e-1,n,.45)},easeInBack(e){const n=1.70158;return e*e*((n+1)*e-n)},easeOutBack(e){const n=1.70158;return(e-=1)*e*((n+1)*e+n)+1},easeInOutBack(e){let n=1.70158;return(e/=.5)<1?e*e*((1+(n*=1.525))*e-n)*.5:.5*((e-=2)*e*((1+(n*=1.525))*e+n)+2)},easeInBounce:e=>1-le.easeOutBounce(1-e),easeOutBounce(e){const n=7.5625,t=2.75;return e<1/t?n*e*e:e<2/t?n*(e-=1.5/t)*e+.75:e<2.5/t?n*(e-=2.25/t)*e+.9375:n*(e-=2.625/t)*e+.984375},easeInOutBounce:e=>e<.5?.5*le.easeInBounce(2*e):.5*le.easeOutBounce(2*e-1)+.5},de={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ce="0123456789ABCDEF",ue=e=>ce[15&e],he=e=>ce[(240&e)>>4]+ce[15&e],pe=e=>(240&e)>>4==(15&e);function me(e){var n=function(e){return pe(e.r)&&pe(e.g)&&pe(e.b)&&pe(e.a)}(e)?ue:he;return e?"#"+n(e.r)+n(e.g)+n(e.b)+(e.a<255?n(e.a):""):e}function fe(e){return e+.5|0}const ge=(e,n,t)=>Math.max(Math.min(e,t),n);function be(e){return ge(fe(2.55*e),0,255)}function ve(e){return ge(fe(255*e),0,255)}function ye(e){return ge(fe(e/2.55)/100,0,1)}function xe(e){return ge(fe(100*e),0,100)}const Ce=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const we=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function De(e,n,t){const a=n*Math.min(t,1-t),i=(n,i=(n+e/30)%12)=>t-a*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function Te(e,n,t){const a=(a,i=(a+e/60)%6)=>t-t*n*Math.max(Math.min(i,4-i,1),0);return[a(5),a(3),a(1)]}function Pe(e,n,t){const a=De(e,1,.5);let i;for(n+t>1&&(i=1/(n+t),n*=i,t*=i),i=0;i<3;i++)a[i]*=1-n-t,a[i]+=n;return a}function ke(e){const n=e.r/255,t=e.g/255,a=e.b/255,i=Math.max(n,t,a),r=Math.min(n,t,a),o=(i+r)/2;let s,l,d;return i!==r&&(d=i-r,l=o>.5?d/(2-i-r):d/(i+r),s=i===n?(t-a)/d+(t>16&255,r>>8&255,255&r]}return e}(),Ee.transparent=[0,0,0,0]);const n=Ee[e.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:4===n.length?n[3]:255}}function Me(e,n,t){if(e){let a=ke(e);a[n]=Math.max(0,Math.min(a[n]+a[n]*t,0===n?360:1)),a=Oe(a),e.r=a[0],e.g=a[1],e.b=a[2]}}function je(e,n){return e?Object.assign(n||{},e):e}function Ne(e){var n={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(n={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(n.a=ve(e[3]))):(n=je(e,{r:0,g:0,b:0,a:1})).a=ve(n.a),n}function Be(e){return"r"===e.charAt(0)?function(e){const n=Ce.exec(e);let t,a,i,r=255;if(n){if(n[7]!==t){const e=+n[7];r=255&(n[8]?be(e):255*e)}return t=+n[1],a=+n[3],i=+n[5],t=255&(n[2]?be(t):t),a=255&(n[4]?be(a):a),i=255&(n[6]?be(i):i),{r:t,g:a,b:i,a:r}}}(e):Re(e)}class Ue{constructor(e){if(e instanceof Ue)return e;const n=typeof e;let t;var a,i,r;"object"===n?t=Ne(e):"string"===n&&(r=(a=e).length,"#"===a[0]&&(4===r||5===r?i={r:255&17*de[a[1]],g:255&17*de[a[2]],b:255&17*de[a[3]],a:5===r?17*de[a[4]]:255}:7!==r&&9!==r||(i={r:de[a[1]]<<4|de[a[2]],g:de[a[3]]<<4|de[a[4]],b:de[a[5]]<<4|de[a[6]],a:9===r?de[a[7]]<<4|de[a[8]]:255})),t=i||Le(e)||Be(e)),this._rgb=t,this._valid=!!t}get valid(){return this._valid}get rgb(){var e=je(this._rgb);return e&&(e.a=ye(e.a)),e}set rgb(e){this._rgb=Ne(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${ye(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):this._rgb;var e}hexString(){return this._valid?me(this._rgb):this._rgb}hslString(){return this._valid?function(e){if(!e)return;const n=ke(e),t=n[0],a=xe(n[1]),i=xe(n[2]);return e.a<255?`hsla(${t}, ${a}%, ${i}%, ${ye(e.a)})`:`hsl(${t}, ${a}%, ${i}%)`}(this._rgb):this._rgb}mix(e,n){const t=this;if(e){const a=t.rgb,i=e.rgb;let r;const o=n===r?.5:n,s=2*o-1,l=a.a-i.a,d=((s*l==-1?s:(s+l)/(1+s*l))+1)/2;r=1-d,a.r=255&d*a.r+r*i.r+.5,a.g=255&d*a.g+r*i.g+.5,a.b=255&d*a.b+r*i.b+.5,a.a=o*a.a+(1-o)*i.a,t.rgb=a}return t}clone(){return new Ue(this.rgb)}alpha(e){return this._rgb.a=ve(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,n=fe(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=n,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Me(this._rgb,2,e),this}darken(e){return Me(this._rgb,2,-e),this}saturate(e){return Me(this._rgb,1,e),this}desaturate(e){return Me(this._rgb,1,-e),this}rotate(e){return function(e,n){var t=ke(e);t[0]=Ae(t[0]+n),t=Oe(t),e.r=t[0],e.g=t[1],e.b=t[2]}(this._rgb,e),this}}function ze(e){return new Ue(e)}const Fe=e=>e instanceof CanvasGradient||e instanceof CanvasPattern;function He(e){return Fe(e)?e:ze(e)}function Ve(e){return Fe(e)?e:ze(e).saturate(.5).darken(.1).hexString()}const We=Object.create(null),Ye=Object.create(null);function $e(e,n){if(!n)return e;const t=n.split(".");for(let n=0,a=t.length;ne.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,n)=>Ve(n.backgroundColor),this.hoverBorderColor=(e,n)=>Ve(n.borderColor),this.hoverColor=(e,n)=>Ve(n.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.describe(e)}set(e,n){return Ge(this,e,n)}get(e){return $e(this,e)}describe(e,n){return Ge(Ye,e,n)}override(e,n){return Ge(We,e,n)}route(e,n,t,a){const i=$e(this,e),r=$e(this,t),o="_"+n;Object.defineProperties(i,{[o]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const e=this[o],n=r[a];return p(e)?Object.assign({},n,e):g(e,n)},set(e){this[o]=e}}})}}({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Xe(e,n,t,a,i){let r=n[i];return r||(r=n[i]=e.measureText(i).width,t.push(i)),r>a&&(a=r),a}function Je(e,n,t,a){let i=(a=a||{}).data=a.data||{},r=a.garbageCollect=a.garbageCollect||[];a.font!==n&&(i=a.data={},r=a.garbageCollect=[],a.font=n),e.save(),e.font=n;let o=0;const s=t.length;let l,d,c,u,p;for(l=0;lt.length){for(l=0;l0&&e.stroke()}}function en(e,n,t){return t=t||.5,e&&e.x>n.left-t&&e.xn.top-t&&e.y0&&""!==r.strokeColor;let l,d;for(e.save(),r.translation&&e.translate(r.translation[0],r.translation[1]),u(r.rotation)||e.rotate(r.rotation),e.font=i.string,r.color&&(e.fillStyle=r.color),r.textAlign&&(e.textAlign=r.textAlign),r.textBaseline&&(e.textBaseline=r.textBaseline),l=0;lg(e[t],e[n[t]]):n=>e[n]:()=>e;for(const e of i)t[e]=+r(e)||0;return t}function hn(e){return un(e,{top:"y",right:"x",bottom:"y",left:"x"})}function pn(e){return un(e,["topLeft","topRight","bottomLeft","bottomRight"])}function mn(e){const n=hn(e);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function fn(e,n){e=e||{},n=n||qe.font;let t=g(e.size,n.size);"string"==typeof t&&(t=parseInt(t,10));let a=g(e.style,n.style);a&&!(""+a).match(dn)&&(console.warn('Invalid font style specified: "'+a+'"'),a="");const i={family:g(e.family,n.family),lineHeight:cn(g(e.lineHeight,n.lineHeight),t),size:t,style:a,weight:g(e.weight,n.weight),string:""};return i.string=function(e){return!e||u(e.size)||u(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(i),i}function gn(e,n,t,a){let i,r,o,s=!0;for(i=0,r=e.length;ie[t]1;)a=r+i>>1,t(a)?r=a:i=a;return{lo:r,hi:i}}const yn=(e,n,t)=>vn(e,t,a=>e[a][n]vn(e,t,a=>e[a][n]>=t);function Cn(e,n,t){let a=0,i=e.length;for(;aa&&e[i-1]>t;)i--;return a>0||i{const t="_onData"+R(n),a=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...n){const i=a.apply(this,n);return e._chartjs.listeners.forEach(e=>{"function"==typeof e[t]&&e[t](...n)}),i}})}))}function Tn(e,n){const t=e._chartjs;if(!t)return;const a=t.listeners,i=a.indexOf(n);-1!==i&&a.splice(i,1),a.length>0||(wn.forEach(n=>{delete e[n]}),delete e._chartjs)}function Pn(e){const n=new Set;let t,a;for(t=0,a=e.length;t{i.push(e)}),i}function kn(e,n=[""],t=e,a,i=(()=>e[0])){I(a)||(a=Nn("_fallback",e));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:t,_fallback:a,_getTarget:i,override:i=>kn([i,...e],n,t,a)};return new Proxy(r,{deleteProperty:(n,t)=>(delete n[t],delete n._keys,delete e[0][t],!0),get:(t,a)=>In(t,a,()=>function(e,n,t,a){let i;for(const r of n)if(i=Nn(An(r,e),t),I(i))return Rn(e,i)?Mn(t,a,e,i):i}(a,n,e,t)),getOwnPropertyDescriptor:(e,n)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],n),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,n)=>Bn(e).includes(n),ownKeys:e=>Bn(e),set:(e,n,t)=>((e._storage||(e._storage=i()))[n]=t,delete e[n],delete e._keys,!0)})}function Sn(e,n,t,a){const i={_cacheable:!1,_proxy:e,_context:n,_subProxy:t,_stack:new Set,_descriptors:On(e,a),setContext:n=>Sn(e,n,t,a),override:i=>Sn(e.override(i),n,t,a)};return new Proxy(i,{deleteProperty:(n,t)=>(delete n[t],delete e[t],!0),get:(e,n,t)=>In(e,n,()=>function(e,n,t){const{_proxy:a,_context:i,_subProxy:r,_descriptors:o}=e;let s=a[n];_(s)&&o.isScriptable(n)&&(s=function(e,n,t,a){const{_proxy:i,_context:r,_subProxy:o,_stack:s}=t;if(s.has(e))throw new Error("Recursion detected: "+[...s].join("->")+"->"+e);s.add(e),n=n(r,o||a),s.delete(e),p(n)&&(n=Mn(i._scopes,i,e,n));return n}(n,s,e,t));h(s)&&s.length&&(s=function(e,n,t,a){const{_proxy:i,_context:r,_subProxy:o,_descriptors:s}=t;if(I(r.index)&&a(e))n=n[r.index%n.length];else if(p(n[0])){const t=n,a=i._scopes.filter(e=>e!==t);n=[];for(const l of t){const t=Mn(a,i,e,l);n.push(Sn(t,r,o&&o[e],s))}}return n}(n,s,e,o.isIndexable));Rn(n,s)&&(s=Sn(s,i,r&&r[n],o));return s}(e,n,t)),getOwnPropertyDescriptor:(n,t)=>n._descriptors.allKeys?Reflect.has(e,t)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,t),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(n,t)=>Reflect.has(e,t),ownKeys:()=>Reflect.ownKeys(e),set:(n,t,a)=>(e[t]=a,delete n[t],!0)})}function On(e,n={scriptable:!0,indexable:!0}){const{_scriptable:t=n.scriptable,_indexable:a=n.indexable,_allKeys:i=n.allKeys}=e;return{allKeys:i,scriptable:t,indexable:a,isScriptable:_(t)?t:()=>t,isIndexable:_(a)?a:()=>a}}const An=(e,n)=>e?e+R(n):n,Rn=(e,n)=>p(n)&&"adapters"!==e;function In(e,n,t){let a=e[n];return I(a)||(a=t(),I(a)&&(e[n]=a)),a}function _n(e,n,t){return _(e)?e(n,t):e}const En=(e,n)=>!0===e?n:"string"==typeof e?A(n,e):void 0;function Ln(e,n,t,a){for(const i of n){const n=En(t,i);if(n){e.add(n);const i=_n(n._fallback,t,n);if(I(i)&&i!==t&&i!==a)return i}else if(!1===n&&I(a)&&t!==a)return null}return!1}function Mn(e,n,t,a){const i=n._rootScopes,r=_n(n._fallback,t,a),o=[...e,...i],s=new Set;s.add(a);let l=jn(s,o,t,r||t);return null!==l&&((!I(r)||r===t||(l=jn(s,o,r,l),null!==l))&&kn([...s],[""],i,r,()=>{const e=n._getTarget();return t in e||(e[t]={}),e[t]}))}function jn(e,n,t,a){for(;t;)t=Ln(e,n,t,a);return t}function Nn(e,n){for(const t of n){if(!t)continue;const n=t[e];if(I(n))return n}}function Bn(e){let n=e._keys;return n||(n=e._keys=function(e){const n=new Set;for(const t of e)for(const e of Object.keys(t).filter(e=>!e.startsWith("_")))n.add(e);return[...n]}(e._scopes)),n}const Un=Number.EPSILON||1e-14,zn=(e,n)=>n!e.skip)),"monotone"===n.cubicInterpolationMode)Hn(e);else{let t=a?e[e.length-1]:e[0];for(i=0,r=e.length;iwindow.getComputedStyle(e,null);const qn=["top","right","bottom","left"];function Xn(e,n,t){const a={};t=t?"-"+t:"";for(let i=0;i<4;i++){const r=qn[i];a[r]=parseFloat(e[n+"-"+r+t])||0}return a.width=a.left+a.right,a.height=a.top+a.bottom,a}function Jn(e,n){const{canvas:t,currentDevicePixelRatio:a}=n,i=Gn(t),r="border-box"===i.boxSizing,o=Xn(i,"padding"),s=Xn(i,"border","width"),{x:l,y:d,box:c}=function(e,n){const t=e.native||e,a=t.touches,i=a&&a.length?a[0]:t,{offsetX:r,offsetY:o}=i;let s,l,d=!1;if(((e,n,t)=>(e>0||n>0)&&(!t||!t.shadowRoot))(r,o,t.target))s=r,l=o;else{const e=n.getBoundingClientRect();s=i.clientX-e.left,l=i.clientY-e.top,d=!0}return{x:s,y:l,box:d}}(e,t),u=o.left+(c&&s.left),h=o.top+(c&&s.top);let{width:p,height:m}=n;return r&&(p-=o.width+s.width,m-=o.height+s.height),{x:Math.round((l-u)/p*t.width/a),y:Math.round((d-h)/m*t.height/a)}}const Zn=e=>Math.round(10*e)/10;function Kn(e,n,t,a){const i=Gn(e),r=Xn(i,"margin"),o=$n(i.maxWidth,e,"clientWidth")||j,s=$n(i.maxHeight,e,"clientHeight")||j,l=function(e,n,t){let a,i;if(void 0===n||void 0===t){const r=Yn(e);if(r){const e=r.getBoundingClientRect(),o=Gn(r),s=Xn(o,"border","width"),l=Xn(o,"padding");n=e.width-l.width-s.width,t=e.height-l.height-s.height,a=$n(o.maxWidth,r,"clientWidth"),i=$n(o.maxHeight,r,"clientHeight")}else n=e.clientWidth,t=e.clientHeight}return{width:n,height:t,maxWidth:a||j,maxHeight:i||j}}(e,n,t);let{width:d,height:c}=l;if("content-box"===i.boxSizing){const e=Xn(i,"border","width"),n=Xn(i,"padding");d-=n.width+e.width,c-=n.height+e.height}return d=Math.max(0,d-r.width),c=Math.max(0,a?Math.floor(d/a):c-r.height),d=Zn(Math.min(d,o,l.maxWidth)),c=Zn(Math.min(c,s,l.maxHeight)),d&&!c&&(c=Zn(d/2)),{width:d,height:c}}function Qn(e,n,t){const a=e.currentDevicePixelRatio=n||1,{canvas:i,width:r,height:o}=e;i.height=o*a,i.width=r*a,e.ctx.setTransform(a,0,0,a,0,0),i.style&&(t||!i.style.height&&!i.style.width)&&(i.style.height=o+"px",i.style.width=r+"px")}const et=function(){let e=!1;try{const n={get passive(){return e=!0,!1}};window.addEventListener("test",null,n),window.removeEventListener("test",null,n)}catch(e){}return e}();function nt(e,n){const t=function(e,n){return Gn(e).getPropertyValue(n)}(e,n),a=t&&t.match(/^(\d+)(\.\d+)?px$/);return a?+a[1]:void 0}function tt(e,n,t,a){return{x:e.x+t*(n.x-e.x),y:e.y+t*(n.y-e.y)}}function at(e,n,t,a){return{x:e.x+t*(n.x-e.x),y:"middle"===a?t<.5?e.y:n.y:"after"===a?t<1?e.y:n.y:t>0?n.y:e.y}}function it(e,n,t,a){const i={x:e.cp2x,y:e.cp2y},r={x:n.cp1x,y:n.cp1y},o=tt(e,i,t),s=tt(i,r,t),l=tt(r,n,t),d=tt(o,s,t),c=tt(s,l,t);return tt(d,c,t)}const rt=new Map;function ot(e,n,t){return function(e,n){n=n||{};const t=e+JSON.stringify(n);let a=rt.get(t);return a||(a=new Intl.NumberFormat(e,n),rt.set(t,a)),a}(n,t).format(e)}function st(e,n,t){return e?function(e,n){return{x:t=>e+e+n-t,setWidth(e){n=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,n)=>e-n,leftForLtr:(e,n)=>e-n}}(n,t):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,n)=>e+n,leftForLtr:(e,n)=>e}}function lt(e,n){let t,a;"ltr"!==n&&"rtl"!==n||(t=e.canvas.style,a=[t.getPropertyValue("direction"),t.getPropertyPriority("direction")],t.setProperty("direction",n,"important"),e.prevTextDirection=a)}function dt(e,n){void 0!==n&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",n[0],n[1]))}function ct(e){return"angle"===e?{between:te,compare:ee,normalize:ne}:{between:(e,n,t)=>e>=Math.min(n,t)&&e<=Math.max(t,n),compare:(e,n)=>e-n,normalize:e=>e}}function ut({start:e,end:n,count:t,loop:a,style:i}){return{start:e%t,end:n%t,loop:a&&(n-e+1)%t==0,style:i}}function ht(e,n,t){if(!t)return[e];const{property:a,start:i,end:r}=t,o=n.length,{compare:s,between:l,normalize:d}=ct(a),{start:c,end:u,loop:h,style:p}=function(e,n,t){const{property:a,start:i,end:r}=t,{between:o,normalize:s}=ct(a),l=n.length;let d,c,{start:u,end:h,loop:p}=e;if(p){for(u+=l,h+=l,d=0,c=l;dv||l(i,b,f)&&0!==s(i,b),C=()=>!v||0===s(r,f)||l(r,b,f);for(let e=c,t=c;e<=u;++e)g=n[e%o],g.skip||(f=d(g[a]),v=l(f,i,r),null===y&&x()&&(y=0===s(f,i)?e:t),null!==y&&C()&&(m.push(ut({start:y,end:e,loop:h,count:o,style:p})),y=null),t=e,b=f);return null!==y&&m.push(ut({start:y,end:u,loop:h,count:o,style:p})),m}function pt(e,n){const t=[],a=e.segments;for(let i=0;ii&&e[r%n].skip;)r--;return r%=n,{start:i,end:r}}(t,i,r,a);if(!0===a)return ft([{start:o,end:s,loop:r}],t,n);return ft(function(e,n,t,a){const i=e.length,r=[];let o,s=n,l=e[n];for(o=n+1;o<=t;++o){const t=e[o%i];t.skip||t.stop?l.skip||(a=!1,r.push({start:n%i,end:(o-1)%i,loop:a}),n=s=t.stop?o:null):(s=o,l.skip&&(n=o)),l=t}return null!==s&&r.push({start:n%i,end:s%i,loop:a}),r}(t,o,s=0&&Math.floor(n)===n&&isFinite(e)}function p(e){return r(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function m(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===d?JSON.stringify(e,null,2):String(e)}function f(e){var n=parseFloat(e);return isNaN(n)?e:n}function g(e,n){for(var t=Object.create(null),a=e.split(","),i=0;i-1)return e.splice(t,1)}}var y=Object.prototype.hasOwnProperty;function x(e,n){return y.call(e,n)}function C(e){var n=Object.create(null);return function(t){return n[t]||(n[t]=e(t))}}var w=/-(\w)/g,D=C((function(e){return e.replace(w,(function(e,n){return n?n.toUpperCase():""}))})),T=C((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),P=/\B([A-Z])/g,k=C((function(e){return e.replace(P,"-$1").toLowerCase()}));var S=Function.prototype.bind?function(e,n){return e.bind(n)}:function(e,n){function t(t){var a=arguments.length;return a?a>1?e.apply(n,arguments):e.call(n,t):e.call(n)}return t._length=e.length,t};function O(e,n){n=n||0;for(var t=e.length-n,a=new Array(t);t--;)a[t]=e[t+n];return a}function A(e,n){for(var t in n)e[t]=n[t];return e}function R(e){for(var n={},t=0;t0,Z=q&&q.indexOf("edge/")>0,K=(q&&q.indexOf("android"),q&&/iphone|ipad|ipod|ios/.test(q)||"ios"===G),Q=(q&&/chrome\/\d+/.test(q),q&&/phantomjs/.test(q),q&&q.match(/firefox\/(\d+)/)),ee={}.watch,ne=!1;if(Y)try{var te={};Object.defineProperty(te,"passive",{get:function(){ne=!0}}),window.addEventListener("test-passive",null,te)}catch(e){}var ae=function(){return void 0===V&&(V=!Y&&!$&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),V},ie=Y&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function re(e){return"function"==typeof e&&/native code/.test(e.toString())}var oe,se="undefined"!=typeof Symbol&&re(Symbol)&&"undefined"!=typeof Reflect&&re(Reflect.ownKeys);oe="undefined"!=typeof Set&&re(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var le=I,de=0,ce=function(){this.id=de++,this.subs=[]};ce.prototype.addSub=function(e){this.subs.push(e)},ce.prototype.removeSub=function(e){v(this.subs,e)},ce.prototype.depend=function(){ce.target&&ce.target.addDep(this)},ce.prototype.notify=function(){var e=this.subs.slice();for(var n=0,t=e.length;n-1)if(r&&!x(i,"default"))o=!1;else if(""===o||o===k(e)){var l=Fe(String,i.type);(l<0||s0&&(un((l=e(l,(t||"")+"_"+a))[0])&&un(c)&&(u[d]=be(c.text+l[0].text),l.shift()),u.push.apply(u,l)):s(l)?un(c)?u[d]=be(c.text+l):""!==l&&u.push(be(l)):un(l)&&un(c)?u[d]=be(c.text+l.text):(o(n._isVList)&&r(l.tag)&&i(l.key)&&r(t)&&(l.key="__vlist"+t+"_"+a+"__"),u.push(l)));return u}(e):void 0}function un(e){return r(e)&&r(e.text)&&!1===e.isComment}function hn(e,n){if(e){for(var t=Object.create(null),a=se?Reflect.ownKeys(e):Object.keys(e),i=0;i0,o=e?!!e.$stable:!r,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&t&&t!==a&&s===t.$key&&!r&&!t.$hasNormal)return t;for(var l in i={},e)e[l]&&"$"!==l[0]&&(i[l]=gn(n,l,e[l]))}else i={};for(var d in n)d in i||(i[d]=bn(n,d));return e&&Object.isExtensible(e)&&(e._normalized=i),F(i,"$stable",o),F(i,"$key",s),F(i,"$hasNormal",r),i}function gn(e,n,t){var a=function(){var e=arguments.length?t.apply(null,arguments):t({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:cn(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return t.proxy&&Object.defineProperty(e,n,{get:a,enumerable:!0,configurable:!0}),a}function bn(e,n){return function(){return e[n]}}function vn(e,n){var t,a,i,o,s;if(Array.isArray(e)||"string"==typeof e)for(t=new Array(e.length),a=0,i=e.length;adocument.createEvent("Event").timeStamp&&(lt=function(){return dt.now()})}function ct(){var e,n;for(st=lt(),rt=!0,nt.sort((function(e,n){return e.id-n.id})),ot=0;otot&&nt[t].id>e.id;)t--;nt.splice(t+1,0,e)}else nt.push(e);it||(it=!0,nn(ct))}}(this)},ht.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||l(e)||this.deep){var n=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,n)}catch(e){He(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,n)}}},ht.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ht.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},ht.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var pt={enumerable:!0,configurable:!0,get:I,set:I};function mt(e,n,t){pt.get=function(){return this[n][t]},pt.set=function(e){this[n][t]=e},Object.defineProperty(e,t,pt)}function ft(e){e._watchers=[];var n=e.$options;n.props&&function(e,n){var t=e.$options.propsData||{},a=e._props={},i=e.$options._propKeys=[];e.$parent&&De(!1);var r=function(r){i.push(r);var o=Be(r,n,t,e);ke(a,r,o),r in e||mt(e,"_props",r)};for(var o in n)r(o);De(!0)}(e,n.props),n.methods&&function(e,n){e.$options.props;for(var t in n)e[t]="function"!=typeof n[t]?I:S(n[t],e)}(e,n.methods),n.data?function(e){var n=e.$options.data;c(n=e._data="function"==typeof n?function(e,n){he();try{return e.call(n,n)}catch(e){return He(e,n,"data()"),{}}finally{pe()}}(n,e):n||{})||(n={});var t=Object.keys(n),a=e.$options.props,i=(e.$options.methods,t.length);for(;i--;){var r=t[i];0,a&&x(a,r)||(o=void 0,36!==(o=(r+"").charCodeAt(0))&&95!==o&&mt(e,"_data",r))}var o;Pe(n,!0)}(e):Pe(e._data={},!0),n.computed&&function(e,n){var t=e._computedWatchers=Object.create(null),a=ae();for(var i in n){var r=n[i],o="function"==typeof r?r:r.get;0,a||(t[i]=new ht(e,o||I,I,gt)),i in e||bt(e,i,r)}}(e,n.computed),n.watch&&n.watch!==ee&&function(e,n){for(var t in n){var a=n[t];if(Array.isArray(a))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(n)>-1:!!u(e)&&e.test(n)}function St(e,n){var t=e.cache,a=e.keys,i=e._vnode;for(var r in t){var o=t[r];if(o){var s=Pt(o.componentOptions);s&&!n(s)&&Ot(t,r,a,i)}}}function Ot(e,n,t,a){var i=e[n];!i||a&&i.tag===a.tag||i.componentInstance.$destroy(),e[n]=null,v(t,n)}!function(e){e.prototype._init=function(e){var n=this;n._uid=Ct++,n._isVue=!0,e&&e._isComponent?function(e,n){var t=e.$options=Object.create(e.constructor.options),a=n._parentVnode;t.parent=n.parent,t._parentVnode=a;var i=a.componentOptions;t.propsData=i.propsData,t._parentListeners=i.listeners,t._renderChildren=i.children,t._componentTag=i.tag,n.render&&(t.render=n.render,t.staticRenderFns=n.staticRenderFns)}(n,e):n.$options=je(wt(n.constructor),e||{},n),n._renderProxy=n,n._self=n,function(e){var n=e.$options,t=n.parent;if(t&&!n.abstract){for(;t.$options.abstract&&t.$parent;)t=t.$parent;t.$children.push(e)}e.$parent=t,e.$root=t?t.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(n),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var n=e.$options._parentListeners;n&&Xn(e,n)}(n),function(e){e._vnode=null,e._staticTrees=null;var n=e.$options,t=e.$vnode=n._parentVnode,i=t&&t.context;e.$slots=pn(n._renderChildren,i),e.$scopedSlots=a,e._c=function(n,t,a,i){return zn(e,n,t,a,i,!1)},e.$createElement=function(n,t,a,i){return zn(e,n,t,a,i,!0)};var r=t&&t.data;ke(e,"$attrs",r&&r.attrs||a,null,!0),ke(e,"$listeners",n._parentListeners||a,null,!0)}(n),et(n,"beforeCreate"),function(e){var n=hn(e.$options.inject,e);n&&(De(!1),Object.keys(n).forEach((function(t){ke(e,t,n[t])})),De(!0))}(n),ft(n),function(e){var n=e.$options.provide;n&&(e._provided="function"==typeof n?n.call(e):n)}(n),et(n,"created"),n.$options.el&&n.$mount(n.$options.el)}}(Dt),function(e){var n={get:function(){return this._data}},t={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",n),Object.defineProperty(e.prototype,"$props",t),e.prototype.$set=Se,e.prototype.$delete=Oe,e.prototype.$watch=function(e,n,t){if(c(n))return xt(this,e,n,t);(t=t||{}).user=!0;var a=new ht(this,e,n,t);if(t.immediate)try{n.call(this,a.value)}catch(e){He(e,this,'callback for immediate watcher "'+a.expression+'"')}return function(){a.teardown()}}}(Dt),function(e){var n=/^hook:/;e.prototype.$on=function(e,t){var a=this;if(Array.isArray(e))for(var i=0,r=e.length;i1?O(t):t;for(var a=O(arguments,1),i='event handler for "'+e+'"',r=0,o=t.length;rparseInt(this.max)&&Ot(o,s[0],s,this._vnode)),n.data.keepAlive=!0}return n||e&&e[0]}}};!function(e){var n={get:function(){return U}};Object.defineProperty(e,"config",n),e.util={warn:le,extend:A,mergeOptions:je,defineReactive:ke},e.set=Se,e.delete=Oe,e.nextTick=nn,e.observable=function(e){return Pe(e),e},e.options=Object.create(null),N.forEach((function(n){e.options[n+"s"]=Object.create(null)})),e.options._base=e,A(e.options.components,Rt),function(e){e.use=function(e){var n=this._installedPlugins||(this._installedPlugins=[]);if(n.indexOf(e)>-1)return this;var t=O(arguments,1);return t.unshift(this),"function"==typeof e.install?e.install.apply(e,t):"function"==typeof e&&e.apply(null,t),n.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=je(this.options,e),this}}(e),Tt(e),function(e){N.forEach((function(n){e[n]=function(e,t){return t?("component"===n&&c(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),"directive"===n&&"function"==typeof t&&(t={bind:t,update:t}),this.options[n+"s"][e]=t,t):this.options[n+"s"][e]}}))}(e)}(Dt),Object.defineProperty(Dt.prototype,"$isServer",{get:ae}),Object.defineProperty(Dt.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Dt,"FunctionalRenderContext",{value:En}),Dt.version="2.6.12";var It=g("style,class"),_t=g("input,textarea,option,select,progress"),Et=g("contenteditable,draggable,spellcheck"),Lt=g("events,caret,typing,plaintext-only"),Mt=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),jt="http://www.w3.org/1999/xlink",Nt=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Bt=function(e){return Nt(e)?e.slice(6,e.length):""},Ut=function(e){return null==e||!1===e};function zt(e){for(var n=e.data,t=e,a=e;r(a.componentInstance);)(a=a.componentInstance._vnode)&&a.data&&(n=Ft(a.data,n));for(;r(t=t.parent);)t&&t.data&&(n=Ft(n,t.data));return function(e,n){if(r(e)||r(n))return Ht(e,Vt(n));return""}(n.staticClass,n.class)}function Ft(e,n){return{staticClass:Ht(e.staticClass,n.staticClass),class:r(e.class)?[e.class,n.class]:n.class}}function Ht(e,n){return e?n?e+" "+n:e:n||""}function Vt(e){return Array.isArray(e)?function(e){for(var n,t="",a=0,i=e.length;a-1?ha(e,n,t):Mt(n)?Ut(t)?e.removeAttribute(n):(t="allowfullscreen"===n&&"EMBED"===e.tagName?"true":n,e.setAttribute(n,t)):Et(n)?e.setAttribute(n,function(e,n){return Ut(n)||"false"===n?"false":"contenteditable"===e&&Lt(n)?n:"true"}(n,t)):Nt(n)?Ut(t)?e.removeAttributeNS(jt,Bt(n)):e.setAttributeNS(jt,n,t):ha(e,n,t)}function ha(e,n,t){if(Ut(t))e.removeAttribute(n);else{if(X&&!J&&"TEXTAREA"===e.tagName&&"placeholder"===n&&""!==t&&!e.__ieph){var a=function(n){n.stopImmediatePropagation(),e.removeEventListener("input",a)};e.addEventListener("input",a),e.__ieph=!0}e.setAttribute(n,t)}}var pa={create:ca,update:ca};function ma(e,n){var t=n.elm,a=n.data,o=e.data;if(!(i(a.staticClass)&&i(a.class)&&(i(o)||i(o.staticClass)&&i(o.class)))){var s=zt(n),l=t._transitionClasses;r(l)&&(s=Ht(s,Vt(l))),s!==t._prevClass&&(t.setAttribute("class",s),t._prevClass=s)}}var fa,ga={create:ma,update:ma};function ba(e,n,t){var a=fa;return function i(){var r=n.apply(null,arguments);null!==r&&xa(e,i,t,a)}}var va=Ge&&!(Q&&Number(Q[1])<=53);function ya(e,n,t,a){if(va){var i=st,r=n;n=r._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return r.apply(this,arguments)}}fa.addEventListener(e,n,ne?{capture:t,passive:a}:t)}function xa(e,n,t,a){(a||fa).removeEventListener(e,n._wrapper||n,t)}function Ca(e,n){if(!i(e.data.on)||!i(n.data.on)){var t=n.data.on||{},a=e.data.on||{};fa=n.elm,function(e){if(r(e.__r)){var n=X?"change":"input";e[n]=[].concat(e.__r,e[n]||[]),delete e.__r}r(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(t),sn(t,a,ya,xa,ba,n.context),fa=void 0}}var wa,Da={create:Ca,update:Ca};function Ta(e,n){if(!i(e.data.domProps)||!i(n.data.domProps)){var t,a,o=n.elm,s=e.data.domProps||{},l=n.data.domProps||{};for(t in r(l.__ob__)&&(l=n.data.domProps=A({},l)),s)t in l||(o[t]="");for(t in l){if(a=l[t],"textContent"===t||"innerHTML"===t){if(n.children&&(n.children.length=0),a===s[t])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===t&&"PROGRESS"!==o.tagName){o._value=a;var d=i(a)?"":String(a);Pa(o,d)&&(o.value=d)}else if("innerHTML"===t&&$t(o.tagName)&&i(o.innerHTML)){(wa=wa||document.createElement("div")).innerHTML=""+a+"";for(var c=wa.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;c.firstChild;)o.appendChild(c.firstChild)}else if(a!==s[t])try{o[t]=a}catch(e){}}}}function Pa(e,n){return!e.composing&&("OPTION"===e.tagName||function(e,n){var t=!0;try{t=document.activeElement!==e}catch(e){}return t&&e.value!==n}(e,n)||function(e,n){var t=e.value,a=e._vModifiers;if(r(a)){if(a.number)return f(t)!==f(n);if(a.trim)return t.trim()!==n.trim()}return t!==n}(e,n))}var ka={create:Ta,update:Ta},Sa=C((function(e){var n={},t=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var a=e.split(t);a.length>1&&(n[a[0].trim()]=a[1].trim())}})),n}));function Oa(e){var n=Aa(e.style);return e.staticStyle?A(e.staticStyle,n):n}function Aa(e){return Array.isArray(e)?R(e):"string"==typeof e?Sa(e):e}var Ra,Ia=/^--/,_a=/\s*!important$/,Ea=function(e,n,t){if(Ia.test(n))e.style.setProperty(n,t);else if(_a.test(t))e.style.setProperty(k(n),t.replace(_a,""),"important");else{var a=Ma(n);if(Array.isArray(t))for(var i=0,r=t.length;i-1?n.split(Ba).forEach((function(n){return e.classList.add(n)})):e.classList.add(n);else{var t=" "+(e.getAttribute("class")||"")+" ";t.indexOf(" "+n+" ")<0&&e.setAttribute("class",(t+n).trim())}}function za(e,n){if(n&&(n=n.trim()))if(e.classList)n.indexOf(" ")>-1?n.split(Ba).forEach((function(n){return e.classList.remove(n)})):e.classList.remove(n),e.classList.length||e.removeAttribute("class");else{for(var t=" "+(e.getAttribute("class")||"")+" ",a=" "+n+" ";t.indexOf(a)>=0;)t=t.replace(a," ");(t=t.trim())?e.setAttribute("class",t):e.removeAttribute("class")}}function Fa(e){if(e){if("object"==typeof e){var n={};return!1!==e.css&&A(n,Ha(e.name||"v")),A(n,e),n}return"string"==typeof e?Ha(e):void 0}}var Ha=C((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Va=Y&&!J,Wa="transition",Ya="transitionend",$a="animation",Ga="animationend";Va&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Wa="WebkitTransition",Ya="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&($a="WebkitAnimation",Ga="webkitAnimationEnd"));var qa=Y?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Xa(e){qa((function(){qa(e)}))}function Ja(e,n){var t=e._transitionClasses||(e._transitionClasses=[]);t.indexOf(n)<0&&(t.push(n),Ua(e,n))}function Za(e,n){e._transitionClasses&&v(e._transitionClasses,n),za(e,n)}function Ka(e,n,t){var a=ei(e,n),i=a.type,r=a.timeout,o=a.propCount;if(!i)return t();var s="transition"===i?Ya:Ga,l=0,d=function(){e.removeEventListener(s,c),t()},c=function(n){n.target===e&&++l>=o&&d()};setTimeout((function(){l0&&(t="transition",c=o,u=r.length):"animation"===n?d>0&&(t="animation",c=d,u=l.length):u=(t=(c=Math.max(o,d))>0?o>d?"transition":"animation":null)?"transition"===t?r.length:l.length:0,{type:t,timeout:c,propCount:u,hasTransform:"transition"===t&&Qa.test(a[Wa+"Property"])}}function ni(e,n){for(;e.length1}function si(e,n){!0!==n.data.show&&ai(n)}var li=function(e){var n,t,a={},l=e.modules,d=e.nodeOps;for(n=0;nm?y(e,i(t[b+1])?null:t[b+1].elm,t,p,b,a):p>b&&C(n,h,m)}(h,g,b,t,c):r(b)?(r(e.text)&&d.setTextContent(h,""),y(h,null,b,0,b.length-1,t)):r(g)?C(g,0,g.length-1):r(e.text)&&d.setTextContent(h,""):e.text!==n.text&&d.setTextContent(h,n.text),r(m)&&r(p=m.hook)&&r(p=p.postpatch)&&p(e,n)}}}function P(e,n,t){if(o(t)&&r(e.parent))e.parent.data.pendingInsert=n;else for(var a=0;a-1,o.selected!==r&&(o.selected=r);else if(L(pi(o),a))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function hi(e,n){return n.every((function(n){return!L(n,e)}))}function pi(e){return"_value"in e?e._value:e.value}function mi(e){e.target.composing=!0}function fi(e){e.target.composing&&(e.target.composing=!1,gi(e.target,"input"))}function gi(e,n){var t=document.createEvent("HTMLEvents");t.initEvent(n,!0,!0),e.dispatchEvent(t)}function bi(e){return!e.componentInstance||e.data&&e.data.transition?e:bi(e.componentInstance._vnode)}var vi={model:di,show:{bind:function(e,n,t){var a=n.value,i=(t=bi(t)).data&&t.data.transition,r=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;a&&i?(t.data.show=!0,ai(t,(function(){e.style.display=r}))):e.style.display=a?r:"none"},update:function(e,n,t){var a=n.value;!a!=!n.oldValue&&((t=bi(t)).data&&t.data.transition?(t.data.show=!0,a?ai(t,(function(){e.style.display=e.__vOriginalDisplay})):ii(t,(function(){e.style.display="none"}))):e.style.display=a?e.__vOriginalDisplay:"none")},unbind:function(e,n,t,a,i){i||(e.style.display=e.__vOriginalDisplay)}}},yi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function xi(e){var n=e&&e.componentOptions;return n&&n.Ctor.options.abstract?xi(Yn(n.children)):e}function Ci(e){var n={},t=e.$options;for(var a in t.propsData)n[a]=e[a];var i=t._parentListeners;for(var r in i)n[D(r)]=i[r];return n}function wi(e,n){if(/\d-keep-alive$/.test(n.tag))return e("keep-alive",{props:n.componentOptions.propsData})}var Di=function(e){return e.tag||Wn(e)},Ti=function(e){return"show"===e.name},Pi={name:"transition",props:yi,abstract:!0,render:function(e){var n=this,t=this.$slots.default;if(t&&(t=t.filter(Di)).length){0;var a=this.mode;0;var i=t[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var r=xi(i);if(!r)return i;if(this._leaving)return wi(e,i);var o="__transition-"+this._uid+"-";r.key=null==r.key?r.isComment?o+"comment":o+r.tag:s(r.key)?0===String(r.key).indexOf(o)?r.key:o+r.key:r.key;var l=(r.data||(r.data={})).transition=Ci(this),d=this._vnode,c=xi(d);if(r.data.directives&&r.data.directives.some(Ti)&&(r.data.show=!0),c&&c.data&&!function(e,n){return n.key===e.key&&n.tag===e.tag}(r,c)&&!Wn(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var u=c.data.transition=A({},l);if("out-in"===a)return this._leaving=!0,ln(u,"afterLeave",(function(){n._leaving=!1,n.$forceUpdate()})),wi(e,i);if("in-out"===a){if(Wn(r))return d;var h,p=function(){h()};ln(l,"afterEnter",p),ln(l,"enterCancelled",p),ln(u,"delayLeave",(function(e){h=e}))}}return i}}},ki=A({tag:String,moveClass:String},yi);function Si(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Oi(e){e.data.newPos=e.elm.getBoundingClientRect()}function Ai(e){var n=e.data.pos,t=e.data.newPos,a=n.left-t.left,i=n.top-t.top;if(a||i){e.data.moved=!0;var r=e.elm.style;r.transform=r.WebkitTransform="translate("+a+"px,"+i+"px)",r.transitionDuration="0s"}}delete ki.mode;var Ri={Transition:Pi,TransitionGroup:{props:ki,beforeMount:function(){var e=this,n=this._update;this._update=function(t,a){var i=Zn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),n.call(e,t,a)}},render:function(e){for(var n=this.tag||this.$vnode.data.tag||"span",t=Object.create(null),a=this.prevChildren=this.children,i=this.$slots.default||[],r=this.children=[],o=Ci(this),s=0;s-1?qt[e]=n.constructor===window.HTMLUnknownElement||n.constructor===window.HTMLElement:qt[e]=/HTMLUnknownElement/.test(n.toString())},A(Dt.options.directives,vi),A(Dt.options.components,Ri),Dt.prototype.__patch__=Y?li:I,Dt.prototype.$mount=function(e,n){return function(e,n,t){var a;return e.$el=n,e.$options.render||(e.$options.render=ge),et(e,"beforeMount"),a=function(){e._update(e._render(),t)},new ht(e,a,I,{before:function(){e._isMounted&&!e._isDestroyed&&et(e,"beforeUpdate")}},!0),t=!1,null==e.$vnode&&(e._isMounted=!0,et(e,"mounted")),e}(this,e=e&&Y?function(e){if("string"==typeof e){var n=document.querySelector(e);return n||document.createElement("div")}return e}(e):void 0,n)},Y&&setTimeout((function(){U.devtools&&ie&&ie.emit("init",Dt)}),0),n.a=Dt},function(e,n){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||Function("return this")()},function(e,n,t){"use strict";t.d(n,"a",(function(){return P})),t.d(n,"b",(function(){return Je})),t.d(n,"c",(function(){return pt})),t.d(n,"d",(function(){return ke})),t.d(n,"e",(function(){return lt})),t.d(n,"f",(function(){return M})),t.d(n,"g",(function(){return Et}));t(94);var a=t(0);var i=new +/*! + * Chart.js v3.1.0 + * https://www.chartjs.org + * (c) 2021 Chart.js Contributors + * Released under the MIT License + */ +class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,t,a){const i=n.listeners[a],r=n.duration;i.forEach(a=>a({chart:e,numSteps:r,currentStep:Math.min(t-n.start,r)}))}_refresh(){const e=this;e._request||(e._running=!0,e._request=a.Kb.call(window,()=>{e._update(),e._request=null,e._running&&e._refresh()}))}_update(e=Date.now()){const n=this;let t=0;n._charts.forEach((a,i)=>{if(!a.running||!a.items.length)return;const r=a.items;let o,s=r.length-1,l=!1;for(;s>=0;--s)o=r[s],o._active?(o._total>a.duration&&(a.duration=o._total),o.tick(e),l=!0):(r[s]=r[r.length-1],r.pop());l&&(i.draw(),n._notify(i,a,e,"progress")),r.length||(a.running=!1,n._notify(i,a,e,"complete")),t+=r.length}),n._lastDate=e,0===t&&(n._running=!1)}_getAnims(e){const n=this._charts;let t=n.get(e);return t||(t={running:!1,items:[],listeners:{complete:[],progress:[]}},n.set(e,t)),t}listen(e,n,t){this._getAnims(e).listeners[n].push(t)}add(e,n){n&&n.length&&this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((e,n)=>Math.max(e,n._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!!(n&&n.running&&n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const t=n.items;let a=t.length-1;for(;a>=0;--a)t[a].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}};const r={boolean:(e,n,t)=>t>.5?n:e,color(e,n,t){const i=Object(a.vb)(e||"transparent"),r=i.valid&&Object(a.vb)(n||"transparent");return r&&r.valid?r.mix(i,t).hexString():n},number:(e,n,t)=>e+(n-e)*t};class o{constructor(e,n,t,i){const o=n[t];i=Object(a.C)([e.to,i,o,e.from]);const s=Object(a.C)([e.from,o,i]);this._active=!0,this._fn=e.fn||r[e.type||typeof s],this._easing=a.xb[e.easing]||a.xb.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=t,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(e,n,t){const i=this;if(i._active){i._notify(!1);const r=i._target[i._prop],o=t-i._start,s=i._duration-o;i._start=t,i._duration=Math.floor(Math.max(s,e.duration)),i._total+=o,i._loop=!!e.loop,i._to=Object(a.C)([e.to,n,r,e.from]),i._from=Object(a.C)([e.from,r,n])}}cancel(){const e=this;e._active&&(e.tick(Date.now()),e._active=!1,e._notify(!1))}tick(e){const n=this,t=e-n._start,a=n._duration,i=n._prop,r=n._from,o=n._loop,s=n._to;let l;if(n._active=r!==s&&(o||t1?2-l:l,l=n._easing(Math.min(1,Math.max(0,l))),n._target[i]=n._fn(r,s,l))}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,t)=>{e.push({res:n,rej:t})})}_notify(e){const n=e?"res":"rej",t=this._promises||[];for(let e=0;e"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),a.wb.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),a.wb.describe("animations",{_fallback:"animation"}),a.wb.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}});class l{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!Object(a.Bb)(e))return;const n=this._properties;Object.getOwnPropertyNames(e).forEach(t=>{const i=e[t];if(!Object(a.Bb)(i))return;const r={};for(const e of s)r[e]=i[e];(Object(a.ub)(i.properties)&&i.properties||[t]).forEach(e=>{e!==t&&n.has(e)||n.set(e,r)})})}_animateOptions(e,n){const t=n.options,a=function(e,n){if(!n)return;let t=e.options;if(!t)return void(e.options=n);t.$shared&&(e.options=t=Object.assign({},t,{$shared:!1,$animations:{}}));return t}(e,t);if(!a)return[];const i=this._createAnimations(a,t);return t.$shared&&function(e,n){const t=[],a=Object.keys(n);for(let n=0;n{e.options=t},()=>{}),i}_createAnimations(e,n){const t=this._properties,a=[],i=e.$animations||(e.$animations={}),r=Object.keys(n),s=Date.now();let l;for(l=r.length-1;l>=0;--l){const d=r[l];if("$"===d.charAt(0))continue;if("options"===d){a.push(...this._animateOptions(e,n));continue}const c=n[d];let u=i[d];const h=t.get(d);if(u){if(h&&u.active()){u.update(h,c,s);continue}u.cancel()}h&&h.duration?(i[d]=u=new o(h,e,d,c),a.push(u)):e[d]=c}return a}update(e,n){if(0===this._properties.size)return void Object.assign(e,n);const t=this._createAnimations(e,n);return t.length?(i.add(this._chart,t),!0):void 0}}function d(e,n){const t=e&&e.options||{},a=t.reverse,i=void 0===t.min?n:0,r=void 0===t.max?n:0;return{start:a?r:i,end:a?i:r}}function c(e,n){const t=[],a=e._getSortedDatasetMetas(n);let i,r;for(i=0,r=a.length;it[e].axis===n).shift()}function g(e,n){n=n||e._parsed;for(const t of n){const n=t._stacks;if(!n||void 0===n[e.vScale.id]||void 0===n[e.vScale.id][e.index])return;delete n[e.vScale.id][e.index]}}const b=e=>"reset"===e||"none"===e,v=(e,n)=>n?e:Object.assign({},e);class y{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.$context=void 0,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=h(e.vScale,e),this.addElements()}updateIndex(e){this.index=e}linkScales(){const e=this,n=e.chart,t=e._cachedMeta,i=e.getDataset(),r=(e,n,t,a)=>"x"===e?n:"r"===e?a:t,o=t.xAxisID=Object(a.Ob)(i.xAxisID,f(n,"x")),s=t.yAxisID=Object(a.Ob)(i.yAxisID,f(n,"y")),l=t.rAxisID=Object(a.Ob)(i.rAxisID,f(n,"r")),d=t.indexAxis,c=t.iAxisID=r(d,o,s,l),u=t.vAxisID=r(d,s,o,l);t.xScale=e.getScaleForId(o),t.yScale=e.getScaleForId(s),t.rScale=e.getScaleForId(l),t.iScale=e.getScaleForId(c),t.vScale=e.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Object(a.Nb)(this._data,this),e._stacked&&g(e)}_dataCheck(){const e=this,n=e.getDataset(),t=n.data||(n.data=[]);Object(a.Bb)(t)?e._data=function(e){const n=Object.keys(e),t=new Array(n.length);let a,i,r;for(a=0,i=n.length;a0&&i._parsed[e-1];if(!1===t._parsing)i._parsed=r,i._sorted=!0;else{u=Object(a.ub)(r[e])?t.parseArrayData(i,r,e,n):Object(a.Bb)(r[e])?t.parseObjectData(i,r,e,n):t.parsePrimitiveData(i,r,e,n);const o=()=>null===c[l]||p&&c[l]b||p=0;--m)if(!v()){t.updateRangeFromParsed(u,e,g,d);break}return u}getAllParsedValues(e){const n=this._cachedMeta._parsed,t=[];let i,r,o;for(i=0,r=n.length;i=0&&ei.getContext(t,r),h);return f.$shared&&(f.$shared=d,o[s]=Object.freeze(v(f,d))),f}_resolveAnimations(e,n,t){const a=this,i=a.chart,r=a._cachedDataOpts,o="animation-"+n,s=r[o];if(s)return s;let d;if(!1!==i.options.animation){const i=a.chart.config,r=i.datasetAnimationScopeKeys(a._type,n),o=i.getOptionScopes(a.getDataset(),r);d=i.createResolver(o,a.getContext(e,t,n))}const c=new l(i,d&&d.animations);return d&&d._cacheable&&(r[o]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||b(e)||this.chart._animationsDisabled}updateElement(e,n,t,a){b(a)?Object.assign(e,t):this._resolveAnimations(n,a).update(e,t)}updateSharedOptions(e,n,t){e&&!b(n)&&this._resolveAnimations(void 0,n).update(e,t)}_setStyle(e,n,t,a){e.active=a;const i=this.getStyle(n,a);this._resolveAnimations(n,t,a).update(e,{options:!a&&this.getSharedOptions(i)||i})}removeHoverStyle(e,n,t){this._setStyle(e,t,"active",!1)}setHoverStyle(e,n,t){this._setStyle(e,t,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this,t=n._cachedMeta.data.length,a=n._data.length;a>t?n._insertElements(t,a-t,e):a{for(e.length+=n,s=e.length-1;s>=o;s--)e[s]=e[s-n]};for(l(r),s=e;se-n))}return e._cache.$bar}(e);let t,i,r,o,s=e._length;const l=()=>{s=Math.min(s,t&&Math.abs(r-o)||s),o=r};for(t=0,i=n.length;tMath.abs(s)&&(l=s,d=o),n[t.axis]=d,n._custom={barStart:l,barEnd:d,start:i,end:r,min:o,max:s}}(e,n,t,i):n[t.axis]=t.parse(e,i),n}function w(e,n,t,a){const i=e.iScale,r=e.vScale,o=i.getLabels(),s=i===r,l=[];let d,c,u,h;for(d=t,c=t+a;d0?(f+=e,c-=e):c<0&&(f-=e,c+=e)}return{size:c,base:f,head:d,center:d+c/2}}_calculateBarIndexPixels(e,n){const t=this,i=n.scale,r=t.options,o=Object(a.Ob)(r.maxBarThickness,1/0);let s,l;if(n.grouped){const i=r.skipNull?t._getStackCount(e):n.stackCount,d="flex"===r.barThickness?function(e,n,t,a){const i=n.pixels,r=i[e];let o=e>0?i[e-1]:null,s=e=0;--a)t=Math.max(t,e[a].size()/2,n[a]._custom);return t>0&&t}getLabelAndValue(e){const n=this._cachedMeta,{xScale:t,yScale:a}=n,i=this.getParsed(e),r=t.getLabelForValue(i.x),o=a.getLabelForValue(i.y),s=i._custom;return{label:n.label,value:"("+r+", "+o+(s?", "+s:"")+")"}}update(e){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,e)}updateElements(e,n,t,a){const i=this,r="reset"===a,{xScale:o,yScale:s}=i._cachedMeta,l=i.resolveDataElementOptions(n,a),d=i.getSharedOptions(l),c=i.includeOptions(a,d);for(let l=n;l""}}}};class k extends y{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const t=this.getDataset().data,a=this._cachedMeta;let i,r;for(i=e,r=e+n;iObject(a.Jb)(e,l,d)?1:Math.max(n,n*t,i,i*t),f=(e,n,i)=>Object(a.Jb)(e,l,d)?-1:Math.min(n,n*t,i,i*t),g=m(0,c,h),b=m(a.i,u,p),v=f(a.q,c,h),y=f(a.q+a.i,u,p);i=(g-v)/2,r=(b-y)/2,o=-(g+v)/2,s=-(b+y)/2}return{ratioX:i,ratioY:r,offsetX:o,offsetY:s}}(h,u,d),b=(i.width-s)/p,v=(i.height-s)/m,y=Math.max(Math.min(b,v)/2,0),x=Object(a.Hb)(n.options.radius,y),C=(x-Math.max(x*d,0))/n._getVisibleDatasetWeightTotal();n.offsetX=f*x,n.offsetY=g*x,r.total=n.calculateTotal(),n.outerRadius=x-C*n._getRingWeightOffset(n.index),n.innerRadius=Math.max(n.outerRadius-C*c,0),n.updateElements(o,0,o.length,e)}_circumference(e,n){const t=this.options,i=this._cachedMeta,r=this._getCircumference();return n&&t.animation.animateRotate||!this.chart.getDataVisibility(e)||null===i._parsed[e]?0:this.calculateCircumference(i._parsed[e]*r/a.u)}updateElements(e,n,t,a){const i=this,r="reset"===a,o=i.chart,s=o.chartArea,l=o.options.animation,d=(s.left+s.right)/2,c=(s.top+s.bottom)/2,u=r&&l.animateScale,h=u?0:i.innerRadius,p=u?0:i.outerRadius,m=i.resolveDataElementOptions(n,a),f=i.getSharedOptions(m),g=i.includeOptions(a,f);let b,v=i._getRotation();for(b=0;b0&&!isNaN(e)?a.u*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,t=this.chart,i=t.data.labels||[],r=Object(a.Ib)(n._parsed[e],t.options.locale);return{label:i[e]||"",value:r}}getMaxBorderWidth(e){const n=this;let t=0;const a=n.chart;let i,r,o,s,l;if(!e)for(i=0,r=a.data.datasets.length;i{const a=e.getDatasetMeta(0).controller.getStyle(t);return{text:n,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,hidden:!e.getDataVisibility(t),index:t}}):[]}},onClick(e,n,t){t.chart.toggleDataVisibility(n.index),t.chart.update()}},tooltip:{callbacks:{title:()=>"",label(e){let n=e.label;const t=": "+e.formattedValue;return Object(a.ub)(n)?(n=n.slice(),n[0]+=t):n+=t,n}}}}};class S extends y{initialize(){this.enableOptionSharing=!0,super.initialize()}update(e){const n=this,t=n._cachedMeta,{dataset:i,data:r=[],_dataset:o}=t,s=n.chart._animationsDisabled;let{start:l,count:d}=function(e,n,t){const i=n.length;let r=0,o=i;if(e._sorted){const{iScale:s,_parsed:l}=e,d=s.axis,{min:c,max:u,minDefined:h,maxDefined:p}=s.getUserBounds();h&&(r=Object(a.Qb)(Math.min(Object(a.Rb)(l,s.axis,c).lo,t?i:Object(a.Rb)(n,d,s.getPixelForValue(c)).lo),0,i-1)),o=p?Object(a.Qb)(Math.max(Object(a.Rb)(l,s.axis,u).hi+1,t?0:Object(a.Rb)(n,d,s.getPixelForValue(u)).hi+1),r,i)-r:i-r}return{start:r,count:o}}(t,r,s);n._drawStart=l,n._drawCount=d,function(e){const{xScale:n,yScale:t,_scaleRanges:a}=e,i={xmin:n.min,xmax:n.max,ymin:t.min,ymax:t.max};if(!a)return e._scaleRanges=i,!0;const r=a.xmin!==n.min||a.xmax!==n.max||a.ymin!==t.min||a.ymax!==t.max;return Object.assign(a,i),r}(t)&&(l=0,d=r.length),i._decimated=!!o._decimated,i.points=r;const c=n.resolveDatasetElementOptions(e);n.options.showLine||(c.borderWidth=0),c.segment=n.options.segment,n.updateElement(i,void 0,{animated:!s,options:c},e),n.updateElements(r,l,d,e)}updateElements(e,n,t,i){const r=this,o="reset"===i,{xScale:s,yScale:l,_stacked:d}=r._cachedMeta,c=r.resolveDataElementOptions(n,i),u=r.getSharedOptions(c),h=r.includeOptions(i,u),p=r.options.spanGaps,m=Object(a.Pb)(p)?p:Number.POSITIVE_INFINITY,f=r.chart._animationsDisabled||o||"none"===i;let g=n>0&&r.getParsed(n-1);for(let c=n;c0&&t.x-g.x>m,p.parsed=t,h&&(p.options=u||r.resolveDataElementOptions(c,i)),f||r.updateElement(n,c,p,i),g=t}r.updateSharedOptions(u,i,c)}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,t=n.options&&n.options.borderWidth||0,a=e.data||[];if(!a.length)return t;const i=a[0].size(this.resolveDataElementOptions(0)),r=a[a.length-1].size(this.resolveDataElementOptions(a.length-1));return Math.max(t,i,r)/2}draw(){this._cachedMeta.dataset.updateControlPoints(this.chart.chartArea),super.draw()}}S.id="line",S.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},S.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class O extends y{constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}_updateRadius(){const e=this,n=e.chart,t=n.chartArea,a=n.options,i=Math.min(t.right-t.left,t.bottom-t.top),r=Math.max(i/2,0),o=(r-Math.max(a.cutoutPercentage?r/100*a.cutoutPercentage:1,0))/n.getVisibleDatasetCount();e.outerRadius=r-o*e.index,e.innerRadius=e.outerRadius-o}updateElements(e,n,t,i){const r=this,o="reset"===i,s=r.chart,l=r.getDataset(),d=s.options.animation,c=r._cachedMeta.rScale,u=c.xCenter,h=c.yCenter,p=c.getIndexAngle(0)-.5*a.q;let m,f=p;const g=360/r.countVisibleElements();for(m=0;m{!isNaN(e.data[a])&&this.chart.getDataVisibility(a)&&t++}),t}_computeAngle(e,n,t){return this.chart.getDataVisibility(e)?Object(a.Mb)(this.resolveDataElementOptions(e,n).angle||t):0}}O.id="polarArea",O.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},O.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;return n.labels.length&&n.datasets.length?n.labels.map((n,t)=>{const a=e.getDatasetMeta(0).controller.getStyle(t);return{text:n,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,hidden:!e.getDataVisibility(t),index:t}}):[]}},onClick(e,n,t){t.chart.toggleDataVisibility(n.index),t.chart.update()}},tooltip:{callbacks:{title:()=>"",label:e=>e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class A extends k{}A.id="pie",A.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class R extends y{getLabelAndValue(e){const n=this._cachedMeta.vScale,t=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(t[n.axis])}}update(e){const n=this,t=n._cachedMeta,a=t.dataset,i=t.data||[],r=t.iScale.getLabels();if(a.points=i,"resize"!==e){const t=n.resolveDatasetElementOptions(e);n.options.showLine||(t.borderWidth=0);const o={_loop:!0,_fullLoop:r.length===i.length,options:t};n.updateElement(a,void 0,o,e)}n.updateElements(i,0,i.length,e)}updateElements(e,n,t,a){const i=this,r=i.getDataset(),o=i._cachedMeta.rScale,s="reset"===a;for(let l=n;l"",label:e=>"("+e.label+", "+e.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var _=Object.freeze({__proto__:null,BarController:T,BubbleController:P,DoughnutController:k,LineController:S,PolarAreaController:O,PieController:A,RadarController:R,ScatterController:I});function E(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}class L{constructor(e){this.options=e||{}}formats(){return E()}parse(e,n){return E()}format(e,n){return E()}add(e,n,t){return E()}diff(e,n,t){return E()}startOf(e,n,t){return E()}endOf(e,n){return E()}}L.override=function(e){Object.assign(L.prototype,e)};var M={_date:L};function j(e,n){return"native"in e?{x:e.x,y:e.y}:Object(a.Sb)(e,n)}function N(e,n,t,i){const{controller:r,data:o,_sorted:s}=e,l=r._cachedMeta.iScale;if(l&&n===l.axis&&s&&o.length){const e=l._reversePixels?a.c:a.Rb;if(!i)return e(o,n,t);if(r._sharedOptions){const a=o[0],i="function"==typeof a.getRange&&a.getRange(n);if(i){const a=e(o,n,t-i),r=e(o,n,t+i);return{lo:a.lo,hi:r.hi}}}}return{lo:0,hi:o.length-1}}function B(e,n,t,a,i){const r=e.getSortedVisibleDatasetMetas(),o=t[n];for(let e=0,t=r.length;e{e[s](i[o],a)&&r.push({element:e,datasetIndex:n,index:t}),e.inRange(i.x,i.y,a)&&(l=!0)}),t.intersect&&!l?[]:r}var H={modes:{index(e,n,t,a){const i=j(n,e),r=t.axis||"x",o=t.intersect?U(e,i,r,a):z(e,i,r,!1,a),s=[];return o.length?(e.getSortedVisibleDatasetMetas().forEach(e=>{const n=o[0].index,t=e.data[n];t&&!t.skip&&s.push({element:t,datasetIndex:e.index,index:n})}),s):[]},dataset(e,n,t,a){const i=j(n,e),r=t.axis||"xy";let o=t.intersect?U(e,i,r,a):z(e,i,r,!1,a);if(o.length>0){const n=o[0].datasetIndex,t=e.getDatasetMeta(n).data;o=[];for(let e=0;eU(e,j(n,e),t.axis||"xy",a),nearest:(e,n,t,a)=>z(e,j(n,e),t.axis||"xy",t.intersect,a),x:(e,n,t,a)=>(t.axis="x",F(e,n,t,a)),y:(e,n,t,a)=>(t.axis="y",F(e,n,t,a))}};const V=["left","top","right","bottom"];function W(e,n){return e.filter(e=>e.pos===n)}function Y(e,n){return e.filter(e=>-1===V.indexOf(e.pos)&&e.box.axis===n)}function $(e,n){return e.sort((e,t)=>{const a=n?t:e,i=n?e:t;return a.weight===i.weight?a.index-i.index:a.weight-i.weight})}function G(e,n,t,a){return Math.max(e[t],n[t])+Math.max(e[a],n[a])}function q(e,n){e.top=Math.max(e.top,n.top),e.left=Math.max(e.left,n.left),e.bottom=Math.max(e.bottom,n.bottom),e.right=Math.max(e.right,n.right)}function X(e,n,t){const i=t.box,r=e.maxPadding;Object(a.Bb)(t.pos)||(t.size&&(e[t.pos]-=t.size),t.size=t.horizontal?i.height:i.width,e[t.pos]+=t.size),i.getPadding&&q(r,i.getPadding());const o=Math.max(0,n.outerWidth-G(r,e,"left","right")),s=Math.max(0,n.outerHeight-G(r,e,"top","bottom")),l=o!==e.w,d=s!==e.h;return e.w=o,e.h=s,t.horizontal?{same:l,other:d}:{same:d,other:l}}function J(e,n){const t=n.maxPadding;function a(e){const a={left:0,top:0,right:0,bottom:0};return e.forEach(e=>{a[e]=Math.max(n[e],t[e])}),a}return a(e?["left","right"]:["top","bottom"])}function Z(e,n,t){const a=[];let i,r,o,s,l,d;for(i=0,r=e.length,l=0;ie.box.fullSize),!0),a=$(W(n,"left"),!0),i=$(W(n,"right")),r=$(W(n,"top"),!0),o=$(W(n,"bottom")),s=Y(n,"x"),l=Y(n,"y");return{fullSize:t,leftAndTop:a.concat(r),rightAndBottom:i.concat(l).concat(o).concat(s),chartArea:W(n,"chartArea"),vertical:a.concat(i).concat(l),horizontal:r.concat(o).concat(s)}}(e.boxes),d=l.vertical,c=l.horizontal;Object(a.e)(e.boxes,e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()});const u=d.reduce((e,n)=>n.box.options&&!1===n.box.options.display?e:e+1,0)||1,h=Object.freeze({outerWidth:n,outerHeight:t,padding:r,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/u,hBoxMaxHeight:s/2}),p=Object.assign({},r);q(p,Object(a.d)(i));const m=Object.assign({maxPadding:p,w:o,h:s,x:r.left,y:r.top},r);!function(e,n){let t,a,i;for(t=0,a=e.length;t{const t=n.box;Object.assign(t,e.chartArea),t.update(m.w,m.h)})}};class ee{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,t){}removeEventListener(e,n,t){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,t,a){return n=Math.max(0,n||e.width),t=t||e.height,{width:n,height:Math.max(0,a?Math.floor(n/a):t)}}isAttached(e){return!0}}class ne extends ee{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}}const te={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ae=e=>null===e||""===e;const ie=!!a.k&&{passive:!0};function re(e,n,t){e.canvas.removeEventListener(n,t,ie)}function oe(e,n,t){const i=e.canvas,r=i&&Object(a.g)(i)||i,o=new MutationObserver(e=>{const n=Object(a.g)(r);e.forEach(e=>{for(let a=0;a{e.forEach(e=>{for(let n=0;n{t.currentDevicePixelRatio!==e&&n()}))}function ue(e,n,t){const i=e.canvas,r=i&&Object(a.g)(i);if(!r)return;const o=Object(a.j)((e,n)=>{const a=r.clientWidth;t(e,n),a{const n=e[0],t=n.contentRect.width,a=n.contentRect.height;0===t&&0===a||o(t,a)});return s.observe(r),function(e,n){le.size||window.addEventListener("resize",ce),le.set(e,n)}(e,o),s}function he(e,n,t){t&&t.disconnect(),"resize"===n&&function(e){le.delete(e),le.size||window.removeEventListener("resize",ce)}(e)}function pe(e,n,t){const i=e.canvas,r=Object(a.j)(n=>{null!==e.ctx&&t(function(e,n){const t=te[e.type]||e.type,{x:i,y:r}=Object(a.Sb)(e,n);return{type:t,chart:n,native:e,x:void 0!==i?i:null,y:void 0!==r?r:null}}(n,e))},e,e=>{const n=e[0];return[n,n.offsetX,n.offsetY]});return function(e,n,t){e.addEventListener(n,t,ie)}(i,n,r),r}class me extends ee{acquireContext(e,n){const t=e&&e.getContext&&e.getContext("2d");return t&&t.canvas===e?(function(e,n){const t=e.style,i=e.getAttribute("height"),r=e.getAttribute("width");if(e.$chartjs={initial:{height:i,width:r,style:{display:t.display,height:t.height,width:t.width}}},t.display=t.display||"block",t.boxSizing=t.boxSizing||"border-box",ae(r)){const n=Object(a.h)(e,"width");void 0!==n&&(e.width=n)}if(ae(i))if(""===e.style.height)e.height=e.width/(n||2);else{const n=Object(a.h)(e,"height");void 0!==n&&(e.height=n)}}(e,n),t):null}releaseContext(e){const n=e.canvas;if(!n.$chartjs)return!1;const t=n.$chartjs.initial;["height","width"].forEach(e=>{const i=t[e];Object(a.Cb)(i)?n.removeAttribute(e):n.setAttribute(e,i)});const i=t.style||{};return Object.keys(i).forEach(e=>{n.style[e]=i[e]}),n.width=n.width,delete n.$chartjs,!0}addEventListener(e,n,t){this.removeEventListener(e,n);const a=e.$proxies||(e.$proxies={}),i={attach:oe,detach:se,resize:ue}[n]||pe;a[n]=i(e,n,t)}removeEventListener(e,n){const t=e.$proxies||(e.$proxies={}),a=t[n];if(!a)return;({attach:he,detach:he,resize:he}[n]||re)(e,n,a),t[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,t,i){return Object(a.f)(e,n,t,i)}isAttached(e){const n=Object(a.g)(e);return!(!n||!Object(a.g)(n))}}class fe{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(e){const{x:n,y:t}=this.getProps(["x","y"],e);return{x:n,y:t}}hasValue(){return Object(a.Pb)(this.x)&&Object(a.Pb)(this.y)}getProps(e,n){const t=this,a=this.$animations;if(!n||!a)return t;const i={};return e.forEach(e=>{i[e]=a[e]&&a[e].active()?a[e]._to:t[e]}),i}}fe.defaults={},fe.defaultRoutes=void 0;const ge={values:e=>Object(a.ub)(e)?e:""+e,numeric(e,n,t){if(0===e)return"0";const i=this.chart.options.locale;let r,o=e;if(t.length>1){const n=Math.max(Math.abs(t[0].value),Math.abs(t[t.length-1].value));(n<1e-4||n>1e15)&&(r="scientific"),o=function(e,n){let t=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value;Math.abs(t)>1&&e!==Math.floor(e)&&(t=e-Math.floor(e));return t}(e,t)}const s=Object(a.l)(Math.abs(o)),l=Math.max(Math.min(-1*Math.floor(s),20),0),d={notation:r,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(d,this.options.ticks.format),Object(a.Ib)(e,i,d)},logarithmic(e,n,t){if(0===e)return"0";const i=e/Math.pow(10,Math.floor(Object(a.l)(e)));return 1===i||2===i||5===i?ge.numeric.call(this,e,n,t):""}};var be={formatters:ge};function ve(e,n){const t=e.options.ticks,i=t.maxTicksLimit||function(e){const n=e.options.offset,t=e._tickSize(),a=e._length/t+(n?0:1),i=e._maxLength/t;return Math.floor(Math.min(a,i))}(e),r=t.major.enabled?function(e){const n=[];let t,a;for(t=0,a=e.length;ti)return function(e,n,t,a){let i,r=0,o=t[0];for(a=Math.ceil(a),i=0;ir)return n}return Math.max(r,1)}(r,n,i);if(o>0){let e,t;const i=o>1?Math.round((l-s)/(o-1)):null;for(ye(n,d,c,Object(a.Cb)(i)?0:s-i,s),e=0,t=o-1;en.lineWidth,tickColor:(e,n)=>n.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:be.formatters.values,minor:{},major:{},align:"center",crossAlign:"near"}}),a.wb.route("scale.ticks","color","","color"),a.wb.route("scale.grid","color","","borderColor"),a.wb.route("scale.grid","borderColor","","borderColor"),a.wb.route("scale.title","color","","color"),a.wb.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e}),a.wb.describe("scales",{_fallback:"scale"});const xe=(e,n,t)=>"top"===n||"left"===n?e[n]+t:e[n]-t;function Ce(e,n){const t=[],a=e.length/n,i=e.length;let r=0;for(;ro+1e-6)))return l}function De(e){return e.drawTicks?e.tickLength:0}function Te(e,n){if(!e.display)return 0;const t=Object(a.w)(e.font,n),i=Object(a.d)(e.padding);return(Object(a.ub)(e.text)?e.text.length:1)*t.lineHeight+i.height}function Pe(e,n,t){let i=Object(a.x)(e);return(t&&"right"!==n||!t&&"right"===n)&&(i=(e=>"left"===e?"right":"right"===e?"left":e)(i)),i}class ke extends fe{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){const n=this;n.options=e.setContext(n.getContext()),n.axis=e.axis,n._userMin=n.parse(e.min),n._userMax=n.parse(e.max),n._suggestedMin=n.parse(e.suggestedMin),n._suggestedMax=n.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:t,_suggestedMax:i}=this;return e=Object(a.n)(e,Number.POSITIVE_INFINITY),n=Object(a.n)(n,Number.NEGATIVE_INFINITY),t=Object(a.n)(t,Number.POSITIVE_INFINITY),i=Object(a.n)(i,Number.NEGATIVE_INFINITY),{min:Object(a.n)(e,t),max:Object(a.n)(n,i),minDefined:Object(a.zb)(e),maxDefined:Object(a.zb)(n)}}getMinMax(e){const n=this;let t,{min:i,max:r,minDefined:o,maxDefined:s}=n.getUserBounds();if(o&&s)return{min:i,max:r};const l=n.getMatchingVisibleMetas();for(let a=0,d=l.length;a=o||i<=1||!e.isHorizontal())return void(e.labelRotation=r);const u=e._getLabelSizes(),h=u.widest.width,p=u.highest.height,m=Object(a.Qb)(e.chart.width-h,0,e.maxWidth);s=n.offset?e.maxWidth/i:m/(i-1),h+6>s&&(s=m/(i-(n.offset?.5:1)),l=e.maxHeight-De(n.grid)-t.padding-Te(n.title,e.chart.options.font),d=Math.sqrt(h*h+p*p),c=Object(a.p)(Math.min(Math.asin(Math.min((u.highest.height+6)/s,1)),Math.asin(Math.min(l/d,1))-Math.asin(p/d))),c=Math.max(r,Math.min(o,c))),e.labelRotation=c}afterCalculateLabelRotation(){Object(a.o)(this.options.afterCalculateLabelRotation,[this])}beforeFit(){Object(a.o)(this.options.beforeFit,[this])}fit(){const e=this,n={width:0,height:0},{chart:t,options:{ticks:i,title:r,grid:o}}=e,s=e._isVisible(),l=e.isHorizontal();if(s){const s=Te(r,t.options.font);if(l?(n.width=e.maxWidth,n.height=De(o)+s):(n.height=e.maxHeight,n.width=De(o)+s),i.display&&e.ticks.length){const{first:t,last:r,widest:o,highest:s}=e._getLabelSizes(),d=2*i.padding,c=Object(a.Mb)(e.labelRotation),u=Math.cos(c),h=Math.sin(c);if(l){const t=i.mirror?0:h*o.width+u*s.height;n.height=Math.min(e.maxHeight,n.height+t+d)}else{const t=i.mirror?0:u*o.width+h*s.height;n.width=Math.min(e.maxWidth,n.width+t+d)}e._calculatePadding(t,r,h,u)}}e._handleMargins(),l?(e.width=e._length=t.width-e._margins.left-e._margins.right,e.height=n.height):(e.width=n.width,e.height=e._length=t.height-e._margins.top-e._margins.bottom)}_calculatePadding(e,n,t,a){const i=this,{ticks:{align:r,padding:o},position:s}=i.options,l=0!==i.labelRotation,d="top"!==s&&"x"===i.axis;if(i.isHorizontal()){const s=i.getPixelForTick(0)-i.left,c=i.right-i.getPixelForTick(i.ticks.length-1);let u=0,h=0;l?d?(u=a*e.width,h=t*n.height):(u=t*e.height,h=a*n.width):"start"===r?h=n.width:"end"===r?u=e.width:(u=e.width/2,h=n.width/2),i.paddingLeft=Math.max((u-s+o)*i.width/(i.width-s),0),i.paddingRight=Math.max((h-c+o)*i.width/(i.width-c),0)}else{let t=n.height/2,a=e.height/2;"start"===r?(t=0,a=e.height):"end"===r&&(t=n.height,a=0),i.paddingTop=t+o,i.paddingBottom=a+o}}_handleMargins(){const e=this;e._margins&&(e._margins.left=Math.max(e.paddingLeft,e._margins.left),e._margins.top=Math.max(e.paddingTop,e._margins.top),e._margins.right=Math.max(e.paddingRight,e._margins.right),e._margins.bottom=Math.max(e.paddingBottom,e._margins.bottom))}afterFit(){Object(a.o)(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return"top"===n||"bottom"===n||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e),this.afterTickToLabelConversion()}_getLabelSizes(){const e=this;let n=e._labelSizes;if(!n){const t=e.options.ticks.sampleSize;let a=e.ticks;t{const t=e.gc,a=t.length/2;let i;if(a>n){for(i=0;i({width:r[e]||0,height:o[e]||0});return{first:w(0),last:w(n-1),widest:w(x),highest:w(C)}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){const n=this;n._reversePixels&&(e=1-e);const t=n._startPixel+e*n._length;return Object(a.s)(n._alignToPixels?Object(a.t)(n.chart,t,0):t)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this,t=n.ticks||[];if(e>=0&&es*i?s/t:l/i:l*i0}_computeGridLineItems(e){const n=this,t=n.axis,i=n.chart,r=n.options,{grid:o,position:s}=r,l=o.offset,d=n.isHorizontal(),c=n.ticks.length+(l?1:0),u=De(o),h=[],p=o.setContext(n.getContext(0)),m=p.drawBorder?p.borderWidth:0,f=m/2,g=function(e){return Object(a.t)(i,e,m)};let b,v,y,x,C,w,D,T,P,k,S,O;if("top"===s)b=g(n.bottom),w=n.bottom-u,T=b-f,k=g(e.top)+f,O=e.bottom;else if("bottom"===s)b=g(n.top),k=e.top,O=g(e.bottom)-f,w=b+f,T=n.top+u;else if("left"===s)b=g(n.right),C=n.right-u,D=b-f,P=g(e.left)+f,S=e.right;else if("right"===s)b=g(n.left),P=e.left,S=g(e.right)-f,C=b+f,D=n.left+u;else if("x"===t){if("center"===s)b=g((e.top+e.bottom)/2+.5);else if(Object(a.Bb)(s)){const e=Object.keys(s)[0],t=s[e];b=g(n.chart.scales[e].getPixelForValue(t))}k=e.top,O=e.bottom,w=b+f,T=w+u}else if("y"===t){if("center"===s)b=g((e.left+e.right)/2);else if(Object(a.Bb)(s)){const e=Object.keys(s)[0],t=s[e];b=g(n.chart.scales[e].getPixelForValue(t))}C=b-f,D=C-u,P=e.left,S=e.right}for(v=0;vn.value===e);if(a>=0){return t.setContext(n.getContext(a)).lineWidth}return 0}drawGrid(e){const n=this,t=n.options.grid,i=n.ctx,r=n.chart,o=t.setContext(n.getContext()),s=t.drawBorder?o.borderWidth:0,l=n._gridLineItems||(n._gridLineItems=n._computeGridLineItems(e));let d,c;const u=(e,n,t)=>{t.width&&t.color&&(i.save(),i.lineWidth=t.width,i.strokeStyle=t.color,i.setLineDash(t.borderDash||[]),i.lineDashOffset=t.borderDashOffset,i.beginPath(),i.moveTo(e.x,e.y),i.lineTo(n.x,n.y),i.stroke(),i.restore())};if(t.display)for(d=0,c=l.length;d{const i=t.split("."),r=i.pop(),o=[e].concat(i).join("."),s=n[t].split("."),l=s.pop(),d=s.join(".");a.wb.route(o,r,d,l)})}(n,e.defaultRoutes);e.descriptors&&a.wb.describe(n,e.descriptors)}(e,s,i),n.override&&a.wb.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const n=this.items,t=e.id,i=this.scope;t in n&&delete n[t],i&&t in a.wb[i]&&(delete a.wb[i][t],this.override&&delete a.z[t])}}var Oe=new class{constructor(){this.controllers=new Se(y,"datasets",!0),this.elements=new Se(fe,"elements"),this.plugins=new Se(Object,"plugins"),this.scales=new Se(ke,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,t){const i=this;[...n].forEach(n=>{const r=t||i._getRegistryForType(n);t||r.isForType(n)||r===i.plugins&&n.id?i._exec(e,r,n):Object(a.e)(n,n=>{const a=t||i._getRegistryForType(n);i._exec(e,a,n)})})}_exec(e,n,t){const i=Object(a.a)(e);Object(a.o)(t["before"+i],[],t),n[e](t),Object(a.o)(t["after"+i],[],t)}_getRegistryForType(e){for(let n=0;ne.filter(e=>!n.some(n=>e.plugin.id===n.plugin.id));this._notify(a(n,t),e,"stop"),this._notify(a(t,n),e,"start")}}function Re(e,n){return n||!1!==e?!0===e?{}:e:null}function Ie(e,n,t,a){const i=e.pluginScopeKeys(n),r=e.getOptionScopes(t,i);return e.createResolver(r,a,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function _e(e,n){const t=a.wb.datasets[e]||{};return((n.datasets||{})[e]||{}).indexAxis||n.indexAxis||t.indexAxis||"x"}function Ee(e,n){return"x"===e||"y"===e?e:n.axis||("top"===(t=n.position)||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0)||e.charAt(0).toLowerCase();var t}function Le(e){const n=e.options||(e.options={});n.plugins=Object(a.Ob)(n.plugins,{}),n.scales=function(e,n){const t=a.z[e.type]||{scales:{}},i=n.scales||{},r=_e(e.type,n),o=Object.create(null),s=Object.create(null);return Object.keys(i).forEach(e=>{const n=i[e],l=Ee(e,n),d=function(e,n){return e===n?"_index_":"_value_"}(l,r),c=t.scales||{};o[l]=o[l]||e,s[e]=Object(a.I)(Object.create(null),[{axis:l},n,c[l],c[d]])}),e.data.datasets.forEach(t=>{const r=t.type||e.type,l=t.indexAxis||_e(r,n),d=(a.z[r]||{}).scales||{};Object.keys(d).forEach(e=>{const n=function(e,n){let t=e;return"_index_"===e?t=n:"_value_"===e&&(t="x"===n?"y":"x"),t}(e,l),r=t[n+"AxisID"]||o[n]||n;s[r]=s[r]||Object.create(null),Object(a.I)(s[r],[{axis:n},i[r],d[e]])})}),Object.keys(s).forEach(e=>{const n=s[e];Object(a.I)(n,[a.wb.scales[n.type],a.wb.scale])}),s}(e,n)}const Me=new Map,je=new Set;function Ne(e,n){let t=Me.get(e);return t||(t=n(),Me.set(e,t),je.add(t)),t}const Be=(e,n,t)=>{const i=Object(a.yb)(n,t);void 0!==i&&e.add(i)};class Ue{constructor(e){this._config=function(e){const n=(e=e||{}).data=e.data||{datasets:[],labels:[]};return n.datasets=n.datasets||[],n.labels=n.labels||[],Le(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=e}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Le(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Ne(e,()=>[["datasets."+e,""]])}datasetAnimationScopeKeys(e,n){return Ne(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,"transitions."+n],["datasets."+e,""]])}datasetElementScopeKeys(e,n){return Ne(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,"datasets."+e,"elements."+n,""]])}pluginScopeKeys(e){const n=e.id;return Ne(`${this.type}-plugin-${n}`,()=>[["plugins."+n,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const t=this._scopeCache;let a=t.get(e);return a&&!n||(a=new Map,t.set(e,a)),a}getOptionScopes(e,n,t){const{options:i,type:r}=this,o=this._cachedScopes(e,t),s=o.get(n);if(s)return s;const l=new Set;n.forEach(n=>{e&&(l.add(e),n.forEach(n=>Be(l,e,n))),n.forEach(e=>Be(l,i,e)),n.forEach(e=>Be(l,a.z[r]||{},e)),n.forEach(e=>Be(l,a.wb,e)),n.forEach(e=>Be(l,a.D,e))});const d=[...l];return je.has(n)&&o.set(n,d),d}chartOptionScopes(){const{options:e,type:n}=this;return[e,a.z[n]||{},a.wb.datasets[n]||{},{type:n},a.wb,a.D]}resolveNamedOptions(e,n,t,i=[""]){const r={$shared:!0},{resolver:o,subPrefixes:s}=ze(this._resolverCache,e,i);let l=o;if(function(e,n){const{isScriptable:t,isIndexable:i}=Object(a.H)(e);for(const r of n)if(t(r)&&Object(a.E)(e[r])||i(r)&&Object(a.ub)(e[r]))return!0;return!1}(o,n)){r.$shared=!1,t=Object(a.E)(t)?t():t;const n=this.createResolver(e,t,s);l=Object(a.F)(o,t,n)}for(const e of n)r[e]=l[e];return r}createResolver(e,n,t=[""],i){const{resolver:r}=ze(this._resolverCache,e,t);return Object(a.Bb)(n)?Object(a.F)(r,n,void 0,i):r}}function ze(e,n,t){let i=e.get(n);i||(i=new Map,e.set(n,i));const r=t.join();let o=i.get(r);if(!o){o={resolver:Object(a.G)(n,t),subPrefixes:t.filter(e=>!e.toLowerCase().includes("hover"))},i.set(r,o)}return o}const Fe=["top","bottom","left","right","chartArea"];function He(e,n){return"top"===e||"bottom"===e||-1===Fe.indexOf(e)&&"x"===n}function Ve(e,n){return function(t,a){return t[e]===a[e]?t[n]-a[n]:t[e]-a[e]}}function We(e){const n=e.chart,t=n.options.animation;n.notifyPlugins("afterRender"),Object(a.o)(t&&t.onComplete,[e],n)}function Ye(e){const n=e.chart,t=n.options.animation;Object(a.o)(t&&t.onProgress,[e],n)}function $e(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Ge(e){return $e()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const qe={},Xe=e=>{const n=Ge(e);return Object.values(qe).filter(e=>e.canvas===n).pop()};class Je{constructor(e,n){const t=this;this.config=n=new Ue(n);const r=Ge(e),o=Xe(r);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas can be reused.");const s=n.createResolver(n.chartOptionScopes(),t.getContext());this.platform=t._initializePlatform(r,n);const l=t.platform.acquireContext(r,s.aspectRatio),d=l&&l.canvas,c=d&&d.height,u=d&&d.width;this.id=Object(a.J)(),this.ctx=l,this.canvas=d,this.width=u,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._sortedMetasets=[],this.scales={},this.scale=void 0,this._plugins=new Ae,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Object(a.K)(()=>this.update("resize"),s.resizeDelay||0),qe[t.id]=t,l&&d?(i.listen(t,"complete",We),i.listen(t,"progress",Ye),t._initialize(),t.attached&&t.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:t,height:i,_aspectRatio:r}=this;return Object(a.Cb)(e)?n&&r?r:i?t/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}_initialize(){const e=this;return e.notifyPlugins("beforeInit"),e.options.responsive?e.resize():Object(a.L)(e,e.options.devicePixelRatio),e.bindEvents(),e.notifyPlugins("afterInit"),e}_initializePlatform(e,n){return n.platform?new n.platform:!$e()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?new ne:new me}clear(){return Object(a.M)(this.canvas,this.ctx),this}stop(){return i.stop(this),this}resize(e,n){i.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const t=this,i=t.options,r=t.canvas,o=i.maintainAspectRatio&&t.aspectRatio,s=t.platform.getMaximumSize(r,e,n,o),l=t.currentDevicePixelRatio,d=i.devicePixelRatio||t.platform.getDevicePixelRatio();t.width===s.width&&t.height===s.height&&l===d||(t.width=s.width,t.height=s.height,t._aspectRatio=t.aspectRatio,Object(a.L)(t,d,!0),t.notifyPlugins("resize",{size:s}),Object(a.o)(i.onResize,[t,s],t),t.attached&&t._doResize()&&t.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};Object(a.e)(e,(e,n)=>{e.id=n})}buildOrUpdateScales(){const e=this,n=e.options,t=n.scales,i=e.scales,r=Object.keys(i).reduce((e,n)=>(e[n]=!1,e),{});let o=[];t&&(o=o.concat(Object.keys(t).map(e=>{const n=t[e],a=Ee(e,n),i="r"===a,r="x"===a;return{options:n,dposition:i?"chartArea":r?"bottom":"left",dtype:i?"radialLinear":r?"category":"linear"}}))),Object(a.e)(o,t=>{const o=t.options,s=o.id,l=Ee(s,o),d=Object(a.Ob)(o.type,t.dtype);void 0!==o.position&&He(o.position,l)===He(t.dposition)||(o.position=t.dposition),r[s]=!0;let c=null;if(s in i&&i[s].type===d)c=i[s];else{c=new(Oe.getScale(d))({id:s,type:d,ctx:e.ctx,chart:e}),i[c.id]=c}c.init(o,n)}),Object(a.e)(r,(e,n)=>{e||delete i[n]}),Object(a.e)(i,n=>{Q.configure(e,n,n.options),Q.addBox(e,n)})}_updateMetasetIndex(e,n){const t=this._metasets,a=e.index;a!==n&&(t[a]=t[n],t[n]=e,e.index=n)}_updateMetasets(){const e=this,n=e._metasets,t=e.data.datasets.length,a=n.length;if(a>t){for(let n=t;nt.length&&delete e._stacks,n.forEach((n,a)=>{0===t.filter(e=>e===n._dataset).length&&e._destroyDatasetMeta(a)})}buildOrUpdateControllers(){const e=this,n=[],t=e.data.datasets;let i,r;for(e._removeUnreferencedMetasets(),i=0,r=t.length;i{e.getDatasetMeta(t).controller.reset()},e)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this,t=n.config;t.update(),n._options=t.createResolver(t.chartOptionScopes(),n.getContext()),Object(a.e)(n.scales,e=>{Q.removeBox(n,e)});const i=n._animationsDisabled=!n.options.animation;if(n.ensureScalesHaveIDs(),n.buildOrUpdateScales(),n._plugins.invalidate(),!1===n.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const r=n.buildOrUpdateControllers();n.notifyPlugins("beforeElementsUpdate");let o=0;for(let e=0,t=n.data.datasets.length;e{e.reset()}),n._updateDatasets(e),n.notifyPlugins("afterUpdate",{mode:e}),n._layers.sort(Ve("z","_idx")),n._lastEvent&&n._eventHandler(n._lastEvent,!0),n.render()}_updateLayout(e){const n=this;if(!1===n.notifyPlugins("beforeLayout",{cancelable:!0}))return;Q.update(n,n.width,n.height,e);const t=n.chartArea,i=t.width<=0||t.height<=0;n._layers=[],Object(a.e)(n.boxes,e=>{i&&"chartArea"===e.position||(e.configure&&e.configure(),n._layers.push(...e._layers()))},n),n._layers.forEach((e,n)=>{e._idx=n}),n.notifyPlugins("afterLayout")}_updateDatasets(e){const n=this,t="function"==typeof e;if(!1!==n.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let a=0,i=n.data.datasets.length;a=0;--t)e._drawDataset(n[t]);e.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this,t=n.ctx,i=e._clip,r=n.chartArea,o={meta:e,index:e.index,cancelable:!0};!1!==n.notifyPlugins("beforeDatasetDraw",o)&&(Object(a.Db)(t,{left:!1===i.left?0:r.left-i.left,right:!1===i.right?n.width:r.right+i.right,top:!1===i.top?0:r.top-i.top,bottom:!1===i.bottom?n.height:r.bottom+i.bottom}),e.controller.draw(),Object(a.Fb)(t),o.cancelable=!1,n.notifyPlugins("afterDatasetDraw",o))}getElementsAtEventForMode(e,n,t,a){const i=H.modes[n];return"function"==typeof i?i(this,e,t,a):[]}getDatasetMeta(e){const n=this.data.datasets[e],t=this._metasets;let a=t.filter(e=>e&&e._dataset===n).pop();return a||(a=t[e]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1}),a}getContext(){return this.$context||(this.$context={chart:this,type:"chart"})}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!n.hidden}setDatasetVisibility(e,n){this.getDatasetMeta(e).hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateDatasetVisibility(e,n){const t=n?"show":"hide",a=this.getDatasetMeta(e),i=a.controller._resolveAnimations(void 0,t);this.setDatasetVisibility(e,n),i.update(a,{visible:n}),this.update(n=>n.datasetIndex===e?t:void 0)}hide(e){this._updateDatasetVisibility(e,!1)}show(e){this._updateDatasetVisibility(e,!0)}_destroyDatasetMeta(e){const n=this,t=n._metasets&&n._metasets[e];t&&t.controller&&(t.controller._destroy(),delete n._metasets[e])}destroy(){const e=this,{canvas:n,ctx:t}=e;let r,o;for(e.stop(),i.remove(e),r=0,o=e.data.datasets.length;r{t.addEventListener(e,a,i),n[a]=i},r=(a,i)=>{n[a]&&(t.removeEventListener(e,a,i),delete n[a])};let o=function(n,t,a){n.offsetX=t,n.offsetY=a,e._eventHandler(n)};if(Object(a.e)(e.options.events,e=>i(e,o)),e.options.responsive){let n;o=(n,t)=>{e.canvas&&e.resize(n,t)};const a=()=>{r("attach",a),e.attached=!0,e.resize(),i("resize",o),i("detach",n)};n=()=>{e.attached=!1,r("resize",o),i("attach",a)},t.isAttached(e.canvas)?a():n()}else e.attached=!0}unbindEvents(){const e=this,n=e._listeners;n&&(delete e._listeners,Object(a.e)(n,(n,t)=>{e.platform.removeEventListener(e,t,n)}))}updateHoverStyle(e,n,t){const a=t?"set":"remove";let i,r,o,s;for("dataset"===n&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+a+"DatasetHoverStyle"]()),o=0,s=e.length;o{const a=n.getDatasetMeta(e);if(!a)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:a.data[t],index:t}});!Object(a.U)(i,t)&&(n._active=i,n._updateHoverStyles(i,t))}notifyPlugins(e,n,t){return this._plugins.notify(this,e,n,t)}_updateHoverStyles(e,n,t){const a=this,i=a.options.hover,r=(e,n)=>e.filter(e=>!n.some(n=>e.datasetIndex===n.datasetIndex&&e.index===n.index)),o=r(n,e),s=t?e:r(e,n);o.length&&a.updateHoverStyle(o,i.mode,!1),s.length&&i.mode&&a.updateHoverStyle(s,i.mode,!0)}_eventHandler(e,n){const t=this,a={event:e,replay:n,cancelable:!0},i=n=>(n.options.events||this.options.events).includes(e.type);if(!1===t.notifyPlugins("beforeEvent",a,i))return;const r=t._handleEvent(e,n);return a.cancelable=!1,t.notifyPlugins("afterEvent",a,i),(r||a.changed)&&t.render(),t}_handleEvent(e,n){const t=this,{_active:i=[],options:r}=t,o=r.hover,s=n;let l=[],d=!1,c=null;return"mouseout"!==e.type&&(l=t.getElementsAtEventForMode(e,o.mode,o,s),c="click"===e.type?t._lastEvent:e),t._lastEvent=null,Object(a.b)(e,t.chartArea,t._minPadding)&&(Object(a.o)(r.onHover,[e,l,t],t),"mouseup"!==e.type&&"click"!==e.type&&"contextmenu"!==e.type||Object(a.o)(r.onClick,[e,l,t],t)),d=!Object(a.U)(l,i),(d||n)&&(t._active=l,t._updateHoverStyles(l,i,n)),t._lastEvent=c,d}}const Ze=()=>Object(a.e)(Je.instances,e=>e._plugins.invalidate());function Ke(e,n){const{startAngle:t,endAngle:i,pixelMargin:r,x:o,y:s,outerRadius:l,innerRadius:d}=n;let c=r/l;e.beginPath(),e.arc(o,s,l,t-c,i+c),d>r?(c=r/d,e.arc(o,s,d,i+c,t-c,!0)):e.arc(o,s,r,i+a.i,t-a.i),e.closePath(),e.clip()}function Qe(e,n,t,i){const r=(o=e.options.borderRadius,Object(a.W)(o,["outerStart","outerEnd","innerStart","innerEnd"]));var o;const s=(t-n)/2,l=Math.min(s,i*n/2),d=e=>{const n=(t-Math.min(s,e))*i/2;return Object(a.Qb)(e,0,Math.min(s,n))};return{outerStart:d(r.outerStart),outerEnd:d(r.outerEnd),innerStart:Object(a.Qb)(r.innerStart,0,l),innerEnd:Object(a.Qb)(r.innerEnd,0,l)}}function en(e,n,t,a){return{x:t+e*Math.cos(n),y:a+e*Math.sin(n)}}function nn(e,n){const{x:t,y:i,startAngle:r,endAngle:o,pixelMargin:s}=n,l=Math.max(n.outerRadius-s,0),d=n.innerRadius+s,{outerStart:c,outerEnd:u,innerStart:h,innerEnd:p}=Qe(n,d,l,o-r),m=l-c,f=l-u,g=r+c/m,b=o-u/f,v=d+h,y=d+p,x=r+h/v,C=o-p/y;if(e.beginPath(),e.arc(t,i,l,g,b),u>0){const n=en(f,b,t,i);e.arc(n.x,n.y,u,b,o+a.i)}const w=en(y,o,t,i);if(e.lineTo(w.x,w.y),p>0){const n=en(y,C,t,i);e.arc(n.x,n.y,p,o+a.i,C+Math.PI)}if(e.arc(t,i,d,o-p/d,r+h/d,!0),h>0){const n=en(v,x,t,i);e.arc(n.x,n.y,h,x+Math.PI,r-a.i)}const D=en(m,r,t,i);if(e.lineTo(D.x,D.y),c>0){const n=en(m,g,t,i);e.arc(n.x,n.y,c,r-a.i,g)}e.closePath()}function tn(e,n){const{options:t}=n,i="inner"===t.borderAlign;t.borderWidth&&(i?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&function(e,n,t){const{x:i,y:r,startAngle:o,endAngle:s,pixelMargin:l}=n,d=Math.max(n.outerRadius-l,0),c=n.innerRadius+l;let u;for(t&&(n.endAngle=n.startAngle+a.u,Ke(e,n),n.endAngle=s,n.endAngle===n.startAngle&&(n.endAngle+=a.u,n.fullCircles--)),e.beginPath(),e.arc(i,r,c,o+a.u,o,!0),u=0;u{Oe.add(...e),Ze()}},unregister:{enumerable:!0,value:(...e)=>{Oe.remove(...e),Ze()}}});class an extends fe{constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,n,t){const i=this.getProps(["x","y"],t),{angle:r,distance:o}=Object(a.V)(i,{x:e,y:n}),{startAngle:s,endAngle:l,innerRadius:d,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],t);return(u>=a.u||Object(a.Jb)(r,s,l))&&(o>=d&&o<=c)}getCenterPoint(e){const{x:n,y:t,startAngle:a,endAngle:i,innerRadius:r,outerRadius:o}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),s=(a+i)/2,l=(r+o)/2;return{x:n+Math.cos(s)*l,y:t+Math.sin(s)*l}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const n=this,t=n.options,i=t.offset||0;if(n.pixelMargin="inner"===t.borderAlign?.33:0,n.fullCircles=Math.floor(n.circumference/a.u),!(0===n.circumference||n.innerRadius<0||n.outerRadius<0)){if(e.save(),i&&n.circumference(o+(d?s-e:e))%r,y=()=>{p!==m&&(e.lineTo(g,m),e.lineTo(g,p),e.lineTo(g,f))};for(l&&(u=i[v(0)],e.moveTo(u.x,u.y)),c=0;c<=s;++c){if(u=i[v(c)],u.skip)continue;const n=u.x,t=u.y,a=0|n;a===h?(tm&&(m=t),g=(b*g+n)/++b):(y(),e.lineTo(n,t),h=a,b=0,p=m=t),f=t}y()}function cn(e){const n=e.options,t=n.borderDash&&n.borderDash.length;return!(e._decimated||e._loop||n.tension||n.stepped||t)?dn:ln}an.id="arc",an.defaults={borderAlign:"center",borderColor:"#fff",borderRadius:0,borderWidth:2,offset:0,angle:void 0},an.defaultRoutes={backgroundColor:"backgroundColor"};const un="function"==typeof Path2D;function hn(e,n,t,a){un&&1===n.segments.length?function(e,n,t,a){let i=n._path;i||(i=n._path=new Path2D,n.path(i,t,a)&&i.closePath()),rn(e,n.options),e.stroke(i)}(e,n,t,a):function(e,n,t,a){const{segments:i,options:r}=n,o=cn(n);for(const s of i)rn(e,r,s.style),e.beginPath(),o(e,n,s,{start:t,end:t+a-1})&&e.closePath(),e.stroke()}(e,n,t,a)}class pn extends fe{constructor(e){super(),this.animated=!0,this.options=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,e&&Object.assign(this,e)}updateControlPoints(e){const n=this,t=n.options;if(t.tension&&!t.stepped&&!n._pointsUpdated){const i=t.spanGaps?n._loop:n._fullLoop;Object(a.X)(n._points,t,e,i),n._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Object(a.Y)(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,t=e.length;return t&&n[e[t-1].end]}interpolate(e,n){const t=this.options,i=e[n],r=this.points,o=Object(a.Z)(this,{property:n,start:i,end:i});if(!o.length)return;const s=[],l=function(e){return e.stepped?a.ab:e.tension?a.bb:a.cb}(t);let d,c;for(d=0,c=o.length;d"borderDash"!==e&&"fill"!==e};class fn extends fe{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,n,t){const a=this.options,{x:i,y:r}=this.getProps(["x","y"],t);return Math.pow(e-i,2)+Math.pow(n-r,2)e.x):vn(n,"bottom","top",e.base=o.left&&n<=o.right)&&(r||t>=o.top&&t<=o.bottom)}function Dn(e,n){e.rect(n.x,n.y,n.w,n.h)}fn.id="point",fn.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},fn.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Tn extends fe{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,e&&Object.assign(this,e)}draw(e){const n=this.options,{inner:t,outer:i}=Cn(this),r=(o=i.radius).topLeft||o.topRight||o.bottomLeft||o.bottomRight?a.gb:Dn;var o;e.save(),i.w===t.w&&i.h===t.h||(e.beginPath(),r(e,i),e.clip(),r(e,t),e.fillStyle=n.borderColor,e.fill("evenodd")),e.beginPath(),r(e,t),e.fillStyle=n.backgroundColor,e.fill(),e.restore()}inRange(e,n,t){return wn(this,e,n,t)}inXRange(e,n){return wn(this,e,null,n)}inYRange(e,n){return wn(this,null,e,n)}getCenterPoint(e){const{x:n,y:t,base:a,horizontal:i}=this.getProps(["x","y","base","horizontal"],e);return{x:i?(n+a)/2:n,y:i?t:(t+a)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}Tn.id="bar",Tn.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,pointStyle:void 0},Tn.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Pn=Object.freeze({__proto__:null,ArcElement:an,LineElement:pn,PointElement:fn,BarElement:Tn});function kn(e){e.data.datasets.forEach(e=>{if(e._decimated){const n=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:n})}})}var Sn={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,n,t)=>{if(!t.enabled)return void kn(e);const i=e.width;e.data.datasets.forEach((n,r)=>{const{_data:o,indexAxis:s}=n,l=e.getDatasetMeta(r),d=o||n.data;if("y"===Object(a.C)([s,e.options.indexAxis]))return;if("line"!==l.type)return;const c=e.scales[l.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(e.options.parsing)return;let u,{start:h,count:p}=function(e,n){const t=n.length;let i,r=0;const{iScale:o}=e,{min:s,max:l,minDefined:d,maxDefined:c}=o.getUserBounds();return d&&(r=Object(a.Qb)(Object(a.Rb)(n,o.axis,s).lo,0,t-1)),i=c?Object(a.Qb)(Object(a.Rb)(n,o.axis,l).hi+1,r,t)-r:t-r,{start:r,count:i}}(l,d);if(!(p<=4*i)){switch(Object(a.Cb)(o)&&(n._data=d,delete n.data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),t.algorithm){case"lttb":u=function(e,n,t,a,i){const r=i.samples||a;if(r>=t)return e.slice(n,n+t);const o=[],s=(t-2)/(r-2);let l=0;const d=n+t-1;let c,u,h,p,m,f=n;for(o[l++]=e[f],c=0;ch&&(h=p,u=e[a],m=a);o[l++]=u,f=m}return o[l++]=e[d],o}(d,h,p,i,t);break;case"min-max":u=function(e,n,t,i){let r,o,s,l,d,c,u,h,p,m,f=0,g=0;const b=[],v=n+t-1,y=e[n].x,x=e[v].x-y;for(r=n;rm&&(m=l,u=r),f=(g*f+o.x)/++g;else{const t=r-1;if(!Object(a.Cb)(c)&&!Object(a.Cb)(u)){const n=Math.min(c,u),a=Math.max(c,u);n!==h&&n!==t&&b.push({...e[n],x:f}),a!==h&&a!==t&&b.push({...e[a],x:f})}r>0&&t!==h&&b.push(e[t]),b.push(o),d=n,g=0,p=m=l,c=u=h=r}}return b}(d,h,p,i);break;default:throw new Error(`Unsupported decimation algorithm '${t.algorithm}'`)}n._decimated=u}})},destroy(e){kn(e)}};function On(e,n,t){const i=function(e){const n=e.options,t=n.fill;let i=Object(a.Ob)(t&&t.target,t);return void 0===i&&(i=!!n.backgroundColor),!1!==i&&null!==i&&(!0===i?"origin":i)}(e);if(Object(a.Bb)(i))return!isNaN(i.value)&&i;let r=parseFloat(i);return Object(a.zb)(r)&&Math.floor(r)===r?("-"!==i[0]&&"+"!==i[0]||(r=n+r),!(r===n||r<0||r>=t)&&r):["origin","start","end","stack"].indexOf(i)>=0&&i}class An{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,n,t){const{x:i,y:r,radius:o}=this;return n=n||{start:0,end:a.u},e.arc(i,r,o,n.end,n.start,!0),!t.bounds}interpolate(e){const{x:n,y:t,radius:a}=this,i=e.angle;return{x:n+Math.cos(i)*a,y:t+Math.sin(i)*a,angle:i}}}function Rn(e){return(e.scale||{}).getPointPositionForValue?function(e){const{scale:n,fill:t}=e,i=n.options,r=n.getLabels().length,o=[],s=i.reverse?n.max:n.min,l=i.reverse?n.min:n.max;let d,c,u;if(u="start"===t?s:"end"===t?l:Object(a.Bb)(t)?t.value:n.getBaseValue(),i.grid.circular)return c=n.getPointPositionForValue(0,s),new An({x:c.x,y:c.y,radius:n.getDistanceFromCenterForValue(u)});for(d=0;d"line"===e.type&&!e.hidden;function En(e,n,t){const a=[];for(let i=0;i=a&&i<=d){s=i===a,l=i===d;break}}return{first:s,last:l,point:a}}function Mn(e,n){let t=[],i=!1;return Object(a.ub)(e)?(i=!0,t=e):t=function(e,n){const{x:t=null,y:a=null}=e||{},i=n.points,r=[];return n.segments.forEach(e=>{const n=i[e.start],o=i[e.end];null!==a?(r.push({x:n.x,y:a}),r.push({x:o.x,y:a})):null!==t&&(r.push({x:t,y:n.y}),r.push({x:t,y:o.y}))}),r}(e,n),t.length?new pn({points:t,options:{tension:0},_loop:i,_fullLoop:i}):null}function jn(e,n,t){let i=e[n].fill;const r=[n];let o;if(!t)return i;for(;!1!==i&&-1===r.indexOf(i);){if(!Object(a.zb)(i))return i;if(o=e[i],!o)return!1;if(o.visible)return i;r.push(i),i=o.fill}return!1}function Nn(e,n,t){e.beginPath(),n.path(e),e.lineTo(n.last().x,t),e.lineTo(n.first().x,t),e.closePath(),e.clip()}function Bn(e,n,t,i){if(i)return;let r=n[e],o=t[e];return"angle"===e&&(r=Object(a.kb)(r),o=Object(a.kb)(o)),{property:e,start:r,end:o}}function Un(e,n,t,a){return e&&n?a(e[t],n[t]):e?e[t]:n?n[t]:0}function zn(e,n,t){const{top:a,bottom:i}=n.chart.chartArea,{property:r,start:o,end:s}=t||{};"x"===r&&(e.beginPath(),e.rect(o,a,s-o,i-a),e.clip())}function Fn(e,n,t,a){const i=n.interpolate(t,a);i&&e.lineTo(i.x,i.y)}function Hn(e,n){const{line:t,target:i,property:r,color:o,scale:s}=n,l=function(e,n,t){const i=e.segments,r=e.points,o=n.points,s=[];for(const e of i){const i=Bn(t,r[e.start],r[e.end],e.loop);if(!n.segments){s.push({source:e,target:i,start:r[e.start],end:r[e.end]});continue}const l=Object(a.Z)(n,i);for(const n of l){const l=Bn(t,o[n.start],o[n.end],n.loop),d=Object(a.jb)(e,r,l);for(const e of d)s.push({source:e,target:n,start:{[t]:Un(i,l,"start",Math.max)},end:{[t]:Un(i,l,"end",Math.min)}})}}return s}(t,i,r);for(const{source:n,target:a,start:d,end:c}of l){const{style:{backgroundColor:l=o}={}}=n;e.save(),e.fillStyle=l,zn(e,s,Bn(r,d,c)),e.beginPath();const u=!!t.pathSegment(e,n);u?e.closePath():Fn(e,i,c,r);const h=!!i.pathSegment(e,a,{move:u,reverse:!0}),p=u&&h;p||Fn(e,i,d,r),e.closePath(),e.fill(p?"evenodd":"nonzero"),e.restore()}}function Vn(e,n,t){const i=function(e){const{chart:n,fill:t,line:i}=e;if(Object(a.zb)(t))return function(e,n){const t=e.getDatasetMeta(n);return t&&e.isDatasetVisible(n)?t.dataset:null}(n,t);if("stack"===t)return In(e);const r=Rn(e);return r instanceof An?r:Mn(r,i)}(n),{line:r,scale:o}=n,s=r.options,l=s.fill,d=s.backgroundColor,{above:c=d,below:u=d}=l||{};i&&r.points.length&&(Object(a.Db)(e,t),function(e,n){const{line:t,target:a,above:i,below:r,area:o,scale:s}=n,l=t._loop?"angle":"x";e.save(),"x"===l&&r!==i&&(Nn(e,a,o.top),Hn(e,{line:t,target:a,color:i,scale:s,property:l}),e.restore(),e.save(),Nn(e,a,o.bottom)),Hn(e,{line:t,target:a,color:r,scale:s,property:l}),e.restore()}(e,{line:r,target:i,above:c,below:u,area:t,scale:o}),Object(a.Fb)(e))}var Wn={id:"filler",afterDatasetsUpdate(e,n,t){const a=(e.data.datasets||[]).length,i=[];let r,o,s,l;for(o=0;o=0;--n){const r=a[n].$filler;r&&(r.line.updateControlPoints(i),"beforeDatasetsDraw"===t.drawTime&&Vn(e.ctx,r,i))}},beforeDatasetDraw(e,n,t){const a=n.meta.$filler;a&&!1!==a.fill&&"beforeDatasetDraw"===t.drawTime&&Vn(e.ctx,a,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Yn=(e,n)=>{let{boxHeight:t=n,boxWidth:a=n}=e;return e.usePointStyle&&(t=Math.min(t,n),a=Math.min(a,n)),{boxWidth:a,boxHeight:t,itemHeight:Math.max(n,t)}};class $n extends fe{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,t){const a=this;a.maxWidth=e,a.maxHeight=n,a._margins=t,a.setDimensions(),a.buildLabels(),a.fit()}setDimensions(){const e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height)}buildLabels(){const e=this,n=e.options.labels||{};let t=Object(a.o)(n.generateLabels,[e.chart],e)||[];n.filter&&(t=t.filter(t=>n.filter(t,e.chart.data))),n.sort&&(t=t.sort((t,a)=>n.sort(t,a,e.chart.data))),e.options.reverse&&t.reverse(),e.legendItems=t}fit(){const e=this,{options:n,ctx:t}=e;if(!n.display)return void(e.width=e.height=0);const i=n.labels,r=Object(a.w)(i.font),o=r.size,s=e._computeTitleHeight(),{boxWidth:l,itemHeight:d}=Yn(i,o);let c,u;t.font=r.string,e.isHorizontal()?(c=e.maxWidth,u=e._fitRows(s,o,l,d)+10):(u=e.maxHeight,c=e._fitCols(s,o,l,d)+10),e.width=Math.min(c,n.maxWidth||e.maxWidth),e.height=Math.min(u,n.maxHeight||e.maxHeight)}_fitRows(e,n,t,a){const{ctx:i,maxWidth:r,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],d=a+o;let c=e;i.textAlign="left",i.textBaseline="middle";let u=-1,h=-d;return this.legendItems.forEach((e,p)=>{const m=t+n/2+i.measureText(e.text).width;(0===p||l[l.length-1]+m+2*o>r)&&(c+=d,l[l.length-(p>0?0:1)]=0,h+=d,u++),s[p]={left:0,top:h,row:u,width:m,height:a},l[l.length-1]+=m+o}),c}_fitCols(e,n,t,a){const{ctx:i,maxHeight:r,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],d=r-e;let c=o,u=0,h=0,p=0,m=0,f=0;return this.legendItems.forEach((e,r)=>{const g=t+n/2+i.measureText(e.text).width;r>0&&h+n+2*o>d&&(c+=u+o,l.push({width:u,height:h}),p+=u+o,f++,m=0,u=h=0),u=Math.max(u,g),h+=n+o,s[r]={left:p,top:m,col:f,width:g,height:a},m+=a+o}),c+=u,l.push({width:u,height:h}),c}adjustHitBoxes(){const e=this;if(!e.options.display)return;const n=e._computeTitleHeight(),{legendHitBoxes:t,options:{align:i,labels:{padding:r}}}=e;if(this.isHorizontal()){let o=0,s=Object(a.y)(i,e.left+r,e.right-e.lineWidths[o]);for(const l of t)o!==l.row&&(o=l.row,s=Object(a.y)(i,e.left+r,e.right-e.lineWidths[o])),l.top+=e.top+n+r,l.left=s,s+=l.width+r}else{let o=0,s=Object(a.y)(i,e.top+n+r,e.bottom-e.columnSizes[o].height);for(const l of t)l.col!==o&&(o=l.col,s=Object(a.y)(i,e.top+n+r,e.bottom-e.columnSizes[o].height)),l.top=s,l.left+=e.left+r,s+=l.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){const e=this;if(e.options.display){const n=e.ctx;Object(a.Db)(n,e),e._draw(),Object(a.Fb)(n)}}_draw(){const e=this,{options:n,columnSizes:t,lineWidths:i,ctx:r}=e,{align:o,labels:s}=n,l=a.wb.color,d=Object(a.lb)(n.rtl,e.left,e.width),c=Object(a.w)(s.font),{color:u,padding:h}=s,p=c.size,m=p/2;let f;e.drawTitle(),r.textAlign=d.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;const{boxWidth:g,boxHeight:b,itemHeight:v}=Yn(s,p),y=e.isHorizontal(),x=this._computeTitleHeight();f=y?{x:Object(a.y)(o,e.left+h,e.right-i[0]),y:e.top+h+x,line:0}:{x:e.left+h,y:Object(a.y)(o,e.top+x+h,e.bottom-t[0].height),line:0},Object(a.mb)(e.ctx,n.textDirection);const C=v+h;e.legendItems.forEach((n,w)=>{r.strokeStyle=n.fontColor||u,r.fillStyle=n.fontColor||u;const D=r.measureText(n.text).width,T=d.textAlign(n.textAlign||(n.textAlign=s.textAlign)),P=g+p/2+D;let k=f.x,S=f.y;d.setWidth(e.width),y?w>0&&k+P+h>e.right&&(S=f.y+=C,f.line++,k=f.x=Object(a.y)(o,e.left+h,e.right-i[f.line])):w>0&&S+C>e.bottom&&(k=f.x=k+t[f.line].width+h,f.line++,S=f.y=Object(a.y)(o,e.top+x+h,e.bottom-t[f.line].height));!function(e,n,t){if(isNaN(g)||g<=0||isNaN(b)||b<0)return;r.save();const i=Object(a.Ob)(t.lineWidth,1);if(r.fillStyle=Object(a.Ob)(t.fillStyle,l),r.lineCap=Object(a.Ob)(t.lineCap,"butt"),r.lineDashOffset=Object(a.Ob)(t.lineDashOffset,0),r.lineJoin=Object(a.Ob)(t.lineJoin,"miter"),r.lineWidth=i,r.strokeStyle=Object(a.Ob)(t.strokeStyle,l),r.setLineDash(Object(a.Ob)(t.lineDash,[])),s.usePointStyle){const o={radius:g*Math.SQRT2/2,pointStyle:t.pointStyle,rotation:t.rotation,borderWidth:i},s=d.xPlus(e,g/2),l=n+m;Object(a.fb)(r,o,s,l)}else{const o=n+Math.max((p-b)/2,0),s=d.leftForLtr(e,g),l=Object(a.ib)(t.borderRadius);r.beginPath(),Object.values(l).some(e=>0!==e)?Object(a.gb)(r,{x:s,y:o,w:g,h:b,radius:l}):r.rect(s,o,g,b),r.fill(),0!==i&&r.stroke()}r.restore()}(d.x(k),S,n),k=Object(a.nb)(T,k+g+m,e.right),function(e,n,t){Object(a.v)(r,t.text,e,n+v/2,c,{strikethrough:t.hidden,textAlign:t.textAlign})}(d.x(k),S,n),y?f.x+=P+h:f.y+=C}),Object(a.ob)(e.ctx,n.textDirection)}drawTitle(){const e=this,n=e.options,t=n.title,i=Object(a.w)(t.font),r=Object(a.d)(t.padding);if(!t.display)return;const o=Object(a.lb)(n.rtl,e.left,e.width),s=e.ctx,l=t.position,d=i.size/2,c=r.top+d;let u,h=e.left,p=e.width;if(this.isHorizontal())p=Math.max(...e.lineWidths),u=e.top+c,h=Object(a.y)(n.align,h,e.right-p);else{const t=e.columnSizes.reduce((e,n)=>Math.max(e,n.height),0);u=c+Object(a.y)(n.align,e.top,e.bottom-t-n.labels.padding-e._computeTitleHeight())}const m=Object(a.y)(l,h,h+p);s.textAlign=o.textAlign(Object(a.x)(l)),s.textBaseline="middle",s.strokeStyle=t.color,s.fillStyle=t.color,s.font=i.string,Object(a.v)(s,t.text,m,u,i)}_computeTitleHeight(){const e=this.options.title,n=Object(a.w)(e.font),t=Object(a.d)(e.padding);return e.display?n.lineHeight+t.height:0}_getLegendItemAt(e,n){const t=this;let a,i,r;if(e>=t.left&&e<=t.right&&n>=t.top&&n<=t.bottom)for(r=t.legendHitBoxes,a=0;a=i.left&&e<=i.left+i.width&&n>=i.top&&n<=i.top+i.height)return t.legendItems[a];return null}handleEvent(e){const n=this,t=n.options;if(!function(e,n){if("mousemove"===e&&(n.onHover||n.onLeave))return!0;if(n.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t))return;const i=n._getLegendItemAt(e.x,e.y);if("mousemove"===e.type){const s=n._hoveredItem,l=(o=i,null!==(r=s)&&null!==o&&r.datasetIndex===o.datasetIndex&&r.index===o.index);s&&!l&&Object(a.o)(t.onLeave,[e,s,n],n),n._hoveredItem=i,i&&!l&&Object(a.o)(t.onHover,[e,i,n],n)}else i&&Object(a.o)(t.onClick,[e,i,n],n);var r,o}}var Gn={id:"legend",_element:$n,start(e,n,t){const a=e.legend=new $n({ctx:e.ctx,options:t,chart:e});Q.configure(e,a,t),Q.addBox(e,a)},stop(e){Q.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,n,t){const a=e.legend;Q.configure(e,a,t),a.options=t},afterUpdate(e){const n=e.legend;n.buildLabels(),n.adjustHitBoxes()},afterEvent(e,n){n.replay||e.legend.handleEvent(n.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,n,t){const a=n.datasetIndex,i=t.chart;i.isDatasetVisible(a)?(i.hide(a),n.hidden=!0):(i.show(a),n.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const n=e.data.datasets,{labels:{usePointStyle:t,pointStyle:i,textAlign:r,color:o}}=e.legend.options;return e._getSortedDatasetMetas().map(e=>{const s=e.controller.getStyle(t?0:void 0),l=Object(a.d)(s.borderWidth);return{text:n[e.index].label,fillStyle:s.backgroundColor,fontColor:o,hidden:!e.visible,lineCap:s.borderCapStyle,lineDash:s.borderDash,lineDashOffset:s.borderDashOffset,lineJoin:s.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:s.borderColor,pointStyle:i||s.pointStyle,rotation:s.rotation,textAlign:r||s.textAlign,borderRadius:0,datasetIndex:e.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class qn extends fe{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const t=this,i=t.options;if(t.left=0,t.top=0,!i.display)return void(t.width=t.height=t.right=t.bottom=0);t.width=t.right=e,t.height=t.bottom=n;const r=Object(a.ub)(i.text)?i.text.length:1;t._padding=Object(a.d)(i.padding);const o=r*Object(a.w)(i.font).lineHeight+t._padding.height;t.isHorizontal()?t.height=o:t.width=o}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:n,left:t,bottom:i,right:r,options:o}=this,s=o.align;let l,d,c,u=0;return this.isHorizontal()?(d=Object(a.y)(s,t,r),c=n+e,l=r-t):("left"===o.position?(d=t+e,c=Object(a.y)(s,i,n),u=-.5*a.q):(d=r-e,c=Object(a.y)(s,n,i),u=.5*a.q),l=i-n),{titleX:d,titleY:c,maxWidth:l,rotation:u}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const t=Object(a.w)(n.font),i=t.lineHeight/2+this._padding.top,{titleX:r,titleY:o,maxWidth:s,rotation:l}=this._drawArgs(i);Object(a.v)(e,n.text,0,0,t,{color:n.color,maxWidth:s,rotation:l,textAlign:Object(a.x)(n.align),textBaseline:"middle",translation:[r,o]})}}var Xn={id:"title",_element:qn,start(e,n,t){!function(e,n){const t=new qn({ctx:e.ctx,options:n,chart:e});Q.configure(e,t,n),Q.addBox(e,t),e.titleBlock=t}(e,t)},stop(e){const n=e.titleBlock;Q.removeBox(e,n),delete e.titleBlock},beforeUpdate(e,n,t){const a=e.titleBlock;Q.configure(e,a,t),a.options=t},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Jn={average(e){if(!e.length)return!1;let n,t,a=0,i=0,r=0;for(n=0,t=e.length;n-1?e.split("\n"):e}function Qn(e,n){const{element:t,datasetIndex:a,index:i}=n,r=e.getDatasetMeta(a).controller,{label:o,value:s}=r.getLabelAndValue(i);return{chart:e,label:o,parsed:r.getParsed(i),raw:e.data.datasets[a].data[i],formattedValue:s,dataset:r.getDataset(),dataIndex:i,datasetIndex:a,element:t}}function et(e,n){const t=e._chart.ctx,{body:i,footer:r,title:o}=e,{boxWidth:s,boxHeight:l}=n,d=Object(a.w)(n.bodyFont),c=Object(a.w)(n.titleFont),u=Object(a.w)(n.footerFont),h=o.length,p=r.length,m=i.length,f=Object(a.d)(n.padding);let g=f.height,b=0,v=i.reduce((e,n)=>e+n.before.length+n.lines.length+n.after.length,0);if(v+=e.beforeBody.length+e.afterBody.length,h&&(g+=h*c.lineHeight+(h-1)*n.titleSpacing+n.titleMarginBottom),v){g+=m*(n.displayColors?Math.max(l,d.lineHeight):d.lineHeight)+(v-m)*d.lineHeight+(v-1)*n.bodySpacing}p&&(g+=n.footerMarginTop+p*u.lineHeight+(p-1)*n.footerSpacing);let y=0;const x=function(e){b=Math.max(b,t.measureText(e).width+y)};return t.save(),t.font=c.string,Object(a.e)(e.title,x),t.font=d.string,Object(a.e)(e.beforeBody.concat(e.afterBody),x),y=n.displayColors?s+2:0,Object(a.e)(i,e=>{Object(a.e)(e.before,x),Object(a.e)(e.lines,x),Object(a.e)(e.after,x)}),y=0,t.font=u.string,Object(a.e)(e.footer,x),t.restore(),b+=f.width,{width:b,height:g}}function nt(e,n,t,a){const{x:i,width:r}=t,{width:o,chartArea:{left:s,right:l}}=e;let d="center";return"center"===a?d=i<=(s+l)/2?"left":"right":i<=r/2?d="left":i>=o-r/2&&(d="right"),function(e,n,t,a){const{x:i,width:r}=a,o=t.caretSize+t.caretPadding;return"left"===e&&i+r+o>n.width||("right"===e&&i-r-o<0||void 0)}(d,e,n,t)&&(d="center"),d}function tt(e,n,t){const a=n.yAlign||function(e,n){const{y:t,height:a}=n;return te.height-a/2?"bottom":"center"}(e,t);return{xAlign:n.xAlign||nt(e,n,t,a),yAlign:a}}function at(e,n,t,i){const{caretSize:r,caretPadding:o,cornerRadius:s}=e,{xAlign:l,yAlign:d}=t,c=r+o,u=s+o;let h=function(e,n){let{x:t,width:a}=e;return"right"===n?t-=a:"center"===n&&(t-=a/2),t}(n,l);const p=function(e,n,t){let{y:a,height:i}=e;return"top"===n?a+=t:a-="bottom"===n?i+t:i/2,a}(n,d,c);return"center"===d?"left"===l?h+=c:"right"===l&&(h-=c):"left"===l?h-=u:"right"===l&&(h+=u),{x:Object(a.Qb)(h,0,i.width-n.width),y:Object(a.Qb)(p,0,i.height-n.height)}}function it(e,n,t){const i=Object(a.d)(t.padding);return"center"===n?e.x+e.width/2:"right"===n?e.x+e.width-i.right:e.x+i.left}function rt(e){return Zn([],Kn(e))}function ot(e,n){const t=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return t?e.override(t):e}class st extends fe{constructor(e){super(),this.opacity=0,this._active=[],this._chart=e._chart,this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this,n=e._cachedAnimations;if(n)return n;const t=e._chart,a=e.options.setContext(e.getContext()),i=a.enabled&&t.options.animation&&a.animations,r=new l(e._chart,i);return i._cacheable&&(e._cachedAnimations=Object.freeze(r)),r}getContext(){const e=this;return e.$context||(e.$context=(n=e._chart.getContext(),t=e,a=e._tooltipItems,Object.assign(Object.create(n),{tooltip:t,tooltipItems:a,type:"tooltip"})));var n,t,a}getTitle(e,n){const{callbacks:t}=n,a=t.beforeTitle.apply(this,[e]),i=t.title.apply(this,[e]),r=t.afterTitle.apply(this,[e]);let o=[];return o=Zn(o,Kn(a)),o=Zn(o,Kn(i)),o=Zn(o,Kn(r)),o}getBeforeBody(e,n){return rt(n.callbacks.beforeBody.apply(this,[e]))}getBody(e,n){const t=this,{callbacks:i}=n,r=[];return Object(a.e)(e,e=>{const n={before:[],lines:[],after:[]},a=ot(i,e);Zn(n.before,Kn(a.beforeLabel.call(t,e))),Zn(n.lines,a.label.call(t,e)),Zn(n.after,Kn(a.afterLabel.call(t,e))),r.push(n)}),r}getAfterBody(e,n){return rt(n.callbacks.afterBody.apply(this,[e]))}getFooter(e,n){const{callbacks:t}=n,a=t.beforeFooter.apply(this,[e]),i=t.footer.apply(this,[e]),r=t.afterFooter.apply(this,[e]);let o=[];return o=Zn(o,Kn(a)),o=Zn(o,Kn(i)),o=Zn(o,Kn(r)),o}_createItems(e){const n=this,t=n._active,i=n._chart.data,r=[],o=[],s=[];let l,d,c=[];for(l=0,d=t.length;le.filter(n,t,a,i))),e.itemSort&&(c=c.sort((n,t)=>e.itemSort(n,t,i))),Object(a.e)(c,t=>{const a=ot(e.callbacks,t);r.push(a.labelColor.call(n,t)),o.push(a.labelPointStyle.call(n,t)),s.push(a.labelTextColor.call(n,t))}),n.labelColors=r,n.labelPointStyles=o,n.labelTextColors=s,n.dataPoints=c,c}update(e,n){const t=this,a=t.options.setContext(t.getContext()),i=t._active;let r,o=[];if(i.length){const e=Jn[a.position].call(t,i,t._eventPosition);o=t._createItems(a),t.title=t.getTitle(o,a),t.beforeBody=t.getBeforeBody(o,a),t.body=t.getBody(o,a),t.afterBody=t.getAfterBody(o,a),t.footer=t.getFooter(o,a);const n=t._size=et(t,a),s=Object.assign({},e,n),l=tt(t._chart,a,s),d=at(a,s,l,t._chart);t.xAlign=l.xAlign,t.yAlign=l.yAlign,r={opacity:1,x:d.x,y:d.y,width:n.width,height:n.height,caretX:e.x,caretY:e.y}}else 0!==t.opacity&&(r={opacity:0});t._tooltipItems=o,t.$context=void 0,r&&t._resolveAnimations().update(t,r),e&&a.external&&a.external.call(t,{chart:t._chart,tooltip:t,replay:n})}drawCaret(e,n,t,a){const i=this.getCaretPosition(e,t,a);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(e,n,t){const{xAlign:a,yAlign:i}=this,{cornerRadius:r,caretSize:o}=t,{x:s,y:l}=e,{width:d,height:c}=n;let u,h,p,m,f,g;return"center"===i?(f=l+c/2,"left"===a?(u=s,h=u-o,m=f+o,g=f-o):(u=s+d,h=u+o,m=f-o,g=f+o),p=u):(h="left"===a?s+r+o:"right"===a?s+d-r-o:this.caretX,"top"===i?(m=l,f=m-o,u=h-o,p=h+o):(m=l+c,f=m+o,u=h+o,p=h-o),g=m),{x1:u,x2:h,x3:p,y1:m,y2:f,y3:g}}drawTitle(e,n,t){const i=this,r=i.title,o=r.length;let s,l,d;if(o){const c=Object(a.lb)(t.rtl,i.x,i.width);for(e.x=it(i,t.titleAlign,t),n.textAlign=c.textAlign(t.titleAlign),n.textBaseline="middle",s=Object(a.w)(t.titleFont),l=t.titleSpacing,n.fillStyle=t.titleColor,n.font=s.string,d=0;d0!==e)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,Object(a.gb)(e,{x:n,y:m,w:d,h:l,radius:s}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),Object(a.gb)(e,{x:t,y:m+1,w:d-2,h:l-2,radius:s}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(n,m,d,l),e.strokeRect(n,m,d,l),e.fillStyle=o.backgroundColor,e.fillRect(t,m+1,d-2,l-2))}e.fillStyle=this.labelTextColors[t]}drawBody(e,n,t){const i=this,{body:r}=i,{bodySpacing:o,bodyAlign:s,displayColors:l,boxHeight:d,boxWidth:c}=t,u=Object(a.w)(t.bodyFont);let h=u.lineHeight,p=0;const m=Object(a.lb)(t.rtl,i.x,i.width),f=function(t){n.fillText(t,m.x(e.x+p),e.y+h/2),e.y+=h+o},g=m.textAlign(s);let b,v,y,x,C,w,D;for(n.textAlign=s,n.textBaseline="middle",n.font=u.string,e.x=it(i,g,t),n.fillStyle=t.bodyColor,Object(a.e)(i.beforeBody,f),p=l&&"right"!==g?"center"===s?c/2+1:c+2:0,x=0,w=r.length;x0&&n.stroke()}_updateAnimationTarget(e){const n=this,t=n._chart,a=n.$animations,i=a&&a.x,r=a&&a.y;if(i||r){const a=Jn[e.position].call(n,n._active,n._eventPosition);if(!a)return;const o=n._size=et(n,e),s=Object.assign({},a,n._size),l=tt(t,e,s),d=at(e,s,l,t);i._to===d.x&&r._to===d.y||(n.xAlign=l.xAlign,n.yAlign=l.yAlign,n.width=o.width,n.height=o.height,n.caretX=a.x,n.caretY=a.y,n._resolveAnimations().update(n,d))}}draw(e){const n=this,t=n.options.setContext(n.getContext());let i=n.opacity;if(!i)return;n._updateAnimationTarget(t);const r={width:n.width,height:n.height},o={x:n.x,y:n.y};i=Math.abs(i)<.001?0:i;const s=Object(a.d)(t.padding),l=n.title.length||n.beforeBody.length||n.body.length||n.afterBody.length||n.footer.length;t.enabled&&l&&(e.save(),e.globalAlpha=i,n.drawBackground(o,e,r,t),Object(a.mb)(e,t.textDirection),o.y+=s.top,n.drawTitle(o,e,t),n.drawBody(o,e,t),n.drawFooter(o,e,t),Object(a.ob)(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const t=this,i=t._active,r=e.map(({datasetIndex:e,index:n})=>{const a=t._chart.getDatasetMeta(e);if(!a)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:a.data[n],index:n}}),o=!Object(a.U)(i,r),s=t._positionChanged(r,n);(o||s)&&(t._active=r,t._eventPosition=n,t.update(!0))}handleEvent(e,n){const t=this,i=t.options,r=t._active||[];let o=!1,s=[];"mouseout"!==e.type&&(s=t._chart.getElementsAtEventForMode(e,i.mode,i,n),i.reverse&&s.reverse());const l=t._positionChanged(s,e);return o=n||!Object(a.U)(s,r)||l,o&&(t._active=s,(i.enabled||i.external)&&(t._eventPosition={x:e.x,y:e.y},t.update(!0,n))),o}_positionChanged(e,n){const t=Jn[this.options.position].call(this,e,n);return this.caretX!==t.x||this.caretY!==t.y}}st.positioners=Jn;var lt={id:"tooltip",_element:st,positioners:Jn,afterInit(e,n,t){t&&(e.tooltip=new st({_chart:e,options:t}))},beforeUpdate(e,n,t){e.tooltip&&e.tooltip.initialize(t)},reset(e,n,t){e.tooltip&&e.tooltip.initialize(t)},afterDraw(e){const n=e.tooltip,t={tooltip:n};!1!==e.notifyPlugins("beforeTooltipDraw",t)&&(n&&n.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",t))},afterEvent(e,n){if(e.tooltip){const t=n.replay;e.tooltip.handleEvent(n.event,t)&&(n.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,n)=>n.bodyFont.size,boxWidth:(e,n)=>n.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:a.pb,title(e){if(e.length>0){const n=e[0],t=n.chart.data.labels,a=t?t.length:0;if(this&&this.options&&"dataset"===this.options.mode)return n.dataset.label||"";if(n.label)return n.label;if(a>0&&n.dataIndex"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},dt=Object.freeze({__proto__:null,Decimation:Sn,Filler:Wn,Legend:Gn,Title:Xn,Tooltip:lt});function ct(e,n,t){const a=e.indexOf(n);if(-1===a)return((e,n,t)=>"string"==typeof n?e.push(n)-1:isNaN(n)?null:t)(e,n,t);return a!==e.lastIndexOf(n)?t:a}class ut extends ke{constructor(e){super(e),this._startValue=void 0,this._valueRange=0}parse(e,n){if(Object(a.Cb)(e))return null;const t=this.getLabels();return((e,n)=>null===e?null:Object(a.Qb)(Math.round(e),0,n))(n=isFinite(n)&&t[n]===e?n:ct(t,e,Object(a.Ob)(n,e)),t.length-1)}determineDataLimits(){const e=this,{minDefined:n,maxDefined:t}=e.getUserBounds();let{min:a,max:i}=e.getMinMax(!0);"ticks"===e.options.bounds&&(n||(a=0),t||(i=e.getLabels().length-1)),e.min=a,e.max=i}buildTicks(){const e=this,n=e.min,t=e.max,a=e.options.offset,i=[];let r=e.getLabels();r=0===n&&t===r.length-1?r:r.slice(n,t+1),e._valueRange=Math.max(r.length-(a?0:1),1),e._startValue=e.min-(a?.5:0);for(let e=n;e<=t;e++)i.push({value:e});return i}getLabelForValue(e){const n=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}ut.id="category",ut.defaults={ticks:{callback:ut.prototype.getLabelForValue}};class ht extends ke{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return Object(a.Cb)(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const e=this,{beginAtZero:n,stacked:t}=e.options,{minDefined:i,maxDefined:r}=e.getUserBounds();let{min:o,max:s}=e;const l=e=>o=i?o:e,d=e=>s=r?s:e;if(n||t){const e=Object(a.Lb)(o),n=Object(a.Lb)(s);e<0&&n<0?d(0):e>0&&n>0&&l(0)}o===s&&(d(s+1),n||l(o-1)),e.min=o,e.max=s}getTickLimit(){const e=this,n=e.options.ticks;let t,{maxTicksLimit:a,stepSize:i}=n;return i?t=Math.ceil(e.max/i)-Math.floor(e.min/i)+1:(t=e.computeTickLimit(),a=a||11),a&&(t=Math.min(a,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this,n=e.options,t=n.ticks;let i=e.getTickLimit();i=Math.max(2,i);const r=function(e,n){const t=[],{step:i,min:r,max:o,precision:s,count:l,maxTicks:d}=e,c=i||1,u=d-1,{min:h,max:p}=n,m=!Object(a.Cb)(r),f=!Object(a.Cb)(o),g=!Object(a.Cb)(l);let b,v,y,x,C=Object(a.tb)((p-h)/u/c)*c;if(C<1e-14&&!m&&!f)return[{value:h},{value:p}];x=Math.ceil(p/C)-Math.floor(h/C),x>u&&(C=Object(a.tb)(x*C/u/c)*c),Object(a.Cb)(s)||(b=Math.pow(10,s),C=Math.ceil(C*b)/b),v=Math.floor(h/C)*C,y=Math.ceil(p/C)*C,m&&f&&i&&Object(a.N)((o-r)/i,C/1e3)?(x=Math.min((o-r)/C,d),C=(o-r)/x,v=r,y=o):g?(v=m?r:v,y=f?o:y,x=l-1,C=(y-v)/x):(x=(y-v)/C,x=Object(a.O)(x,Math.round(x),C/1e3)?Math.round(x):Math.ceil(x)),b=Math.pow(10,Object(a.Cb)(s)?Object(a.P)(C):s),v=Math.round(v*b)/b,y=Math.round(y*b)/b;let w=0;for(m&&(t.push({value:r}),v<=r&&w++,Object(a.O)(Math.round((v+w*C)*b)/b,r,C/10)&&w++);w0?t:null;this._zero=!0}determineDataLimits(){const e=this,{min:n,max:t}=e.getMinMax(!0);e.min=Object(a.zb)(n)?Math.max(0,n):null,e.max=Object(a.zb)(t)?Math.max(0,t):null,e.options.beginAtZero&&(e._zero=!0),e.handleTickRangeOptions()}handleTickRangeOptions(){const e=this,{minDefined:n,maxDefined:t}=e.getUserBounds();let i=e.min,r=e.max;const o=e=>i=n?i:e,s=e=>r=t?r:e,l=(e,n)=>Math.pow(10,Math.floor(Object(a.l)(e))+n);i===r&&(i<=0?(o(1),s(10)):(o(l(i,-1)),s(l(r,1)))),i<=0&&o(l(r,-1)),r<=0&&s(l(i,1)),e._zero&&e.min!==e._suggestedMin&&i===l(e.min,0)&&o(l(i,-1)),e.min=i,e.max=r}buildTicks(){const e=this,n=e.options,t=function(e,n){const t=Math.floor(Object(a.l)(n.max)),i=Math.ceil(n.max/Math.pow(10,t)),r=[];let o=Object(a.n)(e.min,Math.pow(10,Math.floor(Object(a.l)(n.min)))),s=Math.floor(Object(a.l)(o)),l=Math.floor(o/Math.pow(10,s)),d=s<0?Math.pow(10,Math.abs(s)):1;do{r.push({value:o,major:mt(o)}),++l,10===l&&(l=1,++s,d=s>=0?1:d),o=Math.round(l*Math.pow(10,s)*d)/d}while(si?{start:n-t,end:n}:{start:n,end:n+t}}function vt(e){return 0===e||180===e?"center":e<180?"left":"right"}function yt(e,n,t){90===e||270===e?t.y-=n.h/2:(e>270||e<90)&&(t.y-=n.h)}function xt(e,n,t,i){const{ctx:r}=e;if(t)r.arc(e.xCenter,e.yCenter,n,0,a.u);else{let t=e.getPointPosition(0,n);r.moveTo(t.x,t.y);for(let a=1;a{const i=Object(a.o)(n.options.pointLabels.callback,[e,t],n);return i||0===i?i:""})}fit(){const e=this,n=e.options;n.display&&n.pointLabels.display?function(e){const n={l:0,r:e.width,t:0,b:e.height-e.paddingTop},t={};let i,r,o;const s=[],l=[],d=e.getLabels().length;for(i=0;in.r&&(n.r=g.end,t.r=m),b.startn.b&&(n.b=b.end,t.b=m)}var c,u,h;e._setReductions(e.drawingArea,n,t),e._pointLabelItems=[];const p=e.options,m=gt(p),f=e.getDistanceFromCenterForValue(p.ticks.reverse?e.min:e.max);for(i=0;i=0;r--){const n=i.setContext(e.getContext(r)),o=Object(a.w)(n.font),{x:s,y:l,textAlign:d,left:c,top:u,right:h,bottom:p}=e._pointLabelItems[r],{backdropColor:m}=n;if(!Object(a.Cb)(m)){const e=Object(a.d)(n.backdropPadding);t.fillStyle=m,t.fillRect(c-e.left,u-e.top,h-c+e.width,p-u+e.height)}Object(a.v)(t,e._pointLabels[r],s,l+o.lineHeight/2,o,{color:n.color,textAlign:d,textBaseline:"middle"})}}(e,o),r.display&&e.ticks.forEach((n,t)=>{if(0!==t){l=e.getDistanceFromCenterForValue(n.value);const a=r.setContext(e.getContext(t-1));!function(e,n,t,a){const i=e.ctx,r=n.circular,{color:o,lineWidth:s}=n;!r&&!a||!o||!s||t<0||(i.save(),i.strokeStyle=o,i.lineWidth=s,i.setLineDash(n.borderDash),i.lineDashOffset=n.borderDashOffset,i.beginPath(),xt(e,t,r,a),i.closePath(),i.stroke(),i.restore())}(e,a,l,o)}}),i.display){for(n.save(),s=e.getLabels().length-1;s>=0;s--){const a=i.setContext(e.getContext(s)),{color:r,lineWidth:o}=a;o&&r&&(n.lineWidth=o,n.strokeStyle=r,n.setLineDash(a.borderDash),n.lineDashOffset=a.borderDashOffset,l=e.getDistanceFromCenterForValue(t.ticks.reverse?e.min:e.max),d=e.getPointPosition(s,l),n.beginPath(),n.moveTo(e.xCenter,e.yCenter),n.lineTo(d.x,d.y),n.stroke())}n.restore()}}drawLabels(){const e=this,n=e.ctx,t=e.options,i=t.ticks;if(!i.display)return;const r=e.getIndexAngle(0);let o,s;n.save(),n.translate(e.xCenter,e.yCenter),n.rotate(r),n.textAlign="center",n.textBaseline="middle",e.ticks.forEach((r,l)=>{if(0===l&&!t.reverse)return;const d=i.setContext(e.getContext(l)),c=Object(a.w)(d.font);if(o=e.getDistanceFromCenterForValue(e.ticks[l].value),d.showLabelBackdrop){s=n.measureText(r.label).width,n.fillStyle=d.backdropColor;const e=Object(a.d)(d.backdropPadding);n.fillRect(-s/2-e.left,-o-c.size/2-e.top,s+e.width,c.size+e.height)}Object(a.v)(n,r.label,0,-o,c,{color:d.color})}),n.restore()}drawTitle(){}}wt.id="radialLinear",wt.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPadding:2,callback:be.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5}},wt.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},wt.descriptors={angleLines:{_fallback:"grid"}};const Dt={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Tt=Object.keys(Dt);function Pt(e,n){return e-n}function kt(e,n){if(Object(a.Cb)(n))return null;const t=e._adapter,i=e.options.time,{parser:r,round:o,isoWeekday:s}=i;let l=n;return"function"==typeof r&&(l=r(l)),Object(a.zb)(l)||(l="string"==typeof r?t.parse(l,r):t.parse(l)),null===l?null:(o&&(l="week"!==o||!Object(a.Pb)(s)&&!0!==s?t.startOf(l,o):t.startOf(l,"isoWeek",s)),+l)}function St(e,n,t,a){const i=Tt.length;for(let r=Tt.indexOf(e);r=n?t[i]:t[r]]=!0}}else e[n]=!0}function At(e,n,t){const a=[],i={},r=n.length;let o,s;for(o=0;o=0&&(n[l].major=!0);return n}(e,a,i,t):a}class Rt extends ke{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1}init(e,n){const t=e.time||(e.time={}),i=this._adapter=new M._date(e.adapters.date);Object(a.I)(t.displayFormats,i.formats()),super.init(e),this._normalized=n.normalized}parse(e,n){return void 0===e?null:kt(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this,n=e.options,t=e._adapter,i=n.time.unit||"day";let{min:r,max:o,minDefined:s,maxDefined:l}=e.getUserBounds();function d(e){s||isNaN(e.min)||(r=Math.min(r,e.min)),l||isNaN(e.max)||(o=Math.max(o,e.max))}s&&l||(d(e._getLabelBounds()),"ticks"===n.bounds&&"labels"===n.ticks.source||d(e.getMinMax(!1))),r=Object(a.zb)(r)&&!isNaN(r)?r:+t.startOf(Date.now(),i),o=Object(a.zb)(o)&&!isNaN(o)?o:+t.endOf(Date.now(),i)+1,e.min=Math.min(r,o-1),e.max=Math.max(r+1,o)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,t=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],t=e[e.length-1]),{min:n,max:t}}buildTicks(){const e=this,n=e.options,t=n.time,i=n.ticks,r="labels"===i.source?e.getLabelTimestamps():e._generate();"ticks"===n.bounds&&r.length&&(e.min=e._userMin||r[0],e.max=e._userMax||r[r.length-1]);const o=e.min,s=e.max,l=Object(a.R)(r,o,s);return e._unit=t.unit||(i.autoSkip?St(t.minUnit,e.min,e.max,e._getLabelCapacity(o)):function(e,n,t,a,i){for(let r=Tt.length-1;r>=Tt.indexOf(t);r--){const t=Tt[r];if(Dt[t].common&&e._adapter.diff(i,a,t)>=n-1)return t}return Tt[t?Tt.indexOf(t):0]}(e,l.length,t.minUnit,e.min,e.max)),e._majorUnit=i.major.enabled&&"year"!==e._unit?function(e){for(let n=Tt.indexOf(e)+1,t=Tt.length;n1e5*l)throw new Error(t+" and "+i+" are too far apart with stepSize of "+l+" "+s);const f="data"===r.ticks.source&&e.getDataTimestamps();for(h=m,p=0;he-n).map(e=>+e)}getLabelForValue(e){const n=this._adapter,t=this.options.time;return t.tooltipFormat?n.format(e,t.tooltipFormat):n.format(e,t.displayFormats.datetime)}_tickFormatFunction(e,n,t,i){const r=this,o=r.options,s=o.time.displayFormats,l=r._unit,d=r._majorUnit,c=l&&s[l],u=d&&s[d],h=t[n],p=d&&u&&h&&h.major,m=r._adapter.format(e,i||(p?u:c)),f=o.ticks.callback;return f?Object(a.o)(f,[m,n,t],r):m}generateTickLabels(e){let n,t,a;for(n=0,t=e.length;n0?s:1}getDataTimestamps(){const e=this;let n,t,a=e._cache.data||[];if(a.length)return a;const i=e.getMatchingVisibleMetas();if(e._normalized&&i.length)return e._cache.data=i[0].controller.getAllParsedValues(e);for(n=0,t=i.length;nn&&o0&&!Object(a.Cb)(n)?n/t._maxIndex:t.getDecimalForValue(e);return t.getPixelForDecimal((i.start+r)*i.factor)}getDecimalForValue(e){return It(this._table,e)/this._maxIndex}getValueForPixel(e){const n=this._offsets,t=this.getDecimalForPixel(e)/n.factor-n.end;return It(this._table,t*this._maxIndex,!0)}}_t.id="timeseries",_t.defaults=Rt.defaults;const Et=[_,Pn,dt,Object.freeze({__proto__:null,CategoryScale:ut,LinearScale:pt,LogarithmicScale:ft,RadialLinearScale:wt,TimeScale:Rt,TimeSeriesScale:_t})]},function(e,n,t){"use strict";function a(e,n){for(var t=0;te.length)&&(n=e.length);for(var t=0,a=new Array(n);t=e.length?{done:!0}:{done:!1,value:e[n++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}Object.defineProperty(n,"__esModule",{value:!0});var p=function(e){function n(){return e.apply(this,arguments)||this}return r(n,e),n}(c(Error)),m=function(e){function n(n){return e.call(this,"Invalid DateTime: "+n.toMessage())||this}return r(n,e),n}(p),f=function(e){function n(n){return e.call(this,"Invalid Interval: "+n.toMessage())||this}return r(n,e),n}(p),g=function(e){function n(n){return e.call(this,"Invalid Duration: "+n.toMessage())||this}return r(n,e),n}(p),b=function(e){function n(){return e.apply(this,arguments)||this}return r(n,e),n}(p),v=function(e){function n(n){return e.call(this,"Invalid unit "+n)||this}return r(n,e),n}(p),y=function(e){function n(){return e.apply(this,arguments)||this}return r(n,e),n}(p),x=function(e){function n(){return e.call(this,"Zone is an abstract class")||this}return r(n,e),n}(p),C="numeric",w="short",D="long",T={year:C,month:C,day:C},P={year:C,month:w,day:C},k={year:C,month:w,day:C,weekday:w},S={year:C,month:D,day:C},O={year:C,month:D,day:C,weekday:D},A={hour:C,minute:C},R={hour:C,minute:C,second:C},I={hour:C,minute:C,second:C,timeZoneName:w},_={hour:C,minute:C,second:C,timeZoneName:D},E={hour:C,minute:C,hour12:!1},L={hour:C,minute:C,second:C,hour12:!1},M={hour:C,minute:C,second:C,hour12:!1,timeZoneName:w},j={hour:C,minute:C,second:C,hour12:!1,timeZoneName:D},N={year:C,month:C,day:C,hour:C,minute:C},B={year:C,month:C,day:C,hour:C,minute:C,second:C},U={year:C,month:w,day:C,hour:C,minute:C},z={year:C,month:w,day:C,hour:C,minute:C,second:C},F={year:C,month:w,day:C,weekday:w,hour:C,minute:C},H={year:C,month:D,day:C,hour:C,minute:C,timeZoneName:w},V={year:C,month:D,day:C,hour:C,minute:C,second:C,timeZoneName:w},W={year:C,month:D,day:C,weekday:D,hour:C,minute:C,timeZoneName:D},Y={year:C,month:D,day:C,weekday:D,hour:C,minute:C,second:C,timeZoneName:D};function $(e){return void 0===e}function G(e){return"number"==typeof e}function q(e){return"number"==typeof e&&e%1==0}function X(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function J(){return!$(Intl.DateTimeFormat.prototype.formatToParts)}function Z(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function K(e,n,t){if(0!==e.length)return e.reduce((function(e,a){var i=[n(a),a];return e&&t(e[0],i[0])===e[0]?e:i}),null)[1]}function Q(e,n){return n.reduce((function(n,t){return n[t]=e[t],n}),{})}function ee(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function ne(e,n,t){return q(e)&&e>=n&&e<=t}function te(e,n){void 0===n&&(n=2);var t=e<0?"-":"",a=t?-1*e:e;return""+t+(a.toString().length=0&&(n=new Date(n)).setUTCFullYear(n.getUTCFullYear()-1900),+n}function ce(e){var n=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,t=e-1,a=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7;return 4===n||3===a?53:52}function ue(e){return e>99?e:e>60?1900+e:2e3+e}function he(e,n,t,a){void 0===a&&(a=null);var i=new Date(e),r={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};a&&(r.timeZone=a);var o=Object.assign({timeZoneName:n},r),s=X();if(s&&J()){var l=new Intl.DateTimeFormat(t,o).formatToParts(i).find((function(e){return"timezonename"===e.type.toLowerCase()}));return l?l.value:null}if(s){var d=new Intl.DateTimeFormat(t,r).format(i);return new Intl.DateTimeFormat(t,o).format(i).substring(d.length).replace(/^[, \u200e]+/,"")}return null}function pe(e,n){var t=parseInt(e,10);Number.isNaN(t)&&(t=0);var a=parseInt(n,10)||0;return 60*t+(t<0||Object.is(t,-0)?-a:a)}function me(e){var n=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(n))throw new y("Invalid unit value "+e);return n}function fe(e,n,t){var a={};for(var i in e)if(ee(e,i)){if(t.indexOf(i)>=0)continue;var r=e[i];if(null==r)continue;a[n(i)]=me(r)}return a}function ge(e,n){var t=Math.trunc(Math.abs(e/60)),a=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(n){case"short":return""+i+te(t,2)+":"+te(a,2);case"narrow":return""+i+t+(a>0?":"+a:"");case"techie":return""+i+te(t,2)+te(a,2);default:throw new RangeError("Value format "+n+" is out of range for property format")}}function be(e){return Q(e,["hour","minute","second","millisecond"])}var ve=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function ye(e){return JSON.stringify(e,Object.keys(e).sort())}var xe=["January","February","March","April","May","June","July","August","September","October","November","December"],Ce=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],we=["J","F","M","A","M","J","J","A","S","O","N","D"];function De(e){switch(e){case"narrow":return we;case"short":return Ce;case"long":return xe;case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var Te=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Pe=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ke=["M","T","W","T","F","S","S"];function Se(e){switch(e){case"narrow":return ke;case"short":return Pe;case"long":return Te;case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Oe=["AM","PM"],Ae=["Before Christ","Anno Domini"],Re=["BC","AD"],Ie=["B","A"];function _e(e){switch(e){case"narrow":return Ie;case"short":return Re;case"long":return Ae;default:return null}}function Ee(e,n){for(var t,a="",i=h(e);!(t=i()).done;){var r=t.value;r.literal?a+=r.val:a+=n(r.val)}return a}var Le={D:T,DD:P,DDD:S,DDDD:O,t:A,tt:R,ttt:I,tttt:_,T:E,TT:L,TTT:M,TTTT:j,f:N,ff:U,fff:H,ffff:W,F:B,FF:z,FFF:V,FFFF:Y},Me=function(){function e(e,n){this.opts=n,this.loc=e,this.systemLoc=null}e.create=function(n,t){return void 0===t&&(t={}),new e(n,t)},e.parseFormat=function(e){for(var n=null,t="",a=!1,i=[],r=0;r0&&i.push({literal:a,val:t}),n=null,t="",a=!a):a||o===n?t+=o:(t.length>0&&i.push({literal:!1,val:t}),t=o,n=o)}return t.length>0&&i.push({literal:a,val:t}),i},e.macroTokenToFormatOpts=function(e){return Le[e]};var n=e.prototype;return n.formatWithSystemDefault=function(e,n){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,Object.assign({},this.opts,n)).format()},n.formatDateTime=function(e,n){return void 0===n&&(n={}),this.loc.dtFormatter(e,Object.assign({},this.opts,n)).format()},n.formatDateTimeParts=function(e,n){return void 0===n&&(n={}),this.loc.dtFormatter(e,Object.assign({},this.opts,n)).formatToParts()},n.resolvedOptions=function(e,n){return void 0===n&&(n={}),this.loc.dtFormatter(e,Object.assign({},this.opts,n)).resolvedOptions()},n.num=function(e,n){if(void 0===n&&(n=0),this.opts.forceSimple)return te(e,n);var t=Object.assign({},this.opts);return n>0&&(t.padTo=n),this.loc.numberFormatter(t).format(e)},n.formatDateTimeFromString=function(n,t){var a=this,i="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&J(),o=function(e,t){return a.loc.extract(n,e,t)},s=function(e){return n.isOffsetFixed&&0===n.offset&&e.allowZ?"Z":n.isValid?n.zone.formatOffset(n.ts,e.format):""},l=function(){return i?function(e){return Oe[e.hour<12?0:1]}(n):o({hour:"numeric",hour12:!0},"dayperiod")},d=function(e,t){return i?function(e,n){return De(n)[e.month-1]}(n,e):o(t?{month:e}:{month:e,day:"numeric"},"month")},c=function(e,t){return i?function(e,n){return Se(n)[e.weekday-1]}(n,e):o(t?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},u=function(e){return i?function(e,n){return _e(n)[e.year<0?0:1]}(n,e):o({era:e},"era")};return Ee(e.parseFormat(t),(function(t){switch(t){case"S":return a.num(n.millisecond);case"u":case"SSS":return a.num(n.millisecond,3);case"s":return a.num(n.second);case"ss":return a.num(n.second,2);case"m":return a.num(n.minute);case"mm":return a.num(n.minute,2);case"h":return a.num(n.hour%12==0?12:n.hour%12);case"hh":return a.num(n.hour%12==0?12:n.hour%12,2);case"H":return a.num(n.hour);case"HH":return a.num(n.hour,2);case"Z":return s({format:"narrow",allowZ:a.opts.allowZ});case"ZZ":return s({format:"short",allowZ:a.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:a.opts.allowZ});case"ZZZZ":return n.zone.offsetName(n.ts,{format:"short",locale:a.loc.locale});case"ZZZZZ":return n.zone.offsetName(n.ts,{format:"long",locale:a.loc.locale});case"z":return n.zoneName;case"a":return l();case"d":return r?o({day:"numeric"},"day"):a.num(n.day);case"dd":return r?o({day:"2-digit"},"day"):a.num(n.day,2);case"c":return a.num(n.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return a.num(n.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return r?o({month:"numeric",day:"numeric"},"month"):a.num(n.month);case"LL":return r?o({month:"2-digit",day:"numeric"},"month"):a.num(n.month,2);case"LLL":return d("short",!0);case"LLLL":return d("long",!0);case"LLLLL":return d("narrow",!0);case"M":return r?o({month:"numeric"},"month"):a.num(n.month);case"MM":return r?o({month:"2-digit"},"month"):a.num(n.month,2);case"MMM":return d("short",!1);case"MMMM":return d("long",!1);case"MMMMM":return d("narrow",!1);case"y":return r?o({year:"numeric"},"year"):a.num(n.year);case"yy":return r?o({year:"2-digit"},"year"):a.num(n.year.toString().slice(-2),2);case"yyyy":return r?o({year:"numeric"},"year"):a.num(n.year,4);case"yyyyyy":return r?o({year:"numeric"},"year"):a.num(n.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return a.num(n.weekYear.toString().slice(-2),2);case"kkkk":return a.num(n.weekYear,4);case"W":return a.num(n.weekNumber);case"WW":return a.num(n.weekNumber,2);case"o":return a.num(n.ordinal);case"ooo":return a.num(n.ordinal,3);case"q":return a.num(n.quarter);case"qq":return a.num(n.quarter,2);case"X":return a.num(Math.floor(n.ts/1e3));case"x":return a.num(n.ts);default:return function(t){var i=e.macroTokenToFormatOpts(t);return i?a.formatWithSystemDefault(n,i):t}(t)}}))},n.formatDurationFromString=function(n,t){var a,i=this,r=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},o=e.parseFormat(t),s=o.reduce((function(e,n){var t=n.literal,a=n.val;return t?e:e.concat(a)}),[]),l=n.shiftTo.apply(n,s.map(r).filter((function(e){return e})));return Ee(o,(a=l,function(e){var n=r(e);return n?i.num(a.get(n),e.length):e}))},e}(),je=function(){function e(e,n){this.reason=e,this.explanation=n}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Ne=function(){function e(){}var n=e.prototype;return n.offsetName=function(e,n){throw new x},n.formatOffset=function(e,n){throw new x},n.offset=function(e){throw new x},n.equals=function(e){throw new x},i(e,[{key:"type",get:function(){throw new x}},{key:"name",get:function(){throw new x}},{key:"universal",get:function(){throw new x}},{key:"isValid",get:function(){throw new x}}]),e}(),Be=null,Ue=function(e){function n(){return e.apply(this,arguments)||this}r(n,e);var t=n.prototype;return t.offsetName=function(e,n){return he(e,n.format,n.locale)},t.formatOffset=function(e,n){return ge(this.offset(e),n)},t.offset=function(e){return-new Date(e).getTimezoneOffset()},t.equals=function(e){return"local"===e.type},i(n,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return X()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Be&&(Be=new n),Be}}]),n}(Ne),ze=RegExp("^"+ve.source+"$"),Fe={};var He={year:0,month:1,day:2,hour:3,minute:4,second:5};var Ve={},We=function(e){function n(t){var a;return(a=e.call(this)||this).zoneName=t,a.valid=n.isValidZone(t),a}r(n,e),n.create=function(e){return Ve[e]||(Ve[e]=new n(e)),Ve[e]},n.resetCache=function(){Ve={},Fe={}},n.isValidSpecifier=function(e){return!(!e||!e.match(ze))},n.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}},n.parseGMTOffset=function(e){if(e){var n=e.match(/^Etc\/GMT([+-]\d{1,2})$/i);if(n)return-60*parseInt(n[1])}return null};var t=n.prototype;return t.offsetName=function(e,n){return he(e,n.format,n.locale,this.name)},t.formatOffset=function(e,n){return ge(this.offset(e),n)},t.offset=function(e){var n,t=new Date(e),a=(n=this.name,Fe[n]||(Fe[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Fe[n]),i=a.formatToParts?function(e,n){for(var t=e.formatToParts(n),a=[],i=0;i=0?c:1e3+c))/6e4},t.equals=function(e){return"iana"===e.type&&e.name===this.name},i(n,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),n}(Ne),Ye=null,$e=function(e){function n(n){var t;return(t=e.call(this)||this).fixed=n,t}r(n,e),n.instance=function(e){return 0===e?n.utcInstance:new n(e)},n.parseSpecifier=function(e){if(e){var t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new n(pe(t[1],t[2]))}return null},i(n,null,[{key:"utcInstance",get:function(){return null===Ye&&(Ye=new n(0)),Ye}}]);var t=n.prototype;return t.offsetName=function(){return this.name},t.formatOffset=function(e,n){return ge(this.fixed,n)},t.offset=function(){return this.fixed},t.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},i(n,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+ge(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),n}(Ne),Ge=function(e){function n(n){var t;return(t=e.call(this)||this).zoneName=n,t}r(n,e);var t=n.prototype;return t.offsetName=function(){return null},t.formatOffset=function(){return""},t.offset=function(){return NaN},t.equals=function(){return!1},i(n,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),n}(Ne);function qe(e,n){var t;if($(e)||null===e)return n;if(e instanceof Ne)return e;if("string"==typeof e){var a=e.toLowerCase();return"local"===a?n:"utc"===a||"gmt"===a?$e.utcInstance:null!=(t=We.parseGMTOffset(e))?$e.instance(t):We.isValidSpecifier(a)?We.create(e):$e.parseSpecifier(a)||new Ge(e)}return G(e)?$e.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new Ge(e)}var Xe=function(){return Date.now()},Je=null,Ze=null,Ke=null,Qe=null,en=!1,nn=function(){function e(){}return e.resetCaches=function(){pn.resetCache(),We.resetCache()},i(e,null,[{key:"now",get:function(){return Xe},set:function(e){Xe=e}},{key:"defaultZoneName",get:function(){return e.defaultZone.name},set:function(e){Je=e?qe(e):null}},{key:"defaultZone",get:function(){return Je||Ue.instance}},{key:"defaultLocale",get:function(){return Ze},set:function(e){Ze=e}},{key:"defaultNumberingSystem",get:function(){return Ke},set:function(e){Ke=e}},{key:"defaultOutputCalendar",get:function(){return Qe},set:function(e){Qe=e}},{key:"throwOnInvalid",get:function(){return en},set:function(e){en=e}}]),e}(),tn={};function an(e,n){void 0===n&&(n={});var t=JSON.stringify([e,n]),a=tn[t];return a||(a=new Intl.DateTimeFormat(e,n),tn[t]=a),a}var rn={};var on={};function sn(e,n){void 0===n&&(n={});var t=n,a=(t.base,function(e,n){if(null==e)return{};var t,a,i={},r=Object.keys(e);for(a=0;a=0||(i[t]=e[t]);return i}(t,["base"])),i=JSON.stringify([e,a]),r=on[i];return r||(r=new Intl.RelativeTimeFormat(e,n),on[i]=r),r}var ln=null;function dn(e,n,t,a,i){var r=e.listingMode(t);return"error"===r?null:"en"===r?a(n):i(n)}var cn=function(){function e(e,n,t){if(this.padTo=t.padTo||0,this.floor=t.floor||!1,!n&&X()){var a={useGrouping:!1};t.padTo>0&&(a.minimumIntegerDigits=t.padTo),this.inf=function(e,n){void 0===n&&(n={});var t=JSON.stringify([e,n]),a=rn[t];return a||(a=new Intl.NumberFormat(e,n),rn[t]=a),a}(e,a)}}return e.prototype.format=function(e){if(this.inf){var n=this.floor?Math.floor(e):e;return this.inf.format(n)}return te(this.floor?Math.floor(e):re(e,3),this.padTo)},e}(),un=function(){function e(e,n,t){var a;if(this.opts=t,this.hasIntl=X(),e.zone.universal&&this.hasIntl){var i=e.offset/60*-1;i>=-14&&i<=12&&i%1==0?(a=i>=0?"Etc/GMT+"+i:"Etc/GMT"+i,this.dt=e):(a="UTC",t.timeZoneName?this.dt=e:this.dt=0===e.offset?e:ca.fromMillis(e.ts+60*e.offset*1e3))}else"local"===e.zone.type?this.dt=e:(this.dt=e,a=e.zone.name);if(this.hasIntl){var r=Object.assign({},this.opts);a&&(r.timeZone=a),this.dtf=an(n,r)}}var n=e.prototype;return n.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var e=function(e){switch(ye(Q(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case ye(T):return"M/d/yyyy";case ye(P):return"LLL d, yyyy";case ye(k):return"EEE, LLL d, yyyy";case ye(S):return"LLLL d, yyyy";case ye(O):return"EEEE, LLLL d, yyyy";case ye(A):return"h:mm a";case ye(R):return"h:mm:ss a";case ye(I):case ye(_):return"h:mm a";case ye(E):return"HH:mm";case ye(L):return"HH:mm:ss";case ye(M):case ye(j):return"HH:mm";case ye(N):return"M/d/yyyy, h:mm a";case ye(U):return"LLL d, yyyy, h:mm a";case ye(H):return"LLLL d, yyyy, h:mm a";case ye(W):return"EEEE, LLLL d, yyyy, h:mm a";case ye(B):return"M/d/yyyy, h:mm:ss a";case ye(z):return"LLL d, yyyy, h:mm:ss a";case ye(F):return"EEE, d LLL yyyy, h:mm a";case ye(V):return"LLLL d, yyyy, h:mm:ss a";case ye(Y):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return"EEEE, LLLL d, yyyy, h:mm a"}}(this.opts),n=pn.create("en-US");return Me.create(n).formatDateTimeFromString(this.dt,e)},n.formatToParts=function(){return this.hasIntl&&J()?this.dtf.formatToParts(this.dt.toJSDate()):[]},n.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},e}(),hn=function(){function e(e,n,t){this.opts=Object.assign({style:"long"},t),!n&&Z()&&(this.rtf=sn(e,t))}var n=e.prototype;return n.format=function(e,n){return this.rtf?this.rtf.format(e,n):function(e,n,t,a){void 0===t&&(t="always"),void 0===a&&(a=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===t&&r){var o="days"===e;switch(n){case 1:return o?"tomorrow":"next "+i[e][0];case-1:return o?"yesterday":"last "+i[e][0];case 0:return o?"today":"this "+i[e][0]}}var s=Object.is(n,-0)||n<0,l=Math.abs(n),d=1===l,c=i[e],u=a?d?c[1]:c[2]||c[1]:d?i[e][0]:e;return s?l+" "+u+" ago":"in "+l+" "+u}(n,e,this.opts.numeric,"long"!==this.opts.style)},n.formatToParts=function(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]},e}(),pn=function(){function e(e,n,t,a){var i=function(e){var n=e.indexOf("-u-");if(-1===n)return[e];var t,a=e.substring(0,n);try{t=an(e).resolvedOptions()}catch(e){t=an(a).resolvedOptions()}var i=t;return[a,i.numberingSystem,i.calendar]}(e),r=i[0],o=i[1],s=i[2];this.locale=r,this.numberingSystem=n||o||null,this.outputCalendar=t||s||null,this.intl=function(e,n,t){return X()?t||n?(e+="-u",t&&(e+="-ca-"+t),n&&(e+="-nu-"+n),e):e:[]}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}e.fromOpts=function(n){return e.create(n.locale,n.numberingSystem,n.outputCalendar,n.defaultToEN)},e.create=function(n,t,a,i){void 0===i&&(i=!1);var r=n||nn.defaultLocale;return new e(r||(i?"en-US":function(){if(ln)return ln;if(X()){var e=(new Intl.DateTimeFormat).resolvedOptions().locale;return ln=e&&"und"!==e?e:"en-US"}return ln="en-US"}()),t||nn.defaultNumberingSystem,a||nn.defaultOutputCalendar,r)},e.resetCache=function(){ln=null,tn={},rn={},on={}},e.fromObject=function(n){var t=void 0===n?{}:n,a=t.locale,i=t.numberingSystem,r=t.outputCalendar;return e.create(a,i,r)};var n=e.prototype;return n.listingMode=function(e){void 0===e&&(e=!0);var n=X()&&J(),t=this.isEnglish(),a=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return n||t&&a||e?!n||t&&a?"en":"intl":"error"},n.clone=function(n){return n&&0!==Object.getOwnPropertyNames(n).length?e.create(n.locale||this.specifiedLocale,n.numberingSystem||this.numberingSystem,n.outputCalendar||this.outputCalendar,n.defaultToEN||!1):this},n.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!0}))},n.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!1}))},n.months=function(e,n,t){var a=this;return void 0===n&&(n=!1),void 0===t&&(t=!0),dn(this,e,t,De,(function(){var t=n?{month:e,day:"numeric"}:{month:e},i=n?"format":"standalone";return a.monthsCache[i][e]||(a.monthsCache[i][e]=function(e){for(var n=[],t=1;t<=12;t++){var a=ca.utc(2016,t,1);n.push(e(a))}return n}((function(e){return a.extract(e,t,"month")}))),a.monthsCache[i][e]}))},n.weekdays=function(e,n,t){var a=this;return void 0===n&&(n=!1),void 0===t&&(t=!0),dn(this,e,t,Se,(function(){var t=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=n?"format":"standalone";return a.weekdaysCache[i][e]||(a.weekdaysCache[i][e]=function(e){for(var n=[],t=1;t<=7;t++){var a=ca.utc(2016,11,13+t);n.push(e(a))}return n}((function(e){return a.extract(e,t,"weekday")}))),a.weekdaysCache[i][e]}))},n.meridiems=function(e){var n=this;return void 0===e&&(e=!0),dn(this,void 0,e,(function(){return Oe}),(function(){if(!n.meridiemCache){var e={hour:"numeric",hour12:!0};n.meridiemCache=[ca.utc(2016,11,13,9),ca.utc(2016,11,13,19)].map((function(t){return n.extract(t,e,"dayperiod")}))}return n.meridiemCache}))},n.eras=function(e,n){var t=this;return void 0===n&&(n=!0),dn(this,e,n,_e,(function(){var n={era:e};return t.eraCache[e]||(t.eraCache[e]=[ca.utc(-40,1,1),ca.utc(2017,1,1)].map((function(e){return t.extract(e,n,"era")}))),t.eraCache[e]}))},n.extract=function(e,n,t){var a=this.dtFormatter(e,n).formatToParts().find((function(e){return e.type.toLowerCase()===t}));return a?a.value:null},n.numberFormatter=function(e){return void 0===e&&(e={}),new cn(this.intl,e.forceSimple||this.fastNumbers,e)},n.dtFormatter=function(e,n){return void 0===n&&(n={}),new un(e,this.intl,n)},n.relFormatter=function(e){return void 0===e&&(e={}),new hn(this.intl,this.isEnglish(),e)},n.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||X()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},n.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},i(e,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||X()&&"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}();function mn(){for(var e=arguments.length,n=new Array(e),t=0;t1?n-1:0),a=1;a3?Te.indexOf(e)+1:Pe.indexOf(e)+1),s}var jn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Nn(e){var n,t=e[1],a=e[2],i=e[3],r=e[4],o=e[5],s=e[6],l=e[7],d=e[8],c=e[9],u=e[10],h=e[11],p=Mn(t,r,i,a,o,s,l);return n=d?Ln[d]:c?0:pe(u,h),[p,new $e(n)]}var Bn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Un=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,zn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Fn(e){var n=e[1],t=e[2],a=e[3];return[Mn(n,e[4],a,t,e[5],e[6],e[7]),$e.utcInstance]}function Hn(e){var n=e[1],t=e[2],a=e[3],i=e[4],r=e[5],o=e[6];return[Mn(n,e[7],t,a,i,r,o),$e.utcInstance]}var Vn=mn(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Cn),Wn=mn(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Cn),Yn=mn(/(\d{4})-?(\d{3})/,Cn),$n=mn(xn),Gn=fn(Sn,On,An),qn=fn(wn,On,An),Xn=fn(Dn,On),Jn=fn(On,An);var Zn=fn(On);var Kn=mn(/(\d{4})-(\d\d)-(\d\d)/,Pn),Qn=mn(Tn),et=fn(Sn,On,An,Rn),nt=fn(On,An,Rn);var tt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},at=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},tt),it=Object.assign({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},tt),rt=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ot=rt.slice(0).reverse();function st(e,n,t){void 0===t&&(t=!1);var a={values:t?n.values:Object.assign({},e.values,n.values||{}),loc:e.loc.clone(n.loc),conversionAccuracy:n.conversionAccuracy||e.conversionAccuracy};return new dt(a)}function lt(e,n,t,a,i){var r=e[i][t],o=n[t]/r,s=!(Math.sign(o)===Math.sign(a[i]))&&0!==a[i]&&Math.abs(o)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(o):Math.trunc(o);a[i]+=s,n[t]-=s*r}var dt=function(){function e(e){var n="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||pn.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n?it:at,this.isLuxonDuration=!0}e.fromMillis=function(n,t){return e.fromObject(Object.assign({milliseconds:n},t))},e.fromObject=function(n){if(null==n||"object"!=typeof n)throw new y("Duration.fromObject: argument expected to be an object, got "+(null===n?"null":typeof n));return new e({values:fe(n,e.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:pn.fromObject(n),conversionAccuracy:n.conversionAccuracy})},e.fromISO=function(n,t){var a=function(e){return gn(e,[_n,En])}(n)[0];if(a){var i=Object.assign(a,t);return e.fromObject(i)}return e.invalid("unparsable",'the input "'+n+"\" can't be parsed as ISO 8601")},e.fromISOTime=function(n,t){var a=function(e){return gn(e,[In,Zn])}(n)[0];if(a){var i=Object.assign(a,t);return e.fromObject(i)}return e.invalid("unparsable",'the input "'+n+"\" can't be parsed as ISO 8601")},e.invalid=function(n,t){if(void 0===t&&(t=null),!n)throw new y("need to specify a reason the Duration is invalid");var a=n instanceof je?n:new je(n,t);if(nn.throwOnInvalid)throw new g(a);return new e({invalid:a})},e.normalizeUnit=function(e){var n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!n)throw new v(e);return n},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var n=e.prototype;return n.toFormat=function(e,n){void 0===n&&(n={});var t=Object.assign({},n,{floor:!1!==n.round&&!1!==n.floor});return this.isValid?Me.create(this.loc,t).formatDurationFromString(this,e):"Invalid Duration"},n.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var n=Object.assign({},this.values);return e.includeConfig&&(n.conversionAccuracy=this.conversionAccuracy,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n},n.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=re(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},n.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var n=this.toMillis();if(n<0||n>=864e5)return null;e=Object.assign({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var t=this.shiftTo("hours","minutes","seconds","milliseconds"),a="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===t.seconds&&0===t.milliseconds||(a+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===t.milliseconds||(a+=".SSS"));var i=t.toFormat(a);return e.includePrefix&&(i="T"+i),i},n.toJSON=function(){return this.toISO()},n.toString=function(){return this.toISO()},n.toMillis=function(){return this.as("milliseconds")},n.valueOf=function(){return this.toMillis()},n.plus=function(e){if(!this.isValid)return this;for(var n,t=ct(e),a={},i=h(rt);!(n=i()).done;){var r=n.value;(ee(t.values,r)||ee(this.values,r))&&(a[r]=t.get(r)+this.get(r))}return st(this,{values:a},!0)},n.minus=function(e){if(!this.isValid)return this;var n=ct(e);return this.plus(n.negate())},n.mapUnits=function(e){if(!this.isValid)return this;for(var n={},t=0,a=Object.keys(this.values);t=0){i=c;var u=0;for(var p in s)u+=this.matrix[p][c]*s[p],s[p]=0;G(l[c])&&(u+=l[c]);var m=Math.trunc(u);for(var f in o[c]=m,s[c]=u-m,l)rt.indexOf(f)>rt.indexOf(c)&<(this.matrix,l,f,o,c)}else G(l[c])&&(s[c]=l[c])}for(var g in s)0!==s[g]&&(o[i]+=g===i?s[g]:s[g]/this.matrix[i][g]);return st(this,{values:o},!0).normalize()},n.negate=function(){if(!this.isValid)return this;for(var e={},n=0,t=Object.keys(this.values);ne},n.isBefore=function(e){return!!this.isValid&&this.e<=e},n.contains=function(e){return!!this.isValid&&(this.s<=e&&this.e>e)},n.set=function(n){var t=void 0===n?{}:n,a=t.start,i=t.end;return this.isValid?e.fromDateTimes(a||this.s,i||this.e):this},n.splitAt=function(){var n=this;if(!this.isValid)return[];for(var t=arguments.length,a=new Array(t),i=0;i+this.e?this.e:d;o.push(e.fromDateTimes(s,c)),s=c,l+=1}return o},n.splitBy=function(n){var t=ct(n);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];for(var a,i,r=this.s,o=[];r+this.e?this.e:a,o.push(e.fromDateTimes(r,i)),r=i;return o},n.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},n.overlaps=function(e){return this.e>e.s&&this.s=e.e)},n.equals=function(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))},n.intersection=function(n){if(!this.isValid)return this;var t=this.s>n.s?this.s:n.s,a=this.ea?null:e.fromDateTimes(t,a)},n.union=function(n){if(!this.isValid)return this;var t=this.sn.e?this.e:n.e;return e.fromDateTimes(t,a)},e.merge=function(e){var n=e.sort((function(e,n){return e.s-n.s})).reduce((function(e,n){var t=e[0],a=e[1];return a?a.overlaps(n)||a.abutsStart(n)?[t,a.union(n)]:[t.concat([a]),n]:[t,n]}),[[],null]),t=n[0],a=n[1];return a&&t.push(a),t},e.xor=function(n){for(var t,a,i=null,r=0,o=[],s=n.map((function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]})),l=h((t=Array.prototype).concat.apply(t,s).sort((function(e,n){return e.time-n.time})));!(a=l()).done;){var d=a.value;1===(r+="s"===d.type?1:-1)?i=d.time:(i&&+i!=+d.time&&o.push(e.fromDateTimes(i,d.time)),i=null)}return e.merge(o)},n.difference=function(){for(var n=this,t=arguments.length,a=new Array(t),i=0;i=0){var u;a=d;var h,p=c(e,n);if((i=e.plus(((u={})[d]=p,u)))>n)e=e.plus(((h={})[d]=p-1,h)),p-=1;else e=i;r[d]=p}}return[e,r,i,a]}(e,n,t),r=i[0],o=i[1],s=i[2],l=i[3],d=n-r,c=t.filter((function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0}));if(0===c.length){var u;if(s0?(h=dt.fromMillis(d,a)).shiftTo.apply(h,c).plus(p):p}var bt={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},vt={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},yt=bt.hanidec.replace(/[\[|\]]/g,"").split("");function xt(e,n){var t=e.numberingSystem;return void 0===n&&(n=""),new RegExp(""+bt[t||"latn"]+n)}function Ct(e,n){return void 0===n&&(n=function(e){return e}),{regex:e,deser:function(e){var t=e[0];return n(function(e){var n=parseInt(e,10);if(isNaN(n)){n="";for(var t=0;t=o&&a<=s&&(n+=a-o)}}return parseInt(n,10)}return n}(t))}}}var wt="( |"+String.fromCharCode(160)+")",Dt=new RegExp(wt,"g");function Tt(e){return e.replace(/\./g,"\\.?").replace(Dt,wt)}function Pt(e){return e.replace(/\./g,"").replace(Dt," ").toLowerCase()}function kt(e,n){return null===e?null:{regex:RegExp(e.map(Tt).join("|")),deser:function(t){var a=t[0];return e.findIndex((function(e){return Pt(a)===Pt(e)}))+n}}}function St(e,n){return{regex:e,deser:function(e){return pe(e[1],e[2])},groups:n}}function Ot(e){return{regex:e,deser:function(e){return e[0]}}}var At={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};var Rt=null;function It(e,n){if(e.literal)return e;var t=Me.macroTokenToFormatOpts(e.val);if(!t)return e;var a=Me.create(n,t).formatDateTimeParts((Rt||(Rt=ca.fromMillis(1555555555555)),Rt)).map((function(e){return function(e,n,t){var a=e.type,i=e.value;if("literal"===a)return{literal:!0,val:i};var r=t[a],o=At[a];return"object"==typeof o&&(o=o[r]),o?{literal:!1,val:o}:void 0}(e,0,t)}));return a.includes(void 0)?e:a}function _t(e,n,t){var a=function(e,n){var t;return(t=Array.prototype).concat.apply(t,e.map((function(e){return It(e,n)})))}(Me.parseFormat(t),e),i=a.map((function(n){return t=n,i=xt(a=e),r=xt(a,"{2}"),o=xt(a,"{3}"),s=xt(a,"{4}"),l=xt(a,"{6}"),d=xt(a,"{1,2}"),c=xt(a,"{1,3}"),u=xt(a,"{1,6}"),h=xt(a,"{1,9}"),p=xt(a,"{2,4}"),m=xt(a,"{4,6}"),f=function(e){return{regex:RegExp((n=e.val,n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(e){return e[0]},literal:!0};var n},(g=function(e){if(t.literal)return f(e);switch(e.val){case"G":return kt(a.eras("short",!1),0);case"GG":return kt(a.eras("long",!1),0);case"y":return Ct(u);case"yy":return Ct(p,ue);case"yyyy":return Ct(s);case"yyyyy":return Ct(m);case"yyyyyy":return Ct(l);case"M":return Ct(d);case"MM":return Ct(r);case"MMM":return kt(a.months("short",!0,!1),1);case"MMMM":return kt(a.months("long",!0,!1),1);case"L":return Ct(d);case"LL":return Ct(r);case"LLL":return kt(a.months("short",!1,!1),1);case"LLLL":return kt(a.months("long",!1,!1),1);case"d":return Ct(d);case"dd":return Ct(r);case"o":return Ct(c);case"ooo":return Ct(o);case"HH":return Ct(r);case"H":return Ct(d);case"hh":return Ct(r);case"h":return Ct(d);case"mm":return Ct(r);case"m":case"q":return Ct(d);case"qq":return Ct(r);case"s":return Ct(d);case"ss":return Ct(r);case"S":return Ct(c);case"SSS":return Ct(o);case"u":return Ot(h);case"a":return kt(a.meridiems(),0);case"kkkk":return Ct(s);case"kk":return Ct(p,ue);case"W":return Ct(d);case"WW":return Ct(r);case"E":case"c":return Ct(i);case"EEE":return kt(a.weekdays("short",!1,!1),1);case"EEEE":return kt(a.weekdays("long",!1,!1),1);case"ccc":return kt(a.weekdays("short",!0,!1),1);case"cccc":return kt(a.weekdays("long",!0,!1),1);case"Z":case"ZZ":return St(new RegExp("([+-]"+d.source+")(?::("+r.source+"))?"),2);case"ZZZ":return St(new RegExp("([+-]"+d.source+")("+r.source+")?"),2);case"z":return Ot(/[a-z_+-/]{1,256}?/i);default:return f(e)}}(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"}).token=t,g;var t,a,i,r,o,s,l,d,c,u,h,p,m,f,g})),r=i.find((function(e){return e.invalidReason}));if(r)return{input:n,tokens:a,invalidReason:r.invalidReason};var o=function(e){return["^"+e.map((function(e){return e.regex})).reduce((function(e,n){return e+"("+n.source+")"}),"")+"$",e]}(i),s=o[0],l=o[1],d=RegExp(s,"i"),c=function(e,n,t){var a=e.match(n);if(a){var i={},r=1;for(var o in t)if(ee(t,o)){var s=t[o],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(a.slice(r,r+l))),r+=l}return[a,i]}return[a,{}]}(n,d,l),u=c[0],h=c[1],p=h?function(e){var n;return n=$(e.Z)?$(e.z)?null:We.create(e.z):new $e(e.Z),$(e.q)||(e.M=3*(e.q-1)+1),$(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),$(e.u)||(e.S=ie(e.u)),[Object.keys(e).reduce((function(n,t){var a=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(t);return a&&(n[a]=e[t]),n}),{}),n]}(h):[null,null],m=p[0],f=p[1];if(ee(h,"a")&&ee(h,"H"))throw new b("Can't include meridiem when specifying 24-hour format");return{input:n,tokens:a,regex:d,rawMatches:u,matches:h,result:m,zone:f}}var Et=[0,31,59,90,120,151,181,212,243,273,304,334],Lt=[0,31,60,91,121,152,182,213,244,274,305,335];function Mt(e,n){return new je("unit out of range","you specified "+n+" (of type "+typeof n+") as a "+e+", which is invalid")}function jt(e,n,t){var a=new Date(Date.UTC(e,n-1,t)).getUTCDay();return 0===a?7:a}function Nt(e,n,t){return t+(oe(e)?Lt:Et)[n-1]}function Bt(e,n){var t=oe(e)?Lt:Et,a=t.findIndex((function(e){return ece(t)?(n=t+1,s=1):n=t,Object.assign({weekYear:n,weekNumber:s,weekday:o},be(e))}function zt(e){var n,t=e.weekYear,a=e.weekNumber,i=e.weekday,r=jt(t,1,4),o=se(t),s=7*a+i-r-3;s<1?s+=se(n=t-1):s>o?(n=t+1,s-=se(t)):n=t;var l=Bt(n,s),d=l.month,c=l.day;return Object.assign({year:n,month:d,day:c},be(e))}function Ft(e){var n=e.year,t=Nt(n,e.month,e.day);return Object.assign({year:n,ordinal:t},be(e))}function Ht(e){var n=e.year,t=Bt(n,e.ordinal),a=t.month,i=t.day;return Object.assign({year:n,month:a,day:i},be(e))}function Vt(e){var n=q(e.year),t=ne(e.month,1,12),a=ne(e.day,1,le(e.year,e.month));return n?t?!a&&Mt("day",e.day):Mt("month",e.month):Mt("year",e.year)}function Wt(e){var n=e.hour,t=e.minute,a=e.second,i=e.millisecond,r=ne(n,0,23)||24===n&&0===t&&0===a&&0===i,o=ne(t,0,59),s=ne(a,0,59),l=ne(i,0,999);return r?o?s?!l&&Mt("millisecond",i):Mt("second",a):Mt("minute",t):Mt("hour",n)}function Yt(e){return new je("unsupported zone",'the zone "'+e.name+'" is not supported')}function $t(e){return null===e.weekData&&(e.weekData=Ut(e.c)),e.weekData}function Gt(e,n){var t={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ca(Object.assign({},t,n,{old:t}))}function qt(e,n,t){var a=e-60*n*1e3,i=t.offset(a);if(n===i)return[a,n];a-=60*(i-n)*1e3;var r=t.offset(a);return i===r?[a,i]:[e-60*Math.min(i,r)*1e3,Math.max(i,r)]}function Xt(e,n){var t=new Date(e+=60*n*1e3);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function Jt(e,n,t){return qt(de(e),n,t)}function Zt(e,n){var t=e.o,a=e.c.year+Math.trunc(n.years),i=e.c.month+Math.trunc(n.months)+3*Math.trunc(n.quarters),r=Object.assign({},e.c,{year:a,month:i,day:Math.min(e.c.day,le(a,i))+Math.trunc(n.days)+7*Math.trunc(n.weeks)}),o=dt.fromObject({years:n.years-Math.trunc(n.years),quarters:n.quarters-Math.trunc(n.quarters),months:n.months-Math.trunc(n.months),weeks:n.weeks-Math.trunc(n.weeks),days:n.days-Math.trunc(n.days),hours:n.hours,minutes:n.minutes,seconds:n.seconds,milliseconds:n.milliseconds}).as("milliseconds"),s=qt(de(r),t,e.zone),l=s[0],d=s[1];return 0!==o&&(l+=o,d=e.zone.offset(l)),{ts:l,o:d}}function Kt(e,n,t,a,i){var r=t.setZone,o=t.zone;if(e&&0!==Object.keys(e).length){var s=n||o,l=ca.fromObject(Object.assign(e,t,{zone:s,setZone:void 0}));return r?l:l.setZone(o)}return ca.invalid(new je("unparsable",'the input "'+i+"\" can't be parsed as "+a))}function Qt(e,n,t){return void 0===t&&(t=!0),e.isValid?Me.create(pn.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(e,n):null}function ea(e,n){var t=n.suppressSeconds,a=void 0!==t&&t,i=n.suppressMilliseconds,r=void 0!==i&&i,o=n.includeOffset,s=n.includePrefix,l=void 0!==s&&s,d=n.includeZone,c=void 0!==d&&d,u=n.spaceZone,h=void 0!==u&&u,p=n.format,m=void 0===p?"extended":p,f="basic"===m?"HHmm":"HH:mm";a&&0===e.second&&0===e.millisecond||(f+="basic"===m?"ss":":ss",r&&0===e.millisecond||(f+=".SSS")),(c||o)&&h&&(f+=" "),c?f+="z":o&&(f+="basic"===m?"ZZZ":"ZZ");var g=Qt(e,f);return l&&(g="T"+g),g}var na={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ta={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},aa={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ia=["year","month","day","hour","minute","second","millisecond"],ra=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],oa=["year","ordinal","hour","minute","second","millisecond"];function sa(e){var n={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!n)throw new v(e);return n}function la(e,n){for(var t,a=h(ia);!(t=a()).done;){var i=t.value;$(e[i])&&(e[i]=na[i])}var r=Vt(e)||Wt(e);if(r)return ca.invalid(r);var o=nn.now(),s=Jt(e,n.offset(o),n),l=s[0],d=s[1];return new ca({ts:l,zone:n,o:d})}function da(e,n,t){var a=!!$(t.round)||t.round,i=function(e,i){return e=re(e,a||t.calendary?0:2,!0),n.loc.clone(t).relFormatter(t).format(e,i)},r=function(a){return t.calendary?n.hasSame(e,a)?0:n.startOf(a).diff(e.startOf(a),a).get(a):n.diff(e,a).get(a)};if(t.unit)return i(r(t.unit),t.unit);for(var o,s=h(t.units);!(o=s()).done;){var l=o.value,d=r(l);if(Math.abs(d)>=1)return i(d,l)}return i(0,t.units[t.units.length-1])}var ca=function(){function e(e){var n=e.zone||nn.defaultZone,t=e.invalid||(Number.isNaN(e.ts)?new je("invalid input"):null)||(n.isValid?null:Yt(n));this.ts=$(e.ts)?nn.now():e.ts;var a=null,i=null;if(!t)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n)){var r=[e.old.c,e.old.o];a=r[0],i=r[1]}else{var o=n.offset(this.ts);a=Xt(this.ts,o),a=(t=Number.isNaN(a.year)?new je("invalid input"):null)?null:a,i=t?null:o}this._zone=n,this.loc=e.loc||pn.create(),this.invalid=t,this.weekData=null,this.c=a,this.o=i,this.isLuxonDateTime=!0}e.now=function(){return new e({})},e.local=function(n,t,a,i,r,o,s){return $(n)?new e({}):la({year:n,month:t,day:a,hour:i,minute:r,second:o,millisecond:s},nn.defaultZone)},e.utc=function(n,t,a,i,r,o,s){return $(n)?new e({ts:nn.now(),zone:$e.utcInstance}):la({year:n,month:t,day:a,hour:i,minute:r,second:o,millisecond:s},$e.utcInstance)},e.fromJSDate=function(n,t){void 0===t&&(t={});var a,i=(a=n,"[object Date]"===Object.prototype.toString.call(a)?n.valueOf():NaN);if(Number.isNaN(i))return e.invalid("invalid input");var r=qe(t.zone,nn.defaultZone);return r.isValid?new e({ts:i,zone:r,loc:pn.fromObject(t)}):e.invalid(Yt(r))},e.fromMillis=function(n,t){if(void 0===t&&(t={}),G(n))return n<-864e13||n>864e13?e.invalid("Timestamp out of range"):new e({ts:n,zone:qe(t.zone,nn.defaultZone),loc:pn.fromObject(t)});throw new y("fromMillis requires a numerical input, but received a "+typeof n+" with value "+n)},e.fromSeconds=function(n,t){if(void 0===t&&(t={}),G(n))return new e({ts:1e3*n,zone:qe(t.zone,nn.defaultZone),loc:pn.fromObject(t)});throw new y("fromSeconds requires a numerical input")},e.fromObject=function(n){var t=qe(n.zone,nn.defaultZone);if(!t.isValid)return e.invalid(Yt(t));var a=nn.now(),i=t.offset(a),r=fe(n,sa,["zone","locale","outputCalendar","numberingSystem"]),o=!$(r.ordinal),s=!$(r.year),l=!$(r.month)||!$(r.day),d=s||l,c=r.weekYear||r.weekNumber,u=pn.fromObject(n);if((d||o)&&c)throw new b("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new b("Can't mix ordinal dates with month/day");var p,m,f=c||r.weekday&&!d,g=Xt(a,i);f?(p=ra,m=ta,g=Ut(g)):o?(p=oa,m=aa,g=Ft(g)):(p=ia,m=na);for(var v,y=!1,x=h(p);!(v=x()).done;){var C=v.value;$(r[C])?r[C]=y?m[C]:g[C]:y=!0}var w=(f?function(e){var n=q(e.weekYear),t=ne(e.weekNumber,1,ce(e.weekYear)),a=ne(e.weekday,1,7);return n?t?!a&&Mt("weekday",e.weekday):Mt("week",e.week):Mt("weekYear",e.weekYear)}(r):o?function(e){var n=q(e.year),t=ne(e.ordinal,1,se(e.year));return n?!t&&Mt("ordinal",e.ordinal):Mt("year",e.year)}(r):Vt(r))||Wt(r);if(w)return e.invalid(w);var D=Jt(f?zt(r):o?Ht(r):r,i,t),T=new e({ts:D[0],zone:t,o:D[1],loc:u});return r.weekday&&d&&n.weekday!==T.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+r.weekday+" and a date of "+T.toISO()):T},e.fromISO=function(e,n){void 0===n&&(n={});var t=function(e){return gn(e,[Vn,Gn],[Wn,qn],[Yn,Xn],[$n,Jn])}(e);return Kt(t[0],t[1],n,"ISO 8601",e)},e.fromRFC2822=function(e,n){void 0===n&&(n={});var t=function(e){return gn(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[jn,Nn])}(e);return Kt(t[0],t[1],n,"RFC 2822",e)},e.fromHTTP=function(e,n){void 0===n&&(n={});var t=function(e){return gn(e,[Bn,Fn],[Un,Fn],[zn,Hn])}(e);return Kt(t[0],t[1],n,"HTTP",n)},e.fromFormat=function(n,t,a){if(void 0===a&&(a={}),$(n)||$(t))throw new y("fromFormat requires an input string and a format");var i=a,r=i.locale,o=void 0===r?null:r,s=i.numberingSystem,l=void 0===s?null:s,d=function(e,n,t){var a=_t(e,n,t);return[a.result,a.zone,a.invalidReason]}(pn.fromOpts({locale:o,numberingSystem:l,defaultToEN:!0}),n,t),c=d[0],u=d[1],h=d[2];return h?e.invalid(h):Kt(c,u,a,"format "+t,n)},e.fromString=function(n,t,a){return void 0===a&&(a={}),e.fromFormat(n,t,a)},e.fromSQL=function(e,n){void 0===n&&(n={});var t=function(e){return gn(e,[Kn,et],[Qn,nt])}(e);return Kt(t[0],t[1],n,"SQL",e)},e.invalid=function(n,t){if(void 0===t&&(t=null),!n)throw new y("need to specify a reason the DateTime is invalid");var a=n instanceof je?n:new je(n,t);if(nn.throwOnInvalid)throw new m(a);return new e({invalid:a})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var n=e.prototype;return n.get=function(e){return this[e]},n.resolvedLocaleOpts=function(e){void 0===e&&(e={});var n=Me.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n.locale,numberingSystem:n.numberingSystem,outputCalendar:n.calendar}},n.toUTC=function(e,n){return void 0===e&&(e=0),void 0===n&&(n={}),this.setZone($e.instance(e),n)},n.toLocal=function(){return this.setZone(nn.defaultZone)},n.setZone=function(n,t){var a=void 0===t?{}:t,i=a.keepLocalTime,r=void 0!==i&&i,o=a.keepCalendarTime,s=void 0!==o&&o;if((n=qe(n,nn.defaultZone)).equals(this.zone))return this;if(n.isValid){var l=this.ts;if(r||s){var d=n.offset(this.ts);l=Jt(this.toObject(),d,n)[0]}return Gt(this,{ts:l,zone:n})}return e.invalid(Yt(n))},n.reconfigure=function(e){var n=void 0===e?{}:e,t=n.locale,a=n.numberingSystem,i=n.outputCalendar;return Gt(this,{loc:this.loc.clone({locale:t,numberingSystem:a,outputCalendar:i})})},n.setLocale=function(e){return this.reconfigure({locale:e})},n.set=function(e){if(!this.isValid)return this;var n,t=fe(e,sa,[]);!$(t.weekYear)||!$(t.weekNumber)||!$(t.weekday)?n=zt(Object.assign(Ut(this.c),t)):$(t.ordinal)?(n=Object.assign(this.toObject(),t),$(t.day)&&(n.day=Math.min(le(n.year,n.month),n.day))):n=Ht(Object.assign(Ft(this.c),t));var a=Jt(n,this.o,this.zone);return Gt(this,{ts:a[0],o:a[1]})},n.plus=function(e){return this.isValid?Gt(this,Zt(this,ct(e))):this},n.minus=function(e){return this.isValid?Gt(this,Zt(this,ct(e).negate())):this},n.startOf=function(e){if(!this.isValid)return this;var n={},t=dt.normalizeUnit(e);switch(t){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===t&&(n.weekday=1),"quarters"===t){var a=Math.ceil(this.month/3);n.month=3*(a-1)+1}return this.set(n)},n.endOf=function(e){var n;return this.isValid?this.plus((n={},n[e]=1,n)).startOf(e).minus(1):this},n.toFormat=function(e,n){return void 0===n&&(n={}),this.isValid?Me.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):"Invalid DateTime"},n.toLocaleString=function(e){return void 0===e&&(e=T),this.isValid?Me.create(this.loc.clone(e),e).formatDateTime(this):"Invalid DateTime"},n.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Me.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},n.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},n.toISODate=function(e){var n=(void 0===e?{}:e).format,t="basic"===(void 0===n?"extended":n)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(t="+"+t),Qt(this,t)},n.toISOWeekDate=function(){return Qt(this,"kkkk-'W'WW-c")},n.toISOTime=function(e){var n=void 0===e?{}:e,t=n.suppressMilliseconds,a=void 0!==t&&t,i=n.suppressSeconds,r=void 0!==i&&i,o=n.includeOffset,s=void 0===o||o,l=n.includePrefix,d=void 0!==l&&l,c=n.format;return ea(this,{suppressSeconds:r,suppressMilliseconds:a,includeOffset:s,includePrefix:d,format:void 0===c?"extended":c})},n.toRFC2822=function(){return Qt(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},n.toHTTP=function(){return Qt(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},n.toSQLDate=function(){return Qt(this,"yyyy-MM-dd")},n.toSQLTime=function(e){var n=void 0===e?{}:e,t=n.includeOffset,a=void 0===t||t,i=n.includeZone;return ea(this,{includeOffset:a,includeZone:void 0!==i&&i,spaceZone:!0})},n.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},n.toString=function(){return this.isValid?this.toISO():"Invalid DateTime"},n.valueOf=function(){return this.toMillis()},n.toMillis=function(){return this.isValid?this.ts:NaN},n.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},n.toJSON=function(){return this.toISO()},n.toBSON=function(){return this.toJSDate()},n.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var n=Object.assign({},this.c);return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n},n.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},n.diff=function(e,n,t){if(void 0===n&&(n="milliseconds"),void 0===t&&(t={}),!this.isValid||!e.isValid)return dt.invalid(this.invalid||e.invalid,"created by diffing an invalid DateTime");var a,i=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},t),r=(a=n,Array.isArray(a)?a:[a]).map(dt.normalizeUnit),o=e.valueOf()>this.valueOf(),s=gt(o?this:e,o?e:this,r,i);return o?s.negate():s},n.diffNow=function(n,t){return void 0===n&&(n="milliseconds"),void 0===t&&(t={}),this.diff(e.now(),n,t)},n.until=function(e){return this.isValid?pt.fromDateTimes(this,e):this},n.hasSame=function(e,n){if(!this.isValid)return!1;var t=e.valueOf(),a=this.setZone(e.zone,{keepLocalTime:!0});return a.startOf(n)<=t&&t<=a.endOf(n)},n.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},n.toRelative=function(n){if(void 0===n&&(n={}),!this.isValid)return null;var t=n.base||e.fromObject({zone:this.zone}),a=n.padding?thisthis.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return oe(this.year)}},{key:"daysInMonth",get:function(){return le(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?se(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?ce(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return T}},{key:"DATE_MED",get:function(){return P}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return k}},{key:"DATE_FULL",get:function(){return S}},{key:"DATE_HUGE",get:function(){return O}},{key:"TIME_SIMPLE",get:function(){return A}},{key:"TIME_WITH_SECONDS",get:function(){return R}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return I}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return _}},{key:"TIME_24_SIMPLE",get:function(){return E}},{key:"TIME_24_WITH_SECONDS",get:function(){return L}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return M}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return j}},{key:"DATETIME_SHORT",get:function(){return N}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return B}},{key:"DATETIME_MED",get:function(){return U}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return z}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return F}},{key:"DATETIME_FULL",get:function(){return H}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return V}},{key:"DATETIME_HUGE",get:function(){return W}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return Y}}]),e}();function ua(e){if(ca.isDateTime(e))return e;if(e&&e.valueOf&&G(e.valueOf()))return ca.fromJSDate(e);if(e&&"object"==typeof e)return ca.fromObject(e);throw new y("Unknown datetime argument: "+e+", of type "+typeof e)}n.DateTime=ca,n.Duration=dt,n.FixedOffsetZone=$e,n.IANAZone=We,n.Info=mt,n.Interval=pt,n.InvalidZone=Ge,n.LocalZone=Ue,n.Settings=nn,n.VERSION="1.26.0",n.Zone=Ne},function(e,n){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,n,t){var a=t(2),i=t(72),r=t(9),o=t(75),s=t(76),l=t(132),d=i("wks"),c=a.Symbol,u=l?c:c&&c.withoutSetter||o;e.exports=function(e){return r(d,e)&&(s||"string"==typeof d[e])||(s&&r(c,e)?d[e]=c[e]:d[e]=u("Symbol."+e)),d[e]}},function(e,n,t){"use strict";function a(e,n,t,a,i,r,o,s){var l,d="function"==typeof e?e.options:e;if(n&&(d.render=n,d.staticRenderFns=t,d._compiled=!0),a&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},d._ssrRegister=l):i&&(l=s?function(){i.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(d.functional){d._injectStyles=l;var c=d.render;d.render=function(e,n){return l.call(n),c(e,n)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,l):[l]}return{exports:e,options:d}}t.d(n,"a",(function(){return a}))},function(e,n,t){var a=t(13);e.exports=function(e){if(!a(e))throw TypeError(String(e)+" is not an object");return e}},function(e,n){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},function(e,n){var t=Array.isArray;e.exports=t},function(e,n,t){var a=t(96),i="object"==typeof self&&self&&self.Object===Object&&self,r=a||i||Function("return this")();e.exports=r},function(e,n,t){var a=t(5);e.exports=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,n){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,n){e.exports={package:"../../package.json",menu:{text:"{{version}}",locations:[".navbar > .home-link::after",".sidebar > .nav-links > :first-child::before"],items:[{text:"Documentation",items:[{text:"Development (master)",link:"/docs/master/"},{type:"versions",text:"{{version}}{{tag|suffix}}",link:"/docs/{{version}}/",exclude:/^[01]\.|2\.[0-5]\./,group:"minor"}]},{text:"Release notes (5 latest)",items:[{type:"versions",limit:5,target:"_blank",group:"patch",link:"https://github.com/chartjs/Chart.js/releases/tag/v{{version}}"}]}]},filters:{suffix:e=>e?` (${e})`:""},base:"/docs/latest/",name:"chart.js",version:"3.1.0",versions:[{tag:null,name:"3.1.0"},{tag:null,name:"3.0.2"},{tag:null,name:"3.0.1"},{tag:null,name:"3.0.0"},{tag:null,name:"3.0.0-rc.7"},{tag:null,name:"3.0.0-rc.6"},{tag:null,name:"3.0.0-rc.5"},{tag:null,name:"3.0.0-rc.4"},{tag:null,name:"3.0.0-rc.3"},{tag:null,name:"3.0.0-rc.2"},{tag:null,name:"3.0.0-rc"},{tag:null,name:"3.0.0-beta.14"},{tag:null,name:"3.0.0-beta.13"},{tag:null,name:"3.0.0-beta.12"},{tag:null,name:"3.0.0-beta.11"},{tag:null,name:"3.0.0-beta.10"},{tag:null,name:"3.0.0-beta.9"},{tag:null,name:"3.0.0-beta.8"},{tag:null,name:"3.0.0-beta.7"},{tag:null,name:"3.0.0-beta.6"},{tag:null,name:"3.0.0-beta.5"},{tag:null,name:"3.0.0-beta.4"},{tag:null,name:"3.0.0-beta.3"},{tag:null,name:"3.0.0-beta.2"},{tag:null,name:"3.0.0-beta"},{tag:null,name:"3.0.0-alpha.2"},{tag:null,name:"3.0.0-alpha"},{tag:null,name:"2.9.4"},{tag:null,name:"2.9.3"},{tag:null,name:"2.9.2"},{tag:null,name:"2.9.1"},{tag:null,name:"2.9.0"},{tag:null,name:"2.8.0"},{tag:null,name:"2.8.0-rc.1"},{tag:null,name:"2.7.3"},{tag:null,name:"2.7.2"},{tag:null,name:"2.7.1"},{tag:null,name:"2.7.0"},{tag:null,name:"2.6.0"},{tag:null,name:"2.5.0"},{tag:null,name:"2.4.0"},{tag:null,name:"2.3.0"},{tag:null,name:"2.3.0-rc.1"},{tag:null,name:"2.2.2"},{tag:null,name:"2.2.1"},{tag:null,name:"2.2.0"},{tag:null,name:"2.2.0-rc.2"},{tag:null,name:"2.2.0-rc.1"},{tag:null,name:"2.1.6"},{tag:null,name:"2.1.5"},{tag:null,name:"2.1.4"},{tag:null,name:"2.1.3"},{tag:null,name:"2.1.2"},{tag:null,name:"2.1.1"},{tag:null,name:"2.1.0"},{tag:null,name:"2.0.2"},{tag:null,name:"2.0.1"},{tag:null,name:"2.0.0"},{tag:null,name:"1.1.1"},{tag:null,name:"1.1.0"},{tag:null,name:"1.0.2"},{tag:null,name:"1.0.1"},{tag:null,name:"1.0.1-beta.2"}]}},function(e,n,t){"use strict";var a=t(164),i=t(8),r=t(35),o=t(36),s=t(34),l=t(168),d=t(170),c=t(171),u=Math.max,h=Math.min;a("replace",2,(function(e,n,t,a){var p=a.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,m=a.REPLACE_KEEPS_$0,f=p?"$":"$0";return[function(t,a){var i=s(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,i,a):n.call(String(i),t,a)},function(e,a){if(!p&&m||"string"==typeof a&&-1===a.indexOf(f)){var s=t(n,e,this,a);if(s.done)return s.value}var g=i(e),b=String(this),v="function"==typeof a;v||(a=String(a));var y=g.global;if(y){var x=g.unicode;g.lastIndex=0}for(var C=[];;){var w=c(g,b);if(null===w)break;if(C.push(w),!y)break;""===String(w[0])&&(g.lastIndex=l(b,r(g.lastIndex),x))}for(var D,T="",P=0,k=0;k=P&&(T+=b.slice(P,O)+E,P=O+S.length)}return T+b.slice(P)}]}))},function(e,n,t){var a=t(12),i=t(17),r=t(48);e.exports=a?function(e,n,t){return i.f(e,n,r(1,t))}:function(e,n,t){return e[n]=t,e}},function(e,n,t){var a=t(12),i=t(73),r=t(8),o=t(74),s=Object.defineProperty;n.f=a?s:function(e,n,t){if(r(e),n=o(n,!0),r(t),i)try{return s(e,n,t)}catch(e){}if("get"in t||"set"in t)throw TypeError("Accessors not supported");return"value"in t&&(e[n]=t.value),e}},function(e,n,t){var a=t(2),i=t(56).f,r=t(16),o=t(23),s=t(46),l=t(82),d=t(84);e.exports=function(e,n){var t,c,u,h,p,m=e.target,f=e.global,g=e.stat;if(t=f?a:g?a[m]||s(m,{}):(a[m]||{}).prototype)for(c in n){if(h=n[c],u=e.noTargetGet?(p=i(t,c))&&p.value:t[c],!d(f?c:m+(g?".":"#")+c,e.forced)&&void 0!==u){if(typeof h==typeof u)continue;l(h,u)}(e.sham||u&&u.sham)&&r(h,"sham",!0),o(t,c,h,e)}}},function(e,n,t){var a=t(190),i=t(193);e.exports=function(e,n){var t=i(e,n);return a(t)?t:void 0}},function(e,n,t){"use strict";t.d(n,"d",(function(){return a})),t.d(n,"a",(function(){return r})),t.d(n,"i",(function(){return o})),t.d(n,"f",(function(){return l})),t.d(n,"g",(function(){return d})),t.d(n,"h",(function(){return c})),t.d(n,"b",(function(){return u})),t.d(n,"e",(function(){return h})),t.d(n,"k",(function(){return p})),t.d(n,"l",(function(){return m})),t.d(n,"c",(function(){return g})),t.d(n,"j",(function(){return b}));t(15);const a=/#.*$/,i=/\.(md|html)$/,r=/\/$/,o=/^[a-z]+:/i;function s(e){return decodeURI(e).replace(a,"").replace(i,"")}function l(e){return o.test(e)}function d(e){return/^mailto:/.test(e)}function c(e){return/^tel:/.test(e)}function u(e){if(l(e))return e;const n=e.match(a),t=n?n[0]:"",i=s(e);return r.test(i)?e:i+".html"+t}function h(e,n){const t=decodeURIComponent(e.hash),i=function(e){const n=e.match(a);if(n)return n[0]}(n);if(i&&t!==i)return!1;return s(e.path)===s(n)}function p(e,n,t){if(l(n))return{type:"external",path:n};t&&(n=function(e,n,t){const a=e.charAt(0);if("/"===a)return e;if("?"===a||"#"===a)return n+e;const i=n.split("/");t&&i[i.length-1]||i.pop();const r=e.replace(/^\//,"").split("/");for(let e=0;efunction e(n,t,a,i=1){if("string"==typeof n)return p(t,n,a);if(Array.isArray(n))return Object.assign(p(t,n[0],a),{title:n[1]});{const r=n.children||[];return 0===r.length&&n.path?Object.assign(p(t,n.path,a),{title:n.title}):{type:"group",path:n.path,title:n.title,sidebarDepth:n.sidebarDepth,initialOpenGroupIndex:n.initialOpenGroupIndex,children:r.map(n=>e(n,t,a,i+1)),collapsable:!1!==n.collapsable}}}(e,i,t)):[]}return[]}function f(e){const n=g(e.headers||[]);return[{type:"group",collapsable:!1,title:e.title,path:null,children:n.map(n=>({type:"auto",title:n.title,basePath:e.path,path:e.path+"#"+n.slug,children:n.children||[]}))}]}function g(e){let n;return(e=e.map(e=>Object.assign({},e))).forEach(e=>{2===e.level?n=e:n&&(n.children||(n.children=[])).push(e)}),e.filter(e=>2===e.level)}function b(e){return Object.assign(e,{type:e.items&&e.items.length?"links":"link"})}},function(e,n){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,n,t){var a=t(131),i=t(2),r=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,n){return arguments.length<2?r(a[e])||r(i[e]):a[e]&&a[e][n]||i[e]&&i[e][n]}},function(e,n,t){var a=t(2),i=t(16),r=t(9),o=t(46),s=t(55),l=t(54),d=l.get,c=l.enforce,u=String(String).split("String");(e.exports=function(e,n,t,s){var l,d=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof t&&("string"!=typeof n||r(t,"name")||i(t,"name",n),(l=c(t)).source||(l.source=u.join("string"==typeof n?n:""))),e!==a?(d?!p&&e[n]&&(h=!0):delete e[n],h?e[n]=t:i(e,n,t)):h?e[n]=t:o(n,t)})(Function.prototype,"toString",(function(){return"function"==typeof this&&d(this).source||s(this)}))},function(e,n,t){var a=t(29),i=t(175),r=t(176),o=a?a.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):r(e)}},function(e,n){e.exports=!1},function(e,n,t){var a=t(33),i=t(2);e.exports="process"==a(i.process)},function(e,n){e.exports={}},function(e,n){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,n,t){var a=t(11).Symbol;e.exports=a},function(e,n,t){t(15);e.exports={resolveTemplate:function(e,n,t){if(!e)return e;for(const[a,i]of Object.entries(n)){const r=new RegExp(`{{\\s*${a}\\s*(\\|\\s*(?\\w+)\\s*)?}}`,"g");e=e.replace(r,(e,a,r)=>{const o=r&&t[r]?t[r](i,n):i;return null==o?"":o})}return e}}},function(e,n,t){const a=t(266),i=/^(?0|[1-9]\d*)\.(?0|[1-9]\d*)\.(?0|[1-9]\d*)(?:-(?(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,r={major:/^\d\./,minor:/^\d\.\d\./,patch:/^\d\.\d\.\d/};e.exports={collapseVersions:function({group:e},n){const t=[...n].sort((e,n)=>-a(e.name,n.name)),i=r[e],o={};return i?t.filter(e=>{const n=i.exec(e.name),t=n&&n[0];if(t&&!o[t])return o[t]=e,!0}):t},describeVersion:function({name:e,tag:n}){const t=i.exec(e);if(!t)return{};const a=e,r=t.groups,o=`${r.major}.${r.minor}.${r.patch}`;return{...r,version:a,core:o,tag:n}}}},function(e,n,t){var a=t(44),i=t(34);e.exports=function(e){return a(i(e))}},function(e,n){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},function(e,n){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,n,t){var a=t(36),i=Math.min;e.exports=function(e){return e>0?i(a(e),9007199254740991):0}},function(e,n){var t=Math.ceil,a=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?a:t)(e)}},function(e,n,t){var a=t(34);e.exports=function(e){return Object(a(e))}},function(e,n,t){var a=t(180),i=t(181),r=t(182),o=t(183),s=t(184);function l(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n

'};function i(e,n,t){return et?t:e}function r(e){return 100*(-1+e)}t.configure=function(e){var n,t;for(n in e)void 0!==(t=e[n])&&e.hasOwnProperty(n)&&(a[n]=t);return this},t.status=null,t.set=function(e){var n=t.isStarted();e=i(e,a.minimum,1),t.status=1===e?null:e;var l=t.render(!n),d=l.querySelector(a.barSelector),c=a.speed,u=a.easing;return l.offsetWidth,o((function(n){""===a.positionUsing&&(a.positionUsing=t.getPositioningCSS()),s(d,function(e,n,t){var i;return(i="translate3d"===a.positionUsing?{transform:"translate3d("+r(e)+"%,0,0)"}:"translate"===a.positionUsing?{transform:"translate("+r(e)+"%,0)"}:{"margin-left":r(e)+"%"}).transition="all "+n+"ms "+t,i}(e,c,u)),1===e?(s(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout((function(){s(l,{transition:"all "+c+"ms linear",opacity:0}),setTimeout((function(){t.remove(),n()}),c)}),c)):setTimeout(n,c)})),this},t.isStarted=function(){return"number"==typeof t.status},t.start=function(){t.status||t.set(0);var e=function(){setTimeout((function(){t.status&&(t.trickle(),e())}),a.trickleSpeed)};return a.trickle&&e(),this},t.done=function(e){return e||t.status?t.inc(.3+.5*Math.random()).set(1):this},t.inc=function(e){var n=t.status;return n?("number"!=typeof e&&(e=(1-n)*i(Math.random()*n,.1,.95)),n=i(n+e,0,.994),t.set(n)):t.start()},t.trickle=function(){return t.inc(Math.random()*a.trickleRate)},e=0,n=0,t.promise=function(a){return a&&"resolved"!==a.state()?(0===n&&t.start(),e++,n++,a.always((function(){0==--n?(e=0,t.done()):t.set((e-n)/e)})),this):this},t.render=function(e){if(t.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var n=document.createElement("div");n.id="nprogress",n.innerHTML=a.template;var i,o=n.querySelector(a.barSelector),l=e?"-100":r(t.status||0),c=document.querySelector(a.parent);return s(o,{transition:"all 0 linear",transform:"translate3d("+l+"%,0,0)"}),a.showSpinner||(i=n.querySelector(a.spinnerSelector))&&h(i),c!=document.body&&d(c,"nprogress-custom-parent"),c.appendChild(n),n},t.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(a.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&h(e)},t.isRendered=function(){return!!document.getElementById("nprogress")},t.getPositioningCSS=function(){var e=document.body.style,n="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return n+"Perspective"in e?"translate3d":n+"Transform"in e?"translate":"margin"};var o=function(){var e=[];function n(){var t=e.shift();t&&t(n)}return function(t){e.push(t),1==e.length&&n()}}(),s=function(){var e=["Webkit","O","Moz","ms"],n={};function t(t){return t=t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,n){return n.toUpperCase()})),n[t]||(n[t]=function(n){var t=document.body.style;if(n in t)return n;for(var a,i=e.length,r=n.charAt(0).toUpperCase()+n.slice(1);i--;)if((a=e[i]+r)in t)return a;return n}(t))}function a(e,n,a){n=t(n),e.style[n]=a}return function(e,n){var t,i,r=arguments;if(2==r.length)for(t in n)void 0!==(i=n[t])&&n.hasOwnProperty(t)&&a(e,t,i);else a(e,r[1],r[2])}}();function l(e,n){return("string"==typeof e?e:u(e)).indexOf(" "+n+" ")>=0}function d(e,n){var t=u(e),a=t+n;l(t,n)||(e.className=a.substring(1))}function c(e,n){var t,a=u(e);l(e,n)&&(t=a.replace(" "+n+" "," "),e.className=t.substring(1,t.length-1))}function u(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function h(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return t})?a.call(n,t,n,e):a)||(e.exports=i)},function(e,n,t){var a=t(5),i=t(33),r="".split;e.exports=a((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?r.call(e,""):Object(e)}:Object},function(e,n,t){var a=t(2),i=t(46),r=a["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=r},function(e,n,t){var a=t(2),i=t(16);e.exports=function(e,n){try{i(a,e,n)}catch(t){a[e]=n}return n}},function(e,n,t){var a=t(2),i=t(13),r=a.document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},function(e,n){e.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}},function(e,n,t){var a,i,r=t(2),o=t(50),s=r.process,l=s&&s.versions,d=l&&l.v8;d?i=(a=d.split("."))[0]+a[1]:o&&(!(a=o.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=o.match(/Chrome\/(\d+)/))&&(i=a[1]),e.exports=i&&+i},function(e,n,t){var a=t(22);e.exports=a("navigator","userAgent")||""},function(e,n){e.exports={}},function(e,n){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,n,t){var a=t(72),i=t(75),r=a("keys");e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,n,t){var a,i,r,o=t(136),s=t(2),l=t(13),d=t(16),c=t(9),u=t(45),h=t(53),p=t(51),m=s.WeakMap;if(o){var f=u.state||(u.state=new m),g=f.get,b=f.has,v=f.set;a=function(e,n){return n.facade=e,v.call(f,e,n),n},i=function(e){return g.call(f,e)||{}},r=function(e){return b.call(f,e)}}else{var y=h("state");p[y]=!0,a=function(e,n){return n.facade=e,d(e,y,n),n},i=function(e){return c(e,y)?e[y]:{}},r=function(e){return c(e,y)}}e.exports={set:a,get:i,has:r,enforce:function(e){return r(e)?i(e):a(e,{})},getterFor:function(e){return function(n){var t;if(!l(n)||(t=i(n)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return t}}}},function(e,n,t){var a=t(45),i=Function.toString;"function"!=typeof a.inspectSource&&(a.inspectSource=function(e){return i.call(e)}),e.exports=a.inspectSource},function(e,n,t){var a=t(12),i=t(81),r=t(48),o=t(32),s=t(74),l=t(9),d=t(73),c=Object.getOwnPropertyDescriptor;n.f=a?c:function(e,n){if(e=o(e),n=s(n,!0),d)try{return c(e,n)}catch(e){}if(l(e,n))return r(!i.f.call(e,n),e[n])}},function(e,n,t){var a=t(17).f,i=t(9),r=t(6)("toStringTag");e.exports=function(e,n,t){e&&!i(e=t?e:e.prototype,r)&&a(e,r,{configurable:!0,value:n})}},function(e,n,t){"use strict";var a,i,r=t(166),o=t(167),s=RegExp.prototype.exec,l=String.prototype.replace,d=s,c=(a=/a/,i=/b*/g,s.call(a,"a"),s.call(i,"a"),0!==a.lastIndex||0!==i.lastIndex),u=o.UNSUPPORTED_Y||o.BROKEN_CARET,h=void 0!==/()??/.exec("")[1];(c||h||u)&&(d=function(e){var n,t,a,i,o=this,d=u&&o.sticky,p=r.call(o),m=o.source,f=0,g=e;return d&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),g=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(m="(?: "+m+")",g=" "+g,f++),t=new RegExp("^(?:"+m+")",p)),h&&(t=new RegExp("^"+m+"$(?!\\s)",p)),c&&(n=o.lastIndex),a=s.call(d?t:o,g),d?a?(a.input=a.input.slice(f),a[0]=a[0].slice(f),a.index=o.lastIndex,o.lastIndex+=a[0].length):o.lastIndex=0:c&&a&&(o.lastIndex=o.global?a.index+a[0].length:n),h&&a&&a.length>1&&l.call(a[0],t,(function(){for(i=1;i-1&&e%1==0&&e<=9007199254740991}},function(e,n,t){var a=t(10),i=t(66),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,n){if(a(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!i(e))||(o.test(e)||!r.test(e)||null!=n&&e in Object(n))}},function(e,n,t){var a=t(24),i=t(21);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==a(e)}},function(e,n){e.exports=function(e){return e}},function(e,n){e.exports=function(e){var n=null==e?0:e.length;return n?e[n-1]:void 0}},function(e,n){function t(e,n){for(var t=0,a=e.length-1;a>=0;a--){var i=e[a];"."===i?e.splice(a,1):".."===i?(e.splice(a,1),t++):t&&(e.splice(a,1),t--)}if(n)for(;t--;t)e.unshift("..");return e}function a(e,n){if(e.filter)return e.filter(n);for(var t=[],a=0;a=-1&&!n;i--){var r=i>=0?arguments[i]:process.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,n="/"===r.charAt(0))}return(n?"/":"")+(e=t(a(e.split("/"),(function(e){return!!e})),!n).join("/"))||"."},n.normalize=function(e){var r=n.isAbsolute(e),o="/"===i(e,-1);return(e=t(a(e.split("/"),(function(e){return!!e})),!r).join("/"))||r||(e="."),e&&o&&(e+="/"),(r?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(a(e,(function(e,n){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},n.relative=function(e,t){function a(e){for(var n=0;n=0&&""===e[t];t--);return n>t?[]:e.slice(n,t-n+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var i=a(e.split("/")),r=a(t.split("/")),o=Math.min(i.length,r.length),s=o,l=0;l=1;--r)if(47===(n=e.charCodeAt(r))){if(!i){a=r;break}}else i=!1;return-1===a?t?"/":".":t&&1===a?"/":e.slice(0,a)},n.basename=function(e,n){var t=function(e){"string"!=typeof e&&(e+="");var n,t=0,a=-1,i=!0;for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!i){t=n+1;break}}else-1===a&&(i=!1,a=n+1);return-1===a?"":e.slice(t,a)}(e);return n&&t.substr(-1*n.length)===n&&(t=t.substr(0,t.length-n.length)),t},n.extname=function(e){"string"!=typeof e&&(e+="");for(var n=-1,t=0,a=-1,i=!0,r=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47!==s)-1===a&&(i=!1,a=o+1),46===s?-1===n?n=o:1!==r&&(r=1):-1!==n&&(r=-1);else if(!i){t=o+1;break}}return-1===n||-1===a||0===r||1===r&&n===a-1&&n===t+1?"":e.slice(n,a)};var i="b"==="ab".substr(-1)?function(e,n,t){return e.substr(n,t)}:function(e,n,t){return n<0&&(n=e.length+n),e.substr(n,t)}},function(e,n){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,n,t){"use strict";var a=t(20),i={name:"NavLink",props:{item:{required:!0}},computed:{link(){return Object(a.b)(this.item.link)},exact(){return this.$site.locales?Object.keys(this.$site.locales).some(e=>e===this.link):"/"===this.link},isNonHttpURI(){return Object(a.g)(this.link)||Object(a.h)(this.link)},isBlankTarget(){return"_blank"===this.target},isInternal(){return!Object(a.f)(this.link)&&!this.isBlankTarget},target(){return this.isNonHttpURI?null:this.item.target?this.item.target:Object(a.f)(this.link)?"_blank":""},rel(){return this.isNonHttpURI||!1===this.item.rel?null:this.item.rel?this.item.rel:this.isBlankTarget?"noopener noreferrer":null}},methods:{focusoutAction(){this.$emit("focusout")}}},r=t(7),o=Object(r.a)(i,(function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.isInternal?t("RouterLink",{staticClass:"nav-link",attrs:{to:e.link,exact:e.exact},nativeOn:{focusout:function(n){return e.focusoutAction(n)}}},[e._v("\n "+e._s(e.item.text)+"\n")]):t("a",{staticClass:"nav-link external",attrs:{href:e.link,target:e.target,rel:e.rel},on:{focusout:e.focusoutAction}},[e._v("\n "+e._s(e.item.text)+"\n "),e.isBlankTarget?t("OutboundLink"):e._e()],1)}),[],!1,null,null,null);n.a=o.exports},function(e,n,t){var a=t(25),i=t(45);(e.exports=function(e,n){return i[e]||(i[e]=void 0!==n?n:{})})("versions",[]).push({version:"3.9.1",mode:a?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,n,t){var a=t(12),i=t(5),r=t(47);e.exports=!a&&!i((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},function(e,n,t){var a=t(13);e.exports=function(e,n){if(!a(e))return e;var t,i;if(n&&"function"==typeof(t=e.toString)&&!a(i=t.call(e)))return i;if("function"==typeof(t=e.valueOf)&&!a(i=t.call(e)))return i;if(!n&&"function"==typeof(t=e.toString)&&!a(i=t.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,n){var t=0,a=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+a).toString(36)}},function(e,n,t){var a=t(26),i=t(49),r=t(5);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!Symbol.sham&&(a?38===i:i>37&&i<41)}))},function(e,n,t){var a,i=t(8),r=t(133),o=t(52),s=t(51),l=t(80),d=t(47),c=t(53),u=c("IE_PROTO"),h=function(){},p=function(e){return" + (opens new window)

# Common options to all axes

Namespace: options.scales[scaleId]

Name Type Default Description
type string Type of scale being employed. Custom scales can be created and registered with a string key. This allows changing the type of an axis for a chart.
alignToPixels boolean false Align pixel values to device pixels.
backgroundColor Color Background color of the scale area.
display boolean|string true Controls the axis global visibility (visible when true, hidden when false). When display: 'auto', the axis is visible only if at least one associated dataset is visible.
grid object Grid line configuration. more...
min number User defined minimum number for the scale, overrides minimum value from data. more...
max number User defined maximum number for the scale, overrides maximum value from data. more...
reverse boolean false Reverse the scale.
stacked boolean|string false Should the data be stacked. more...
suggestedMax number Adjustment used when calculating the maximum data value. more...
suggestedMin number Adjustment used when calculating the minimum data value. more...
ticks object Tick configuration. more...
weight number 0 The weight used to sort the axis. Higher weights are further away from the chart area.
Last Updated: 4/4/2021, 2:19:07 PM
+ diff --git a/docs/latest/axes/_common_ticks.html b/docs/latest/axes/_common_ticks.html index 1fa3517204..a38e15d47e 100644 --- a/docs/latest/axes/_common_ticks.html +++ b/docs/latest/axes/_common_ticks.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Common tick options to all axes

Namespace: options.scales[scaleId].ticks

Name Type Scriptable Default Description
callback function Returns the string representation of the tick value as it should be displayed on the chart. See callback.
display boolean true If true, show tick labels.
color Color Yes Chart.defaults.color Color of ticks.
font Font Yes Chart.defaults.font See Fonts
major object {} Major ticks configuration.
padding number 3 Sets the offset of the tick labels from the axis
textStrokeColor Color Yes `` The color of the stroke around the text.
textStrokeWidth number Yes 0 Stroke width around the text.
z number 0 z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.
Last Updated: 4/10/2021, 8:13:47 PM
- + (opens new window)

# Common tick options to all axes

Namespace: options.scales[scaleId].ticks

Name Type Scriptable Default Description
callback function Returns the string representation of the tick value as it should be displayed on the chart. See callback.
display boolean true If true, show tick labels.
color Color Yes Chart.defaults.color Color of ticks.
font Font Yes Chart.defaults.font See Fonts
major object {} Major ticks configuration.
padding number 3 Sets the offset of the tick labels from the axis
textStrokeColor Color Yes `` The color of the stroke around the text.
textStrokeWidth number Yes 0 Stroke width around the text.
z number 0 z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.
Last Updated: 4/4/2021, 2:19:07 PM
+ diff --git a/docs/latest/axes/cartesian/_common.html b/docs/latest/axes/cartesian/_common.html index 2a3fa09450..1262cecc6e 100644 --- a/docs/latest/axes/cartesian/_common.html +++ b/docs/latest/axes/cartesian/_common.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Common options to all cartesian axes

Namespace: options.scales[scaleId]

Name Type Default Description
bounds string 'ticks' Determines the scale bounds. more...
position string Position of the axis. more...
axis string Which type of axis this is. Possible values are: 'x', 'y'. If not set, this is inferred from the first character of the ID which should be 'x' or 'y'.
offset boolean false If true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to true for a bar chart by default.
title object Scale title configuration. more...
Last Updated: 4/10/2021, 8:13:47 PM
- + (opens new window)

# Common options to all cartesian axes

Namespace: options.scales[scaleId]

Name Type Default Description
bounds string 'ticks' Determines the scale bounds. more...
position string Position of the axis. more...
axis string Which type of axis this is. Possible values are: 'x', 'y'. If not set, this is inferred from the first character of the ID which should be 'x' or 'y'.
offset boolean false If true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to true for a bar chart by default.
title object Scale title configuration. more...
Last Updated: 4/2/2021, 7:48:50 AM
+ diff --git a/docs/latest/axes/cartesian/_common_ticks.html b/docs/latest/axes/cartesian/_common_ticks.html index 8bd0084171..2ca420bd81 100644 --- a/docs/latest/axes/cartesian/_common_ticks.html +++ b/docs/latest/axes/cartesian/_common_ticks.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Common tick options to all cartesian axes

Namespace: options.scales[scaleId].ticks

Name Type Default Description
align string 'center' The tick alignment along the axis. Can be 'start', 'center', or 'end'.
crossAlign string 'near' The tick alignment perpendicular to the axis. Can be 'near', 'center', or 'far'. See Tick Alignment
sampleSize number ticks.length The number of ticks to examine when deciding how many labels will fit. Setting a smaller value will be faster, but may be less accurate when there is large variability in label length.
autoSkip boolean true If true, automatically calculates how many labels can be shown and hides labels accordingly. Labels will be rotated up to maxRotation before skipping any. Turn autoSkip off to show all labels no matter what.
autoSkipPadding number 3 Padding between the ticks on the horizontal axis when autoSkip is enabled.
labelOffset number 0 Distance in pixels to offset the label from the centre point of the tick (in the x-direction for the x-axis, and the y-direction for the y-axis). Note: this can cause labels at the edges to be cropped by the edge of the canvas
maxRotation number 50 Maximum rotation for tick labels when rotating to condense labels. Note: Rotation doesn't occur until necessary. Note: Only applicable to horizontal scales.
minRotation number 0 Minimum rotation for tick labels. Note: Only applicable to horizontal scales.
mirror boolean false Flips tick labels around axis, displaying the labels inside the chart instead of outside. Note: Only applicable to vertical scales.
padding number 0 Padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this applies in the vertical (Y) direction.
Last Updated: 4/10/2021, 8:13:47 PM
- + (opens new window)

# Common tick options to all cartesian axes

Namespace: options.scales[scaleId].ticks

Name Type Default Description
align string 'center' The tick alignment along the axis. Can be 'start', 'center', or 'end'.
crossAlign string 'near' The tick alignment perpendicular to the axis. Can be 'near', 'center', or 'far'. See Tick Alignment
sampleSize number ticks.length The number of ticks to examine when deciding how many labels will fit. Setting a smaller value will be faster, but may be less accurate when there is large variability in label length.
autoSkip boolean true If true, automatically calculates how many labels can be shown and hides labels accordingly. Labels will be rotated up to maxRotation before skipping any. Turn autoSkip off to show all labels no matter what.
autoSkipPadding number 3 Padding between the ticks on the horizontal axis when autoSkip is enabled.
labelOffset number 0 Distance in pixels to offset the label from the centre point of the tick (in the x-direction for the x-axis, and the y-direction for the y-axis). Note: this can cause labels at the edges to be cropped by the edge of the canvas
maxRotation number 50 Maximum rotation for tick labels when rotating to condense labels. Note: Rotation doesn't occur until necessary. Note: Only applicable to horizontal scales.
minRotation number 0 Minimum rotation for tick labels. Note: Only applicable to horizontal scales.
mirror boolean false Flips tick labels around axis, displaying the labels inside the chart instead of outside. Note: Only applicable to vertical scales.
padding number 0 Padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this applies in the vertical (Y) direction.
Last Updated: 3/30/2021, 10:32:39 AM
+ diff --git a/docs/latest/axes/cartesian/category.html b/docs/latest/axes/cartesian/category.html index a4dfd7a061..ee4e842083 100644 --- a/docs/latest/axes/cartesian/category.html +++ b/docs/latest/axes/cartesian/category.html @@ -7,7 +7,7 @@ - + @@ -74,7 +74,7 @@ } } }); -

# Internal data format

Internally category scale uses label indices

Last Updated: 4/10/2021, 8:13:47 PM

# Internal data format

Internally category scale uses label indices

Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/latest/axes/cartesian/index.html b/docs/latest/axes/cartesian/index.html index eb5d87112e..a5a2117d7d 100644 --- a/docs/latest/axes/cartesian/index.html +++ b/docs/latest/axes/cartesian/index.html @@ -7,7 +7,7 @@ - + @@ -384,7 +384,7 @@ } } }); -
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/3/2021, 3:19:51 PM
- + diff --git a/docs/latest/axes/cartesian/linear.html b/docs/latest/axes/cartesian/linear.html index 53b693b291..de9aec5091 100644 --- a/docs/latest/axes/cartesian/linear.html +++ b/docs/latest/axes/cartesian/linear.html @@ -7,7 +7,7 @@ - + @@ -97,7 +97,7 @@ data: [100, -50], backgroundColor: 'rgb(255, 99, 132)' }], -};

# Internal data format

Internally, the linear scale uses numeric data

Last Updated: 4/10/2021, 8:13:47 PM

# Internal data format

Internally, the linear scale uses numeric data

Last Updated: 4/7/2021, 4:45:39 PM
- + diff --git a/docs/latest/axes/cartesian/logarithmic.html b/docs/latest/axes/cartesian/logarithmic.html index 2e32466186..021c4934a9 100644 --- a/docs/latest/axes/cartesian/logarithmic.html +++ b/docs/latest/axes/cartesian/logarithmic.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Logarithmic Axis

The logarithmic scale is used to chart numerical data. It can be placed on either the x or y-axis. As the name suggests, logarithmic interpolation is used to determine where a value lies on the axis.

# Configuration Options

# Common options to all cartesian axes

Namespace: options.scales[scaleId]

Name Type Default Description
bounds string 'ticks' Determines the scale bounds. more...
position string Position of the axis. more...
axis string Which type of axis this is. Possible values are: 'x', 'y'. If not set, this is inferred from the first character of the ID which should be 'x' or 'y'.
offset boolean false If true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to true for a bar chart by default.
title object Scale title configuration. more...

# Common options to all axes

Namespace: options.scales[scaleId]

Name Type Default Description
type string Type of scale being employed. Custom scales can be created and registered with a string key. This allows changing the type of an axis for a chart.
alignToPixels boolean false Align pixel values to device pixels.
backgroundColor Color Background color of the scale area.
display boolean|string true Controls the axis global visibility (visible when true, hidden when false). When display: 'auto', the axis is visible only if at least one associated dataset is visible.
grid object Grid line configuration. more...
min number User defined minimum number for the scale, overrides minimum value from data. more...
max number User defined maximum number for the scale, overrides maximum value from data. more...
reverse boolean false Reverse the scale.
stacked boolean|string false Should the data be stacked. more...
suggestedMax number Adjustment used when calculating the maximum data value. more...
suggestedMin number Adjustment used when calculating the minimum data value. more...
ticks object Tick configuration. more...
weight number 0 The weight used to sort the axis. Higher weights are further away from the chart area.

# Tick Configuration

# Logarithmic Axis specific options

Namespace: options.scales[scaleId]

Name Type Default Description
format object The Intl.NumberFormat (opens new window) options used by the default label formatter

# Common tick options to all cartesian axes

Namespace: options.scales[scaleId].ticks

Name Type Default Description
align string 'center' The tick alignment along the axis. Can be 'start', 'center', or 'end'.
crossAlign string 'near' The tick alignment perpendicular to the axis. Can be 'near', 'center', or 'far'. See Tick Alignment
sampleSize number ticks.length The number of ticks to examine when deciding how many labels will fit. Setting a smaller value will be faster, but may be less accurate when there is large variability in label length.
autoSkip boolean true If true, automatically calculates how many labels can be shown and hides labels accordingly. Labels will be rotated up to maxRotation before skipping any. Turn autoSkip off to show all labels no matter what.
autoSkipPadding number 3 Padding between the ticks on the horizontal axis when autoSkip is enabled.
labelOffset number 0 Distance in pixels to offset the label from the centre point of the tick (in the x-direction for the x-axis, and the y-direction for the y-axis). Note: this can cause labels at the edges to be cropped by the edge of the canvas
maxRotation number 50 Maximum rotation for tick labels when rotating to condense labels. Note: Rotation doesn't occur until necessary. Note: Only applicable to horizontal scales.
minRotation number 0 Minimum rotation for tick labels. Note: Only applicable to horizontal scales.
mirror boolean false Flips tick labels around axis, displaying the labels inside the chart instead of outside. Note: Only applicable to vertical scales.
padding number 0 Padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this applies in the vertical (Y) direction.

# Common tick options to all axes

Namespace: options.scales[scaleId].ticks

Name Type Scriptable Default Description
callback function Returns the string representation of the tick value as it should be displayed on the chart. See callback.
display boolean true If true, show tick labels.
color Color Yes Chart.defaults.color Color of ticks.
font Font Yes Chart.defaults.font See Fonts
major object {} Major ticks configuration.
padding number 3 Sets the offset of the tick labels from the axis
textStrokeColor Color Yes `` The color of the stroke around the text.
textStrokeWidth number Yes 0 Stroke width around the text.
z number 0 z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.

# Internal data format

Internally, the logarithmic scale uses numeric data.

Last Updated: 4/10/2021, 8:13:47 PM
- + diff --git a/docs/latest/axes/cartesian/time.html b/docs/latest/axes/cartesian/time.html index 8c220f8a51..ae1ec57d92 100644 --- a/docs/latest/axes/cartesian/time.html +++ b/docs/latest/axes/cartesian/time.html @@ -7,7 +7,7 @@ - + @@ -69,7 +69,7 @@ } } }); -

# Ticks Source

The ticks.source property controls the ticks generation.

  • 'auto': generates "optimal" ticks based on scale size and time options
  • 'data': generates ticks from data (including labels from data {x|y} objects)
  • 'labels': generates ticks from user given labels ONLY

# Parser

If this property is defined as a string, it is interpreted as a custom format to be used by the date adapter to parse the date.

If this is a function, it must return a type that can be handled by your date adapter's parse method.

# Internal data format

Internally time scale uses milliseconds since epoch

Last Updated: 4/10/2021, 8:13:47 PM

# Ticks Source

The ticks.source property controls the ticks generation.

  • 'auto': generates "optimal" ticks based on scale size and time options
  • 'data': generates ticks from data (including labels from data {x|y} objects)
  • 'labels': generates ticks from user given labels ONLY

# Parser

If this property is defined as a string, it is interpreted as a custom format to be used by the date adapter to parse the date.

If this is a function, it must return a type that can be handled by your date adapter's parse method.

# Internal data format

Internally time scale uses milliseconds since epoch

Last Updated: 4/2/2021, 7:48:50 AM
- + diff --git a/docs/latest/axes/cartesian/timeseries.html b/docs/latest/axes/cartesian/timeseries.html index 39911d8905..64179a80ae 100644 --- a/docs/latest/axes/cartesian/timeseries.html +++ b/docs/latest/axes/cartesian/timeseries.html @@ -7,7 +7,7 @@ - + @@ -50,7 +50,7 @@ } } }); -

# More details

Please see the time scale documentation for all other details.

Last Updated: 4/10/2021, 8:13:47 PM

# More details

Please see the time scale documentation for all other details.

Last Updated: 4/2/2021, 7:48:50 AM
- + diff --git a/docs/latest/axes/index.html b/docs/latest/axes/index.html index 67f7cda105..7530f2ffd5 100644 --- a/docs/latest/axes/index.html +++ b/docs/latest/axes/index.html @@ -7,7 +7,7 @@ - + @@ -61,7 +61,7 @@ });

In contrast to the suggested* settings, the min and max settings set explicit ends to the axes. When these are set, some data points may not be visible.

# Stacking

By default data is not stacked. If the stacked option of the value scale (y-axis on horizontal chart) is true, positive and negative values are stacked separately. Additionally a stack option can be defined per dataset to further divide into stack groups more.... For some charts, you might want to stack positive and negative values together. That can be achieved by specifying stacked: 'single'.

# Callbacks

There are a number of config callbacks that can be used to change parameters in the scale at different points in the update process. The options are supplied at the top level of the axis options.

Namespace: options.scales[scaleId]

Name Arguments Description
beforeUpdate axis Callback called before the update process starts.
beforeSetDimensions axis Callback that runs before dimensions are set.
afterSetDimensions axis Callback that runs after dimensions are set.
beforeDataLimits axis Callback that runs before data limits are determined.
afterDataLimits axis Callback that runs after data limits are determined.
beforeBuildTicks axis Callback that runs before ticks are created.
afterBuildTicks axis Callback that runs after ticks are created. Useful for filtering ticks.
beforeTickToLabelConversion axis Callback that runs before ticks are converted into strings.
afterTickToLabelConversion axis Callback that runs after ticks are converted into strings.
beforeCalculateTickRotation axis Callback that runs before tick rotation is determined.
afterCalculateTickRotation axis Callback that runs after tick rotation is determined.
beforeFit axis Callback that runs before the scale fits to the canvas.
afterFit axis Callback that runs after the scale fits to the canvas.
afterUpdate axis Callback that runs at the end of the update process.

# Updating Axis Defaults

The default configuration for a scale can be easily changed. All you need to do is set the new options to Chart.defaults.scales[type].

For example, to set the minimum value of 0 for all linear scales, you would do the following. Any linear scales created after this time would now have a minimum of 0.

Chart.defaults.scales.linear.min = 0;
-

# Creating New Axes

To create a new axis, see the developer docs.

Last Updated: 4/10/2021, 8:13:47 PM

# Creating New Axes

To create a new axis, see the developer docs.

Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/latest/axes/labelling.html b/docs/latest/axes/labelling.html index 3a9866e6c9..65aedd502f 100644 --- a/docs/latest/axes/labelling.html +++ b/docs/latest/axes/labelling.html @@ -7,7 +7,7 @@ - + @@ -56,7 +56,7 @@ } } }); -

Related samples:

Last Updated: 4/10/2021, 8:13:47 PM

Related samples:

Last Updated: 4/3/2021, 9:34:57 AM
- + diff --git a/docs/latest/axes/radial/index.html b/docs/latest/axes/radial/index.html index c6405cf225..8fe95f0c37 100644 --- a/docs/latest/axes/radial/index.html +++ b/docs/latest/axes/radial/index.html @@ -7,7 +7,7 @@ - + @@ -231,7 +231,7 @@ borderWidth: 1, data: [10, 20, 30, 40, 50, 0, 5], }] -};
Last Updated: 4/10/2021, 8:13:47 PM
- +};
Last Updated: 4/2/2021, 7:48:50 AM
+ diff --git a/docs/latest/axes/radial/linear.html b/docs/latest/axes/radial/linear.html index 95039710aa..fc0b9cc6c9 100644 --- a/docs/latest/axes/radial/linear.html +++ b/docs/latest/axes/radial/linear.html @@ -7,7 +7,7 @@ - + @@ -72,7 +72,7 @@ };

# Angle Line Options

The following options are used to configure angled lines that radiate from the center of the chart to the point labels. Namespace: options.scales[scaleId].angleLines

Name Type Scriptable Default Description
display boolean true if true, angle lines are shown.
color Color Yes Chart.defaults.borderColor Color of angled lines.
lineWidth number Yes 1 Width of angled lines.
borderDash number[] Yes1 [] Length and spacing of dashes on angled lines. See MDN (opens new window).
borderDashOffset number Yes 0.0 Offset for line dashes. See MDN (opens new window).
  1. the borderDash setting only accepts a static value or a function. Passing an array of arrays is not supported.

The scriptable context is described in Options section.

# Point Label Options

The following options are used to configure the point labels that are shown on the perimeter of the scale. -Namespace: options.scales[scaleId].pointLabels

Name Type Scriptable Default Description
backdropColor Color true undefined Background color of the point label.
backdropPadding Padding 2 Padding of label backdrop.
display boolean true if true, point labels are shown.
callback function Callback function to transform data labels to point labels. The default implementation simply returns the current string.
color Color Yes Chart.defaults.color Color of label.
font Font Yes Chart.defaults.font See Fonts
padding number Yes 5 Padding between chart and point labels.

The scriptable context is described in Options section.

# Internal data format

Internally, the linear radial scale uses numeric data

Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/latest/axes/styling.html b/docs/latest/axes/styling.html index c790a4266b..6096fd80ee 100644 --- a/docs/latest/axes/styling.html +++ b/docs/latest/axes/styling.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Styling

There are a number of options to allow styling an axis. There are settings to control grid lines and ticks.

# Grid Line Configuration

Namespace: options.scales[scaleId].grid, it defines options for the grid lines that run perpendicular to the axis.

Name Type Scriptable Indexable Default Description
borderColor Color Chart.defaults.borderColor The color of the border line.
borderWidth number 1 The width of the border line.
borderDash number[] [] Length and spacing of dashes on grid lines. See MDN (opens new window).
borderDashOffset number Yes 0.0 Offset for line dashes. See MDN (opens new window).
circular boolean false If true, gridlines are circular (on radar chart only).
color Color Yes Yes Chart.defaults.borderColor The color of the grid lines. If specified as an array, the first color applies to the first grid line, the second to the second grid line, and so on.
display boolean true If false, do not display grid lines for this axis.
drawBorder boolean true If true, draw a border at the edge between the axis and the chart area.
drawOnChartArea boolean true If true, draw lines on the chart area inside the axis lines. This is useful when there are multiple axes and you need to control which grid lines are drawn.
drawTicks boolean true If true, draw lines beside the ticks in the axis area beside the chart.
lineWidth number Yes Yes 1 Stroke width of grid lines.
offset boolean false If true, grid lines will be shifted to be between labels. This is set to true for a bar chart by default.
tickBorderDash number[] Length and spacing of the tick mark line. If not set, defaults to the grid line borderDash value.
tickBorderDashOffset number Yes Yes Offset for the line dash of the tick mark. If unset, defaults to the grid line borderDashOffset value
tickColor Color Yes Yes Color of the tick line. If unset, defaults to the grid line color.
tickLength number 8 Length in pixels that the grid lines will draw into the axis area.
tickWidth number Yes Yes Width of the tick mark in pixels. If unset, defaults to the grid line width.
z number 0 z-index of gridline layer. Values <= 0 are drawn under datasets, > 0 on top.

The scriptable context is described in Options section.

# Tick Configuration

# Common tick options to all axes

Namespace: options.scales[scaleId].ticks

Name Type Scriptable Default Description
callback function Returns the string representation of the tick value as it should be displayed on the chart. See callback.
display boolean true If true, show tick labels.
color Color Yes Chart.defaults.color Color of ticks.
font Font Yes Chart.defaults.font See Fonts
major object {} Major ticks configuration.
padding number 3 Sets the offset of the tick labels from the axis
textStrokeColor Color Yes `` The color of the stroke around the text.
textStrokeWidth number Yes 0 Stroke width around the text.
z number 0 z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.

The scriptable context is described in Options section.

# Major Tick Configuration

Namespace: options.scales[scaleId].ticks.major, it defines options for the major tick marks that are generated by the axis.

Name Type Default Description
enabled boolean false If true, major ticks are generated. A major tick will affect autoskipping and major will be defined on ticks in the scriptable options context.
Last Updated: 4/10/2021, 8:13:47 PM
- + diff --git a/docs/latest/charts/area.html b/docs/latest/charts/area.html index 5935f83765..d4440abeaa 100644 --- a/docs/latest/charts/area.html +++ b/docs/latest/charts/area.html @@ -7,7 +7,7 @@ - + @@ -85,7 +85,7 @@

propagate: true: -if dataset 2 is hidden, dataset 4 will fill to dataset 1 -if dataset 2 and 1 are hidden, dataset 4 will fill to 'origin'

propagate: false: --if dataset 2 and/or 4 are hidden, dataset 4 will not be filled

Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/3/2021, 8:13:00 AM
- + diff --git a/docs/latest/charts/bar.html b/docs/latest/charts/bar.html index 1f1bcbae8a..7a8a0bf628 100644 --- a/docs/latest/charts/bar.html +++ b/docs/latest/charts/bar.html @@ -7,7 +7,7 @@ - + @@ -241,7 +241,7 @@ ], borderWidth: 1 }] -};

# Horizontal Bar Chart config Options

The configuration options for the horizontal bar chart are the same as for the bar chart. However, any options specified on the x-axis in a bar chart, are applied to the y-axis in a horizontal bar chart.

# Internal data format

{x, y, _custom} where _custom is an optional object defining stacked bar properties: {start, end, barStart, barEnd, min, max}. start and end are the input values. Those two are repeated in barStart (closer to origin), barEnd (further from origin), min and max.

Last Updated: 4/10/2021, 8:13:47 PM

# Horizontal Bar Chart config Options

The configuration options for the horizontal bar chart are the same as for the bar chart. However, any options specified on the x-axis in a bar chart, are applied to the y-axis in a horizontal bar chart.

# Internal data format

{x, y, _custom} where _custom is an optional object defining stacked bar properties: {start, end, barStart, barEnd, min, max}. start and end are the input values. Those two are repeated in barStart (closer to origin), barEnd (further from origin), min and max.

Last Updated: 4/3/2021, 6:08:20 PM
- + diff --git a/docs/latest/charts/bubble.html b/docs/latest/charts/bubble.html index a29360bcca..1e924b61c9 100644 --- a/docs/latest/charts/bubble.html +++ b/docs/latest/charts/bubble.html @@ -7,7 +7,7 @@ - + @@ -87,7 +87,7 @@ // Bubble radius in pixels (not scaled). r: number } -

Important: the radius property, r is not scaled by the chart, it is the raw radius in pixels of the bubble that is drawn on the canvas.

# Internal data format

{x, y, _custom} where _custom is the radius.

Last Updated: 4/10/2021, 8:13:47 PM

Important: the radius property, r is not scaled by the chart, it is the raw radius in pixels of the bubble that is drawn on the canvas.

# Internal data format

{x, y, _custom} where _custom is the radius.

Last Updated: 4/3/2021, 6:08:20 PM
- + diff --git a/docs/latest/charts/doughnut.html b/docs/latest/charts/doughnut.html index 6cef68dda1..131c95d762 100644 --- a/docs/latest/charts/doughnut.html +++ b/docs/latest/charts/doughnut.html @@ -7,7 +7,7 @@ - + @@ -134,7 +134,7 @@ 'Blue' ] }; -
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/3/2021, 6:08:20 PM
- + diff --git a/docs/latest/charts/line.html b/docs/latest/charts/line.html index f80839f9ae..172a73299e 100644 --- a/docs/latest/charts/line.html +++ b/docs/latest/charts/line.html @@ -7,7 +7,7 @@ - + @@ -165,7 +165,7 @@ ], borderWidth: 1 }] -};

# Config Options

The configuration options for the vertical line chart are the same as for the line chart. However, any options specified on the x-axis in a line chart, are applied to the y-axis in a vertical line chart.

# Internal data format

{x, y}

Last Updated: 4/10/2021, 8:13:47 PM

# Config Options

The configuration options for the vertical line chart are the same as for the line chart. However, any options specified on the x-axis in a line chart, are applied to the y-axis in a vertical line chart.

# Internal data format

{x, y}

Last Updated: 4/9/2021, 7:10:48 PM
- + diff --git a/docs/latest/charts/mixed.html b/docs/latest/charts/mixed.html index 4cfeb94658..0e26c41ff4 100644 --- a/docs/latest/charts/mixed.html +++ b/docs/latest/charts/mixed.html @@ -7,7 +7,7 @@ - + @@ -137,7 +137,7 @@ }, options: options }); -
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/latest/charts/polar.html b/docs/latest/charts/polar.html index 44867ee28f..e2e48ce1aa 100644 --- a/docs/latest/charts/polar.html +++ b/docs/latest/charts/polar.html @@ -7,7 +7,7 @@ - + @@ -101,7 +101,7 @@ 'Blue' ] }; -
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/3/2021, 6:08:20 PM
- + diff --git a/docs/latest/charts/radar.html b/docs/latest/charts/radar.html index fdbea9977b..9ec629bce9 100644 --- a/docs/latest/charts/radar.html +++ b/docs/latest/charts/radar.html @@ -7,7 +7,7 @@ - + @@ -144,7 +144,7 @@ data: [20, 10, 4, 2] }] } -

# Internal data format

{x, y}

Last Updated: 4/10/2021, 8:13:47 PM

# Internal data format

{x, y}

Last Updated: 4/3/2021, 6:08:20 PM
- + diff --git a/docs/latest/charts/scatter.html b/docs/latest/charts/scatter.html index 92ac88f632..a0058346e8 100644 --- a/docs/latest/charts/scatter.html +++ b/docs/latest/charts/scatter.html @@ -7,7 +7,7 @@ - + @@ -109,7 +109,7 @@ x: 15, y: 10 }] -

# Internal data format

{x, y}

Last Updated: 4/10/2021, 8:13:47 PM

# Internal data format

{x, y}

Last Updated: 4/3/2021, 6:08:20 PM
- + diff --git a/docs/latest/configuration/animations.html b/docs/latest/configuration/animations.html index 2a64390b58..0b9848c110 100644 --- a/docs/latest/configuration/animations.html +++ b/docs/latest/configuration/animations.html @@ -7,7 +7,7 @@ - + @@ -200,7 +200,7 @@ } } }); -

Another example usage of these callbacks can be found on Github (opens new window): this sample displays a progress bar showing how far along the animation is.

Last Updated: 4/10/2021, 8:13:47 PM

Another example usage of these callbacks can be found on Github (opens new window): this sample displays a progress bar showing how far along the animation is.

Last Updated: 3/30/2021, 6:19:45 PM
- + diff --git a/docs/latest/configuration/canvas-background.html b/docs/latest/configuration/canvas-background.html index 33f6ec999b..d0e1d8dfd2 100644 --- a/docs/latest/configuration/canvas-background.html +++ b/docs/latest/configuration/canvas-background.html @@ -7,7 +7,7 @@ - + @@ -186,7 +186,7 @@ image.onload = () => chart.draw(); } } -};
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/7/2021, 12:51:45 PM
- + diff --git a/docs/latest/configuration/decimation.html b/docs/latest/configuration/decimation.html index 362a990086..a6fea2d4e5 100644 --- a/docs/latest/configuration/decimation.html +++ b/docs/latest/configuration/decimation.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Data Decimation

The decimation plugin can be used with line charts to automatically decimate data at the start of the chart lifecycle. Before enabling this plugin, review the requirements to ensure that it will work with the chart you want to create.

# Configuration Options

Namespace: options.plugins.decimation, the global options for the plugin are defined in Chart.defaults.plugins.decimation.

Name Type Default Description
enabled boolean false Is decimation enabled?
algorithm string 'min-max' Decimation algorithm to use. See the more...
samples number If the 'lttb' algorithm is used, this is the number of samples in the output dataset. Defaults to the canvas width to pick 1 sample per pixel.

# Decimation Algorithms

Decimation algorithm to use for data. Options are:

  • 'lttb'
  • 'min-max'

# Largest Triangle Three Bucket (LTTB) Decimation

LTTB (opens new window) decimation reduces the number of data points significantly. This is most useful for showing trends in data using only a few data points.

# Min/Max Decimation

Min/max (opens new window) decimation will preserve peaks in your data but could require up to 4 points for each pixel. This type of decimation would work well for a very noisy signal where you need to see data peaks.

# Requirements

To use the decimation plugin, the following requirements must be met:

  1. The dataset must have an indexAxis of 'x'
  2. The dataset must be a line
  3. The X axis for the dataset must be either a 'linear' or 'time' type axis
  4. Data must not need parsing, i.e. parsing must be false
  5. The dataset object must be mutable. The plugin stores the original data as dataset._data and then defines a new data property on the dataset.
Last Updated: 4/10/2021, 8:13:47 PM
- + diff --git a/docs/latest/configuration/device-pixel-ratio.html b/docs/latest/configuration/device-pixel-ratio.html index 171d194c59..c72059e90f 100644 --- a/docs/latest/configuration/device-pixel-ratio.html +++ b/docs/latest/configuration/device-pixel-ratio.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Device Pixel Ratio

By default the chart's canvas will use a 1:1 pixel ratio, unless the physical display has a higher pixel ratio (e.g. Retina displays).

For applications where a chart will be converted to a bitmap, or printed to a higher DPI medium it can be desirable to render the chart at a higher resolution than the default.

Setting devicePixelRatio to a value other than 1 will force the canvas size to be scaled by that amount, relative to the container size. There should be no visible difference on screen; the difference will only be visible when the image is zoomed or printed.

# Configuration Options

Namespace: options

Name Type Default Description
devicePixelRatio number window.devicePixelRatio Override the window's default devicePixelRatio.
Last Updated: 4/10/2021, 8:13:47 PM
- + diff --git a/docs/latest/configuration/elements.html b/docs/latest/configuration/elements.html index 785ec77e89..f14c48c83c 100644 --- a/docs/latest/configuration/elements.html +++ b/docs/latest/configuration/elements.html @@ -7,7 +7,7 @@ - + @@ -40,7 +40,7 @@ (opens new window) GitHub (opens new window)

# Elements

While chart types provide settings to configure the styling of each dataset, you sometimes want to style all datasets the same way. A common example would be to stroke all of the bars in a bar chart with the same colour but change the fill per dataset. Options can be configured for four different types of elements: arc, lines, points, and bars. When set, these options apply to all objects of that type unless specifically overridden by the configuration attached to a dataset.

# Global Configuration

The element options can be specified per chart or globally. The global options for elements are defined in Chart.defaults.elements. For example, to set the border width of all bar charts globally you would do:

Chart.defaults.elements.bar.borderWidth = 2;
-

# Point Configuration

Point elements are used to represent the points in a line, radar or bubble chart.

Namespace: options.elements.point, global point options: Chart.defaults.elements.point.

Name Type Default Description
radius number 3 Point radius.
pointStyle string|Image 'circle' Point style.
rotation number 0 Point rotation (in degrees).
backgroundColor Color Chart.defaults.backgroundColor Point fill color.
borderWidth number 1 Point stroke width.
borderColor Color 'Chart.defaults.borderColor Point stroke color.
hitRadius number 1 Extra radius added to point radius for hit detection.
hoverRadius number 4 Point radius when hovered.
hoverBorderWidth number 1 Stroke width when hovered.

# Point Styles

The following values are supported:

  • 'circle'
  • 'cross'
  • 'crossRot'
  • 'dash'
  • 'line'
  • 'rect'
  • 'rectRounded'
  • 'rectRot'
  • 'star'
  • 'triangle'

If the value is an image, that image is drawn on the canvas using drawImage (opens new window).

# Line Configuration

Line elements are used to represent the line in a line chart.

Namespace: options.elements.line, global line options: Chart.defaults.elements.line.

Name Type Default Description
tension number 0 Bézier curve tension (0 for no Bézier curves).
backgroundColor Color Chart.defaults.backgroundColor Line fill color.
borderWidth number 3 Line stroke width.
borderColor Color Chart.defaults.borderColor Line stroke color.
borderCapStyle string 'butt' Line cap style. See MDN (opens new window).
borderDash number[] [] Line dash. See MDN (opens new window).
borderDashOffset number 0.0 Line dash offset. See MDN (opens new window).
borderJoinStyle string 'miter' Line join style. See MDN (opens new window).
capBezierPoints boolean true true to keep Bézier control inside the chart, false for no restriction.
cubicInterpolationMode string 'default' Interpolation mode to apply. See more...
fill boolean|string false How to fill the area under the line. See area charts.
stepped boolean false true to show the line as a stepped line (tension will be ignored).

# Bar Configuration

Bar elements are used to represent the bars in a bar chart.

Namespace: options.elements.bar, global bar options: Chart.defaults.elements.bar.

Name Type Default Description
backgroundColor Color Chart.defaults.backgroundColor Bar fill color.
borderWidth number 0 Bar stroke width.
borderColor Color Chart.defaults.borderColor Bar stroke color.
borderSkipped string 'start' Skipped (excluded) border: 'start', 'end', 'bottom', 'left', 'top' or 'right'.
borderRadius number|object 0 The bar border radius (in pixels).
pointStyle string|Image 'circle' Style of the point for legend.

# Arc Configuration

Arcs are used in the polar area, doughnut and pie charts.

Namespace: options.elements.arc, global arc options: Chart.defaults.elements.arc.

Name Type Default Description
angle - for polar only number circumference / (arc count) Arc angle to cover.
backgroundColor Color Chart.defaults.backgroundColor Arc fill color.
borderAlign string 'center' Arc stroke alignment.
borderColor Color '#fff' Arc stroke color.
borderWidth number 2 Arc stroke width.
Last Updated: 4/10/2021, 8:13:47 PM

# Point Configuration

Point elements are used to represent the points in a line, radar or bubble chart.

Namespace: options.elements.point, global point options: Chart.defaults.elements.point.

Name Type Default Description
radius number 3 Point radius.
pointStyle string|Image 'circle' Point style.
rotation number 0 Point rotation (in degrees).
backgroundColor Color Chart.defaults.backgroundColor Point fill color.
borderWidth number 1 Point stroke width.
borderColor Color 'Chart.defaults.borderColor Point stroke color.
hitRadius number 1 Extra radius added to point radius for hit detection.
hoverRadius number 4 Point radius when hovered.
hoverBorderWidth number 1 Stroke width when hovered.

# Point Styles

The following values are supported:

  • 'circle'
  • 'cross'
  • 'crossRot'
  • 'dash'
  • 'line'
  • 'rect'
  • 'rectRounded'
  • 'rectRot'
  • 'star'
  • 'triangle'

If the value is an image, that image is drawn on the canvas using drawImage (opens new window).

# Line Configuration

Line elements are used to represent the line in a line chart.

Namespace: options.elements.line, global line options: Chart.defaults.elements.line.

Name Type Default Description
tension number 0 Bézier curve tension (0 for no Bézier curves).
backgroundColor Color Chart.defaults.backgroundColor Line fill color.
borderWidth number 3 Line stroke width.
borderColor Color Chart.defaults.borderColor Line stroke color.
borderCapStyle string 'butt' Line cap style. See MDN (opens new window).
borderDash number[] [] Line dash. See MDN (opens new window).
borderDashOffset number 0.0 Line dash offset. See MDN (opens new window).
borderJoinStyle string 'miter' Line join style. See MDN (opens new window).
capBezierPoints boolean true true to keep Bézier control inside the chart, false for no restriction.
cubicInterpolationMode string 'default' Interpolation mode to apply. See more...
fill boolean|string false How to fill the area under the line. See area charts.
stepped boolean false true to show the line as a stepped line (tension will be ignored).

# Bar Configuration

Bar elements are used to represent the bars in a bar chart.

Namespace: options.elements.bar, global bar options: Chart.defaults.elements.bar.

Name Type Default Description
backgroundColor Color Chart.defaults.backgroundColor Bar fill color.
borderWidth number 0 Bar stroke width.
borderColor Color Chart.defaults.borderColor Bar stroke color.
borderSkipped string 'start' Skipped (excluded) border: 'start', 'end', 'bottom', 'left', 'top' or 'right'.
borderRadius number|object 0 The bar border radius (in pixels).
pointStyle string|Image 'circle' Style of the point for legend.

# Arc Configuration

Arcs are used in the polar area, doughnut and pie charts.

Namespace: options.elements.arc, global arc options: Chart.defaults.elements.arc.

Name Type Default Description
angle - for polar only number circumference / (arc count) Arc angle to cover.
backgroundColor Color Chart.defaults.backgroundColor Arc fill color.
borderAlign string 'center' Arc stroke alignment.
borderColor Color '#fff' Arc stroke color.
borderWidth number 2 Arc stroke width.
Last Updated: 4/2/2021, 7:48:50 AM
- + diff --git a/docs/latest/configuration/index.html b/docs/latest/configuration/index.html index d3ead5471d..835ca66ad0 100644 --- a/docs/latest/configuration/index.html +++ b/docs/latest/configuration/index.html @@ -7,7 +7,7 @@ - + @@ -75,7 +75,7 @@ }] } }); -
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/latest/configuration/interactions.html b/docs/latest/configuration/interactions.html index 12cb6fde14..dbd6ee34b3 100644 --- a/docs/latest/configuration/interactions.html +++ b/docs/latest/configuration/interactions.html @@ -7,7 +7,7 @@ - + @@ -139,7 +139,7 @@ } } }); -
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/10/2021, 4:13:30 PM
- + diff --git a/docs/latest/configuration/layout.html b/docs/latest/configuration/layout.html index 7b2d75bd0e..327c4a3218 100644 --- a/docs/latest/configuration/layout.html +++ b/docs/latest/configuration/layout.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Layout

Namespace: options.layout, the global options for the chart layout is defined in Chart.defaults.layout.

Name Type Default Scriptable Description
padding Padding 0 Yes The padding to add inside the chart.
Last Updated: 4/10/2021, 8:13:47 PM
- + diff --git a/docs/latest/configuration/legend.html b/docs/latest/configuration/legend.html index 9c3b5ccc3d..99b10529f2 100644 --- a/docs/latest/configuration/legend.html +++ b/docs/latest/configuration/legend.html @@ -7,7 +7,7 @@ - + @@ -123,7 +123,7 @@ } } }); -

Now when you click the legend in this chart, the visibility of the first two datasets will be linked together.

Last Updated: 4/10/2021, 8:13:47 PM

Now when you click the legend in this chart, the visibility of the first two datasets will be linked together.

Last Updated: 4/10/2021, 3:05:34 PM
- + diff --git a/docs/latest/configuration/locale.html b/docs/latest/configuration/locale.html index 25a5034743..0cda817c0c 100644 --- a/docs/latest/configuration/locale.html +++ b/docs/latest/configuration/locale.html @@ -7,7 +7,7 @@ - + @@ -39,7 +39,7 @@ Stack Overflow (opens new window) GitHub - (opens new window)

# Locale

For applications where the numbers of ticks on scales must be formatted accordingly with a language sensitive number formatting, you can enable this kind of formatting by setting the locale option.

The locale is a string that is a Unicode BCP 47 locale identifier (opens new window).

A Unicode BCP 47 locale identifier consists of

  1. a language code,
  2. (optionally) a script code,
  3. (optionally) a region (or country) code,
  4. (optionally) one or more variant codes, and
  5. (optionally) one or more extension sequences,

with all present components separated by hyphens.

By default the chart is using the default locale of the platform which is running on.

# Configuration Options

Namespace: options

Name Type Default Description
locale string undefined a string with a BCP 47 language tag, leveraging on INTL NumberFormat (opens new window).
Last Updated: 4/10/2021, 8:13:47 PM
- + diff --git a/docs/latest/configuration/responsive.html b/docs/latest/configuration/responsive.html index 668ee77620..839587b98b 100644 --- a/docs/latest/configuration/responsive.html +++ b/docs/latest/configuration/responsive.html @@ -7,7 +7,7 @@ - + @@ -55,7 +55,7 @@ window.addEventListener('afterprint', () => { myChart.resize(); }); -
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/latest/configuration/title.html b/docs/latest/configuration/title.html index 777faedef8..33dcdb447d 100644 --- a/docs/latest/configuration/title.html +++ b/docs/latest/configuration/title.html @@ -7,7 +7,7 @@ - + @@ -67,7 +67,7 @@ } } }); -
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/10/2021, 3:58:11 PM
- + diff --git a/docs/latest/configuration/tooltip.html b/docs/latest/configuration/tooltip.html index 85fd9c307a..9bc67a5a10 100644 --- a/docs/latest/configuration/tooltip.html +++ b/docs/latest/configuration/tooltip.html @@ -7,7 +7,7 @@ - + @@ -250,7 +250,7 @@ // tooltip options options : Object } -
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/10/2021, 3:58:11 PM
- + diff --git a/docs/latest/developers/api.html b/docs/latest/developers/api.html index a9c2cb5d22..a7b01fb8ef 100644 --- a/docs/latest/developers/api.html +++ b/docs/latest/developers/api.html @@ -7,7 +7,7 @@ - + @@ -84,7 +84,7 @@ {datasetIndex: 0, index: 1}, ]);

# Static: getChart(key)

Finds the chart instance from the given key. If the key is a string, it is interpreted as the ID of the Canvas node for the Chart. The key can also be a CanvasRenderingContext2D or an HTMLDOMElement. This will return undefined if no Chart is found. To be found, the chart must have previously been created.

const chart = Chart.getChart("canvas-id");
-
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/3/2021, 2:16:26 PM
- + diff --git a/docs/latest/developers/axes.html b/docs/latest/developers/axes.html index 6c850b6be5..adeb378522 100644 --- a/docs/latest/developers/axes.html +++ b/docs/latest/developers/axes.html @@ -7,7 +7,7 @@ - + @@ -121,7 +121,7 @@ // Returns the scale tick objects ({label, major}) getTicks: function() {} } -
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/latest/developers/charts.html b/docs/latest/developers/charts.html index 7f01166cfc..08349f41d8 100644 --- a/docs/latest/developers/charts.html +++ b/docs/latest/developers/charts.html @@ -7,7 +7,7 @@ - + @@ -114,7 +114,7 @@ derivedBubble: ChartTypeRegistry['bubble'] } } -
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/latest/developers/contributing.html b/docs/latest/developers/contributing.html index 3fb3563f74..5b81073c29 100644 --- a/docs/latest/developers/contributing.html +++ b/docs/latest/developers/contributing.html @@ -7,7 +7,7 @@ - + @@ -46,7 +46,7 @@ > npm run lint // perform code linting (ESLint, tsc) > npm test // perform code linting and run unit tests with coverage

npm run dev and npm test can be appended with a string that is used to match the spec filenames. For example: npm run dev plugins will start karma in watch mode for test/specs/**/*plugin*.js.

# Documentation

We use Vuepress (opens new window) to manage the docs which are contained as Markdown files in the docs directory. You can run the doc server locally using these commands:

> npm run docs:dev
-

# Image-Based Tests

Some display-related functionality is difficult to test via typical Jasmine units. For this reason, we introduced image-based tests (#3988 (opens new window) and #5777 (opens new window)) to assert that a chart is drawn pixel-for-pixel matching an expected image.

Generated charts in image-based tests should be as minimal as possible and focus only on the tested feature to prevent failure if another feature breaks (e.g. disable the title and legend when testing scales).

You can create a new image-based test by following the steps below:

  • Create a JS file (example (opens new window)) or JSON file (example (opens new window)) that defines chart config and generation options.
  • Add this file in test/fixtures/{spec.name}/{feature-name}.json.
  • Add a describe line (opens new window) to the beginning of test/specs/{spec.name}.tests.js if it doesn't exist yet.
  • Run npm run dev.
  • Click the "Debug" button (top/right): a test should fail with the associated canvas visible.
  • Right click on the chart and "Save image as..." test/fixtures/{spec.name}/{feature-name}.png making sure not to activate the tooltip or any hover functionality
  • Refresh the browser page (CTRL+R): test should now pass
  • Verify test relevancy by changing the feature values slightly in the JSON file.

Tests should pass in both browsers. In general, we've hidden all text in image tests since it's quite difficult to get them passing between different browsers. As a result, it is recommended to hide all scales in image-based tests. It is also recommended to disable animations. If tests still do not pass, adjust tolerance and/or threshold (opens new window) at the beginning of the JSON file keeping them as low as possible.

When a test fails, the expected and actual images are shown. If you'd like to see the images even when the tests pass, set "debug": true in the JSON file.

# Bugs and Issues

Please report these on the GitHub page - at github.com/chartjs/Chart.js. Please do not use issues for support requests. For help using Chart.js, please take a look at the chartjs (opens new window) tag on Stack Overflow.

Well structured, detailed bug reports are hugely valuable for the project.

Guidelines for reporting bugs:

Please provide any additional details associated with the bug, if it's browser or screen density specific, or only happens with a certain configuration or data.

Last Updated: 4/10/2021, 8:13:47 PM

# Image-Based Tests

Some display-related functionality is difficult to test via typical Jasmine units. For this reason, we introduced image-based tests (#3988 (opens new window) and #5777 (opens new window)) to assert that a chart is drawn pixel-for-pixel matching an expected image.

Generated charts in image-based tests should be as minimal as possible and focus only on the tested feature to prevent failure if another feature breaks (e.g. disable the title and legend when testing scales).

You can create a new image-based test by following the steps below:

  • Create a JS file (example (opens new window)) or JSON file (example (opens new window)) that defines chart config and generation options.
  • Add this file in test/fixtures/{spec.name}/{feature-name}.json.
  • Add a describe line (opens new window) to the beginning of test/specs/{spec.name}.tests.js if it doesn't exist yet.
  • Run npm run dev.
  • Click the "Debug" button (top/right): a test should fail with the associated canvas visible.
  • Right click on the chart and "Save image as..." test/fixtures/{spec.name}/{feature-name}.png making sure not to activate the tooltip or any hover functionality
  • Refresh the browser page (CTRL+R): test should now pass
  • Verify test relevancy by changing the feature values slightly in the JSON file.

Tests should pass in both browsers. In general, we've hidden all text in image tests since it's quite difficult to get them passing between different browsers. As a result, it is recommended to hide all scales in image-based tests. It is also recommended to disable animations. If tests still do not pass, adjust tolerance and/or threshold (opens new window) at the beginning of the JSON file keeping them as low as possible.

When a test fails, the expected and actual images are shown. If you'd like to see the images even when the tests pass, set "debug": true in the JSON file.

# Bugs and Issues

Please report these on the GitHub page - at github.com/chartjs/Chart.js. Please do not use issues for support requests. For help using Chart.js, please take a look at the chartjs (opens new window) tag on Stack Overflow.

Well structured, detailed bug reports are hugely valuable for the project.

Guidelines for reporting bugs:

Please provide any additional details associated with the bug, if it's browser or screen density specific, or only happens with a certain configuration or data.

Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/latest/developers/index.html b/docs/latest/developers/index.html index b69a724057..7922951f13 100644 --- a/docs/latest/developers/index.html +++ b/docs/latest/developers/index.html @@ -7,7 +7,7 @@ - + @@ -42,7 +42,7 @@ (opens new window)

# Developers

Developer features allow extending and enhancing Chart.js in many different ways.

# Latest resources

Latest documentation and samples, including unreleased features, are available at:

# Development releases

Latest builds are available for testing at:

WARNING: Development builds MUST not be used for production purposes or as replacement for CDN.

# Browser support

All modern and up-to-date browsers are supported, including, but not limited to:

Chrome Edge Firefox -Safari

As of version 3, we have dropped Internet Explorer 11 support.

Browser support for the canvas element is available in all modern & major mobile browsers. CanIUse (opens new window)

Run npx browserslist at the root of the codebase (opens new window) to get a list of supported browsers.

Thanks to BrowserStack (opens new window) for allowing our team to test on thousands of browsers.

# Previous versions

To migrate from version 2 to version 3, please see the v3 migration guide.

Version 3 has a largely different API than earlier versions.

Most earlier version options have current equivalents or are the same.

Please note - documentation for previous versions are available online or in the GitHub repo.

Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/3/2021, 3:19:51 PM
- + diff --git a/docs/latest/developers/plugins.html b/docs/latest/developers/plugins.html index 32b96a0cc2..014d6e9a11 100644 --- a/docs/latest/developers/plugins.html +++ b/docs/latest/developers/plugins.html @@ -7,7 +7,7 @@ - + @@ -90,7 +90,7 @@ plugins: false // all plugins are disabled for this instance } }); -

# Plugin Core API

Read more about the existing plugin extension hooks.

# Chart Initialization

Plugins are notified during the initialization process. These hooks can be used to setup data needed for the plugin to operate.

Chart.js init flowchart

# Chart Update

Plugins are notified during throughout the update process.

Chart.js update flowchart

# Rendering

Plugins can interact with the chart throughout the render process. The rendering process is documented in the flowchart below. Each of the green processes is a plugin notification. The red lines indicate how cancelling part of the render process can occur when a plugin returns false from a hook. Not all hooks are cancelable, however, in general most before* hooks can be cancelled.

Chart.js render pipeline flowchart

# Event Handling

Plugins can interact with the chart during the event handling process. The event handling flow is documented in the flowchart below. Each of the green processes is a plugin notification. If a plugin makes changes that require a re-render, the plugin can set args.changed to true to indicate that a render is needed. The built-in tooltip plugin uses this method to indicate when the tooltip has changed.

Chart.js event handling flowchart

Last Updated: 4/10/2021, 8:13:47 PM

# Plugin Core API

Read more about the existing plugin extension hooks.

# Chart Initialization

Plugins are notified during the initialization process. These hooks can be used to setup data needed for the plugin to operate.

Chart.js init flowchart

# Chart Update

Plugins are notified during throughout the update process.

Chart.js update flowchart

# Rendering

Plugins can interact with the chart throughout the render process. The rendering process is documented in the flowchart below. Each of the green processes is a plugin notification. The red lines indicate how cancelling part of the render process can occur when a plugin returns false from a hook. Not all hooks are cancelable, however, in general most before* hooks can be cancelled.

Chart.js render pipeline flowchart

# Event Handling

Plugins can interact with the chart during the event handling process. The event handling flow is documented in the flowchart below. Each of the green processes is a plugin notification. If a plugin makes changes that require a re-render, the plugin can set args.changed to true to indicate that a render is needed. The built-in tooltip plugin uses this method to indicate when the tooltip has changed.

Chart.js event handling flowchart

Last Updated: 4/4/2021, 11:48:59 PM
- + diff --git a/docs/latest/developers/publishing.html b/docs/latest/developers/publishing.html index 7d7987cf56..b755866886 100644 --- a/docs/latest/developers/publishing.html +++ b/docs/latest/developers/publishing.html @@ -7,7 +7,7 @@ - + @@ -50,11 +50,11 @@ } } }; -
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/latest/developers/updates.html b/docs/latest/developers/updates.html index 045c6bd63e..0c7fec2fad 100644 --- a/docs/latest/developers/updates.html +++ b/docs/latest/developers/updates.html @@ -7,7 +7,7 @@ - + @@ -101,7 +101,7 @@ }; chart.update(); } -

Code sample for updating options can be found in toggle-scale-type.html (opens new window).

# Preventing Animations

Sometimes when a chart updates, you may not want an animation. To achieve this you can call update with 'none' as mode.

Last Updated: 4/10/2021, 8:13:47 PM

Code sample for updating options can be found in toggle-scale-type.html (opens new window).

# Preventing Animations

Sometimes when a chart updates, you may not want an animation. To achieve this you can call update with 'none' as mode.

Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/latest/general/accessibility.html b/docs/latest/general/accessibility.html index 0fcabe0322..a0b585cd0d 100644 --- a/docs/latest/general/accessibility.html +++ b/docs/latest/general/accessibility.html @@ -7,7 +7,7 @@ - + @@ -45,7 +45,7 @@ </canvas>

These are some bad examples of inaccessible canvas elements.

This canvas element does not have an accessible name or role.

<canvas id="badCanvas1" width="400" height="100"></canvas>
 

This canvas element has inaccessible fallback content.

<canvas id="badCanvas2" width="400" height="100">Your browser does not support the canvas element.</canvas>
-
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/latest/general/colors.html b/docs/latest/general/colors.html index 006ecaf9ee..4b09a70164 100644 --- a/docs/latest/general/colors.html +++ b/docs/latest/general/colors.html @@ -7,7 +7,7 @@ - + @@ -66,7 +66,7 @@ }], labels: ['Red', 'Blue', 'Purple', 'Yellow'] }; -
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/latest/general/data-structures.html b/docs/latest/general/data-structures.html index 223aa551af..02693ac6d7 100644 --- a/docs/latest/general/data-structures.html +++ b/docs/latest/general/data-structures.html @@ -7,7 +7,7 @@ - + @@ -87,7 +87,7 @@ }] }, }; -
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/3/2021, 9:23:35 AM
- + diff --git a/docs/latest/general/fonts.html b/docs/latest/general/fonts.html index 155c0af2e8..48cf219ac2 100644 --- a/docs/latest/general/fonts.html +++ b/docs/latest/general/fonts.html @@ -7,7 +7,7 @@ - + @@ -56,7 +56,7 @@ } } }); -
Name Type Default Description
family string "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif" Default font family for all text, follows CSS font-family options.
size number 12 Default font size (in px) for text. Does not apply to radialLinear scale point labels.
style string 'normal' Default font style. Does not apply to tooltip title or footer. Does not apply to chart title. Follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).
weight string undefined Default font weight (boldness). (see MDN (opens new window)).
lineHeight number|string 1.2 Height of an individual line of text (see MDN (opens new window)).

# Missing Fonts

If a font is specified for a chart that does exist on the system, the browser will not apply the font when it is set. If you notice odd fonts appearing in your charts, check that the font you are applying exists on your system. See issue 3318 (opens new window) for more details.

# Loading Fonts

If a font is not cached and needs to be loaded, charts that use the font will need to be updated once the font is loaded. This can be accomplished using the Font Loading APIs (opens new window). See issue 8020 (opens new window) for more details.

Last Updated: 4/10/2021, 8:13:47 PM
Name Type Default Description
family string "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif" Default font family for all text, follows CSS font-family options.
size number 12 Default font size (in px) for text. Does not apply to radialLinear scale point labels.
style string 'normal' Default font style. Does not apply to tooltip title or footer. Does not apply to chart title. Follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).
weight string undefined Default font weight (boldness). (see MDN (opens new window)).
lineHeight number|string 1.2 Height of an individual line of text (see MDN (opens new window)).

# Missing Fonts

If a font is specified for a chart that does exist on the system, the browser will not apply the font when it is set. If you notice odd fonts appearing in your charts, check that the font you are applying exists on your system. See issue 3318 (opens new window) for more details.

# Loading Fonts

If a font is not cached and needs to be loaded, charts that use the font will need to be updated once the font is loaded. This can be accomplished using the Font Loading APIs (opens new window). See issue 8020 (opens new window) for more details.

Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/latest/general/options.html b/docs/latest/general/options.html index d72814b306..66b6111b6d 100644 --- a/docs/latest/general/options.html +++ b/docs/latest/general/options.html @@ -7,7 +7,7 @@ - + @@ -59,7 +59,7 @@ //... ]

# Option Context

The option context is used to give contextual information when resolving options and currently only applies to scriptable options. -The object is preserved, so it can be used to store and pass information between calls.

There are multiple levels of context objects:

  • chart
    • dataset
      • data
    • scale
      • tick
    • tooltip

Each level inherits its parent(s) and any contextual information stored in the parent is available through the child.

The context object contains the following properties:

# chart

  • chart: the associated chart
  • type: 'chart'

# dataset

In addition to chart

  • active: true if element is active (hovered)
  • dataset: dataset at index datasetIndex
  • datasetIndex: index of the current dataset
  • index: same as datasetIndex
  • mode: the update mode
  • type: 'dataset'

# data

In addition to dataset

  • active: true if element is active (hovered)
  • dataIndex: index of the current data
  • parsed: the parsed data values for the given dataIndex and datasetIndex
  • raw: the raw data values for the given dataIndex and datasetIndex
  • element: the element (point, arc, bar, etc.) for this data
  • index: same as dataIndex
  • type: 'data'

# scale

In addition to chart

  • scale: the associated scale
  • type: 'scale'

# tick

In addition to scale

  • tick: the associated tick object
  • index: tick index
  • type: 'tick'

# tooltip

In addition to chart

  • tooltip: the tooltip object
  • tooltipItems: the items the tooltip is displaying
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 3/30/2021, 6:19:45 PM
- + diff --git a/docs/latest/general/padding.html b/docs/latest/general/padding.html index 05d0083414..83e47b78b5 100644 --- a/docs/latest/general/padding.html +++ b/docs/latest/general/padding.html @@ -7,7 +7,7 @@ - + @@ -75,7 +75,7 @@ } } }); -
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 12:13:43 PM
- + diff --git a/docs/latest/general/performance.html b/docs/latest/general/performance.html index cce9b9ff7c..becdbbaa19 100644 --- a/docs/latest/general/performance.html +++ b/docs/latest/general/performance.html @@ -7,7 +7,7 @@ - + @@ -121,7 +121,7 @@ } });

# When transpiling with Babel, consider using loose mode

Babel 7.9 changed the way classes are constructed. It is slow, unless used with loose mode. -More information (opens new window)

Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 7:48:50 AM
- + diff --git a/docs/latest/getting-started/index.html b/docs/latest/getting-started/index.html index b9ad4bfd3e..706cb48fab 100644 --- a/docs/latest/getting-started/index.html +++ b/docs/latest/getting-started/index.html @@ -7,7 +7,7 @@ - + @@ -94,7 +94,7 @@ config ); </script> -

It's that easy to get started using Chart.js! From here you can explore the many options that can help you customise your charts with scales, tooltips, labels, colors, custom actions, and much more.

All our examples are available online (opens new window) but you can also download the Chart.js.zip archive attached to every release (opens new window) to experiment with our samples locally from the /samples folder.

Last Updated: 4/10/2021, 8:13:47 PM

It's that easy to get started using Chart.js! From here you can explore the many options that can help you customise your charts with scales, tooltips, labels, colors, custom actions, and much more.

All our examples are available online (opens new window) but you can also download the Chart.js.zip archive attached to every release (opens new window) to experiment with our samples locally from the /samples folder.

Last Updated: 4/6/2021, 6:54:18 PM
- + diff --git a/docs/latest/getting-started/installation.html b/docs/latest/getting-started/installation.html index 45a601487a..dccf11f23d 100644 --- a/docs/latest/getting-started/installation.html +++ b/docs/latest/getting-started/installation.html @@ -7,7 +7,7 @@ - + @@ -40,7 +40,7 @@ (opens new window) GitHub (opens new window)

# npm

npm (opens new window) npm (opens new window)

npm install chart.js
-

# CDN

# CDNJS

cdnjs (opens new window)

Chart.js built files are available on CDNJS (opens new window):

https://cdnjs.com/libraries/Chart.js (opens new window)

# jsDelivr

jsdelivr (opens new window) jsdelivr hits (opens new window)

Chart.js built files are also available through jsDelivr (opens new window):

https://www.jsdelivr.com/package/npm/chart.js?path=dist (opens new window)

# Github

github (opens new window)

You can download the latest version of Chart.js on GitHub (opens new window).

If you download or clone the repository, you must build Chart.js to generate the dist files. Chart.js no longer comes with prebuilt release versions, so an alternative option to downloading the repo is strongly advised.

Last Updated: 4/10/2021, 8:13:47 PM

# CDN

# CDNJS

cdnjs (opens new window)

Chart.js built files are available on CDNJS (opens new window):

https://cdnjs.com/libraries/Chart.js (opens new window)

# jsDelivr

jsdelivr (opens new window) jsdelivr hits (opens new window)

Chart.js built files are also available through jsDelivr (opens new window):

https://www.jsdelivr.com/package/npm/chart.js?path=dist (opens new window)

# Github

github (opens new window)

You can download the latest version of Chart.js on GitHub (opens new window).

If you download or clone the repository, you must build Chart.js to generate the dist files. Chart.js no longer comes with prebuilt release versions, so an alternative option to downloading the repo is strongly advised.

Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/latest/getting-started/integration.html b/docs/latest/getting-started/integration.html index b17a35dff6..9fa49a817f 100644 --- a/docs/latest/getting-started/integration.html +++ b/docs/latest/getting-started/integration.html @@ -7,7 +7,7 @@ - + @@ -110,7 +110,7 @@ }); }); }); -
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/latest/getting-started/usage.html b/docs/latest/getting-started/usage.html index 86c98261a7..b3cc812bd6 100644 --- a/docs/latest/getting-started/usage.html +++ b/docs/latest/getting-started/usage.html @@ -7,7 +7,7 @@ - + @@ -83,7 +83,7 @@ } }); </script> -
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/latest/getting-started/v3-migration.html b/docs/latest/getting-started/v3-migration.html index 1443e8ed88..16f3ddc13f 100644 --- a/docs/latest/getting-started/v3-migration.html +++ b/docs/latest/getting-started/v3-migration.html @@ -7,7 +7,7 @@ - + @@ -130,7 +130,7 @@ }
  • The time scale option distribution: 'series' was removed and a new scale type timeseries was introduced in its place
  • In the time scale, autoSkip is now enabled by default for consistency with the other scales

# Animations

Animation system was completely rewritten in Chart.js v3. Each property can now be animated separately. Please see animations docs for details.

# Customizability

  • custom attribute of elements was removed. Please use scriptable options
  • The hover property of scriptable options context object was renamed to active to align it with the datalabels plugin.

# Interactions

  • To allow DRY configuration, a root options scope for common interaction options was added. options.hover and options.plugins.tooltip now both extend from options.interaction. Defaults are defined at defaults.interaction level, so by default hover and tooltip interactions share the same mode etc.
  • interactions are now limited to the chart area + allowed overflow
  • {mode: 'label'} was replaced with {mode: 'index'}
  • {mode: 'single'} was replaced with {mode: 'nearest', intersect: true}
  • modes['X-axis'] was replaced with {mode: 'index', intersect: false}
  • options.onClick is now limited to the chart area
  • options.onClick and options.onHover now receive the chart instance as a 3rd argument
  • options.onHover now receives a wrapped event as the first parameter. The previous first parameter value is accessible via event.native.
  • options.hover.onHover was removed, use options.onHover.

# Ticks

  • options.gridLines was renamed to options.grid
  • options.gridLines.offsetGridLines was renamed to options.grid.offset.
  • options.gridLines.tickMarkLength was renamed to options.grid.tickLength.
  • options.ticks.fixedStepSize is no longer used. Use options.ticks.stepSize.
  • options.ticks.major and options.ticks.minor were replaced with scriptable options for tick fonts.
  • Chart.Ticks.formatters.linear was renamed to Chart.Ticks.formatters.numeric.
  • options.ticks.backdropPaddingX and options.ticks.backdropPaddingY were replaced with options.ticks.backdropPadding in the radial linear scale.

# Tooltip

  • xLabel and yLabel were removed. Please use label and formattedValue
  • The filter option will now be passed additional parameters when called and should have the method signature function(tooltipItem, index, tooltipItems, data)
  • The custom callback now takes a context object that has tooltip and chart properties
  • All properties of tooltip model related to the tooltip options have been moved to reside within the options property.
  • The callbacks no longer are given a data parameter. The tooltip item parameter contains the chart and dataset instead
  • The tooltip item's index parameter was renamed to dataIndex and value was renamed to formattedValue
  • The xPadding and yPadding options were merged into a single padding object

# Developer migration

While the end-user migration for Chart.js 3 is fairly straight-forward, the developer migration can be more complicated. Please reach out for help in the #dev Slack (opens new window) channel if tips on migrating would be helpful.

Some of the biggest things that have changed:

  • There is a completely rewritten and more performant animation system.
    • Element._model and Element._view are no longer used and properties are now set directly on the elements. You will have to use the method getProps to access these properties inside most methods such as inXRange/inYRange and getCenterPoint. Please take a look at the Chart.js-provided elements (opens new window) for examples.
    • When building the elements in a controller, it's now suggested to call updateElement to provide the element properties. There are also methods such as getSharedOptions and includeOptions that have been added to skip redundant computation. Please take a look at the Chart.js-provided controllers (opens new window) for examples.
  • Scales introduced a new parsing API. This API takes user data and converts it into a more standard format. E.g. it allows users to provide numeric data as a string and converts it to a number where necessary. Previously this was done on the fly as charts were rendered. Now it's done up front with the ability to skip it for better performance if users provide data in the correct format. If you're using standard data format like x/y you may not need to do anything. If you're using a custom data format you will have to override some of the parse methods in core.datasetController.js. An example can be found in chartjs-chart-financial (opens new window), which uses an {o, h, l, c} data format.

A few changes were made to controllers that are more straight-forward, but will affect all controllers:

  • Options: -
    • global was removed from the defaults namespace as it was unnecessary and sometimes inconsistent
    • Dataset defaults are now under the chart type options instead of vice-versa. This was not able to be done when introduced in 2.x for backwards compatibility. Fixing it removes the biggest stumbling block that new chart developers encountered
    • Scale default options need to be updated as described in the end user migration section (e.g. x instead of xAxes and y instead of yAxes)
  • updateElement was changed to updateElements and has a new method signature as described below. This provides performance enhancements such as allowing easier reuse of computations that are common to all elements and reducing the number of function calls

# Removed

The following properties and methods were removed:

# Removed from Chart

  • Chart.animationService
  • Chart.active
  • Chart.borderWidth
  • Chart.chart.chart
  • Chart.Bar. New charts are created via new Chart and providing the appropriate type parameter
  • Chart.Bubble. New charts are created via new Chart and providing the appropriate type parameter
  • Chart.Chart
  • Chart.Controller
  • Chart.Doughnut. New charts are created via new Chart and providing the appropriate type parameter
  • Chart.innerRadius now lives on doughnut, pie, and polarArea controllers
  • Chart.lastActive
  • Chart.Legend was moved to Chart.plugins.legend._element and made private
  • Chart.Line. New charts are created via new Chart and providing the appropriate type parameter
  • Chart.LinearScaleBase now must be imported and cannot be accessed off the Chart object
  • Chart.offsetX
  • Chart.offsetY
  • Chart.outerRadius now lives on doughnut, pie, and polarArea controllers
  • Chart.plugins was replaced with Chart.registry. Plugin defaults are now in Chart.defaults.plugins[id].
  • Chart.plugins.register was replaced by Chart.register.
  • Chart.PolarArea. New charts are created via new Chart and providing the appropriate type parameter
  • Chart.prototype.generateLegend
  • Chart.platform. It only contained disableCSSInjection. CSS is never injected in v3.
  • Chart.PluginBase
  • Chart.Radar. New charts are created via new Chart and providing the appropriate type parameter
  • Chart.radiusLength
  • Chart.scaleService was replaced with Chart.registry. Scale defaults are now in Chart.defaults.scales[type].
  • Chart.Scatter. New charts are created via new Chart and providing the appropriate type parameter
  • Chart.types
  • Chart.Title was moved to Chart.plugins.title._element and made private
  • Chart.Tooltip is now provided by the tooltip plugin. The positioners can be accessed from tooltipPlugin.positioners
  • ILayoutItem.minSize

# Removed from Dataset Controllers

  • BarController.getDatasetMeta().bar
  • DatasetController.addElementAndReset
  • DatasetController.createMetaData
  • DatasetController.createMetaDataset
  • DoughnutController.getRingIndex

# Removed from Elements

  • Element.getArea
  • Element.height
  • Element.hidden was replaced by chart level status, usable with getDataVisibility(index) / toggleDataVisibility(index)
  • Element.initialize
  • Element.inLabelRange
  • Line.calculatePointY

# Removed from Helpers

  • helpers.addEvent
  • helpers.aliasPixel
  • helpers.arrayEquals
  • helpers.configMerge
  • helpers.findIndex
  • helpers.findNextWhere
  • helpers.findPreviousWhere
  • helpers.extend. Use Object.assign instead
  • helpers.getValueAtIndexOrDefault. Use helpers.resolve instead.
  • helpers.indexOf
  • helpers.lineTo
  • helpers.longestText was made private
  • helpers.max
  • helpers.measureText was made private
  • helpers.min
  • helpers.nextItem
  • helpers.niceNum
  • helpers.numberOfLabelLines
  • helpers.previousItem
  • helpers.removeEvent
  • helpers.roundedRect
  • helpers.scaleMerge
  • helpers.where

# Removed from Layout

  • Layout.defaults

# Removed from Scales

  • LinearScaleBase.handleDirectionalChanges
  • LogarithmicScale.minNotZero
  • Scale.getRightValue
  • Scale.longestLabelWidth
  • Scale.longestTextCache is now private
  • Scale.margins is now private
  • Scale.mergeTicksOptions
  • Scale.ticksAsNumbers
  • Scale.tickValues is now private
  • TimeScale.getLabelCapacity is now private
  • TimeScale.tickFormatFunction is now private

# Removed from Plugins (Legend, Title, and Tooltip)

  • IPlugin.afterScaleUpdate. Use afterLayout instead
  • Legend.margins is now private
  • Legend onClick, onHover, and onLeave options now receive the legend as the 3rd argument in addition to implicitly via this
  • Legend onClick, onHover, and onLeave options now receive a wrapped event as the first parameter. The previous first parameter value is accessible via event.native.
  • Title.margins is now private
  • The tooltip item's x and y attributes were replaced by element. You can use element.x and element.y or element.tooltipPosition() instead.

# Removal of Public APIs

The following public APIs were removed.

  • getElementAtEvent is replaced with chart.getElementsAtEventForMode(e, 'nearest', { intersect: true }, false)
  • getElementsAtEvent is replaced with chart.getElementsAtEventForMode(e, 'index', { intersect: true }, false)
  • getElementsAtXAxis is replaced with chart.getElementsAtEventForMode(e, 'index', { intersect: false }, false)
  • getDatasetAtEvent is replaced with chart.getElementsAtEventForMode(e, 'dataset', { intersect: true }, false)

# Removal of private APIs

The following private APIs were removed.

  • Chart._bufferedRender
  • Chart._updating
  • Chart.data.datasets[datasetIndex]._meta
  • DatasetController._getIndexScaleId
  • DatasetController._getIndexScale
  • DatasetController._getValueScaleId
  • DatasetController._getValueScale
  • Element._ctx
  • Element._model
  • Element._view
  • LogarithmicScale._valueOffset
  • TimeScale.getPixelForOffset
  • TimeScale.getLabelWidth
  • Tooltip._lastActive

# Renamed

The following properties were renamed during v3 development:

  • Chart.Animation.animationObject was renamed to Chart.Animation
  • Chart.Animation.chartInstance was renamed to Chart.Animation.chart
  • Chart.canvasHelpers was merged with Chart.helpers
  • Chart.elements.Arc was renamed to Chart.elements.ArcElement
  • Chart.elements.Line was renamed to Chart.elements.LineElement
  • Chart.elements.Point was renamed to Chart.elements.PointElement
  • Chart.elements.Rectangle was renamed to Chart.elements.BarElement
  • Chart.layoutService was renamed to Chart.layouts
  • Chart.pluginService was renamed to Chart.plugins
  • helpers.callCallback was renamed to helpers.callback
  • helpers.drawRoundedRectangle was renamed to helpers.roundedRect
  • helpers.getValueOrDefault was renamed to helpers.valueOrDefault
  • LayoutItem.fullWidth was renamed to LayoutItem.fullSize
  • Point.controlPointPreviousX was renamed to Point.cp1x
  • Point.controlPointPreviousY was renamed to Point.cp1y
  • Point.controlPointNextX was renamed to Point.cp2x
  • Point.controlPointNextY was renamed to Point.cp2y
  • Scale.calculateTickRotation was renamed to Scale.calculateLabelRotation
  • Tooltip.options.legendColorBackgroupd was renamed to Tooltip.options.multiKeyBackground

# Renamed private APIs

The private APIs listed below were renamed:

  • BarController.calculateBarIndexPixels was renamed to BarController._calculateBarIndexPixels
  • BarController.calculateBarValuePixels was renamed to BarController._calculateBarValuePixels
  • BarController.getStackCount was renamed to BarController._getStackCount
  • BarController.getStackIndex was renamed to BarController._getStackIndex
  • BarController.getRuler was renamed to BarController._getRuler
  • Chart.destroyDatasetMeta was renamed to Chart._destroyDatasetMeta
  • Chart.drawDataset was renamed to Chart._drawDataset
  • Chart.drawDatasets was renamed to Chart._drawDatasets
  • Chart.eventHandler was renamed to Chart._eventHandler
  • Chart.handleEvent was renamed to Chart._handleEvent
  • Chart.initialize was renamed to Chart._initialize
  • Chart.resetElements was renamed to Chart._resetElements
  • Chart.unbindEvents was renamed to Chart._unbindEvents
  • Chart.updateDataset was renamed to Chart._updateDataset
  • Chart.updateDatasets was renamed to Chart._updateDatasets
  • Chart.updateLayout was renamed to Chart._updateLayout
  • DatasetController.destroy was renamed to DatasetController._destroy
  • DatasetController.insertElements was renamed to DatasetController._insertElements
  • DatasetController.onDataPop was renamed to DatasetController._onDataPop
  • DatasetController.onDataPush was renamed to DatasetController._onDataPush
  • DatasetController.onDataShift was renamed to DatasetController._onDataShift
  • DatasetController.onDataSplice was renamed to DatasetController._onDataSplice
  • DatasetController.onDataUnshift was renamed to DatasetController._onDataUnshift
  • DatasetController.removeElements was renamed to DatasetController._removeElements
  • DatasetController.resyncElements was renamed to DatasetController._resyncElements
  • LayoutItem.isFullWidth was renamed to LayoutItem.isFullSize
  • RadialLinearScale.setReductions was renamed to RadialLinearScale._setReductions
  • RadialLinearScale.pointLabels was renamed to RadialLinearScale._pointLabels
  • Scale.handleMargins was renamed to Scale._handleMargins

# Changed

The APIs listed in this section have changed in signature or behaviour from version 2.

# Changed in Scales

  • Scale.getLabelForIndex was replaced by scale.getLabelForValue
  • Scale.getPixelForValue now has only one parameter. For the TimeScale that parameter must be millis since the epoch
# Changed in Ticks
  • Scale.afterBuildTicks now has no parameters like the other callbacks
  • Scale.buildTicks is now expected to return tick objects
  • Scale.convertTicksToLabels was renamed to generateTickLabels. It is now expected to set the label property on the ticks given as input
  • Scale.ticks now contains objects instead of strings
  • When the autoSkip option is enabled, Scale.ticks now contains only the non-skipped ticks instead of all ticks.
  • Ticks are now always generated in monotonically increasing order
# Changed in Time Scale
  • getValueForPixel now returns milliseconds since the epoch

# Changed in Controllers

# Core Controller
  • The first parameter to updateHoverStyle is now an array of objects containing the element, datasetIndex, and index
  • The signature or resize changed, the first silent parameter was removed.
# Dataset Controllers
  • updateElement was replaced with updateElements now taking the elements to update, the start index, count, and mode
  • setHoverStyle and removeHoverStyle now additionally take the datasetIndex and index

# Changed in Interactions

  • Interaction mode methods now return an array of objects containing the element, datasetIndex, and index

# Changed in Layout

  • ILayoutItem.update no longer has a return value

# Changed in Helpers

All helpers are now exposed in a flat hierarchy, e.g., Chart.helpers.canvas.clipArea -> Chart.helpers.clipArea

# Canvas Helper
  • The second parameter to drawPoint is now the full options object, so style, rotation, and radius are no longer passed explicitly
  • helpers.getMaximumHeight was replaced by helpers.dom.getMaximumSize
  • helpers.getMaximumWidth was replaced by helpers.dom.getMaximumSize
  • helpers.clear was renamed to helpers.clearCanvas and now takes canvas and optionally ctx as parameter(s).
  • helpers.retinaScale accepts optional third parameter forceStyle, which forces overriding current canvas style. forceRatio no longer falls back to window.devicePixelRatio, instead it defaults to 1.

# Changed in Platform

  • Chart.platform is no longer the platform object used by charts. Every chart instance now has a separate platform instance.
  • Chart.platforms is an object that contains two usable platform classes, BasicPlatform and DomPlatform. It also contains BasePlatform, a class that all platforms must extend from.
  • If the canvas passed in is an instance of OffscreenCanvas, the BasicPlatform is automatically used.
  • isAttached method was added to platform.

# Changed in IPlugin interface

  • All plugin hooks have unified signature with 3 arguments: chart, args and options. This means change in signature for these hooks: beforeInit, afterInit, reset, beforeLayout, afterLayout, beforeRender, afterRender, beforeDraw, afterDraw, beforeDatasetsDraw, afterDatasetsDraw, beforeEvent, afterEvent, resize, destroy.
  • afterDatasetsUpdate, afterUpdate, beforeDatasetsUpdate, and beforeUpdate now receive args object as second argument. options argument is always the last and thus was moved from 2nd to 3rd place.
  • afterEvent and beforeEvent now receive a wrapped event as the event property of the second argument. The native event is available via args.event.native.
  • Initial resize is no longer silent. Meaning that resize event can fire between beforeInit and afterInit
  • New hooks: install, start, stop, and uninstall
  • afterEvent should notify about changes that need a render by setting args.changed to true. Because the args are shared with all plugins, it should only be set to true and not false.
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/10/2021, 3:58:11 PM
- + diff --git a/docs/latest/index.html b/docs/latest/index.html index 201333858a..b412390d89 100644 --- a/docs/latest/index.html +++ b/docs/latest/index.html @@ -7,7 +7,7 @@ - + @@ -77,11 +77,11 @@ } }); </script> -

# Contributing

Before submitting an issue or a pull request to the project, please take a moment to look over the contributing guidelines first.

For support using Chart.js, please post questions with the chartjs tag on Stack Overflow (opens new window).

# License

Chart.js is available under the MIT license (opens new window).

Documentation is copyright © 2014-2021 Chart.js contributors.

Last Updated: 4/10/2021, 8:13:47 PM

# Contributing

Before submitting an issue or a pull request to the project, please take a moment to look over the contributing guidelines first.

For support using Chart.js, please post questions with the chartjs tag on Stack Overflow (opens new window).

# License

Chart.js is available under the MIT license (opens new window).

Documentation is copyright © 2014-2021 Chart.js contributors.

Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/latest/samples/advanced/data-decimation.html b/docs/latest/samples/advanced/data-decimation.html index 46843f17b3..68d2888f85 100644 --- a/docs/latest/samples/advanced/data-decimation.html +++ b/docs/latest/samples/advanced/data-decimation.html @@ -7,7 +7,7 @@ - + @@ -213,7 +213,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/3/2021, 1:06:31 PM
- + diff --git a/docs/latest/samples/advanced/derived-axis-type.html b/docs/latest/samples/advanced/derived-axis-type.html index 58ecb71134..b2595895a3 100644 --- a/docs/latest/samples/advanced/derived-axis-type.html +++ b/docs/latest/samples/advanced/derived-axis-type.html @@ -7,7 +7,7 @@ - + @@ -154,7 +154,7 @@ Log2Axis.defaults = {}; // The derived axis is registered like this: // Chart.register(Log2Axis); -
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/advanced/derived-chart-type.html b/docs/latest/samples/advanced/derived-chart-type.html index a76721a7d8..bd5cfc5cef 100644 --- a/docs/latest/samples/advanced/derived-chart-type.html +++ b/docs/latest/samples/advanced/derived-chart-type.html @@ -7,7 +7,7 @@ - + @@ -122,11 +122,11 @@ // Custom.overrides = Chart.overrides.bubble; // Stores the controller so that the chart initialization routine can look it up Chart.register(Custom); -
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/advanced/linear-gradient.html b/docs/latest/samples/advanced/linear-gradient.html index f90560be1a..c1d3f4fae7 100644 --- a/docs/latest/samples/advanced/linear-gradient.html +++ b/docs/latest/samples/advanced/linear-gradient.html @@ -7,7 +7,7 @@ - + @@ -205,7 +205,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/advanced/programmatic-events.html b/docs/latest/samples/advanced/programmatic-events.html index 2e1969445d..16b9b3db65 100644 --- a/docs/latest/samples/advanced/programmatic-events.html +++ b/docs/latest/samples/advanced/programmatic-events.html @@ -7,7 +7,7 @@ - + @@ -195,7 +195,7 @@ hoverBorderColor: 'green', } ] -};
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/advanced/progress-bar.html b/docs/latest/samples/advanced/progress-bar.html index ec559a6113..3be99df86a 100644 --- a/docs/latest/samples/advanced/progress-bar.html +++ b/docs/latest/samples/advanced/progress-bar.html @@ -7,7 +7,7 @@ - + @@ -245,7 +245,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 10:06:29 AM
- + diff --git a/docs/latest/samples/advanced/radial-gradient.html b/docs/latest/samples/advanced/radial-gradient.html index a9d68f72e3..cba7ffd46f 100644 --- a/docs/latest/samples/advanced/radial-gradient.html +++ b/docs/latest/samples/advanced/radial-gradient.html @@ -7,7 +7,7 @@ - + @@ -219,7 +219,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/animations/delay.html b/docs/latest/samples/animations/delay.html index 6b4acdbda4..b734be3fc4 100644 --- a/docs/latest/samples/animations/delay.html +++ b/docs/latest/samples/animations/delay.html @@ -7,7 +7,7 @@ - + @@ -161,7 +161,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/animations/drop.html b/docs/latest/samples/animations/drop.html index 7b537b97d8..fa5ac09a4c 100644 --- a/docs/latest/samples/animations/drop.html +++ b/docs/latest/samples/animations/drop.html @@ -7,7 +7,7 @@ - + @@ -245,7 +245,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 10:06:29 AM
- + diff --git a/docs/latest/samples/animations/loop.html b/docs/latest/samples/animations/loop.html index b006180841..49b2b0c3df 100644 --- a/docs/latest/samples/animations/loop.html +++ b/docs/latest/samples/animations/loop.html @@ -7,7 +7,7 @@ - + @@ -245,7 +245,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 10:06:29 AM
- + diff --git a/docs/latest/samples/animations/progressive-line.html b/docs/latest/samples/animations/progressive-line.html index e7da81f7ca..c640bc4fb6 100644 --- a/docs/latest/samples/animations/progressive-line.html +++ b/docs/latest/samples/animations/progressive-line.html @@ -7,7 +7,7 @@ - + @@ -183,7 +183,7 @@ data.push({x: i, y: prev}); prev2 += 5 - Math.random() * 10; data2.push({x: i, y: prev2}); -}
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/area/line-boundaries.html b/docs/latest/samples/area/line-boundaries.html index 637f09a2a4..4f051f335a 100644 --- a/docs/latest/samples/area/line-boundaries.html +++ b/docs/latest/samples/area/line-boundaries.html @@ -7,7 +7,7 @@ - + @@ -233,7 +233,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 10:06:29 AM
- + diff --git a/docs/latest/samples/area/line-datasets.html b/docs/latest/samples/area/line-datasets.html index 1e63f7d10d..f82508ba37 100644 --- a/docs/latest/samples/area/line-datasets.html +++ b/docs/latest/samples/area/line-datasets.html @@ -7,7 +7,7 @@ - + @@ -319,7 +319,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/area/line-drawtime.html b/docs/latest/samples/area/line-drawtime.html index 8f8233ed44..56f0ca52d0 100644 --- a/docs/latest/samples/area/line-drawtime.html +++ b/docs/latest/samples/area/line-drawtime.html @@ -7,7 +7,7 @@ - + @@ -209,7 +209,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/3/2021, 8:13:00 AM
- + diff --git a/docs/latest/samples/area/line-stacked.html b/docs/latest/samples/area/line-stacked.html index 282e445c8d..d92f78ff5c 100644 --- a/docs/latest/samples/area/line-stacked.html +++ b/docs/latest/samples/area/line-stacked.html @@ -7,7 +7,7 @@ - + @@ -339,7 +339,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 10:06:29 AM
- + diff --git a/docs/latest/samples/area/radar.html b/docs/latest/samples/area/radar.html index adc692c60a..90b22a1cd1 100644 --- a/docs/latest/samples/area/radar.html +++ b/docs/latest/samples/area/radar.html @@ -7,7 +7,7 @@ - + @@ -273,7 +273,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/bar/border-radius.html b/docs/latest/samples/bar/border-radius.html index faf5c7f546..a175d2cfe4 100644 --- a/docs/latest/samples/bar/border-radius.html +++ b/docs/latest/samples/bar/border-radius.html @@ -7,7 +7,7 @@ - + @@ -145,7 +145,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/bar/floating.html b/docs/latest/samples/bar/floating.html index 15cb4cf135..a62c0ee46d 100644 --- a/docs/latest/samples/bar/floating.html +++ b/docs/latest/samples/bar/floating.html @@ -7,7 +7,7 @@ - + @@ -141,7 +141,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/bar/horizontal.html b/docs/latest/samples/bar/horizontal.html index f55a78348f..0002860aa0 100644 --- a/docs/latest/samples/bar/horizontal.html +++ b/docs/latest/samples/bar/horizontal.html @@ -7,7 +7,7 @@ - + @@ -241,7 +241,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/bar/stacked-groups.html b/docs/latest/samples/bar/stacked-groups.html index 73c1094cf4..2b03987216 100644 --- a/docs/latest/samples/bar/stacked-groups.html +++ b/docs/latest/samples/bar/stacked-groups.html @@ -7,7 +7,7 @@ - + @@ -161,7 +161,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/bar/stacked.html b/docs/latest/samples/bar/stacked.html index c96a401146..d918c3bad9 100644 --- a/docs/latest/samples/bar/stacked.html +++ b/docs/latest/samples/bar/stacked.html @@ -7,7 +7,7 @@ - + @@ -149,7 +149,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/bar/vertical.html b/docs/latest/samples/bar/vertical.html index e866d70f2f..57d438ea94 100644 --- a/docs/latest/samples/bar/vertical.html +++ b/docs/latest/samples/bar/vertical.html @@ -7,7 +7,7 @@ - + @@ -225,11 +225,11 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/legend/events.html b/docs/latest/samples/legend/events.html index c741879ee2..8e7c502f04 100644 --- a/docs/latest/samples/legend/events.html +++ b/docs/latest/samples/legend/events.html @@ -7,7 +7,7 @@ - + @@ -109,7 +109,7 @@ borderWidth: 1, backgroundColor: ['#CB4335', '#1F618D', '#F1C40F', '#27AE60', '#884EA0', '#D35400'], }] -};
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/3/2021, 8:13:38 AM
- + diff --git a/docs/latest/samples/legend/html.html b/docs/latest/samples/legend/html.html index a892c6a9df..5ee4c534cc 100644 --- a/docs/latest/samples/legend/html.html +++ b/docs/latest/samples/legend/html.html @@ -7,7 +7,7 @@ - + @@ -227,7 +227,7 @@ } }, plugins: [htmlLegendPlugin], -};
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/3/2021, 4:10:39 PM
- + diff --git a/docs/latest/samples/legend/point-style.html b/docs/latest/samples/legend/point-style.html index 2ecb2f9350..6ca3f2e313 100644 --- a/docs/latest/samples/legend/point-style.html +++ b/docs/latest/samples/legend/point-style.html @@ -7,7 +7,7 @@ - + @@ -119,7 +119,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/legend/position.html b/docs/latest/samples/legend/position.html index efa2ca359a..170cf8916f 100644 --- a/docs/latest/samples/legend/position.html +++ b/docs/latest/samples/legend/position.html @@ -7,7 +7,7 @@ - + @@ -135,7 +135,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/legend/title.html b/docs/latest/samples/legend/title.html index 03fcc82d3a..faaae4ddd2 100644 --- a/docs/latest/samples/legend/title.html +++ b/docs/latest/samples/legend/title.html @@ -7,7 +7,7 @@ - + @@ -147,7 +147,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/line/interpolation.html b/docs/latest/samples/line/interpolation.html index a23901a59c..7f22690ac5 100644 --- a/docs/latest/samples/line/interpolation.html +++ b/docs/latest/samples/line/interpolation.html @@ -7,7 +7,7 @@ - + @@ -165,7 +165,7 @@ fill: false } ] -};
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/line/line.html b/docs/latest/samples/line/line.html index d61820f5f3..81a84b9de3 100644 --- a/docs/latest/samples/line/line.html +++ b/docs/latest/samples/line/line.html @@ -7,7 +7,7 @@ - + @@ -223,7 +223,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 10:06:29 AM
- + diff --git a/docs/latest/samples/line/multi-axis.html b/docs/latest/samples/line/multi-axis.html index 935afaef18..88385f050e 100644 --- a/docs/latest/samples/line/multi-axis.html +++ b/docs/latest/samples/line/multi-axis.html @@ -7,7 +7,7 @@ - + @@ -173,7 +173,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/line/segments.html b/docs/latest/samples/line/segments.html index e0a2533318..4749b45abf 100644 --- a/docs/latest/samples/line/segments.html +++ b/docs/latest/samples/line/segments.html @@ -7,7 +7,7 @@ - + @@ -89,7 +89,7 @@ intersect: false }, radius: 0, -};
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/8/2021, 6:02:12 PM
- + diff --git a/docs/latest/samples/line/stepped.html b/docs/latest/samples/line/stepped.html index 567d5f2d84..266b000bcd 100644 --- a/docs/latest/samples/line/stepped.html +++ b/docs/latest/samples/line/stepped.html @@ -7,7 +7,7 @@ - + @@ -191,7 +191,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 10:06:29 AM
- + diff --git a/docs/latest/samples/line/styling.html b/docs/latest/samples/line/styling.html index 294e7b6725..654c322700 100644 --- a/docs/latest/samples/line/styling.html +++ b/docs/latest/samples/line/styling.html @@ -7,7 +7,7 @@ - + @@ -161,7 +161,7 @@ fill: true, } ] -};
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/other-charts/bubble.html b/docs/latest/samples/other-charts/bubble.html index 857ccaf185..0670950455 100644 --- a/docs/latest/samples/other-charts/bubble.html +++ b/docs/latest/samples/other-charts/bubble.html @@ -7,7 +7,7 @@ - + @@ -221,7 +221,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/other-charts/combo-bar-line.html b/docs/latest/samples/other-charts/combo-bar-line.html index 9579df5c6e..efb39e4ce0 100644 --- a/docs/latest/samples/other-charts/combo-bar-line.html +++ b/docs/latest/samples/other-charts/combo-bar-line.html @@ -7,7 +7,7 @@ - + @@ -231,7 +231,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/other-charts/doughnut.html b/docs/latest/samples/other-charts/doughnut.html index eeceaeb59f..4995303942 100644 --- a/docs/latest/samples/other-charts/doughnut.html +++ b/docs/latest/samples/other-charts/doughnut.html @@ -7,7 +7,7 @@ - + @@ -213,7 +213,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/other-charts/multi-series-pie.html b/docs/latest/samples/other-charts/multi-series-pie.html index e2904fbc43..e4ebc30a9a 100644 --- a/docs/latest/samples/other-charts/multi-series-pie.html +++ b/docs/latest/samples/other-charts/multi-series-pie.html @@ -7,7 +7,7 @@ - + @@ -183,7 +183,7 @@ data: [10, 90] } ] -};
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/other-charts/pie.html b/docs/latest/samples/other-charts/pie.html index bd58388a16..c4c9066567 100644 --- a/docs/latest/samples/other-charts/pie.html +++ b/docs/latest/samples/other-charts/pie.html @@ -7,7 +7,7 @@ - + @@ -213,7 +213,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/other-charts/polar-area.html b/docs/latest/samples/other-charts/polar-area.html index fa12c663ab..6b057492c1 100644 --- a/docs/latest/samples/other-charts/polar-area.html +++ b/docs/latest/samples/other-charts/polar-area.html @@ -7,7 +7,7 @@ - + @@ -177,7 +177,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/other-charts/radar-skip-points.html b/docs/latest/samples/other-charts/radar-skip-points.html index 39bf9f1edf..d1849acc3e 100644 --- a/docs/latest/samples/other-charts/radar-skip-points.html +++ b/docs/latest/samples/other-charts/radar-skip-points.html @@ -7,7 +7,7 @@ - + @@ -167,7 +167,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/other-charts/radar.html b/docs/latest/samples/other-charts/radar.html index efe00fc917..3a846ff24e 100644 --- a/docs/latest/samples/other-charts/radar.html +++ b/docs/latest/samples/other-charts/radar.html @@ -7,7 +7,7 @@ - + @@ -217,7 +217,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/other-charts/scatter-multi-axis.html b/docs/latest/samples/other-charts/scatter-multi-axis.html index 9d878a2e11..53f4672fc8 100644 --- a/docs/latest/samples/other-charts/scatter-multi-axis.html +++ b/docs/latest/samples/other-charts/scatter-multi-axis.html @@ -7,7 +7,7 @@ - + @@ -265,7 +265,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/other-charts/scatter.html b/docs/latest/samples/other-charts/scatter.html index 4b4412a87b..b09211f584 100644 --- a/docs/latest/samples/other-charts/scatter.html +++ b/docs/latest/samples/other-charts/scatter.html @@ -7,7 +7,7 @@ - + @@ -221,7 +221,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/other-charts/stacked-bar-line.html b/docs/latest/samples/other-charts/stacked-bar-line.html index 044612c03f..3c4d7fd3b6 100644 --- a/docs/latest/samples/other-charts/stacked-bar-line.html +++ b/docs/latest/samples/other-charts/stacked-bar-line.html @@ -7,7 +7,7 @@ - + @@ -235,7 +235,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/3/2021, 9:23:35 AM
- + diff --git a/docs/latest/samples/scale-options/center.html b/docs/latest/samples/scale-options/center.html index 8444176b21..b62c143cfb 100644 --- a/docs/latest/samples/scale-options/center.html +++ b/docs/latest/samples/scale-options/center.html @@ -7,7 +7,7 @@ - + @@ -177,7 +177,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/scale-options/grid.html b/docs/latest/samples/scale-options/grid.html index 1f0e9060f3..fd87fcf9d8 100644 --- a/docs/latest/samples/scale-options/grid.html +++ b/docs/latest/samples/scale-options/grid.html @@ -7,7 +7,7 @@ - + @@ -185,7 +185,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/scale-options/ticks.html b/docs/latest/samples/scale-options/ticks.html index 0412e92fc5..803f1b66a8 100644 --- a/docs/latest/samples/scale-options/ticks.html +++ b/docs/latest/samples/scale-options/ticks.html @@ -7,7 +7,7 @@ - + @@ -177,7 +177,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/scale-options/titles.html b/docs/latest/samples/scale-options/titles.html index e826dfbd6f..67b1db5113 100644 --- a/docs/latest/samples/scale-options/titles.html +++ b/docs/latest/samples/scale-options/titles.html @@ -7,7 +7,7 @@ - + @@ -159,7 +159,7 @@ backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5), } ] -};
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/10/2021, 3:58:11 PM
- + diff --git a/docs/latest/samples/scales/linear-min-max-suggested.html b/docs/latest/samples/scales/linear-min-max-suggested.html index d882610bd0..5bc81767b6 100644 --- a/docs/latest/samples/scales/linear-min-max-suggested.html +++ b/docs/latest/samples/scales/linear-min-max-suggested.html @@ -7,7 +7,7 @@ - + @@ -121,7 +121,7 @@ backgroundColor: Utils.CHART_COLORS.blue, } ] -};
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/scales/linear-min-max.html b/docs/latest/samples/scales/linear-min-max.html index 496bcef3ab..87c07af3b9 100644 --- a/docs/latest/samples/scales/linear-min-max.html +++ b/docs/latest/samples/scales/linear-min-max.html @@ -7,7 +7,7 @@ - + @@ -117,7 +117,7 @@ backgroundColor: Utils.CHART_COLORS.blue, } ] -};
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/scales/linear-step-size.html b/docs/latest/samples/scales/linear-step-size.html index aa515961f0..0b3d84f0af 100644 --- a/docs/latest/samples/scales/linear-step-size.html +++ b/docs/latest/samples/scales/linear-step-size.html @@ -7,7 +7,7 @@ - + @@ -273,7 +273,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/scales/log.html b/docs/latest/samples/scales/log.html index a7f4139223..13cce66ad3 100644 --- a/docs/latest/samples/scales/log.html +++ b/docs/latest/samples/scales/log.html @@ -7,7 +7,7 @@ - + @@ -149,7 +149,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/scales/time-combo.html b/docs/latest/samples/scales/time-combo.html index 85a26e28c2..8b78a8baaa 100644 --- a/docs/latest/samples/scales/time-combo.html +++ b/docs/latest/samples/scales/time-combo.html @@ -7,7 +7,7 @@ - + @@ -163,7 +163,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/scales/time-line.html b/docs/latest/samples/scales/time-line.html index c516a7a786..3851249745 100644 --- a/docs/latest/samples/scales/time-line.html +++ b/docs/latest/samples/scales/time-line.html @@ -7,7 +7,7 @@ - + @@ -225,7 +225,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/scales/time-max-span.html b/docs/latest/samples/scales/time-max-span.html index f80af04ace..bfda27cf2f 100644 --- a/docs/latest/samples/scales/time-max-span.html +++ b/docs/latest/samples/scales/time-max-span.html @@ -7,7 +7,7 @@ - + @@ -255,7 +255,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/10/2021, 3:58:11 PM
- + diff --git a/docs/latest/samples/scriptable/bar.html b/docs/latest/samples/scriptable/bar.html index 98e4c858f5..b35482088f 100644 --- a/docs/latest/samples/scriptable/bar.html +++ b/docs/latest/samples/scriptable/bar.html @@ -7,7 +7,7 @@ - + @@ -143,7 +143,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/scriptable/bubble.html b/docs/latest/samples/scriptable/bubble.html index 64ca95c0aa..a9a777233c 100644 --- a/docs/latest/samples/scriptable/bubble.html +++ b/docs/latest/samples/scriptable/bubble.html @@ -7,7 +7,7 @@ - + @@ -197,7 +197,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/scriptable/line.html b/docs/latest/samples/scriptable/line.html index 6db2eab7d4..cf5736a0eb 100644 --- a/docs/latest/samples/scriptable/line.html +++ b/docs/latest/samples/scriptable/line.html @@ -7,7 +7,7 @@ - + @@ -175,7 +175,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/scriptable/pie.html b/docs/latest/samples/scriptable/pie.html index cdffca6ba0..e7c7c0b145 100644 --- a/docs/latest/samples/scriptable/pie.html +++ b/docs/latest/samples/scriptable/pie.html @@ -7,7 +7,7 @@ - + @@ -167,7 +167,7 @@ chart.update(); } } -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/scriptable/polar.html b/docs/latest/samples/scriptable/polar.html index 9fb4ffe231..bbdb84ba59 100644 --- a/docs/latest/samples/scriptable/polar.html +++ b/docs/latest/samples/scriptable/polar.html @@ -7,7 +7,7 @@ - + @@ -147,7 +147,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/scriptable/radar.html b/docs/latest/samples/scriptable/radar.html index 1b59d41f66..74390f9d53 100644 --- a/docs/latest/samples/scriptable/radar.html +++ b/docs/latest/samples/scriptable/radar.html @@ -7,7 +7,7 @@ - + @@ -179,7 +179,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/title/alignment.html b/docs/latest/samples/title/alignment.html index c5f0d1a5ba..d65633bfcc 100644 --- a/docs/latest/samples/title/alignment.html +++ b/docs/latest/samples/title/alignment.html @@ -7,7 +7,7 @@ - + @@ -137,7 +137,7 @@ chart.update(); } }, -];
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/latest/samples/tooltip/content.html b/docs/latest/samples/tooltip/content.html index 103a6730ce..268fefea00 100644 --- a/docs/latest/samples/tooltip/content.html +++ b/docs/latest/samples/tooltip/content.html @@ -7,7 +7,7 @@ - + @@ -129,7 +129,7 @@ sum += tooltipItem.parsed.y; }); return 'Sum: ' + sum; -};
- + diff --git a/docs/latest/samples/tooltip/html.html b/docs/latest/samples/tooltip/html.html index 5663c89948..f01255a026 100644 --- a/docs/latest/samples/tooltip/html.html +++ b/docs/latest/samples/tooltip/html.html @@ -7,7 +7,7 @@ - + @@ -287,7 +287,7 @@ tooltipEl.style.top = positionY + tooltip.caretY + 'px'; tooltipEl.style.font = tooltip.options.bodyFont.string; tooltipEl.style.padding = tooltip.padding + 'px ' + tooltip.padding + 'px'; -};
- + diff --git a/docs/latest/samples/tooltip/interactions.html b/docs/latest/samples/tooltip/interactions.html index bac8820b1a..e7574e433c 100644 --- a/docs/latest/samples/tooltip/interactions.html +++ b/docs/latest/samples/tooltip/interactions.html @@ -7,7 +7,7 @@ - + @@ -229,7 +229,7 @@ chart.update(); } }, -];
- + diff --git a/docs/latest/samples/tooltip/point-style.html b/docs/latest/samples/tooltip/point-style.html index ae8d6cc558..ff0aa5e64c 100644 --- a/docs/latest/samples/tooltip/point-style.html +++ b/docs/latest/samples/tooltip/point-style.html @@ -7,7 +7,7 @@ - + @@ -161,7 +161,7 @@ chart.update(); } }, -];
- + diff --git a/docs/latest/samples/tooltip/position.html b/docs/latest/samples/tooltip/position.html index 95adad0743..c4f4cb30aa 100644 --- a/docs/latest/samples/tooltip/position.html +++ b/docs/latest/samples/tooltip/position.html @@ -7,7 +7,7 @@ - + @@ -185,7 +185,7 @@ chart.update(); } }, -];
- + From 8b385b59c1e4fbcddc16c02a09c5d2d01bf47ded Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Sun, 11 Apr 2021 13:14:25 -0400 Subject: [PATCH 2/2] Update 3.1.0 doc version selector --- docs/3.1.0/404.html | 6 +-- docs/3.1.0/api/classes/animation.html | 8 +-- docs/3.1.0/api/classes/animations.html | 8 +-- docs/3.1.0/api/classes/animator.html | 8 +-- docs/3.1.0/api/classes/baseplatform.html | 10 ++-- docs/3.1.0/api/classes/basicplatform.html | 10 ++-- docs/3.1.0/api/classes/chart.html | 8 +-- docs/3.1.0/api/classes/datasetcontroller.html | 8 +-- docs/3.1.0/api/classes/domplatform.html | 10 ++-- docs/3.1.0/api/classes/scale.html | 18 +++---- docs/3.1.0/api/enums/decimationalgorithm.html | 8 +-- docs/3.1.0/api/enums/updatemodeenum.html | 8 +-- docs/3.1.0/api/index.html | 8 +-- .../3.1.0/api/interfaces/activedatapoint.html | 8 +-- docs/3.1.0/api/interfaces/activeelement.html | 8 +-- docs/3.1.0/api/interfaces/animationevent.html | 8 +-- .../3.1.0/api/interfaces/arcborderradius.html | 8 +-- docs/3.1.0/api/interfaces/arcelement.html | 8 +-- .../3.1.0/api/interfaces/archoveroptions.html | 8 +-- docs/3.1.0/api/interfaces/arcoptions.html | 8 +-- docs/3.1.0/api/interfaces/arcprops.html | 8 +-- .../interfaces/barcontrollerchartoptions.html | 8 +-- .../barcontrollerdatasetoptions.html | 8 +-- docs/3.1.0/api/interfaces/barelement.html | 8 +-- .../3.1.0/api/interfaces/barhoveroptions.html | 8 +-- docs/3.1.0/api/interfaces/baroptions.html | 8 +-- docs/3.1.0/api/interfaces/barprops.html | 8 +-- docs/3.1.0/api/interfaces/borderradius.html | 8 +-- .../bubblecontrollerdatasetoptions.html | 8 +-- .../3.1.0/api/interfaces/bubbledatapoint.html | 8 +-- .../api/interfaces/cartesianscaleoptions.html | 8 +-- .../cartesianscaletyperegistry.html | 8 +-- docs/3.1.0/api/interfaces/chartarea.html | 8 +-- docs/3.1.0/api/interfaces/chartcomponent.html | 8 +-- .../api/interfaces/chartconfiguration.html | 8 +-- docs/3.1.0/api/interfaces/chartdata.html | 8 +-- .../interfaces/chartdatasetproperties.html | 8 +-- docs/3.1.0/api/interfaces/chartevent.html | 8 +-- docs/3.1.0/api/interfaces/chartmeta.html | 8 +-- .../api/interfaces/charttyperegistry.html | 8 +-- .../api/interfaces/commonelementoptions.html | 8 +-- .../api/interfaces/commonhoveroptions.html | 8 +-- .../api/interfaces/complexfilltarget.html | 8 +-- .../interfaces/controllerdatasetoptions.html | 8 +-- .../api/interfaces/corechartoptions.html | 8 +-- .../interfaces/coreinteractionoptions.html | 8 +-- .../api/interfaces/corescaleoptions.html | 8 +-- .../datasetcontrollerchartcomponent.html | 8 +-- docs/3.1.0/api/interfaces/dateadapter.html | 10 ++-- docs/3.1.0/api/interfaces/defaults.html | 10 ++-- .../interfaces/doughnutanimationoptions.html | 8 +-- .../api/interfaces/doughnutcontroller.html | 8 +-- .../doughnutcontrollerchartoptions.html | 10 ++-- .../doughnutcontrollerdatasetoptions.html | 8 +-- docs/3.1.0/api/interfaces/element.html | 8 +-- .../api/interfaces/elementchartoptions.html | 8 +-- .../api/interfaces/elementoptionsbytype.html | 8 +-- docs/3.1.0/api/interfaces/extendedplugin.html | 10 ++-- .../fillercontrollerdatasetoptions.html | 8 +-- docs/3.1.0/api/interfaces/filleroptions.html | 8 +-- docs/3.1.0/api/interfaces/fontspec.html | 8 +-- .../3.1.0/api/interfaces/gridlineoptions.html | 8 +-- .../3.1.0/api/interfaces/interactionitem.html | 8 +-- .../api/interfaces/interactionmodemap.html | 12 ++--- .../api/interfaces/interactionoptions.html | 8 +-- docs/3.1.0/api/interfaces/layoutitem.html | 8 +-- docs/3.1.0/api/interfaces/legendelement.html | 8 +-- docs/3.1.0/api/interfaces/legenditem.html | 10 ++-- docs/3.1.0/api/interfaces/legendoptions.html | 8 +-- .../linecontrollerchartoptions.html | 8 +-- .../linecontrollerdatasetoptions.html | 8 +-- docs/3.1.0/api/interfaces/lineelement.html | 8 +-- .../api/interfaces/linehoveroptions.html | 8 +-- docs/3.1.0/api/interfaces/lineoptions.html | 8 +-- docs/3.1.0/api/interfaces/lineprops.html | 6 +-- docs/3.1.0/api/interfaces/parsingoptions.html | 8 +-- docs/3.1.0/api/interfaces/plugin.html | 50 +++++++++---------- .../api/interfaces/pluginchartoptions.html | 8 +-- .../api/interfaces/pluginoptionsbytype.html | 8 +-- docs/3.1.0/api/interfaces/point.html | 8 +-- docs/3.1.0/api/interfaces/pointelement.html | 8 +-- .../api/interfaces/pointhoveroptions.html | 8 +-- docs/3.1.0/api/interfaces/pointoptions.html | 8 +-- .../interfaces/pointprefixedhoveroptions.html | 8 +-- .../api/interfaces/pointprefixedoptions.html | 8 +-- docs/3.1.0/api/interfaces/pointprops.html | 8 +-- .../api/interfaces/polarareacontroller.html | 8 +-- .../polarareacontrollerchartoptions.html | 8 +-- .../polarareacontrollerdatasetoptions.html | 8 +-- .../radarcontrollerdatasetoptions.html | 8 +-- .../api/interfaces/radiallinearscale.html | 18 +++---- .../interfaces/radialscaletyperegistry.html | 8 +-- docs/3.1.0/api/interfaces/registry.html | 8 +-- .../api/interfaces/scaletyperegistry.html | 8 +-- .../api/interfaces/scatterdatapoint.html | 8 +-- .../api/interfaces/scriptablecontext.html | 8 +-- .../scriptablelinesegmentcontext.html | 8 +-- .../interfaces/scriptablescalecontext.html | 8 +-- .../interfaces/scriptabletooltipcontext.html | 8 +-- docs/3.1.0/api/interfaces/segment.html | 8 +-- docs/3.1.0/api/interfaces/tick.html | 8 +-- docs/3.1.0/api/interfaces/tickoptions.html | 8 +-- docs/3.1.0/api/interfaces/timescale.html | 18 +++---- docs/3.1.0/api/interfaces/titleoptions.html | 10 ++-- .../api/interfaces/tooltipcallbacks.html | 8 +-- docs/3.1.0/api/interfaces/tooltipitem.html | 8 +-- .../api/interfaces/tooltiplabelstyle.html | 8 +-- docs/3.1.0/api/interfaces/tooltipmodel.html | 8 +-- docs/3.1.0/api/interfaces/tooltipoptions.html | 8 +-- docs/3.1.0/api/interfaces/typedregistry.html | 8 +-- docs/3.1.0/api/interfaces/visualelement.html | 8 +-- ...les.9a47742e.css => 0.styles.1623ef7a.css} | 2 +- docs/3.1.0/assets/js/10.a4bfd2ee.js | 1 - docs/3.1.0/assets/js/10.ceebed1f.js | 1 + docs/3.1.0/assets/js/100.75733ea8.js | 1 - docs/3.1.0/assets/js/100.eee663a2.js | 1 + docs/3.1.0/assets/js/101.96612969.js | 1 - docs/3.1.0/assets/js/101.b9b1b068.js | 1 + .../js/{102.3be5e9d1.js => 102.479c4581.js} | 2 +- docs/3.1.0/assets/js/103.3b5a1ce3.js | 1 - docs/3.1.0/assets/js/103.53ead1e1.js | 1 + docs/3.1.0/assets/js/104.5c7d8858.js | 1 + docs/3.1.0/assets/js/104.91de94b5.js | 1 - docs/3.1.0/assets/js/105.1d68e09a.js | 1 + docs/3.1.0/assets/js/105.ccd083df.js | 1 - .../js/{106.cd148c20.js => 106.92da18bd.js} | 2 +- docs/3.1.0/assets/js/107.6f10ac74.js | 1 + docs/3.1.0/assets/js/107.7da351ea.js | 1 - docs/3.1.0/assets/js/108.1e45abeb.js | 1 + docs/3.1.0/assets/js/108.4f283413.js | 1 - docs/3.1.0/assets/js/109.a738a660.js | 1 + docs/3.1.0/assets/js/109.b3b6f582.js | 1 - .../js/{11.3ffb2b15.js => 11.f705aaa7.js} | 2 +- docs/3.1.0/assets/js/110.e0faa63f.js | 1 + docs/3.1.0/assets/js/110.f24db9f1.js | 1 - docs/3.1.0/assets/js/111.7354a214.js | 1 + docs/3.1.0/assets/js/111.8b3cbf74.js | 1 - docs/3.1.0/assets/js/112.00e3774d.js | 1 - docs/3.1.0/assets/js/112.6ca1a838.js | 1 + docs/3.1.0/assets/js/113.3ec77bb7.js | 1 - docs/3.1.0/assets/js/113.625030ba.js | 1 + docs/3.1.0/assets/js/114.3a9c0bc2.js | 1 + docs/3.1.0/assets/js/114.62f8796a.js | 1 - docs/3.1.0/assets/js/115.10b47ecd.js | 1 + docs/3.1.0/assets/js/115.278437a3.js | 1 - docs/3.1.0/assets/js/116.a15a7d02.js | 1 - docs/3.1.0/assets/js/116.bb2a90dc.js | 1 + docs/3.1.0/assets/js/117.38671888.js | 1 + docs/3.1.0/assets/js/117.babf1042.js | 1 - docs/3.1.0/assets/js/118.5761cc61.js | 1 + docs/3.1.0/assets/js/118.919bd10c.js | 1 - .../js/{119.c87759f8.js => 119.3b5f344b.js} | 2 +- docs/3.1.0/assets/js/12.09150dfc.js | 1 + docs/3.1.0/assets/js/12.cbb7d1e1.js | 1 - .../js/{120.f4ecbdfa.js => 120.0e595569.js} | 0 .../js/{121.45e7fb0f.js => 121.97e3bd5c.js} | 2 +- .../js/{122.677ea225.js => 122.d96fa0b5.js} | 2 +- .../js/{123.1df4c4f4.js => 123.1638a563.js} | 0 .../js/{124.14714d88.js => 124.76f2c8c1.js} | 2 +- .../js/{125.f204c7e7.js => 125.2a9384bc.js} | 2 +- .../js/{126.92a7d203.js => 126.f39ed9b5.js} | 2 +- .../js/{127.b35a23b5.js => 127.787b00cf.js} | 2 +- .../js/{128.f6578e6b.js => 128.e9a4c541.js} | 2 +- .../js/{129.0bf6f97c.js => 129.cdd55064.js} | 2 +- docs/3.1.0/assets/js/13.412bcaed.js | 1 - docs/3.1.0/assets/js/13.854ba43a.js | 1 + .../js/{130.fbd01665.js => 130.b0e9a64a.js} | 2 +- .../js/{131.7eda5e4e.js => 131.33f2cf0f.js} | 2 +- .../js/{132.c5ff9ddb.js => 132.144a5acb.js} | 0 .../js/{133.135d54b9.js => 133.3b4bce40.js} | 2 +- .../js/{134.5cc44131.js => 134.dc5ffe9b.js} | 0 .../js/{135.c23857ac.js => 135.5c63beb8.js} | 2 +- .../js/{136.d7d24c70.js => 136.ac5c4228.js} | 2 +- .../js/{137.2f82698b.js => 137.d8e51241.js} | 2 +- .../js/{138.28a46530.js => 138.fdf11c55.js} | 2 +- .../js/{139.bc71089e.js => 139.990fd19a.js} | 2 +- docs/3.1.0/assets/js/14.081adf03.js | 1 + docs/3.1.0/assets/js/14.54149dbf.js | 1 - .../js/{140.7b997f6c.js => 140.6046865f.js} | 2 +- .../js/{141.2bcbc9a2.js => 141.eeadecc8.js} | 2 +- .../js/{142.24dcc764.js => 142.85d7ca48.js} | 0 .../js/{143.db6b73c5.js => 143.a5488c00.js} | 0 .../js/{144.1b680447.js => 144.0aead3ec.js} | 2 +- .../js/{145.5713ccac.js => 145.5a75acb9.js} | 2 +- .../js/{146.25c98087.js => 146.f3118c3f.js} | 2 +- .../js/{147.ba6767cf.js => 147.21dc728b.js} | 2 +- .../js/{148.d66dcd2c.js => 148.ce54af98.js} | 2 +- .../js/{149.106987ae.js => 149.bdcfdade.js} | 2 +- docs/3.1.0/assets/js/15.41c18415.js | 1 - docs/3.1.0/assets/js/15.aaf10464.js | 1 + .../js/{150.98525ac3.js => 150.62d02d68.js} | 2 +- .../js/{151.13850e04.js => 151.9548d02d.js} | 2 +- .../js/{152.b7fd58b2.js => 152.48f8570e.js} | 2 +- .../js/{153.3133cb81.js => 153.c769f486.js} | 2 +- .../js/{154.b18edd5e.js => 154.fcb3d380.js} | 2 +- .../js/{155.4c2ecdc0.js => 155.4b834ca6.js} | 2 +- .../js/{156.4f88415b.js => 156.88c22218.js} | 2 +- .../js/{157.a88f44e3.js => 157.6b66074e.js} | 0 .../js/{158.b6bb0c6c.js => 158.bfde7069.js} | 2 +- .../js/{159.b953925d.js => 159.f33bb4c1.js} | 2 +- docs/3.1.0/assets/js/16.18a619ff.js | 1 - docs/3.1.0/assets/js/16.f65d25ae.js | 1 + .../js/{160.6889a41c.js => 160.e9680c69.js} | 2 +- .../js/{161.0ba5575d.js => 161.9f1e28ab.js} | 2 +- .../js/{162.f58b06cd.js => 162.fc3983a6.js} | 2 +- .../js/{163.82598716.js => 163.9e832dc0.js} | 2 +- .../js/{164.0f3dc1ec.js => 164.3cc163f4.js} | 2 +- .../js/{165.abbfc048.js => 165.bfde4011.js} | 2 +- .../js/{166.af31a4fc.js => 166.e764b73e.js} | 2 +- .../js/{167.f484bf05.js => 167.eff2831d.js} | 2 +- .../js/{168.6df0a3a9.js => 168.e618654e.js} | 2 +- .../js/{169.6988ad9e.js => 169.9e5b7a91.js} | 2 +- docs/3.1.0/assets/js/17.9899e86e.js | 1 + docs/3.1.0/assets/js/17.a7672df0.js | 1 - .../js/{170.bba58735.js => 170.ac0288f3.js} | 2 +- .../js/{171.4d62757a.js => 171.6b973c39.js} | 2 +- .../js/{172.991b5a96.js => 172.856e7c8a.js} | 2 +- .../js/{173.f1af4af7.js => 173.d8445d26.js} | 2 +- .../js/{174.a560ad71.js => 174.ade5be43.js} | 0 .../js/{175.3af24d58.js => 175.ba3b8841.js} | 2 +- .../js/{176.af576a74.js => 176.10bb64a2.js} | 2 +- .../js/{177.8d2fbf83.js => 177.39202147.js} | 2 +- .../js/{178.8f0f5f24.js => 178.55369968.js} | 2 +- .../js/{179.8678e43d.js => 179.801e181f.js} | 2 +- docs/3.1.0/assets/js/18.8259392d.js | 1 + docs/3.1.0/assets/js/18.d99a8955.js | 1 - .../js/{180.dcae4343.js => 180.4dbdd10b.js} | 2 +- .../js/{181.b91df331.js => 181.66862476.js} | 0 .../js/{182.49dad751.js => 182.1750aec1.js} | 2 +- .../js/{183.d3d1ce2d.js => 183.a8ac6c4a.js} | 0 .../js/{184.b2231777.js => 184.879d3753.js} | 2 +- .../js/{185.4ad99c89.js => 185.6c8fa5a8.js} | 2 +- .../js/{186.5165b4c6.js => 186.f6109ecf.js} | 2 +- .../js/{187.cd0f1d29.js => 187.24f55f38.js} | 2 +- .../js/{188.5f9c50dd.js => 188.9625ad8d.js} | 2 +- .../js/{189.3bbd1fb0.js => 189.2785e485.js} | 2 +- .../js/{19.8722ab9b.js => 19.59e65df3.js} | 2 +- .../js/{190.1a5d1221.js => 190.6e8c7e8f.js} | 2 +- .../js/{191.b8f5abad.js => 191.75063460.js} | 2 +- .../js/{192.891f2608.js => 192.710f6faa.js} | 2 +- .../js/{193.83f5123a.js => 193.10f1ee73.js} | 2 +- .../js/{194.2409b054.js => 194.98945737.js} | 2 +- .../js/{195.0f76964b.js => 195.b35e6ac4.js} | 2 +- .../js/{196.15e7d5c4.js => 196.a373af9e.js} | 2 +- .../js/{197.7d5b82c0.js => 197.0951760f.js} | 0 .../js/{198.5d0c8226.js => 198.3eaf762c.js} | 2 +- .../js/{199.386b9983.js => 199.e2df0be6.js} | 2 +- .../js/{2.0c6e21a4.js => 2.47b832b0.js} | 2 +- docs/3.1.0/assets/js/20.e03c9894.js | 1 - docs/3.1.0/assets/js/20.e8fa3191.js | 1 + .../js/{200.cdef2d1f.js => 200.1b76db29.js} | 2 +- .../js/{201.6ec123cc.js => 201.1f3b8d0d.js} | 2 +- .../js/{202.cff3c7fd.js => 202.da641c48.js} | 2 +- .../js/{203.3716f7c5.js => 203.58eb5db9.js} | 2 +- .../js/{204.aaabe7cd.js => 204.d13f1881.js} | 2 +- .../js/{205.74645c9f.js => 205.471d40f8.js} | 2 +- .../js/{206.df707f94.js => 206.9d293c71.js} | 2 +- .../js/{207.5e69c18f.js => 207.8219847c.js} | 0 .../js/{208.a901b32b.js => 208.7b13d4e9.js} | 2 +- .../js/{209.d4796577.js => 209.28467871.js} | 2 +- docs/3.1.0/assets/js/21.ea4083d6.js | 1 - docs/3.1.0/assets/js/21.fee6e631.js | 1 + .../js/{210.a6fc9055.js => 210.53598657.js} | 2 +- .../js/{211.628fa940.js => 211.d9c2da28.js} | 2 +- .../js/{212.396efa31.js => 212.2e9df0fb.js} | 2 +- .../js/{213.e5cbe7f9.js => 213.016ba575.js} | 2 +- .../js/{214.79aef690.js => 214.9581b08a.js} | 2 +- .../js/{215.7a6e4bab.js => 215.903d226f.js} | 0 .../js/{216.4415816e.js => 216.35952ef4.js} | 2 +- .../js/{217.9d8991ac.js => 217.9d5607f9.js} | 2 +- .../js/{218.e898fcfc.js => 218.d6c62cbb.js} | 2 +- .../js/{219.6b713d5d.js => 219.fffb530f.js} | 2 +- docs/3.1.0/assets/js/22.5703057f.js | 1 + docs/3.1.0/assets/js/22.75ef9757.js | 1 - .../js/{220.f648efee.js => 220.6fcc9be7.js} | 2 +- .../js/{221.a7c256ad.js => 221.0badbc01.js} | 2 +- .../js/{222.8dc45fcf.js => 222.d26db47d.js} | 0 .../js/{223.0046eb65.js => 223.97b2025d.js} | 2 +- .../js/{224.ba6b9714.js => 224.5757c412.js} | 2 +- .../js/{225.47608bac.js => 225.4a17da2d.js} | 2 +- .../js/{226.61d91c04.js => 226.9aa0a8fc.js} | 2 +- .../js/{227.198c9166.js => 227.1ae5f133.js} | 2 +- .../js/{228.b0349dda.js => 228.cc4dbf95.js} | 2 +- .../js/{229.51ec6bd7.js => 229.251d8765.js} | 2 +- docs/3.1.0/assets/js/23.134ecae5.js | 1 + docs/3.1.0/assets/js/23.f0778fc2.js | 1 - .../js/{230.deb69283.js => 230.2695cca3.js} | 2 +- .../js/{231.a0f70811.js => 231.ec9b28e6.js} | 2 +- .../js/{232.fcd02ed5.js => 232.f27f6418.js} | 2 +- .../js/{233.a83e7350.js => 233.155ff8a1.js} | 2 +- .../js/{234.46ceae46.js => 234.abea39d7.js} | 2 +- .../js/{235.d7428a3d.js => 235.6160b7ca.js} | 2 +- .../js/{236.c3986800.js => 236.8449bd12.js} | 2 +- .../js/{237.fca5b311.js => 237.39e18457.js} | 2 +- .../js/{238.521ea89e.js => 238.a35df5d4.js} | 2 +- .../js/{239.5af05e65.js => 239.ecf8e4da.js} | 2 +- docs/3.1.0/assets/js/24.266144a9.js | 1 + docs/3.1.0/assets/js/24.b3cb60bf.js | 1 - .../js/{240.e4073758.js => 240.96c3a582.js} | 2 +- .../js/{241.223589aa.js => 241.898273af.js} | 2 +- .../js/{242.464e4f88.js => 242.2ce1e199.js} | 2 +- docs/3.1.0/assets/js/25.49354505.js | 1 - docs/3.1.0/assets/js/25.5f549319.js | 1 + docs/3.1.0/assets/js/26.353585cd.js | 1 + docs/3.1.0/assets/js/26.5cd11368.js | 1 - docs/3.1.0/assets/js/27.b322463a.js | 1 + docs/3.1.0/assets/js/27.f3557547.js | 1 - docs/3.1.0/assets/js/28.97e1e48f.js | 1 - docs/3.1.0/assets/js/28.ba867bf5.js | 1 + .../js/{29.32dffc05.js => 29.f82ad649.js} | 2 +- .../js/{3.070dc659.js => 3.f47fb655.js} | 0 docs/3.1.0/assets/js/30.5783407f.js | 1 - docs/3.1.0/assets/js/30.c6424404.js | 1 + docs/3.1.0/assets/js/31.7a567ad0.js | 1 - docs/3.1.0/assets/js/31.c150cc00.js | 1 + docs/3.1.0/assets/js/32.3cb42dd2.js | 1 - docs/3.1.0/assets/js/32.5ba19999.js | 1 + docs/3.1.0/assets/js/33.04619ac5.js | 1 - docs/3.1.0/assets/js/33.886e86c0.js | 1 + docs/3.1.0/assets/js/34.139281d5.js | 1 - docs/3.1.0/assets/js/34.e6a38b20.js | 1 + docs/3.1.0/assets/js/35.2bc7aed5.js | 1 + docs/3.1.0/assets/js/35.fbfa4c98.js | 1 - docs/3.1.0/assets/js/36.a4911720.js | 1 + docs/3.1.0/assets/js/36.cfe2dfd0.js | 1 - docs/3.1.0/assets/js/37.b47c5714.js | 1 + docs/3.1.0/assets/js/37.d17ee4cf.js | 1 - docs/3.1.0/assets/js/38.485e4dd3.js | 1 - docs/3.1.0/assets/js/38.cd9de92b.js | 1 + docs/3.1.0/assets/js/39.4f741a92.js | 1 - docs/3.1.0/assets/js/39.804db20b.js | 1 + .../js/{4.ce242792.js => 4.02ebacaa.js} | 0 docs/3.1.0/assets/js/40.2b5bc944.js | 1 + docs/3.1.0/assets/js/40.3566dbd1.js | 1 - docs/3.1.0/assets/js/41.46ae730a.js | 1 - docs/3.1.0/assets/js/41.ffdbe277.js | 1 + docs/3.1.0/assets/js/42.670bd41a.js | 1 - docs/3.1.0/assets/js/42.861beeb2.js | 1 + .../js/{43.99e62d17.js => 43.eaeffe1e.js} | 2 +- .../js/{44.f2a002b7.js => 44.a272b2bf.js} | 2 +- docs/3.1.0/assets/js/45.1c977b10.js | 1 + docs/3.1.0/assets/js/45.ec8e59c9.js | 1 - docs/3.1.0/assets/js/46.84622a0b.js | 1 - docs/3.1.0/assets/js/46.e4570fef.js | 1 + docs/3.1.0/assets/js/47.888e1be0.js | 1 + docs/3.1.0/assets/js/47.e97a844c.js | 1 - .../js/{48.a98c8b58.js => 48.3d2b6dae.js} | 2 +- docs/3.1.0/assets/js/49.a9354155.js | 1 + docs/3.1.0/assets/js/49.dd5207d9.js | 1 - docs/3.1.0/assets/js/50.b539434c.js | 1 - docs/3.1.0/assets/js/50.ece980c4.js | 1 + docs/3.1.0/assets/js/51.4ce2ec8a.js | 1 + docs/3.1.0/assets/js/51.780cd47d.js | 1 - docs/3.1.0/assets/js/52.44c00e86.js | 1 + docs/3.1.0/assets/js/52.a1330943.js | 1 - docs/3.1.0/assets/js/53.6f12fc3c.js | 1 - docs/3.1.0/assets/js/53.df736d99.js | 1 + docs/3.1.0/assets/js/54.29b9b9a7.js | 1 - docs/3.1.0/assets/js/54.3cb944cc.js | 1 + docs/3.1.0/assets/js/55.49c0fd5c.js | 1 + docs/3.1.0/assets/js/55.93c18df5.js | 1 - docs/3.1.0/assets/js/56.8beb8892.js | 1 + docs/3.1.0/assets/js/56.e7730f5b.js | 1 - docs/3.1.0/assets/js/57.62b24161.js | 1 + docs/3.1.0/assets/js/57.a4d9f801.js | 1 - .../js/{58.837a30e7.js => 58.a738cc24.js} | 2 +- docs/3.1.0/assets/js/59.cda3b460.js | 1 - docs/3.1.0/assets/js/59.faa2f5d2.js | 1 + .../js/{6.51425ea4.js => 6.66c3a69e.js} | 2 +- docs/3.1.0/assets/js/60.4b0ad5e2.js | 1 + docs/3.1.0/assets/js/60.8987e982.js | 1 - docs/3.1.0/assets/js/61.0c94f87a.js | 1 + docs/3.1.0/assets/js/61.d8d4483c.js | 1 - docs/3.1.0/assets/js/62.1955e3ef.js | 1 + docs/3.1.0/assets/js/62.d2a0739e.js | 1 - .../js/{63.38bf5ef9.js => 63.a2c68d92.js} | 2 +- docs/3.1.0/assets/js/64.1370b0c2.js | 1 - docs/3.1.0/assets/js/64.61e33bb7.js | 1 + .../js/{65.c9ea7df7.js => 65.3ed92966.js} | 2 +- .../js/{66.c14fc7c9.js => 66.85ebdcec.js} | 2 +- .../js/{67.50df0fc7.js => 67.7fdf739f.js} | 2 +- docs/3.1.0/assets/js/68.7f6a9b2d.js | 1 - docs/3.1.0/assets/js/68.9ba7535b.js | 1 + docs/3.1.0/assets/js/69.9baf5afd.js | 1 - docs/3.1.0/assets/js/69.e5b7dac5.js | 1 + .../js/{7.a9072f57.js => 7.444ac8c1.js} | 2 +- docs/3.1.0/assets/js/70.3999b0cd.js | 1 - docs/3.1.0/assets/js/70.5f575655.js | 1 + docs/3.1.0/assets/js/71.8b4b0011.js | 1 - docs/3.1.0/assets/js/71.e6886a7d.js | 1 + docs/3.1.0/assets/js/72.3cbbf440.js | 1 + docs/3.1.0/assets/js/72.5b51c465.js | 1 - docs/3.1.0/assets/js/73.24c14f7c.js | 1 - docs/3.1.0/assets/js/73.7e0c7b18.js | 1 + docs/3.1.0/assets/js/74.26bae493.js | 1 + docs/3.1.0/assets/js/74.8446418e.js | 1 - docs/3.1.0/assets/js/75.4ce5d7c0.js | 1 - docs/3.1.0/assets/js/75.9641c3e4.js | 1 + docs/3.1.0/assets/js/76.497de90f.js | 1 - docs/3.1.0/assets/js/76.a2eb57f4.js | 1 + docs/3.1.0/assets/js/77.9c7bbc3d.js | 1 - docs/3.1.0/assets/js/77.aa12d9c5.js | 1 + docs/3.1.0/assets/js/78.52cd58bc.js | 1 - docs/3.1.0/assets/js/78.5b5597b6.js | 1 + docs/3.1.0/assets/js/79.260b827c.js | 1 - docs/3.1.0/assets/js/79.a436a5a4.js | 1 + .../js/{8.f223931f.js => 8.213592ca.js} | 0 docs/3.1.0/assets/js/80.5e6c45b3.js | 1 - docs/3.1.0/assets/js/80.98082ae7.js | 1 + docs/3.1.0/assets/js/81.3c4dfdab.js | 1 + docs/3.1.0/assets/js/81.4c7bb29c.js | 1 - .../js/{82.69931859.js => 82.847186b1.js} | 2 +- .../js/{83.9bdbc6a6.js => 83.1464037a.js} | 2 +- docs/3.1.0/assets/js/84.6c883a62.js | 1 + docs/3.1.0/assets/js/84.f8ea29f0.js | 1 - .../js/{85.57e607be.js => 85.ce19abc2.js} | 2 +- docs/3.1.0/assets/js/86.44f69d78.js | 1 + docs/3.1.0/assets/js/86.5d09beae.js | 1 - .../js/{87.563ac9a5.js => 87.3639bc16.js} | 2 +- docs/3.1.0/assets/js/88.14645b1d.js | 1 + docs/3.1.0/assets/js/88.733e93fc.js | 1 - docs/3.1.0/assets/js/89.58797237.js | 1 - docs/3.1.0/assets/js/89.f6686130.js | 1 + docs/3.1.0/assets/js/9.97a769a4.js | 1 + docs/3.1.0/assets/js/9.e5e73499.js | 1 - docs/3.1.0/assets/js/90.71dfc67f.js | 1 + docs/3.1.0/assets/js/90.d8d0c996.js | 1 - docs/3.1.0/assets/js/91.2a2bd3d2.js | 1 + docs/3.1.0/assets/js/91.a1147597.js | 1 - docs/3.1.0/assets/js/92.1906a5fc.js | 1 + docs/3.1.0/assets/js/92.210e2a60.js | 1 - .../js/{93.7195b379.js => 93.040a325e.js} | 2 +- docs/3.1.0/assets/js/94.432699f0.js | 1 - docs/3.1.0/assets/js/94.e69ba595.js | 1 + docs/3.1.0/assets/js/95.9d59b30f.js | 1 + docs/3.1.0/assets/js/95.a2e1a5ff.js | 1 - docs/3.1.0/assets/js/96.281b52d0.js | 1 + docs/3.1.0/assets/js/96.4d8361de.js | 1 - docs/3.1.0/assets/js/97.0f2a709e.js | 1 - docs/3.1.0/assets/js/97.5181339d.js | 1 + docs/3.1.0/assets/js/98.b599422a.js | 1 - docs/3.1.0/assets/js/98.c10d3dd8.js | 1 + .../js/{99.ca867651.js => 99.43c1ef40.js} | 2 +- docs/3.1.0/assets/js/app.0ddc5917.js | 35 +++++++++++++ docs/3.1.0/assets/js/app.b19e82cf.js | 35 ------------- docs/3.1.0/axes/_common.html | 8 +-- docs/3.1.0/axes/_common_ticks.html | 8 +-- docs/3.1.0/axes/cartesian/_common.html | 8 +-- docs/3.1.0/axes/cartesian/_common_ticks.html | 8 +-- docs/3.1.0/axes/cartesian/category.html | 8 +-- docs/3.1.0/axes/cartesian/index.html | 8 +-- docs/3.1.0/axes/cartesian/linear.html | 8 +-- docs/3.1.0/axes/cartesian/logarithmic.html | 8 +-- docs/3.1.0/axes/cartesian/time.html | 8 +-- docs/3.1.0/axes/cartesian/timeseries.html | 8 +-- docs/3.1.0/axes/index.html | 8 +-- docs/3.1.0/axes/labelling.html | 8 +-- docs/3.1.0/axes/radial/index.html | 8 +-- docs/3.1.0/axes/radial/linear.html | 8 +-- docs/3.1.0/axes/styling.html | 8 +-- docs/3.1.0/charts/area.html | 8 +-- docs/3.1.0/charts/bar.html | 8 +-- docs/3.1.0/charts/bubble.html | 8 +-- docs/3.1.0/charts/doughnut.html | 8 +-- docs/3.1.0/charts/line.html | 8 +-- docs/3.1.0/charts/mixed.html | 8 +-- docs/3.1.0/charts/polar.html | 8 +-- docs/3.1.0/charts/radar.html | 8 +-- docs/3.1.0/charts/scatter.html | 8 +-- docs/3.1.0/configuration/animations.html | 8 +-- .../configuration/canvas-background.html | 8 +-- docs/3.1.0/configuration/decimation.html | 8 +-- .../configuration/device-pixel-ratio.html | 8 +-- docs/3.1.0/configuration/elements.html | 8 +-- docs/3.1.0/configuration/index.html | 8 +-- docs/3.1.0/configuration/interactions.html | 8 +-- docs/3.1.0/configuration/layout.html | 8 +-- docs/3.1.0/configuration/legend.html | 8 +-- docs/3.1.0/configuration/locale.html | 8 +-- docs/3.1.0/configuration/responsive.html | 8 +-- docs/3.1.0/configuration/title.html | 8 +-- docs/3.1.0/configuration/tooltip.html | 8 +-- docs/3.1.0/developers/api.html | 8 +-- docs/3.1.0/developers/axes.html | 8 +-- docs/3.1.0/developers/charts.html | 8 +-- docs/3.1.0/developers/contributing.html | 8 +-- docs/3.1.0/developers/index.html | 8 +-- docs/3.1.0/developers/plugins.html | 8 +-- docs/3.1.0/developers/publishing.html | 8 +-- docs/3.1.0/developers/updates.html | 8 +-- docs/3.1.0/general/accessibility.html | 8 +-- docs/3.1.0/general/colors.html | 8 +-- docs/3.1.0/general/data-structures.html | 8 +-- docs/3.1.0/general/fonts.html | 8 +-- docs/3.1.0/general/options.html | 8 +-- docs/3.1.0/general/padding.html | 8 +-- docs/3.1.0/general/performance.html | 8 +-- docs/3.1.0/getting-started/index.html | 8 +-- docs/3.1.0/getting-started/installation.html | 8 +-- docs/3.1.0/getting-started/integration.html | 8 +-- docs/3.1.0/getting-started/usage.html | 8 +-- docs/3.1.0/getting-started/v3-migration.html | 8 +-- docs/3.1.0/index.html | 8 +-- .../samples/advanced/data-decimation.html | 8 +-- .../samples/advanced/derived-axis-type.html | 8 +-- .../samples/advanced/derived-chart-type.html | 8 +-- .../samples/advanced/linear-gradient.html | 8 +-- .../samples/advanced/programmatic-events.html | 8 +-- docs/3.1.0/samples/advanced/progress-bar.html | 8 +-- .../samples/advanced/radial-gradient.html | 8 +-- docs/3.1.0/samples/animations/delay.html | 8 +-- docs/3.1.0/samples/animations/drop.html | 8 +-- docs/3.1.0/samples/animations/loop.html | 8 +-- .../samples/animations/progressive-line.html | 8 +-- docs/3.1.0/samples/area/line-boundaries.html | 8 +-- docs/3.1.0/samples/area/line-datasets.html | 8 +-- docs/3.1.0/samples/area/line-drawtime.html | 8 +-- docs/3.1.0/samples/area/line-stacked.html | 8 +-- docs/3.1.0/samples/area/radar.html | 8 +-- docs/3.1.0/samples/bar/border-radius.html | 8 +-- docs/3.1.0/samples/bar/floating.html | 8 +-- docs/3.1.0/samples/bar/horizontal.html | 8 +-- docs/3.1.0/samples/bar/stacked-groups.html | 8 +-- docs/3.1.0/samples/bar/stacked.html | 8 +-- docs/3.1.0/samples/bar/vertical.html | 8 +-- docs/3.1.0/samples/legend/events.html | 8 +-- docs/3.1.0/samples/legend/html.html | 8 +-- docs/3.1.0/samples/legend/point-style.html | 8 +-- docs/3.1.0/samples/legend/position.html | 8 +-- docs/3.1.0/samples/legend/title.html | 8 +-- docs/3.1.0/samples/line/interpolation.html | 8 +-- docs/3.1.0/samples/line/line.html | 8 +-- docs/3.1.0/samples/line/multi-axis.html | 8 +-- docs/3.1.0/samples/line/segments.html | 8 +-- docs/3.1.0/samples/line/stepped.html | 8 +-- docs/3.1.0/samples/line/styling.html | 8 +-- docs/3.1.0/samples/other-charts/bubble.html | 8 +-- .../samples/other-charts/combo-bar-line.html | 8 +-- docs/3.1.0/samples/other-charts/doughnut.html | 8 +-- .../other-charts/multi-series-pie.html | 8 +-- docs/3.1.0/samples/other-charts/pie.html | 8 +-- .../samples/other-charts/polar-area.html | 8 +-- .../other-charts/radar-skip-points.html | 8 +-- docs/3.1.0/samples/other-charts/radar.html | 8 +-- .../other-charts/scatter-multi-axis.html | 8 +-- docs/3.1.0/samples/other-charts/scatter.html | 8 +-- .../other-charts/stacked-bar-line.html | 8 +-- docs/3.1.0/samples/scale-options/center.html | 8 +-- docs/3.1.0/samples/scale-options/grid.html | 8 +-- docs/3.1.0/samples/scale-options/ticks.html | 8 +-- docs/3.1.0/samples/scale-options/titles.html | 8 +-- .../scales/linear-min-max-suggested.html | 8 +-- docs/3.1.0/samples/scales/linear-min-max.html | 8 +-- .../samples/scales/linear-step-size.html | 8 +-- docs/3.1.0/samples/scales/log.html | 8 +-- docs/3.1.0/samples/scales/time-combo.html | 8 +-- docs/3.1.0/samples/scales/time-line.html | 8 +-- docs/3.1.0/samples/scales/time-max-span.html | 8 +-- docs/3.1.0/samples/scriptable/bar.html | 8 +-- docs/3.1.0/samples/scriptable/bubble.html | 8 +-- docs/3.1.0/samples/scriptable/line.html | 8 +-- docs/3.1.0/samples/scriptable/pie.html | 8 +-- docs/3.1.0/samples/scriptable/polar.html | 8 +-- docs/3.1.0/samples/scriptable/radar.html | 8 +-- docs/3.1.0/samples/title/alignment.html | 8 +-- docs/3.1.0/samples/tooltip/content.html | 8 +-- docs/3.1.0/samples/tooltip/html.html | 8 +-- docs/3.1.0/samples/tooltip/interactions.html | 8 +-- docs/3.1.0/samples/tooltip/point-style.html | 8 +-- docs/3.1.0/samples/tooltip/position.html | 8 +-- 570 files changed, 1248 insertions(+), 1248 deletions(-) rename docs/3.1.0/assets/css/{0.styles.9a47742e.css => 0.styles.1623ef7a.css} (98%) delete mode 100644 docs/3.1.0/assets/js/10.a4bfd2ee.js create mode 100644 docs/3.1.0/assets/js/10.ceebed1f.js delete mode 100644 docs/3.1.0/assets/js/100.75733ea8.js create mode 100644 docs/3.1.0/assets/js/100.eee663a2.js delete mode 100644 docs/3.1.0/assets/js/101.96612969.js create mode 100644 docs/3.1.0/assets/js/101.b9b1b068.js rename docs/3.1.0/assets/js/{102.3be5e9d1.js => 102.479c4581.js} (50%) delete mode 100644 docs/3.1.0/assets/js/103.3b5a1ce3.js create mode 100644 docs/3.1.0/assets/js/103.53ead1e1.js create mode 100644 docs/3.1.0/assets/js/104.5c7d8858.js delete mode 100644 docs/3.1.0/assets/js/104.91de94b5.js create mode 100644 docs/3.1.0/assets/js/105.1d68e09a.js delete mode 100644 docs/3.1.0/assets/js/105.ccd083df.js rename docs/3.1.0/assets/js/{106.cd148c20.js => 106.92da18bd.js} (53%) create mode 100644 docs/3.1.0/assets/js/107.6f10ac74.js delete mode 100644 docs/3.1.0/assets/js/107.7da351ea.js create mode 100644 docs/3.1.0/assets/js/108.1e45abeb.js delete mode 100644 docs/3.1.0/assets/js/108.4f283413.js create mode 100644 docs/3.1.0/assets/js/109.a738a660.js delete mode 100644 docs/3.1.0/assets/js/109.b3b6f582.js rename docs/3.1.0/assets/js/{11.3ffb2b15.js => 11.f705aaa7.js} (52%) create mode 100644 docs/3.1.0/assets/js/110.e0faa63f.js delete mode 100644 docs/3.1.0/assets/js/110.f24db9f1.js create mode 100644 docs/3.1.0/assets/js/111.7354a214.js delete mode 100644 docs/3.1.0/assets/js/111.8b3cbf74.js delete mode 100644 docs/3.1.0/assets/js/112.00e3774d.js create mode 100644 docs/3.1.0/assets/js/112.6ca1a838.js delete mode 100644 docs/3.1.0/assets/js/113.3ec77bb7.js create mode 100644 docs/3.1.0/assets/js/113.625030ba.js create mode 100644 docs/3.1.0/assets/js/114.3a9c0bc2.js delete mode 100644 docs/3.1.0/assets/js/114.62f8796a.js create mode 100644 docs/3.1.0/assets/js/115.10b47ecd.js delete mode 100644 docs/3.1.0/assets/js/115.278437a3.js delete mode 100644 docs/3.1.0/assets/js/116.a15a7d02.js create mode 100644 docs/3.1.0/assets/js/116.bb2a90dc.js create mode 100644 docs/3.1.0/assets/js/117.38671888.js delete mode 100644 docs/3.1.0/assets/js/117.babf1042.js create mode 100644 docs/3.1.0/assets/js/118.5761cc61.js delete mode 100644 docs/3.1.0/assets/js/118.919bd10c.js rename docs/3.1.0/assets/js/{119.c87759f8.js => 119.3b5f344b.js} (98%) create mode 100644 docs/3.1.0/assets/js/12.09150dfc.js delete mode 100644 docs/3.1.0/assets/js/12.cbb7d1e1.js rename docs/3.1.0/assets/js/{120.f4ecbdfa.js => 120.0e595569.js} (100%) rename docs/3.1.0/assets/js/{121.45e7fb0f.js => 121.97e3bd5c.js} (97%) rename docs/3.1.0/assets/js/{122.677ea225.js => 122.d96fa0b5.js} (98%) rename docs/3.1.0/assets/js/{123.1df4c4f4.js => 123.1638a563.js} (100%) rename docs/3.1.0/assets/js/{124.14714d88.js => 124.76f2c8c1.js} (99%) rename docs/3.1.0/assets/js/{125.f204c7e7.js => 125.2a9384bc.js} (99%) rename docs/3.1.0/assets/js/{126.92a7d203.js => 126.f39ed9b5.js} (99%) rename docs/3.1.0/assets/js/{127.b35a23b5.js => 127.787b00cf.js} (99%) rename docs/3.1.0/assets/js/{128.f6578e6b.js => 128.e9a4c541.js} (98%) rename docs/3.1.0/assets/js/{129.0bf6f97c.js => 129.cdd55064.js} (99%) delete mode 100644 docs/3.1.0/assets/js/13.412bcaed.js create mode 100644 docs/3.1.0/assets/js/13.854ba43a.js rename docs/3.1.0/assets/js/{130.fbd01665.js => 130.b0e9a64a.js} (99%) rename docs/3.1.0/assets/js/{131.7eda5e4e.js => 131.33f2cf0f.js} (98%) rename docs/3.1.0/assets/js/{132.c5ff9ddb.js => 132.144a5acb.js} (100%) rename docs/3.1.0/assets/js/{133.135d54b9.js => 133.3b4bce40.js} (99%) rename docs/3.1.0/assets/js/{134.5cc44131.js => 134.dc5ffe9b.js} (100%) rename docs/3.1.0/assets/js/{135.c23857ac.js => 135.5c63beb8.js} (99%) rename docs/3.1.0/assets/js/{136.d7d24c70.js => 136.ac5c4228.js} (99%) rename docs/3.1.0/assets/js/{137.2f82698b.js => 137.d8e51241.js} (99%) rename docs/3.1.0/assets/js/{138.28a46530.js => 138.fdf11c55.js} (99%) rename docs/3.1.0/assets/js/{139.bc71089e.js => 139.990fd19a.js} (99%) create mode 100644 docs/3.1.0/assets/js/14.081adf03.js delete mode 100644 docs/3.1.0/assets/js/14.54149dbf.js rename docs/3.1.0/assets/js/{140.7b997f6c.js => 140.6046865f.js} (99%) rename docs/3.1.0/assets/js/{141.2bcbc9a2.js => 141.eeadecc8.js} (99%) rename docs/3.1.0/assets/js/{142.24dcc764.js => 142.85d7ca48.js} (100%) rename docs/3.1.0/assets/js/{143.db6b73c5.js => 143.a5488c00.js} (100%) rename docs/3.1.0/assets/js/{144.1b680447.js => 144.0aead3ec.js} (98%) rename docs/3.1.0/assets/js/{145.5713ccac.js => 145.5a75acb9.js} (98%) rename docs/3.1.0/assets/js/{146.25c98087.js => 146.f3118c3f.js} (96%) rename docs/3.1.0/assets/js/{147.ba6767cf.js => 147.21dc728b.js} (99%) rename docs/3.1.0/assets/js/{148.d66dcd2c.js => 148.ce54af98.js} (99%) rename docs/3.1.0/assets/js/{149.106987ae.js => 149.bdcfdade.js} (99%) delete mode 100644 docs/3.1.0/assets/js/15.41c18415.js create mode 100644 docs/3.1.0/assets/js/15.aaf10464.js rename docs/3.1.0/assets/js/{150.98525ac3.js => 150.62d02d68.js} (95%) rename docs/3.1.0/assets/js/{151.13850e04.js => 151.9548d02d.js} (99%) rename docs/3.1.0/assets/js/{152.b7fd58b2.js => 152.48f8570e.js} (97%) rename docs/3.1.0/assets/js/{153.3133cb81.js => 153.c769f486.js} (99%) rename docs/3.1.0/assets/js/{154.b18edd5e.js => 154.fcb3d380.js} (99%) rename docs/3.1.0/assets/js/{155.4c2ecdc0.js => 155.4b834ca6.js} (99%) rename docs/3.1.0/assets/js/{156.4f88415b.js => 156.88c22218.js} (99%) rename docs/3.1.0/assets/js/{157.a88f44e3.js => 157.6b66074e.js} (100%) rename docs/3.1.0/assets/js/{158.b6bb0c6c.js => 158.bfde7069.js} (99%) rename docs/3.1.0/assets/js/{159.b953925d.js => 159.f33bb4c1.js} (99%) delete mode 100644 docs/3.1.0/assets/js/16.18a619ff.js create mode 100644 docs/3.1.0/assets/js/16.f65d25ae.js rename docs/3.1.0/assets/js/{160.6889a41c.js => 160.e9680c69.js} (98%) rename docs/3.1.0/assets/js/{161.0ba5575d.js => 161.9f1e28ab.js} (98%) rename docs/3.1.0/assets/js/{162.f58b06cd.js => 162.fc3983a6.js} (99%) rename docs/3.1.0/assets/js/{163.82598716.js => 163.9e832dc0.js} (99%) rename docs/3.1.0/assets/js/{164.0f3dc1ec.js => 164.3cc163f4.js} (99%) rename docs/3.1.0/assets/js/{165.abbfc048.js => 165.bfde4011.js} (99%) rename docs/3.1.0/assets/js/{166.af31a4fc.js => 166.e764b73e.js} (99%) rename docs/3.1.0/assets/js/{167.f484bf05.js => 167.eff2831d.js} (99%) rename docs/3.1.0/assets/js/{168.6df0a3a9.js => 168.e618654e.js} (99%) rename docs/3.1.0/assets/js/{169.6988ad9e.js => 169.9e5b7a91.js} (99%) create mode 100644 docs/3.1.0/assets/js/17.9899e86e.js delete mode 100644 docs/3.1.0/assets/js/17.a7672df0.js rename docs/3.1.0/assets/js/{170.bba58735.js => 170.ac0288f3.js} (99%) rename docs/3.1.0/assets/js/{171.4d62757a.js => 171.6b973c39.js} (98%) rename docs/3.1.0/assets/js/{172.991b5a96.js => 172.856e7c8a.js} (99%) rename docs/3.1.0/assets/js/{173.f1af4af7.js => 173.d8445d26.js} (99%) rename docs/3.1.0/assets/js/{174.a560ad71.js => 174.ade5be43.js} (100%) rename docs/3.1.0/assets/js/{175.3af24d58.js => 175.ba3b8841.js} (99%) rename docs/3.1.0/assets/js/{176.af576a74.js => 176.10bb64a2.js} (98%) rename docs/3.1.0/assets/js/{177.8d2fbf83.js => 177.39202147.js} (99%) rename docs/3.1.0/assets/js/{178.8f0f5f24.js => 178.55369968.js} (99%) rename docs/3.1.0/assets/js/{179.8678e43d.js => 179.801e181f.js} (97%) create mode 100644 docs/3.1.0/assets/js/18.8259392d.js delete mode 100644 docs/3.1.0/assets/js/18.d99a8955.js rename docs/3.1.0/assets/js/{180.dcae4343.js => 180.4dbdd10b.js} (97%) rename docs/3.1.0/assets/js/{181.b91df331.js => 181.66862476.js} (100%) rename docs/3.1.0/assets/js/{182.49dad751.js => 182.1750aec1.js} (98%) rename docs/3.1.0/assets/js/{183.d3d1ce2d.js => 183.a8ac6c4a.js} (100%) rename docs/3.1.0/assets/js/{184.b2231777.js => 184.879d3753.js} (98%) rename docs/3.1.0/assets/js/{185.4ad99c89.js => 185.6c8fa5a8.js} (98%) rename docs/3.1.0/assets/js/{186.5165b4c6.js => 186.f6109ecf.js} (97%) rename docs/3.1.0/assets/js/{187.cd0f1d29.js => 187.24f55f38.js} (97%) rename docs/3.1.0/assets/js/{188.5f9c50dd.js => 188.9625ad8d.js} (98%) rename docs/3.1.0/assets/js/{189.3bbd1fb0.js => 189.2785e485.js} (97%) rename docs/3.1.0/assets/js/{19.8722ab9b.js => 19.59e65df3.js} (52%) rename docs/3.1.0/assets/js/{190.1a5d1221.js => 190.6e8c7e8f.js} (98%) rename docs/3.1.0/assets/js/{191.b8f5abad.js => 191.75063460.js} (98%) rename docs/3.1.0/assets/js/{192.891f2608.js => 192.710f6faa.js} (96%) rename docs/3.1.0/assets/js/{193.83f5123a.js => 193.10f1ee73.js} (96%) rename docs/3.1.0/assets/js/{194.2409b054.js => 194.98945737.js} (98%) rename docs/3.1.0/assets/js/{195.0f76964b.js => 195.b35e6ac4.js} (96%) rename docs/3.1.0/assets/js/{196.15e7d5c4.js => 196.a373af9e.js} (96%) rename docs/3.1.0/assets/js/{197.7d5b82c0.js => 197.0951760f.js} (100%) rename docs/3.1.0/assets/js/{198.5d0c8226.js => 198.3eaf762c.js} (96%) rename docs/3.1.0/assets/js/{199.386b9983.js => 199.e2df0be6.js} (98%) rename docs/3.1.0/assets/js/{2.0c6e21a4.js => 2.47b832b0.js} (99%) delete mode 100644 docs/3.1.0/assets/js/20.e03c9894.js create mode 100644 docs/3.1.0/assets/js/20.e8fa3191.js rename docs/3.1.0/assets/js/{200.cdef2d1f.js => 200.1b76db29.js} (96%) rename docs/3.1.0/assets/js/{201.6ec123cc.js => 201.1f3b8d0d.js} (96%) rename docs/3.1.0/assets/js/{202.cff3c7fd.js => 202.da641c48.js} (97%) rename docs/3.1.0/assets/js/{203.3716f7c5.js => 203.58eb5db9.js} (96%) rename docs/3.1.0/assets/js/{204.aaabe7cd.js => 204.d13f1881.js} (97%) rename docs/3.1.0/assets/js/{205.74645c9f.js => 205.471d40f8.js} (97%) rename docs/3.1.0/assets/js/{206.df707f94.js => 206.9d293c71.js} (95%) rename docs/3.1.0/assets/js/{207.5e69c18f.js => 207.8219847c.js} (100%) rename docs/3.1.0/assets/js/{208.a901b32b.js => 208.7b13d4e9.js} (96%) rename docs/3.1.0/assets/js/{209.d4796577.js => 209.28467871.js} (97%) delete mode 100644 docs/3.1.0/assets/js/21.ea4083d6.js create mode 100644 docs/3.1.0/assets/js/21.fee6e631.js rename docs/3.1.0/assets/js/{210.a6fc9055.js => 210.53598657.js} (97%) rename docs/3.1.0/assets/js/{211.628fa940.js => 211.d9c2da28.js} (97%) rename docs/3.1.0/assets/js/{212.396efa31.js => 212.2e9df0fb.js} (98%) rename docs/3.1.0/assets/js/{213.e5cbe7f9.js => 213.016ba575.js} (97%) rename docs/3.1.0/assets/js/{214.79aef690.js => 214.9581b08a.js} (97%) rename docs/3.1.0/assets/js/{215.7a6e4bab.js => 215.903d226f.js} (100%) rename docs/3.1.0/assets/js/{216.4415816e.js => 216.35952ef4.js} (97%) rename docs/3.1.0/assets/js/{217.9d8991ac.js => 217.9d5607f9.js} (98%) rename docs/3.1.0/assets/js/{218.e898fcfc.js => 218.d6c62cbb.js} (97%) rename docs/3.1.0/assets/js/{219.6b713d5d.js => 219.fffb530f.js} (98%) create mode 100644 docs/3.1.0/assets/js/22.5703057f.js delete mode 100644 docs/3.1.0/assets/js/22.75ef9757.js rename docs/3.1.0/assets/js/{220.f648efee.js => 220.6fcc9be7.js} (97%) rename docs/3.1.0/assets/js/{221.a7c256ad.js => 221.0badbc01.js} (97%) rename docs/3.1.0/assets/js/{222.8dc45fcf.js => 222.d26db47d.js} (100%) rename docs/3.1.0/assets/js/{223.0046eb65.js => 223.97b2025d.js} (97%) rename docs/3.1.0/assets/js/{224.ba6b9714.js => 224.5757c412.js} (96%) rename docs/3.1.0/assets/js/{225.47608bac.js => 225.4a17da2d.js} (95%) rename docs/3.1.0/assets/js/{226.61d91c04.js => 226.9aa0a8fc.js} (98%) rename docs/3.1.0/assets/js/{227.198c9166.js => 227.1ae5f133.js} (96%) rename docs/3.1.0/assets/js/{228.b0349dda.js => 228.cc4dbf95.js} (97%) rename docs/3.1.0/assets/js/{229.51ec6bd7.js => 229.251d8765.js} (97%) create mode 100644 docs/3.1.0/assets/js/23.134ecae5.js delete mode 100644 docs/3.1.0/assets/js/23.f0778fc2.js rename docs/3.1.0/assets/js/{230.deb69283.js => 230.2695cca3.js} (98%) rename docs/3.1.0/assets/js/{231.a0f70811.js => 231.ec9b28e6.js} (96%) rename docs/3.1.0/assets/js/{232.fcd02ed5.js => 232.f27f6418.js} (97%) rename docs/3.1.0/assets/js/{233.a83e7350.js => 233.155ff8a1.js} (96%) rename docs/3.1.0/assets/js/{234.46ceae46.js => 234.abea39d7.js} (96%) rename docs/3.1.0/assets/js/{235.d7428a3d.js => 235.6160b7ca.js} (96%) rename docs/3.1.0/assets/js/{236.c3986800.js => 236.8449bd12.js} (97%) rename docs/3.1.0/assets/js/{237.fca5b311.js => 237.39e18457.js} (96%) rename docs/3.1.0/assets/js/{238.521ea89e.js => 238.a35df5d4.js} (96%) rename docs/3.1.0/assets/js/{239.5af05e65.js => 239.ecf8e4da.js} (98%) create mode 100644 docs/3.1.0/assets/js/24.266144a9.js delete mode 100644 docs/3.1.0/assets/js/24.b3cb60bf.js rename docs/3.1.0/assets/js/{240.e4073758.js => 240.96c3a582.js} (97%) rename docs/3.1.0/assets/js/{241.223589aa.js => 241.898273af.js} (97%) rename docs/3.1.0/assets/js/{242.464e4f88.js => 242.2ce1e199.js} (97%) delete mode 100644 docs/3.1.0/assets/js/25.49354505.js create mode 100644 docs/3.1.0/assets/js/25.5f549319.js create mode 100644 docs/3.1.0/assets/js/26.353585cd.js delete mode 100644 docs/3.1.0/assets/js/26.5cd11368.js create mode 100644 docs/3.1.0/assets/js/27.b322463a.js delete mode 100644 docs/3.1.0/assets/js/27.f3557547.js delete mode 100644 docs/3.1.0/assets/js/28.97e1e48f.js create mode 100644 docs/3.1.0/assets/js/28.ba867bf5.js rename docs/3.1.0/assets/js/{29.32dffc05.js => 29.f82ad649.js} (76%) rename docs/3.1.0/assets/js/{3.070dc659.js => 3.f47fb655.js} (100%) delete mode 100644 docs/3.1.0/assets/js/30.5783407f.js create mode 100644 docs/3.1.0/assets/js/30.c6424404.js delete mode 100644 docs/3.1.0/assets/js/31.7a567ad0.js create mode 100644 docs/3.1.0/assets/js/31.c150cc00.js delete mode 100644 docs/3.1.0/assets/js/32.3cb42dd2.js create mode 100644 docs/3.1.0/assets/js/32.5ba19999.js delete mode 100644 docs/3.1.0/assets/js/33.04619ac5.js create mode 100644 docs/3.1.0/assets/js/33.886e86c0.js delete mode 100644 docs/3.1.0/assets/js/34.139281d5.js create mode 100644 docs/3.1.0/assets/js/34.e6a38b20.js create mode 100644 docs/3.1.0/assets/js/35.2bc7aed5.js delete mode 100644 docs/3.1.0/assets/js/35.fbfa4c98.js create mode 100644 docs/3.1.0/assets/js/36.a4911720.js delete mode 100644 docs/3.1.0/assets/js/36.cfe2dfd0.js create mode 100644 docs/3.1.0/assets/js/37.b47c5714.js delete mode 100644 docs/3.1.0/assets/js/37.d17ee4cf.js delete mode 100644 docs/3.1.0/assets/js/38.485e4dd3.js create mode 100644 docs/3.1.0/assets/js/38.cd9de92b.js delete mode 100644 docs/3.1.0/assets/js/39.4f741a92.js create mode 100644 docs/3.1.0/assets/js/39.804db20b.js rename docs/3.1.0/assets/js/{4.ce242792.js => 4.02ebacaa.js} (100%) create mode 100644 docs/3.1.0/assets/js/40.2b5bc944.js delete mode 100644 docs/3.1.0/assets/js/40.3566dbd1.js delete mode 100644 docs/3.1.0/assets/js/41.46ae730a.js create mode 100644 docs/3.1.0/assets/js/41.ffdbe277.js delete mode 100644 docs/3.1.0/assets/js/42.670bd41a.js create mode 100644 docs/3.1.0/assets/js/42.861beeb2.js rename docs/3.1.0/assets/js/{43.99e62d17.js => 43.eaeffe1e.js} (73%) rename docs/3.1.0/assets/js/{44.f2a002b7.js => 44.a272b2bf.js} (65%) create mode 100644 docs/3.1.0/assets/js/45.1c977b10.js delete mode 100644 docs/3.1.0/assets/js/45.ec8e59c9.js delete mode 100644 docs/3.1.0/assets/js/46.84622a0b.js create mode 100644 docs/3.1.0/assets/js/46.e4570fef.js create mode 100644 docs/3.1.0/assets/js/47.888e1be0.js delete mode 100644 docs/3.1.0/assets/js/47.e97a844c.js rename docs/3.1.0/assets/js/{48.a98c8b58.js => 48.3d2b6dae.js} (51%) create mode 100644 docs/3.1.0/assets/js/49.a9354155.js delete mode 100644 docs/3.1.0/assets/js/49.dd5207d9.js delete mode 100644 docs/3.1.0/assets/js/50.b539434c.js create mode 100644 docs/3.1.0/assets/js/50.ece980c4.js create mode 100644 docs/3.1.0/assets/js/51.4ce2ec8a.js delete mode 100644 docs/3.1.0/assets/js/51.780cd47d.js create mode 100644 docs/3.1.0/assets/js/52.44c00e86.js delete mode 100644 docs/3.1.0/assets/js/52.a1330943.js delete mode 100644 docs/3.1.0/assets/js/53.6f12fc3c.js create mode 100644 docs/3.1.0/assets/js/53.df736d99.js delete mode 100644 docs/3.1.0/assets/js/54.29b9b9a7.js create mode 100644 docs/3.1.0/assets/js/54.3cb944cc.js create mode 100644 docs/3.1.0/assets/js/55.49c0fd5c.js delete mode 100644 docs/3.1.0/assets/js/55.93c18df5.js create mode 100644 docs/3.1.0/assets/js/56.8beb8892.js delete mode 100644 docs/3.1.0/assets/js/56.e7730f5b.js create mode 100644 docs/3.1.0/assets/js/57.62b24161.js delete mode 100644 docs/3.1.0/assets/js/57.a4d9f801.js rename docs/3.1.0/assets/js/{58.837a30e7.js => 58.a738cc24.js} (53%) delete mode 100644 docs/3.1.0/assets/js/59.cda3b460.js create mode 100644 docs/3.1.0/assets/js/59.faa2f5d2.js rename docs/3.1.0/assets/js/{6.51425ea4.js => 6.66c3a69e.js} (67%) create mode 100644 docs/3.1.0/assets/js/60.4b0ad5e2.js delete mode 100644 docs/3.1.0/assets/js/60.8987e982.js create mode 100644 docs/3.1.0/assets/js/61.0c94f87a.js delete mode 100644 docs/3.1.0/assets/js/61.d8d4483c.js create mode 100644 docs/3.1.0/assets/js/62.1955e3ef.js delete mode 100644 docs/3.1.0/assets/js/62.d2a0739e.js rename docs/3.1.0/assets/js/{63.38bf5ef9.js => 63.a2c68d92.js} (80%) delete mode 100644 docs/3.1.0/assets/js/64.1370b0c2.js create mode 100644 docs/3.1.0/assets/js/64.61e33bb7.js rename docs/3.1.0/assets/js/{65.c9ea7df7.js => 65.3ed92966.js} (58%) rename docs/3.1.0/assets/js/{66.c14fc7c9.js => 66.85ebdcec.js} (83%) rename docs/3.1.0/assets/js/{67.50df0fc7.js => 67.7fdf739f.js} (50%) delete mode 100644 docs/3.1.0/assets/js/68.7f6a9b2d.js create mode 100644 docs/3.1.0/assets/js/68.9ba7535b.js delete mode 100644 docs/3.1.0/assets/js/69.9baf5afd.js create mode 100644 docs/3.1.0/assets/js/69.e5b7dac5.js rename docs/3.1.0/assets/js/{7.a9072f57.js => 7.444ac8c1.js} (88%) delete mode 100644 docs/3.1.0/assets/js/70.3999b0cd.js create mode 100644 docs/3.1.0/assets/js/70.5f575655.js delete mode 100644 docs/3.1.0/assets/js/71.8b4b0011.js create mode 100644 docs/3.1.0/assets/js/71.e6886a7d.js create mode 100644 docs/3.1.0/assets/js/72.3cbbf440.js delete mode 100644 docs/3.1.0/assets/js/72.5b51c465.js delete mode 100644 docs/3.1.0/assets/js/73.24c14f7c.js create mode 100644 docs/3.1.0/assets/js/73.7e0c7b18.js create mode 100644 docs/3.1.0/assets/js/74.26bae493.js delete mode 100644 docs/3.1.0/assets/js/74.8446418e.js delete mode 100644 docs/3.1.0/assets/js/75.4ce5d7c0.js create mode 100644 docs/3.1.0/assets/js/75.9641c3e4.js delete mode 100644 docs/3.1.0/assets/js/76.497de90f.js create mode 100644 docs/3.1.0/assets/js/76.a2eb57f4.js delete mode 100644 docs/3.1.0/assets/js/77.9c7bbc3d.js create mode 100644 docs/3.1.0/assets/js/77.aa12d9c5.js delete mode 100644 docs/3.1.0/assets/js/78.52cd58bc.js create mode 100644 docs/3.1.0/assets/js/78.5b5597b6.js delete mode 100644 docs/3.1.0/assets/js/79.260b827c.js create mode 100644 docs/3.1.0/assets/js/79.a436a5a4.js rename docs/3.1.0/assets/js/{8.f223931f.js => 8.213592ca.js} (100%) delete mode 100644 docs/3.1.0/assets/js/80.5e6c45b3.js create mode 100644 docs/3.1.0/assets/js/80.98082ae7.js create mode 100644 docs/3.1.0/assets/js/81.3c4dfdab.js delete mode 100644 docs/3.1.0/assets/js/81.4c7bb29c.js rename docs/3.1.0/assets/js/{82.69931859.js => 82.847186b1.js} (86%) rename docs/3.1.0/assets/js/{83.9bdbc6a6.js => 83.1464037a.js} (58%) create mode 100644 docs/3.1.0/assets/js/84.6c883a62.js delete mode 100644 docs/3.1.0/assets/js/84.f8ea29f0.js rename docs/3.1.0/assets/js/{85.57e607be.js => 85.ce19abc2.js} (86%) create mode 100644 docs/3.1.0/assets/js/86.44f69d78.js delete mode 100644 docs/3.1.0/assets/js/86.5d09beae.js rename docs/3.1.0/assets/js/{87.563ac9a5.js => 87.3639bc16.js} (51%) create mode 100644 docs/3.1.0/assets/js/88.14645b1d.js delete mode 100644 docs/3.1.0/assets/js/88.733e93fc.js delete mode 100644 docs/3.1.0/assets/js/89.58797237.js create mode 100644 docs/3.1.0/assets/js/89.f6686130.js create mode 100644 docs/3.1.0/assets/js/9.97a769a4.js delete mode 100644 docs/3.1.0/assets/js/9.e5e73499.js create mode 100644 docs/3.1.0/assets/js/90.71dfc67f.js delete mode 100644 docs/3.1.0/assets/js/90.d8d0c996.js create mode 100644 docs/3.1.0/assets/js/91.2a2bd3d2.js delete mode 100644 docs/3.1.0/assets/js/91.a1147597.js create mode 100644 docs/3.1.0/assets/js/92.1906a5fc.js delete mode 100644 docs/3.1.0/assets/js/92.210e2a60.js rename docs/3.1.0/assets/js/{93.7195b379.js => 93.040a325e.js} (50%) delete mode 100644 docs/3.1.0/assets/js/94.432699f0.js create mode 100644 docs/3.1.0/assets/js/94.e69ba595.js create mode 100644 docs/3.1.0/assets/js/95.9d59b30f.js delete mode 100644 docs/3.1.0/assets/js/95.a2e1a5ff.js create mode 100644 docs/3.1.0/assets/js/96.281b52d0.js delete mode 100644 docs/3.1.0/assets/js/96.4d8361de.js delete mode 100644 docs/3.1.0/assets/js/97.0f2a709e.js create mode 100644 docs/3.1.0/assets/js/97.5181339d.js delete mode 100644 docs/3.1.0/assets/js/98.b599422a.js create mode 100644 docs/3.1.0/assets/js/98.c10d3dd8.js rename docs/3.1.0/assets/js/{99.ca867651.js => 99.43c1ef40.js} (84%) create mode 100644 docs/3.1.0/assets/js/app.0ddc5917.js delete mode 100644 docs/3.1.0/assets/js/app.b19e82cf.js diff --git a/docs/3.1.0/404.html b/docs/3.1.0/404.html index d867f1a548..2197f1ee9b 100644 --- a/docs/3.1.0/404.html +++ b/docs/3.1.0/404.html @@ -7,11 +7,11 @@ - - + +
- + diff --git a/docs/3.1.0/api/classes/animation.html b/docs/3.1.0/api/classes/animation.html index 3ee105631f..4c4d784bf3 100644 --- a/docs/3.1.0/api/classes/animation.html +++ b/docs/3.1.0/api/classes/animation.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/classes/animations.html b/docs/3.1.0/api/classes/animations.html index 4341d6b179..3b9e99df42 100644 --- a/docs/3.1.0/api/classes/animations.html +++ b/docs/3.1.0/api/classes/animations.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/classes/animator.html b/docs/3.1.0/api/classes/animator.html index 824b350571..37a9e2a31c 100644 --- a/docs/3.1.0/api/classes/animator.html +++ b/docs/3.1.0/api/classes/animator.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/classes/baseplatform.html b/docs/3.1.0/api/classes/baseplatform.html index 81b8a8923c..75afbf70bf 100644 --- a/docs/3.1.0/api/classes/baseplatform.html +++ b/docs/3.1.0/api/classes/baseplatform.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/classes/basicplatform.html b/docs/3.1.0/api/classes/basicplatform.html index b29fa40fac..cbf147a823 100644 --- a/docs/3.1.0/api/classes/basicplatform.html +++ b/docs/3.1.0/api/classes/basicplatform.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/classes/chart.html b/docs/3.1.0/api/classes/chart.html index f347aa4deb..8faedec57a 100644 --- a/docs/3.1.0/api/classes/chart.html +++ b/docs/3.1.0/api/classes/chart.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/classes/datasetcontroller.html b/docs/3.1.0/api/classes/datasetcontroller.html index d73867778b..12ba3269f2 100644 --- a/docs/3.1.0/api/classes/datasetcontroller.html +++ b/docs/3.1.0/api/classes/datasetcontroller.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/classes/domplatform.html b/docs/3.1.0/api/classes/domplatform.html index ca0b53ad5a..0ee18e0c38 100644 --- a/docs/3.1.0/api/classes/domplatform.html +++ b/docs/3.1.0/api/classes/domplatform.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/classes/scale.html b/docs/3.1.0/api/classes/scale.html index 2b122e969c..15905bb328 100644 --- a/docs/3.1.0/api/classes/scale.html +++ b/docs/3.1.0/api/classes/scale.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/enums/decimationalgorithm.html b/docs/3.1.0/api/enums/decimationalgorithm.html index a551e4fdd3..29da773969 100644 --- a/docs/3.1.0/api/enums/decimationalgorithm.html +++ b/docs/3.1.0/api/enums/decimationalgorithm.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/enums/updatemodeenum.html b/docs/3.1.0/api/enums/updatemodeenum.html index f945c5d4e1..a5a7e619ae 100644 --- a/docs/3.1.0/api/enums/updatemodeenum.html +++ b/docs/3.1.0/api/enums/updatemodeenum.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/index.html b/docs/3.1.0/api/index.html index eabf45746e..707dcb6217 100644 --- a/docs/3.1.0/api/index.html +++ b/docs/3.1.0/api/index.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/activedatapoint.html b/docs/3.1.0/api/interfaces/activedatapoint.html index b963321511..fad1140d4c 100644 --- a/docs/3.1.0/api/interfaces/activedatapoint.html +++ b/docs/3.1.0/api/interfaces/activedatapoint.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/activeelement.html b/docs/3.1.0/api/interfaces/activeelement.html index 7bc880655a..c0b1b251e4 100644 --- a/docs/3.1.0/api/interfaces/activeelement.html +++ b/docs/3.1.0/api/interfaces/activeelement.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/animationevent.html b/docs/3.1.0/api/interfaces/animationevent.html index 84bf104807..5e9bcad520 100644 --- a/docs/3.1.0/api/interfaces/animationevent.html +++ b/docs/3.1.0/api/interfaces/animationevent.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/arcborderradius.html b/docs/3.1.0/api/interfaces/arcborderradius.html index 6e7bbd2ddb..d41b3ce9de 100644 --- a/docs/3.1.0/api/interfaces/arcborderradius.html +++ b/docs/3.1.0/api/interfaces/arcborderradius.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/arcelement.html b/docs/3.1.0/api/interfaces/arcelement.html index 9534c34fb5..2cb9f06e20 100644 --- a/docs/3.1.0/api/interfaces/arcelement.html +++ b/docs/3.1.0/api/interfaces/arcelement.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/archoveroptions.html b/docs/3.1.0/api/interfaces/archoveroptions.html index 8b31a6df02..1e61c9ff31 100644 --- a/docs/3.1.0/api/interfaces/archoveroptions.html +++ b/docs/3.1.0/api/interfaces/archoveroptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/arcoptions.html b/docs/3.1.0/api/interfaces/arcoptions.html index 9a23357ff7..c00df80186 100644 --- a/docs/3.1.0/api/interfaces/arcoptions.html +++ b/docs/3.1.0/api/interfaces/arcoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/arcprops.html b/docs/3.1.0/api/interfaces/arcprops.html index 83f18566ca..f0168db51e 100644 --- a/docs/3.1.0/api/interfaces/arcprops.html +++ b/docs/3.1.0/api/interfaces/arcprops.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/barcontrollerchartoptions.html b/docs/3.1.0/api/interfaces/barcontrollerchartoptions.html index 29ad0d4c9a..1ef01a7124 100644 --- a/docs/3.1.0/api/interfaces/barcontrollerchartoptions.html +++ b/docs/3.1.0/api/interfaces/barcontrollerchartoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/barcontrollerdatasetoptions.html b/docs/3.1.0/api/interfaces/barcontrollerdatasetoptions.html index 3882a242e4..3f9848c0d5 100644 --- a/docs/3.1.0/api/interfaces/barcontrollerdatasetoptions.html +++ b/docs/3.1.0/api/interfaces/barcontrollerdatasetoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/barelement.html b/docs/3.1.0/api/interfaces/barelement.html index 3f86013fae..bc24f0f16f 100644 --- a/docs/3.1.0/api/interfaces/barelement.html +++ b/docs/3.1.0/api/interfaces/barelement.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/barhoveroptions.html b/docs/3.1.0/api/interfaces/barhoveroptions.html index 82d7e53db5..2650c6de19 100644 --- a/docs/3.1.0/api/interfaces/barhoveroptions.html +++ b/docs/3.1.0/api/interfaces/barhoveroptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/baroptions.html b/docs/3.1.0/api/interfaces/baroptions.html index bf314ba791..5bc1212fec 100644 --- a/docs/3.1.0/api/interfaces/baroptions.html +++ b/docs/3.1.0/api/interfaces/baroptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/barprops.html b/docs/3.1.0/api/interfaces/barprops.html index 0677d280d1..f941074cc1 100644 --- a/docs/3.1.0/api/interfaces/barprops.html +++ b/docs/3.1.0/api/interfaces/barprops.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/borderradius.html b/docs/3.1.0/api/interfaces/borderradius.html index b833438734..dbd095ad99 100644 --- a/docs/3.1.0/api/interfaces/borderradius.html +++ b/docs/3.1.0/api/interfaces/borderradius.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/bubblecontrollerdatasetoptions.html b/docs/3.1.0/api/interfaces/bubblecontrollerdatasetoptions.html index 5a6feead56..0c7a396e6c 100644 --- a/docs/3.1.0/api/interfaces/bubblecontrollerdatasetoptions.html +++ b/docs/3.1.0/api/interfaces/bubblecontrollerdatasetoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/bubbledatapoint.html b/docs/3.1.0/api/interfaces/bubbledatapoint.html index 281e519817..40cafd4ef4 100644 --- a/docs/3.1.0/api/interfaces/bubbledatapoint.html +++ b/docs/3.1.0/api/interfaces/bubbledatapoint.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/cartesianscaleoptions.html b/docs/3.1.0/api/interfaces/cartesianscaleoptions.html index 1e54a13c53..604f54c8ba 100644 --- a/docs/3.1.0/api/interfaces/cartesianscaleoptions.html +++ b/docs/3.1.0/api/interfaces/cartesianscaleoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/cartesianscaletyperegistry.html b/docs/3.1.0/api/interfaces/cartesianscaletyperegistry.html index 2e8016997c..ce5516dafe 100644 --- a/docs/3.1.0/api/interfaces/cartesianscaletyperegistry.html +++ b/docs/3.1.0/api/interfaces/cartesianscaletyperegistry.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/chartarea.html b/docs/3.1.0/api/interfaces/chartarea.html index af8fc2daf2..33f806dc2a 100644 --- a/docs/3.1.0/api/interfaces/chartarea.html +++ b/docs/3.1.0/api/interfaces/chartarea.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/chartcomponent.html b/docs/3.1.0/api/interfaces/chartcomponent.html index 2842e97ad0..d5b39ed540 100644 --- a/docs/3.1.0/api/interfaces/chartcomponent.html +++ b/docs/3.1.0/api/interfaces/chartcomponent.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/chartconfiguration.html b/docs/3.1.0/api/interfaces/chartconfiguration.html index e405005602..1a921dc37c 100644 --- a/docs/3.1.0/api/interfaces/chartconfiguration.html +++ b/docs/3.1.0/api/interfaces/chartconfiguration.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/chartdata.html b/docs/3.1.0/api/interfaces/chartdata.html index 3de59651e0..15a946f2a5 100644 --- a/docs/3.1.0/api/interfaces/chartdata.html +++ b/docs/3.1.0/api/interfaces/chartdata.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/chartdatasetproperties.html b/docs/3.1.0/api/interfaces/chartdatasetproperties.html index 59f92a1529..ab5421bcee 100644 --- a/docs/3.1.0/api/interfaces/chartdatasetproperties.html +++ b/docs/3.1.0/api/interfaces/chartdatasetproperties.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/chartevent.html b/docs/3.1.0/api/interfaces/chartevent.html index f9164db39a..5360ca189a 100644 --- a/docs/3.1.0/api/interfaces/chartevent.html +++ b/docs/3.1.0/api/interfaces/chartevent.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/chartmeta.html b/docs/3.1.0/api/interfaces/chartmeta.html index ccb0730e01..d6c354b8da 100644 --- a/docs/3.1.0/api/interfaces/chartmeta.html +++ b/docs/3.1.0/api/interfaces/chartmeta.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/charttyperegistry.html b/docs/3.1.0/api/interfaces/charttyperegistry.html index 22a1c5991a..9ca7be4de6 100644 --- a/docs/3.1.0/api/interfaces/charttyperegistry.html +++ b/docs/3.1.0/api/interfaces/charttyperegistry.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/commonelementoptions.html b/docs/3.1.0/api/interfaces/commonelementoptions.html index b4fd017b69..31437eb5f5 100644 --- a/docs/3.1.0/api/interfaces/commonelementoptions.html +++ b/docs/3.1.0/api/interfaces/commonelementoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/commonhoveroptions.html b/docs/3.1.0/api/interfaces/commonhoveroptions.html index 60c3fc588d..8f0e876f1f 100644 --- a/docs/3.1.0/api/interfaces/commonhoveroptions.html +++ b/docs/3.1.0/api/interfaces/commonhoveroptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/complexfilltarget.html b/docs/3.1.0/api/interfaces/complexfilltarget.html index 9ce4876148..48421c2865 100644 --- a/docs/3.1.0/api/interfaces/complexfilltarget.html +++ b/docs/3.1.0/api/interfaces/complexfilltarget.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/controllerdatasetoptions.html b/docs/3.1.0/api/interfaces/controllerdatasetoptions.html index b67614182a..82c83bd727 100644 --- a/docs/3.1.0/api/interfaces/controllerdatasetoptions.html +++ b/docs/3.1.0/api/interfaces/controllerdatasetoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/corechartoptions.html b/docs/3.1.0/api/interfaces/corechartoptions.html index c039c5ce8d..0f6e6b5237 100644 --- a/docs/3.1.0/api/interfaces/corechartoptions.html +++ b/docs/3.1.0/api/interfaces/corechartoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/coreinteractionoptions.html b/docs/3.1.0/api/interfaces/coreinteractionoptions.html index 2160953d4d..6a0758b44d 100644 --- a/docs/3.1.0/api/interfaces/coreinteractionoptions.html +++ b/docs/3.1.0/api/interfaces/coreinteractionoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/corescaleoptions.html b/docs/3.1.0/api/interfaces/corescaleoptions.html index 9d84fdaa69..81d62621b9 100644 --- a/docs/3.1.0/api/interfaces/corescaleoptions.html +++ b/docs/3.1.0/api/interfaces/corescaleoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/datasetcontrollerchartcomponent.html b/docs/3.1.0/api/interfaces/datasetcontrollerchartcomponent.html index 99c36dd2d7..df6be92a08 100644 --- a/docs/3.1.0/api/interfaces/datasetcontrollerchartcomponent.html +++ b/docs/3.1.0/api/interfaces/datasetcontrollerchartcomponent.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/dateadapter.html b/docs/3.1.0/api/interfaces/dateadapter.html index 018e36f917..33113372d7 100644 --- a/docs/3.1.0/api/interfaces/dateadapter.html +++ b/docs/3.1.0/api/interfaces/dateadapter.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/defaults.html b/docs/3.1.0/api/interfaces/defaults.html index 0979205168..23eca8c975 100644 --- a/docs/3.1.0/api/interfaces/defaults.html +++ b/docs/3.1.0/api/interfaces/defaults.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/doughnutanimationoptions.html b/docs/3.1.0/api/interfaces/doughnutanimationoptions.html index c88fade63a..856e31db90 100644 --- a/docs/3.1.0/api/interfaces/doughnutanimationoptions.html +++ b/docs/3.1.0/api/interfaces/doughnutanimationoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/doughnutcontroller.html b/docs/3.1.0/api/interfaces/doughnutcontroller.html index 8054bd71ae..0355220715 100644 --- a/docs/3.1.0/api/interfaces/doughnutcontroller.html +++ b/docs/3.1.0/api/interfaces/doughnutcontroller.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/doughnutcontrollerchartoptions.html b/docs/3.1.0/api/interfaces/doughnutcontrollerchartoptions.html index 7028ef2ca4..b474550012 100644 --- a/docs/3.1.0/api/interfaces/doughnutcontrollerchartoptions.html +++ b/docs/3.1.0/api/interfaces/doughnutcontrollerchartoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/doughnutcontrollerdatasetoptions.html b/docs/3.1.0/api/interfaces/doughnutcontrollerdatasetoptions.html index d1649176af..53fc28c4e5 100644 --- a/docs/3.1.0/api/interfaces/doughnutcontrollerdatasetoptions.html +++ b/docs/3.1.0/api/interfaces/doughnutcontrollerdatasetoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/element.html b/docs/3.1.0/api/interfaces/element.html index d7d39b217d..231d5cf395 100644 --- a/docs/3.1.0/api/interfaces/element.html +++ b/docs/3.1.0/api/interfaces/element.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/elementchartoptions.html b/docs/3.1.0/api/interfaces/elementchartoptions.html index e9fea311d3..735cfa9475 100644 --- a/docs/3.1.0/api/interfaces/elementchartoptions.html +++ b/docs/3.1.0/api/interfaces/elementchartoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/elementoptionsbytype.html b/docs/3.1.0/api/interfaces/elementoptionsbytype.html index 23ff17f2bf..79b2eeed5a 100644 --- a/docs/3.1.0/api/interfaces/elementoptionsbytype.html +++ b/docs/3.1.0/api/interfaces/elementoptionsbytype.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/extendedplugin.html b/docs/3.1.0/api/interfaces/extendedplugin.html index f7ac0eb7f1..1792a96ea8 100644 --- a/docs/3.1.0/api/interfaces/extendedplugin.html +++ b/docs/3.1.0/api/interfaces/extendedplugin.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/fillercontrollerdatasetoptions.html b/docs/3.1.0/api/interfaces/fillercontrollerdatasetoptions.html index fde9694721..8f1da636c7 100644 --- a/docs/3.1.0/api/interfaces/fillercontrollerdatasetoptions.html +++ b/docs/3.1.0/api/interfaces/fillercontrollerdatasetoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/filleroptions.html b/docs/3.1.0/api/interfaces/filleroptions.html index d54822a8c5..a7a74b8778 100644 --- a/docs/3.1.0/api/interfaces/filleroptions.html +++ b/docs/3.1.0/api/interfaces/filleroptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/fontspec.html b/docs/3.1.0/api/interfaces/fontspec.html index f7dfed0821..b52bc02ad9 100644 --- a/docs/3.1.0/api/interfaces/fontspec.html +++ b/docs/3.1.0/api/interfaces/fontspec.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/gridlineoptions.html b/docs/3.1.0/api/interfaces/gridlineoptions.html index 1436a981d7..cc742edf89 100644 --- a/docs/3.1.0/api/interfaces/gridlineoptions.html +++ b/docs/3.1.0/api/interfaces/gridlineoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/interactionitem.html b/docs/3.1.0/api/interfaces/interactionitem.html index 0361713e34..5addbf0a30 100644 --- a/docs/3.1.0/api/interfaces/interactionitem.html +++ b/docs/3.1.0/api/interfaces/interactionitem.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/interactionmodemap.html b/docs/3.1.0/api/interfaces/interactionmodemap.html index 959e1342b6..e05e73c025 100644 --- a/docs/3.1.0/api/interfaces/interactionmodemap.html +++ b/docs/3.1.0/api/interfaces/interactionmodemap.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/interactionoptions.html b/docs/3.1.0/api/interfaces/interactionoptions.html index 7809a0295e..2aab415356 100644 --- a/docs/3.1.0/api/interfaces/interactionoptions.html +++ b/docs/3.1.0/api/interfaces/interactionoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/layoutitem.html b/docs/3.1.0/api/interfaces/layoutitem.html index 49400fc483..ebd6eecdf4 100644 --- a/docs/3.1.0/api/interfaces/layoutitem.html +++ b/docs/3.1.0/api/interfaces/layoutitem.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/legendelement.html b/docs/3.1.0/api/interfaces/legendelement.html index f467d06a29..0a5d56049c 100644 --- a/docs/3.1.0/api/interfaces/legendelement.html +++ b/docs/3.1.0/api/interfaces/legendelement.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/legenditem.html b/docs/3.1.0/api/interfaces/legenditem.html index 70484850b0..b85d3fc0e7 100644 --- a/docs/3.1.0/api/interfaces/legenditem.html +++ b/docs/3.1.0/api/interfaces/legenditem.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/legendoptions.html b/docs/3.1.0/api/interfaces/legendoptions.html index 0e86c8d0ad..e4d98bfb54 100644 --- a/docs/3.1.0/api/interfaces/legendoptions.html +++ b/docs/3.1.0/api/interfaces/legendoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/linecontrollerchartoptions.html b/docs/3.1.0/api/interfaces/linecontrollerchartoptions.html index 98a7125dcc..c5a6a26128 100644 --- a/docs/3.1.0/api/interfaces/linecontrollerchartoptions.html +++ b/docs/3.1.0/api/interfaces/linecontrollerchartoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/linecontrollerdatasetoptions.html b/docs/3.1.0/api/interfaces/linecontrollerdatasetoptions.html index 2bee17dbf2..93011949ac 100644 --- a/docs/3.1.0/api/interfaces/linecontrollerdatasetoptions.html +++ b/docs/3.1.0/api/interfaces/linecontrollerdatasetoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/lineelement.html b/docs/3.1.0/api/interfaces/lineelement.html index 465a21e022..1e0cc0b53b 100644 --- a/docs/3.1.0/api/interfaces/lineelement.html +++ b/docs/3.1.0/api/interfaces/lineelement.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/linehoveroptions.html b/docs/3.1.0/api/interfaces/linehoveroptions.html index 6d58379ad9..8fc30358c6 100644 --- a/docs/3.1.0/api/interfaces/linehoveroptions.html +++ b/docs/3.1.0/api/interfaces/linehoveroptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/lineoptions.html b/docs/3.1.0/api/interfaces/lineoptions.html index 51d78fa3df..93ac40d75c 100644 --- a/docs/3.1.0/api/interfaces/lineoptions.html +++ b/docs/3.1.0/api/interfaces/lineoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/lineprops.html b/docs/3.1.0/api/interfaces/lineprops.html index 547adac257..0de20f8417 100644 --- a/docs/3.1.0/api/interfaces/lineprops.html +++ b/docs/3.1.0/api/interfaces/lineprops.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/parsingoptions.html b/docs/3.1.0/api/interfaces/parsingoptions.html index 11763c8966..5da84c5f2f 100644 --- a/docs/3.1.0/api/interfaces/parsingoptions.html +++ b/docs/3.1.0/api/interfaces/parsingoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/plugin.html b/docs/3.1.0/api/interfaces/plugin.html index 5cf7931c79..83f6a92613 100644 --- a/docs/3.1.0/api/interfaces/plugin.html +++ b/docs/3.1.0/api/interfaces/plugin.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/pluginchartoptions.html b/docs/3.1.0/api/interfaces/pluginchartoptions.html index adfab7eb76..72eee40a8d 100644 --- a/docs/3.1.0/api/interfaces/pluginchartoptions.html +++ b/docs/3.1.0/api/interfaces/pluginchartoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/pluginoptionsbytype.html b/docs/3.1.0/api/interfaces/pluginoptionsbytype.html index f6e8b9e503..8885448dfc 100644 --- a/docs/3.1.0/api/interfaces/pluginoptionsbytype.html +++ b/docs/3.1.0/api/interfaces/pluginoptionsbytype.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/point.html b/docs/3.1.0/api/interfaces/point.html index 5c1e6c6985..14f59146ad 100644 --- a/docs/3.1.0/api/interfaces/point.html +++ b/docs/3.1.0/api/interfaces/point.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/pointelement.html b/docs/3.1.0/api/interfaces/pointelement.html index 81d605a29c..1dd1afe743 100644 --- a/docs/3.1.0/api/interfaces/pointelement.html +++ b/docs/3.1.0/api/interfaces/pointelement.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/pointhoveroptions.html b/docs/3.1.0/api/interfaces/pointhoveroptions.html index b8a56ef3c9..ab6ebadebc 100644 --- a/docs/3.1.0/api/interfaces/pointhoveroptions.html +++ b/docs/3.1.0/api/interfaces/pointhoveroptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/pointoptions.html b/docs/3.1.0/api/interfaces/pointoptions.html index 40ed2fb6f4..1d03659dd6 100644 --- a/docs/3.1.0/api/interfaces/pointoptions.html +++ b/docs/3.1.0/api/interfaces/pointoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/pointprefixedhoveroptions.html b/docs/3.1.0/api/interfaces/pointprefixedhoveroptions.html index 8fc7f1acf3..9a4178ff7e 100644 --- a/docs/3.1.0/api/interfaces/pointprefixedhoveroptions.html +++ b/docs/3.1.0/api/interfaces/pointprefixedhoveroptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/pointprefixedoptions.html b/docs/3.1.0/api/interfaces/pointprefixedoptions.html index 0149ddc186..5d2310c817 100644 --- a/docs/3.1.0/api/interfaces/pointprefixedoptions.html +++ b/docs/3.1.0/api/interfaces/pointprefixedoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/pointprops.html b/docs/3.1.0/api/interfaces/pointprops.html index fc70d35bcf..2c43bf3928 100644 --- a/docs/3.1.0/api/interfaces/pointprops.html +++ b/docs/3.1.0/api/interfaces/pointprops.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/polarareacontroller.html b/docs/3.1.0/api/interfaces/polarareacontroller.html index 1cadd8219c..5770c4baaa 100644 --- a/docs/3.1.0/api/interfaces/polarareacontroller.html +++ b/docs/3.1.0/api/interfaces/polarareacontroller.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/polarareacontrollerchartoptions.html b/docs/3.1.0/api/interfaces/polarareacontrollerchartoptions.html index 441379f193..5e6812bc11 100644 --- a/docs/3.1.0/api/interfaces/polarareacontrollerchartoptions.html +++ b/docs/3.1.0/api/interfaces/polarareacontrollerchartoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/polarareacontrollerdatasetoptions.html b/docs/3.1.0/api/interfaces/polarareacontrollerdatasetoptions.html index 5f7a5d25a6..9c02cc2e92 100644 --- a/docs/3.1.0/api/interfaces/polarareacontrollerdatasetoptions.html +++ b/docs/3.1.0/api/interfaces/polarareacontrollerdatasetoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/radarcontrollerdatasetoptions.html b/docs/3.1.0/api/interfaces/radarcontrollerdatasetoptions.html index c6a92f9fcb..d8be6e1a83 100644 --- a/docs/3.1.0/api/interfaces/radarcontrollerdatasetoptions.html +++ b/docs/3.1.0/api/interfaces/radarcontrollerdatasetoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/radiallinearscale.html b/docs/3.1.0/api/interfaces/radiallinearscale.html index ef55981ae8..573c7cc204 100644 --- a/docs/3.1.0/api/interfaces/radiallinearscale.html +++ b/docs/3.1.0/api/interfaces/radiallinearscale.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/radialscaletyperegistry.html b/docs/3.1.0/api/interfaces/radialscaletyperegistry.html index ff3ec25bba..7ca5d20285 100644 --- a/docs/3.1.0/api/interfaces/radialscaletyperegistry.html +++ b/docs/3.1.0/api/interfaces/radialscaletyperegistry.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/registry.html b/docs/3.1.0/api/interfaces/registry.html index 3f6ecf1e0f..d010992f7e 100644 --- a/docs/3.1.0/api/interfaces/registry.html +++ b/docs/3.1.0/api/interfaces/registry.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/scaletyperegistry.html b/docs/3.1.0/api/interfaces/scaletyperegistry.html index 4ccdb399f7..0fdff423b8 100644 --- a/docs/3.1.0/api/interfaces/scaletyperegistry.html +++ b/docs/3.1.0/api/interfaces/scaletyperegistry.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/scatterdatapoint.html b/docs/3.1.0/api/interfaces/scatterdatapoint.html index 9c4ef90d1d..dd54fd42b8 100644 --- a/docs/3.1.0/api/interfaces/scatterdatapoint.html +++ b/docs/3.1.0/api/interfaces/scatterdatapoint.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/scriptablecontext.html b/docs/3.1.0/api/interfaces/scriptablecontext.html index 0074b9fbaa..e03634aeab 100644 --- a/docs/3.1.0/api/interfaces/scriptablecontext.html +++ b/docs/3.1.0/api/interfaces/scriptablecontext.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/scriptablelinesegmentcontext.html b/docs/3.1.0/api/interfaces/scriptablelinesegmentcontext.html index 53c01434ed..6f151f70a5 100644 --- a/docs/3.1.0/api/interfaces/scriptablelinesegmentcontext.html +++ b/docs/3.1.0/api/interfaces/scriptablelinesegmentcontext.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/scriptablescalecontext.html b/docs/3.1.0/api/interfaces/scriptablescalecontext.html index e0100643aa..958d02b12e 100644 --- a/docs/3.1.0/api/interfaces/scriptablescalecontext.html +++ b/docs/3.1.0/api/interfaces/scriptablescalecontext.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/scriptabletooltipcontext.html b/docs/3.1.0/api/interfaces/scriptabletooltipcontext.html index 8f3246399b..61de327bb0 100644 --- a/docs/3.1.0/api/interfaces/scriptabletooltipcontext.html +++ b/docs/3.1.0/api/interfaces/scriptabletooltipcontext.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/segment.html b/docs/3.1.0/api/interfaces/segment.html index 09e76045b6..f53a16a58f 100644 --- a/docs/3.1.0/api/interfaces/segment.html +++ b/docs/3.1.0/api/interfaces/segment.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/tick.html b/docs/3.1.0/api/interfaces/tick.html index afaec3b98f..000250a054 100644 --- a/docs/3.1.0/api/interfaces/tick.html +++ b/docs/3.1.0/api/interfaces/tick.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/tickoptions.html b/docs/3.1.0/api/interfaces/tickoptions.html index 4b5e1c88a1..9990bc3384 100644 --- a/docs/3.1.0/api/interfaces/tickoptions.html +++ b/docs/3.1.0/api/interfaces/tickoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/timescale.html b/docs/3.1.0/api/interfaces/timescale.html index 472f6e38a9..be4f0783d8 100644 --- a/docs/3.1.0/api/interfaces/timescale.html +++ b/docs/3.1.0/api/interfaces/timescale.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/titleoptions.html b/docs/3.1.0/api/interfaces/titleoptions.html index 8b5294b21f..d027130d50 100644 --- a/docs/3.1.0/api/interfaces/titleoptions.html +++ b/docs/3.1.0/api/interfaces/titleoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/tooltipcallbacks.html b/docs/3.1.0/api/interfaces/tooltipcallbacks.html index f28e38be46..2017665df4 100644 --- a/docs/3.1.0/api/interfaces/tooltipcallbacks.html +++ b/docs/3.1.0/api/interfaces/tooltipcallbacks.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/tooltipitem.html b/docs/3.1.0/api/interfaces/tooltipitem.html index a67e4ea63e..b28578f1f7 100644 --- a/docs/3.1.0/api/interfaces/tooltipitem.html +++ b/docs/3.1.0/api/interfaces/tooltipitem.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/tooltiplabelstyle.html b/docs/3.1.0/api/interfaces/tooltiplabelstyle.html index 737ca43367..b7f69a74f3 100644 --- a/docs/3.1.0/api/interfaces/tooltiplabelstyle.html +++ b/docs/3.1.0/api/interfaces/tooltiplabelstyle.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/tooltipmodel.html b/docs/3.1.0/api/interfaces/tooltipmodel.html index ef87e30e8c..23d84d10e4 100644 --- a/docs/3.1.0/api/interfaces/tooltipmodel.html +++ b/docs/3.1.0/api/interfaces/tooltipmodel.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/tooltipoptions.html b/docs/3.1.0/api/interfaces/tooltipoptions.html index 876e052539..95c40ce435 100644 --- a/docs/3.1.0/api/interfaces/tooltipoptions.html +++ b/docs/3.1.0/api/interfaces/tooltipoptions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/typedregistry.html b/docs/3.1.0/api/interfaces/typedregistry.html index 1f3edfa7cc..a39e1054b0 100644 --- a/docs/3.1.0/api/interfaces/typedregistry.html +++ b/docs/3.1.0/api/interfaces/typedregistry.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/api/interfaces/visualelement.html b/docs/3.1.0/api/interfaces/visualelement.html index a828574ca0..d0e5d33b51 100644 --- a/docs/3.1.0/api/interfaces/visualelement.html +++ b/docs/3.1.0/api/interfaces/visualelement.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/assets/css/0.styles.9a47742e.css b/docs/3.1.0/assets/css/0.styles.1623ef7a.css similarity index 98% rename from docs/3.1.0/assets/css/0.styles.9a47742e.css rename to docs/3.1.0/assets/css/0.styles.1623ef7a.css index 4ba0431ab3..aaac71fbcf 100644 --- a/docs/3.1.0/assets/css/0.styles.9a47742e.css +++ b/docs/3.1.0/assets/css/0.styles.1623ef7a.css @@ -1 +1 @@ -@import url(https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/css/all.min.css);.dropdown-enter,.dropdown-leave-to{height:0!important}.dropdown-wrapper{cursor:pointer}.dropdown-wrapper .dropdown-title,.dropdown-wrapper .mobile-dropdown-title{display:block;font-size:.9rem;font-family:inherit;cursor:inherit;padding:inherit;line-height:1.4rem;background:transparent;border:none;font-weight:500;color:#404244}.dropdown-wrapper .dropdown-title:hover,.dropdown-wrapper .mobile-dropdown-title:hover{border-color:transparent}.dropdown-wrapper .dropdown-title .arrow,.dropdown-wrapper .mobile-dropdown-title .arrow{vertical-align:middle;margin-top:-1px;margin-left:.4rem}.dropdown-wrapper .mobile-dropdown-title{display:none;font-weight:600}.dropdown-wrapper .mobile-dropdown-title font-size inherit:hover{color:#3080d0}.dropdown-wrapper .nav-dropdown .dropdown-item{color:inherit;line-height:1.7rem}.dropdown-wrapper .nav-dropdown .dropdown-item h4{margin:.45rem 0 0;border-top:1px solid #eee;padding:1rem 1.5rem .45rem 1.25rem}.dropdown-wrapper .nav-dropdown .dropdown-item .dropdown-subitem-wrapper{padding:0;list-style:none}.dropdown-wrapper .nav-dropdown .dropdown-item .dropdown-subitem-wrapper .dropdown-subitem{font-size:.9em}.dropdown-wrapper .nav-dropdown .dropdown-item a{display:block;line-height:1.7rem;position:relative;border-bottom:none;font-weight:400;margin-bottom:0;padding:0 1.5rem 0 1.25rem}.dropdown-wrapper .nav-dropdown .dropdown-item a:hover{color:#3080d0}.dropdown-wrapper .nav-dropdown .dropdown-item a.router-link-active{color:#3080d0}.dropdown-wrapper .nav-dropdown .dropdown-item a.router-link-active:after{content:"";width:0;height:0;border-left:5px solid #3080d0;border-top:3px solid transparent;border-bottom:3px solid transparent;position:absolute;top:calc(50% - 2px);left:9px}.dropdown-wrapper .nav-dropdown .dropdown-item:first-child h4{margin-top:0;padding-top:0;border-top:0}@media (max-width:719px){.dropdown-wrapper.open .dropdown-title{margin-bottom:.5rem}.dropdown-wrapper .dropdown-title{display:none}.dropdown-wrapper .mobile-dropdown-title{display:block}.dropdown-wrapper .nav-dropdown{transition:height .1s ease-out;overflow:hidden}.dropdown-wrapper .nav-dropdown .dropdown-item h4{border-top:0;margin-top:0;padding-top:0}.dropdown-wrapper .nav-dropdown .dropdown-item>a,.dropdown-wrapper .nav-dropdown .dropdown-item h4{font-size:15px;line-height:2rem}.dropdown-wrapper .nav-dropdown .dropdown-item .dropdown-subitem{font-size:14px;padding-left:1rem}}@media (min-width:719px){.dropdown-wrapper{height:1.8rem}.dropdown-wrapper.open .nav-dropdown,.dropdown-wrapper:hover .nav-dropdown{display:block!important}.dropdown-wrapper.open:blur{display:none}.dropdown-wrapper .nav-dropdown{display:none;height:auto!important;box-sizing:border-box;max-height:calc(100vh - 2.7rem);overflow-y:auto;position:absolute;top:100%;right:0;background-color:#fff;padding:.6rem 0;border:1px solid;border-color:#ddd #ddd #ccc;text-align:left;border-radius:.25rem;white-space:nowrap;margin:0}}.versions-dropdown[data-v-3dd359e2]{display:inline-block;position:relative;outline:none}:not(.nav-links)>.versions-dropdown[data-v-3dd359e2]{margin:8px 16px}.versions-dropdown[data-v-3dd359e2] .dropdown-title,.versions-dropdown[data-v-3dd359e2] .dropdown-wrapper{outline:none}.versions-dropdown[data-v-3dd359e2] .dropdown-title .nav-dropdown,.versions-dropdown[data-v-3dd359e2] .dropdown-wrapper .nav-dropdown{right:auto}.versions-dropdown[data-v-3dd359e2] .nav-link{color:inherit}code[class*=language-],pre[class*=language-]{color:#ccc;background:none;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#2d2d2d}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.block-comment,.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#999}.token.punctuation{color:#ccc}.token.attr-name,.token.deleted,.token.namespace,.token.tag{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,.token.function,.token.number{color:#f08d49}.token.class-name,.token.constant,.token.property,.token.symbol{color:#f8c555}.token.atrule,.token.builtin,.token.important,.token.keyword,.token.selector{color:#cc99cd}.token.attr-value,.token.char,.token.regex,.token.string,.token.variable{color:#7ec699}.token.entity,.token.operator,.token.url{color:#67cdcc}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}.ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{height:15px;bottom:0}.ps__rail-x,.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;position:absolute}.ps__rail-y{width:15px;right:0}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px}.ps__thumb-x,.ps__thumb-y{background-color:#aaa;border-radius:6px;position:absolute}.ps__thumb-y{transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.ps{overflow:auto!important}}.ps{position:relative}.theme-default-content code{color:#65686b;padding:.25rem .5rem;margin:0;font-size:.85em;background-color:rgba(27,31,35,.05);border-radius:3px}.theme-default-content code .token.deleted{color:#ec5975}.theme-default-content code .token.inserted{color:#3080d0}.theme-default-content pre,.theme-default-content pre[class*=language-]{line-height:1.4;padding:1.25rem 1.5rem;margin:.85rem 0;background-color:#282c34;border-radius:6px;overflow:auto}.theme-default-content pre[class*=language-] code,.theme-default-content pre code{color:#fff;padding:0;background-color:transparent;border-radius:0}div[class*=language-]{position:relative;background-color:#282c34;border-radius:6px}div[class*=language-] .highlight-lines{-webkit-user-select:none;user-select:none;padding-top:1.3rem;position:absolute;top:0;left:0;width:100%;line-height:1.4}div[class*=language-] .highlight-lines .highlighted{background-color:rgba(0,0,0,.66)}div[class*=language-] pre,div[class*=language-] pre[class*=language-]{background:transparent;position:relative;z-index:1}div[class*=language-]:before{position:absolute;z-index:3;top:.8em;right:1em;font-size:.75rem;color:hsla(0,0%,100%,.4)}div[class*=language-]:not(.line-numbers-mode) .line-numbers-wrapper{display:none}div[class*=language-].line-numbers-mode .highlight-lines .highlighted{position:relative}div[class*=language-].line-numbers-mode .highlight-lines .highlighted:before{content:" ";position:absolute;z-index:3;left:0;top:0;display:block;width:3.5rem;height:100%;background-color:rgba(0,0,0,.66)}div[class*=language-].line-numbers-mode pre{padding-left:4.5rem;vertical-align:middle}div[class*=language-].line-numbers-mode .line-numbers-wrapper{position:absolute;top:0;width:3.5rem;text-align:center;color:hsla(0,0%,100%,.3);padding:1.25rem 0;line-height:1.4}div[class*=language-].line-numbers-mode .line-numbers-wrapper br{-webkit-user-select:none;user-select:none}div[class*=language-].line-numbers-mode .line-numbers-wrapper .line-number{position:relative;z-index:4;-webkit-user-select:none;user-select:none;font-size:.85em}div[class*=language-].line-numbers-mode:after{content:"";position:absolute;z-index:2;top:0;left:0;width:3.5rem;height:100%;border-radius:6px 0 0 6px;border-right:1px solid rgba(0,0,0,.66);background-color:#282c34}div[class~=language-js]:before{content:"js"}div[class~=language-ts]:before{content:"ts"}div[class~=language-html]:before{content:"html"}div[class~=language-md]:before{content:"md"}div[class~=language-vue]:before{content:"vue"}div[class~=language-css]:before{content:"css"}div[class~=language-sass]:before{content:"sass"}div[class~=language-scss]:before{content:"scss"}div[class~=language-less]:before{content:"less"}div[class~=language-stylus]:before{content:"stylus"}div[class~=language-go]:before{content:"go"}div[class~=language-java]:before{content:"java"}div[class~=language-c]:before{content:"c"}div[class~=language-sh]:before{content:"sh"}div[class~=language-yaml]:before{content:"yaml"}div[class~=language-py]:before{content:"py"}div[class~=language-docker]:before{content:"docker"}div[class~=language-dockerfile]:before{content:"dockerfile"}div[class~=language-makefile]:before{content:"makefile"}div[class~=language-javascript]:before{content:"js"}div[class~=language-typescript]:before{content:"ts"}div[class~=language-markup]:before{content:"html"}div[class~=language-markdown]:before{content:"md"}div[class~=language-json]:before{content:"json"}div[class~=language-ruby]:before{content:"rb"}div[class~=language-python]:before{content:"py"}div[class~=language-bash]:before{content:"sh"}div[class~=language-php]:before{content:"php"}.custom-block .custom-block-title{font-weight:600;margin-bottom:-.4rem}.custom-block.danger,.custom-block.tip,.custom-block.warning{padding:.1rem 1.5rem;border-left-width:.5rem;border-left-style:solid;margin:1rem 0}.custom-block.tip{background-color:#f3f5f7;border-color:#42b983}.custom-block.warning{background-color:rgba(255,229,100,.3);border-color:#e7c000;color:#6b5900}.custom-block.warning .custom-block-title{color:#b29400}.custom-block.warning a{color:#404244}.custom-block.danger{background-color:#ffe6e6;border-color:#c00;color:#4d0000}.custom-block.danger .custom-block-title{color:#900}.custom-block.danger a{color:#404244}.custom-block.details{display:block;position:relative;border-radius:2px;margin:1.6em 0;padding:1.6em;background-color:#eee}.custom-block.details h4{margin-top:0}.custom-block.details figure:last-child,.custom-block.details p:last-child{margin-bottom:0;padding-bottom:0}.custom-block.details summary{outline:none;cursor:pointer}.arrow{display:inline-block;width:0;height:0}.arrow.up{border-bottom:6px solid #ccc}.arrow.down,.arrow.up{border-left:4px solid transparent;border-right:4px solid transparent}.arrow.down{border-top:6px solid #ccc}.arrow.right{border-left:6px solid #ccc}.arrow.left,.arrow.right{border-top:4px solid transparent;border-bottom:4px solid transparent}.arrow.left{border-right:6px solid #ccc}.theme-default-content:not(.custom){max-width:768px;margin:0 auto;padding:2rem 2.5rem}@media (max-width:959px){.theme-default-content:not(.custom){padding:2rem}}@media (max-width:419px){.theme-default-content:not(.custom){padding:1.5rem}}.table-of-contents .badge{vertical-align:middle}body,html{padding:0;margin:0;background-color:#fff}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:16px;color:#404244}.page{padding-left:20rem}.navbar{z-index:20;right:0;height:4.25rem;background-color:#fff;box-sizing:border-box;border-bottom:1px solid #eaecef}.navbar,.sidebar-mask{position:fixed;top:0;left:0}.sidebar-mask{z-index:9;width:100vw;height:100vh;display:none}.sidebar{font-size:16px;background-color:#fff;width:20rem;position:fixed;z-index:10;margin:0;top:4.25rem;left:0;bottom:0;box-sizing:border-box;border-right:1px solid #eaecef;overflow-y:auto}.theme-default-content:not(.custom)>:first-child{margin-top:4.25rem}.theme-default-content:not(.custom) a:hover{text-decoration:underline}.theme-default-content:not(.custom) p.demo{padding:1rem 1.5rem;border:1px solid #ddd;border-radius:4px}.theme-default-content:not(.custom) img{max-width:100%}.theme-default-content.custom{padding:0;margin:0}.theme-default-content.custom img{max-width:100%}a{font-weight:500;text-decoration:none}a,p a code{color:#3080d0}p a code{font-weight:400}kbd{background:#eee;border:.15rem solid #ddd;border-bottom:.25rem solid #ddd;border-radius:.15rem;padding:0 .15em}blockquote{font-size:1rem;color:#999;border-left:.2rem solid #dfe2e5;margin:1rem 0;padding:.25rem 0 .25rem 1rem}blockquote>p{margin:0}ol,ul{padding-left:1.2em}strong{font-weight:600}h1,h2,h3,h4,h5,h6{font-weight:600;line-height:1.25}.theme-default-content:not(.custom)>h1,.theme-default-content:not(.custom)>h2,.theme-default-content:not(.custom)>h3,.theme-default-content:not(.custom)>h4,.theme-default-content:not(.custom)>h5,.theme-default-content:not(.custom)>h6{margin-top:-3.75rem;padding-top:5.25rem;margin-bottom:0}.theme-default-content:not(.custom)>h1:first-child,.theme-default-content:not(.custom)>h2:first-child,.theme-default-content:not(.custom)>h3:first-child,.theme-default-content:not(.custom)>h4:first-child,.theme-default-content:not(.custom)>h5:first-child,.theme-default-content:not(.custom)>h6:first-child{margin-top:-1.5rem;margin-bottom:1rem}.theme-default-content:not(.custom)>h1:first-child+.custom-block,.theme-default-content:not(.custom)>h1:first-child+p,.theme-default-content:not(.custom)>h1:first-child+pre,.theme-default-content:not(.custom)>h2:first-child+.custom-block,.theme-default-content:not(.custom)>h2:first-child+p,.theme-default-content:not(.custom)>h2:first-child+pre,.theme-default-content:not(.custom)>h3:first-child+.custom-block,.theme-default-content:not(.custom)>h3:first-child+p,.theme-default-content:not(.custom)>h3:first-child+pre,.theme-default-content:not(.custom)>h4:first-child+.custom-block,.theme-default-content:not(.custom)>h4:first-child+p,.theme-default-content:not(.custom)>h4:first-child+pre,.theme-default-content:not(.custom)>h5:first-child+.custom-block,.theme-default-content:not(.custom)>h5:first-child+p,.theme-default-content:not(.custom)>h5:first-child+pre,.theme-default-content:not(.custom)>h6:first-child+.custom-block,.theme-default-content:not(.custom)>h6:first-child+p,.theme-default-content:not(.custom)>h6:first-child+pre{margin-top:2rem}h1:focus .header-anchor,h1:hover .header-anchor,h2:focus .header-anchor,h2:hover .header-anchor,h3:focus .header-anchor,h3:hover .header-anchor,h4:focus .header-anchor,h4:hover .header-anchor,h5:focus .header-anchor,h5:hover .header-anchor,h6:focus .header-anchor,h6:hover .header-anchor{opacity:1}h1{font-size:2.2rem}h2{font-size:1.65rem;padding-bottom:.3rem;border-bottom:1px solid #eaecef}h3{font-size:1.35rem}a.header-anchor{font-size:.85em;float:left;margin-left:-.87em;padding-right:.23em;margin-top:.125em;opacity:0}a.header-anchor:focus,a.header-anchor:hover{text-decoration:none}.line-number,code,kbd{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}ol,p,ul{line-height:1.7}hr{border:0;border-top:1px solid #eaecef}table{border-collapse:collapse;margin:1rem 0;display:block;overflow-x:auto}tr{border-top:1px solid #dfe2e5}tr:nth-child(2n){background-color:#f6f8fa}td,th{border:1px solid #dfe2e5;padding:.6em 1em}.theme-container.sidebar-open .sidebar-mask{display:block}.theme-container.no-navbar .theme-default-content:not(.custom)>h1,.theme-container.no-navbar h2,.theme-container.no-navbar h3,.theme-container.no-navbar h4,.theme-container.no-navbar h5,.theme-container.no-navbar h6{margin-top:1.5rem;padding-top:0}.theme-container.no-navbar .sidebar{top:0}@media (min-width:720px){.theme-container.no-sidebar .sidebar{display:none}.theme-container.no-sidebar .page{padding-left:0}}@media (max-width:959px){.sidebar{font-size:15px;width:16.4rem}.page{padding-left:16.4rem}}@media (max-width:719px){.sidebar{top:0;padding-top:4.25rem;transform:translateX(-100%);transition:transform .2s ease}.page{padding-left:0}.theme-container.sidebar-open .sidebar{transform:translateX(0)}.theme-container.no-navbar .sidebar{padding-top:0}}@media (max-width:419px){h1{font-size:1.9rem}.theme-default-content div[class*=language-]{margin:.85rem -1.5rem;border-radius:0}}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:transparent!important}.prism-editor__textarea:focus{outline:none!important}.text-muted{opacity:.5!important}.text-error{color:#e05025!important}.theme-container .navbar .nav-link,.theme-container .navbar .repo-link,.theme-container .sidebar .nav-link,.theme-container .sidebar .repo-link{font-weight:700}.theme-container .navbar{box-shadow:0 8px 8px -10px rgba(0,0,0,.15);border:none}.theme-container .navbar .nav-links{margin-left:1rem}.theme-container .navbar .nav-links :first-child{margin-left:0}.theme-container .navbar .nav-links .nav-link:not(.external){border-bottom-width:4px;margin-top:-20px;padding-top:20px;padding-bottom:20px}.theme-container .navbar .logo{margin-right:.5rem;margin-top:.25rem;min-width:2.5rem;height:2.5rem}.theme-container .navbar .site-name{color:#ff6384;font-size:1.1rem}.theme-container .navbar .sidebar-button{margin:.375rem 0;height:auto;width:auto}.theme-container .search-box input{background-color:#f4f4f4;background-position:.75rem .55rem;border-radius:8px;border-color:transparent;border-width:2px;padding-left:2.2rem;height:2.2rem}.theme-container .search-box input:hover{border-color:rgba(0,0,0,.2);background-color:#fff}.theme-container .search-box input:focus{border-color:rgba(48,128,208,.8);background-color:#fff}.theme-container .sidebar{border-right:1px dashed #eee}.theme-container .sidebar .sidebar-heading,.theme-container .sidebar .sidebar-link{transition:border-color .25s;padding:.35rem 1.475rem}.theme-container .sidebar .sidebar-heading.active,.theme-container .sidebar .sidebar-link.active{font-weight:700}.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-heading,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-link,.theme-container .sidebar>.sidebar-links>li>.sidebar-heading,.theme-container .sidebar>.sidebar-links>li>.sidebar-link{align-items:center;display:flex;border:none}.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-heading:before,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-link:before,.theme-container .sidebar>.sidebar-links>li>.sidebar-heading:before,.theme-container .sidebar>.sidebar-links>li>.sidebar-link:before{content:"\2981";font-size:1.25rem;margin-right:.75rem;line-height:0;opacity:.25}.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-heading.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-heading.open,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-link.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-link.open,.theme-container .sidebar>.sidebar-links>li>.sidebar-heading.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-heading.open,.theme-container .sidebar>.sidebar-links>li>.sidebar-link.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-link.open{color:#3080d0}.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-heading.active:before,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-heading.open:before,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-link.active:before,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-link.open:before,.theme-container .sidebar>.sidebar-links>li>.sidebar-heading.active:before,.theme-container .sidebar>.sidebar-links>li>.sidebar-heading.open:before,.theme-container .sidebar>.sidebar-links>li>.sidebar-link.active:before,.theme-container .sidebar>.sidebar-links>li>.sidebar-link.open:before{opacity:1}.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-heading .arrow,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-link .arrow,.theme-container .sidebar>.sidebar-links>li>.sidebar-heading .arrow,.theme-container .sidebar>.sidebar-links>li>.sidebar-link .arrow{display:none}.theme-container .sidebar>.sidebar-links>li>.sidebar-group-items,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-group-items,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-sub-headers,.theme-container .sidebar>.sidebar-links>li>.sidebar-sub-headers{padding-left:1.75rem}.theme-container .sidebar>.sidebar-links>li>.sidebar-group-items>li>.sidebar-link,.theme-container .sidebar>.sidebar-links>li>.sidebar-group-items>li>.sidebar-sub-headers,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-group-items>li>.sidebar-link,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-group-items>li>.sidebar-sub-headers,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-sub-headers>li>.sidebar-link,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-sub-headers>li>.sidebar-sub-headers,.theme-container .sidebar>.sidebar-links>li>.sidebar-sub-headers>li>.sidebar-link,.theme-container .sidebar>.sidebar-links>li>.sidebar-sub-headers>li>.sidebar-sub-headers{border-left:1px solid rgba(48,128,208,.25)}.theme-container .sidebar>.sidebar-links>li>.sidebar-group-items>li>.sidebar-link.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group-items>li>.sidebar-sub-headers.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-group-items>li>.sidebar-link.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-group-items>li>.sidebar-sub-headers.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-sub-headers>li>.sidebar-link.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-sub-headers>li>.sidebar-sub-headers.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-sub-headers>li>.sidebar-link.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-sub-headers>li>.sidebar-sub-headers.active{border-left-color:#3080d0}.theme-container .sidebar>.sidebar-links>li>.sidebar-group-items>li>.sidebar-link.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group-items>li>.sidebar-link:hover,.theme-container .sidebar>.sidebar-links>li>.sidebar-group-items>li>.sidebar-sub-headers.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-group-items>li>.sidebar-link.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-group-items>li>.sidebar-link:hover,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-group-items>li>.sidebar-sub-headers.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-sub-headers>li>.sidebar-link.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-sub-headers>li>.sidebar-link:hover,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-sub-headers>li>.sidebar-sub-headers.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-sub-headers>li>.sidebar-link.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-sub-headers>li>.sidebar-link:hover,.theme-container .sidebar>.sidebar-links>li>.sidebar-sub-headers>li>.sidebar-sub-headers.active{border-left-width:3px;margin-left:-1px;padding-left:calc(1.475rem - 1px)}.theme-container .home .hero h1{font-size:2.5rem;font-weight:700;margin-bottom:.75rem}.theme-container .home .hero .description{font-size:1.5rem;margin-top:.75rem;margin-bottom:3rem}.theme-default-content:not(.custom){padding-top:2.86875rem}.theme-default-content a .icon.outbound{margin-left:2px}.theme-default-content a .sr-only{display:none}.theme-default-content a img+span>.icon.outbound{display:none}.theme-default-content a code{color:#3080d0!important}.theme-default-content h1,.theme-default-content h2,.theme-default-content h3,.theme-default-content h4,.theme-default-content h5,.theme-default-content h6{font-weight:700}.theme-default-content h2{border-bottom-style:dashed}.theme-default-content sup{font-size:.75em!important}.theme-default-content td>a{align-items:center;display:inline-flex}.tabs-component{margin:2em 0}.tabs-component-tabs{border:1px solid #ddd;border-radius:6px;margin-bottom:5px;padding-left:0}.tabs-component-tab{color:#999;font-size:14px;font-weight:600;margin-right:0;list-style:none}.tabs-component-tab:hover{color:#666}.tabs-component-tab.is-active{color:#3080d0}.tabs-component-tab.is-disabled *{color:#cdcdcd;cursor:not-allowed!important}.tabs-component-tab-a{align-items:center;color:inherit;display:flex;padding:.25em .5em;text-decoration:none}.tabs-component-panels{padding:1em 0}@media (min-width:700px){.tabs-component-tabs{border:0;align-items:stretch;display:flex;justify-content:flex-start;margin-bottom:-1px}.tabs-component-tab{background-color:#fff;border:1px solid #ddd;border-radius:3px 3px 0 0;margin-right:.25em;transition:transform .3s ease}.is-active{border-bottom:1px solid #fff;z-index:2;transform:translateY(0)}.tabs-component-panels{border-top-left-radius:0;background-color:#fff;border:1px solid #ddd;border-radius:0 6px 6px 6px;box-shadow:0 0 10px rgba(0,0,0,.05);padding:1em}}.sidebar-group.is-sub-group.depth-1>.sidebar-group-items{border-left:1px solid rgba(48,128,208,.25)}.sidebar-group.is-sub-group.depth-1>.sidebar-heading:not(.open){border-left:1px solid rgba(48,128,208,.25);margin-left:0}.sidebar-group.is-sub-group.depth-1>.sidebar-heading{transition:border-color .25s;padding:.35rem 1.475rem;border-left-width:3px;margin-left:-1px;font-size:1em;line-height:1.4;opacity:1!important}.sidebar-group.is-sub-group.depth-1>.sidebar-heading.active,.sidebar-group.is-sub-group.depth-1>.sidebar-heading.open{border-left-color:#3080d0;color:#3080d0;font-weight:700}.sidebar-group.is-sub-group.depth-1>.sidebar-heading>.arrow{display:none}.sidebar-group.is-sub-group.depth-1>.sidebar-heading>.sidebar-group-items{padding-left:0}.sidebar-group.is-sub-group.depth-1:hover .sidebar-heading:not(.open){color:#3080d0;margin-left:-1px;border-left:3px solid rgba(48,128,208,.25);padding-left:calc(1.475rem - 1px)}#nprogress{pointer-events:none}#nprogress .bar{background:#3080d0;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px #3080d0,0 0 5px #3080d0;opacity:1;transform:rotate(3deg) translateY(-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border-color:#3080d0 transparent transparent #3080d0;border-style:solid;border-width:2px;border-radius:50%;-webkit-animation:nprogress-spinner .4s linear infinite;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .bar,.nprogress-custom-parent #nprogress .spinner{position:absolute}@-webkit-keyframes nprogress-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes nprogress-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.icon.outbound{color:#aaa;display:inline-block;vertical-align:middle;position:relative;top:-1px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.home{padding:4.25rem 2rem 0;max-width:960px;margin:0 auto;display:block}.home .hero{text-align:center}.home .hero img{max-width:100%;max-height:280px;display:block;margin:3rem auto 1.5rem}.home .hero h1{font-size:3rem}.home .hero .action,.home .hero .description,.home .hero h1{margin:1.8rem auto}.home .hero .description{max-width:35rem;font-size:1.6rem;line-height:1.3;color:#8a8e91}.home .hero .action-button{display:inline-block;font-size:1.2rem;color:#fff;background-color:#3080d0;padding:.8rem 1.6rem;border-radius:4px;transition:background-color .1s ease;box-sizing:border-box;border-bottom:1px solid #2b73bc}.home .hero .action-button:hover{background-color:#458dd5}.home .features{border-top:1px solid #eaecef;padding:1.2rem 0;margin-top:2.5rem;display:flex;flex-wrap:wrap;align-items:flex-start;align-content:stretch;justify-content:space-between}.home .feature{flex-grow:1;flex-basis:30%;max-width:30%}.home .feature h2{font-size:1.4rem;font-weight:500;border-bottom:none;padding-bottom:0;color:#525557}.home .feature p{color:#6e7175}.home .footer{padding:2.5rem;border-top:1px solid #eaecef;text-align:center;color:#6e7175}@media (max-width:719px){.home .features{flex-direction:column}.home .feature{max-width:100%;padding:0 2.5rem}}@media (max-width:419px){.home{padding-left:1.5rem;padding-right:1.5rem}.home .hero img{max-height:210px;margin:2rem auto 1.2rem}.home .hero h1{font-size:2rem}.home .hero .action,.home .hero .description,.home .hero h1{margin:1.2rem auto}.home .hero .description{font-size:1.2rem}.home .hero .action-button{font-size:1rem;padding:.6rem 1.2rem}.home .feature h2{font-size:1.25rem}}.search-box{display:inline-block;position:relative;margin-right:1rem}.search-box input{cursor:text;width:10rem;height:2rem;color:#6e7175;display:inline-block;border:1px solid #cfd4db;border-radius:.4rem;font-size:.9rem;line-height:2rem;padding:0 .5rem 0 2rem;outline:none;transition:all .2s ease;background:#fff url(/docs/3.1.0/assets/img/search.77214953.svg) .6rem .5rem no-repeat;background-size:1rem}.search-box input:focus{cursor:auto;border-color:#3080d0;width:15rem}.search-box .suggestions{background:#fff;width:20rem;position:absolute;top:1.5rem;border:1px solid #cfd4db;padding:.4rem;border-radius:.6rem;list-style-type:none}.search-box .suggestions.align-right{right:0}.search-box .suggestion{line-height:1.4;padding:.6rem 1rem;cursor:pointer}.search-box .suggestion a{white-space:normal;color:#808488}.search-box .suggestion a em{color:#3080d0;font-weight:700;font-style:normal}.search-box .suggestion a .suggestion__title{font-weight:600;color:#404244;display:block;padding-bottom:.4rem}.search-box .suggestion a .suggestion__text{font-size:.9em}.search-box .suggestion.focused{background-color:#f1f6fc}@media (max-width:959px){.search-box input{cursor:pointer;width:0;border-color:transparent;position:relative}.search-box input:focus{cursor:text;left:0;width:10rem}}@media (-ms-high-contrast:none){.search-box input{height:2rem}}@media (max-width:959px) and (min-width:719px){.search-box .suggestions{left:0}}@media (max-width:719px){.search-box{margin-right:0}.search-box input{left:1rem}.search-box .suggestions{right:0}}@media (max-width:419px){.search-box .suggestions{width:calc(100vw - 4rem)}.search-box input:focus{width:8rem}}.highlighted{color:#3080d0}.sidebar-button{cursor:pointer;display:none;width:1.25rem;height:1.25rem;position:absolute;padding:.6rem;top:.6rem;left:1rem}.sidebar-button .icon{display:block;width:1.25rem;height:1.25rem}@media (max-width:719px){.sidebar-button{display:block}}.nav-links{display:inline-block}.nav-links a{line-height:1.4rem;color:inherit}.nav-links a.router-link-active,.nav-links a:hover{color:#3080d0}.nav-links .nav-item{position:relative;display:inline-block;margin-left:1.5rem;line-height:2rem}.nav-links .nav-item:first-child{margin-left:0}.nav-links .repo-link{margin-left:1.5rem}@media (max-width:719px){.nav-links .nav-item,.nav-links .repo-link{margin-left:0}}@media (min-width:719px){.nav-links a.router-link-active,.nav-links a:hover{color:#404244}.nav-item>a:not(.external).router-link-active,.nav-item>a:not(.external):hover{margin-bottom:-2px;border-bottom:2px solid #418ad4}}.navbar{padding:.7rem 1.5rem;line-height:2.85rem}.navbar a,.navbar img,.navbar span{display:inline-block}.navbar .logo{height:2.85rem;min-width:2.85rem;margin-right:.8rem;vertical-align:top}.navbar .site-name{font-size:1.3rem;font-weight:600;color:#404244;position:relative}.navbar .links{padding-left:1.5rem;box-sizing:border-box;background-color:#fff;white-space:nowrap;font-size:.9rem;position:absolute;right:1.5rem;top:.7rem;display:flex}.navbar .links .search-box{flex:0 0 auto;vertical-align:top}@media (max-width:719px){.navbar{padding-left:4rem}.navbar .can-hide{display:none}.navbar .links{padding-left:1.5rem}.navbar .site-name{width:calc(100vw - 9.4rem);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}.page-edit{max-width:768px;margin:0 auto;padding:2rem 2.5rem}@media (max-width:959px){.page-edit{padding:2rem}}@media (max-width:419px){.page-edit{padding:1.5rem}}.page-edit{padding-top:1rem;padding-bottom:1rem;overflow:auto}.page-edit .edit-link{display:inline-block}.page-edit .edit-link a{color:#6e7175;margin-right:.25rem}.page-edit .last-updated{float:right;font-size:.9em}.page-edit .last-updated .prefix{font-weight:500;color:#6e7175}.page-edit .last-updated .time{font-weight:400;color:#767676}@media (max-width:719px){.page-edit .edit-link{margin-bottom:.5rem}.page-edit .last-updated{font-size:.8em;float:none;text-align:left}}.page-nav{max-width:768px;margin:0 auto;padding:2rem 2.5rem}@media (max-width:959px){.page-nav{padding:2rem}}@media (max-width:419px){.page-nav{padding:1.5rem}}.page-nav{padding-top:1rem;padding-bottom:0}.page-nav .inner{min-height:2rem;margin-top:0;border-top:1px solid #eaecef;padding-top:1rem;overflow:auto}.page-nav .next{float:right}.page{padding-bottom:2rem;display:block}.sidebar-group .sidebar-group{padding-left:.5em}.sidebar-group:not(.collapsable) .sidebar-heading:not(.clickable){cursor:auto;color:inherit}.sidebar-group.is-sub-group{padding-left:0}.sidebar-group.is-sub-group>.sidebar-heading{font-size:.95em;line-height:1.4;font-weight:400;padding-left:2rem}.sidebar-group.is-sub-group>.sidebar-heading:not(.clickable){opacity:.5}.sidebar-group.is-sub-group>.sidebar-group-items{padding-left:1rem}.sidebar-group.is-sub-group>.sidebar-group-items>li>.sidebar-link{font-size:.95em;border-left:none}.sidebar-group.depth-2>.sidebar-heading{border-left:none}.sidebar-heading{color:#404244;transition:color .15s ease;cursor:pointer;font-size:1.1em;font-weight:700;padding:.35rem 1.5rem .35rem 1.25rem;width:100%;box-sizing:border-box;margin:0;border-left:.25rem solid transparent}.sidebar-heading.open,.sidebar-heading:hover{color:inherit}.sidebar-heading .arrow{position:relative;top:-.12em;left:.5em}.sidebar-heading.clickable.active{font-weight:600;color:#3080d0;border-left-color:#3080d0}.sidebar-heading.clickable:hover{color:#3080d0}.sidebar-group-items{transition:height .1s ease-out;font-size:.95em;overflow:hidden}.sidebar .sidebar-sub-headers{padding-left:1rem;font-size:.95em}a.sidebar-link{font-size:1em;font-weight:400;display:inline-block;color:#404244;border-left:.25rem solid transparent;padding:.35rem 1rem .35rem 1.25rem;line-height:1.4;width:100%;box-sizing:border-box}a.sidebar-link:hover{color:#3080d0}a.sidebar-link.active{font-weight:600;color:#3080d0;border-left-color:#3080d0}.sidebar-group a.sidebar-link{padding-left:2rem}.sidebar-sub-headers a.sidebar-link{padding-top:.25rem;padding-bottom:.25rem;border-left:none}.sidebar-sub-headers a.sidebar-link.active{font-weight:500}.sidebar ul{padding:0;margin:0;list-style-type:none}.sidebar a{display:inline-block}.sidebar .nav-links{display:none;border-bottom:1px solid #eaecef;padding:.5rem 0 .75rem}.sidebar .nav-links a{font-weight:600}.sidebar .nav-links .nav-item,.sidebar .nav-links .repo-link{display:block;line-height:1.25rem;font-size:1.1em;padding:.5rem 0 .5rem 1.5rem}.sidebar>.sidebar-links{padding:1.5rem 0}.sidebar>.sidebar-links>li>a.sidebar-link{font-size:1.1em;line-height:1.7;font-weight:700}.sidebar>.sidebar-links>li:not(:first-child){margin-top:.75rem}@media (max-width:719px){.sidebar .nav-links{display:block}.sidebar .nav-links .dropdown-wrapper .nav-dropdown .dropdown-item a.router-link-active:after{top:calc(1rem - 2px)}.sidebar>.sidebar-links{padding:1rem 0}}.chart-actions[data-v-2afd21f1]{align-items:center;display:flex;flex-wrap:wrap}.chart-action[data-v-2afd21f1]{transition:background .25s,border-color .25s;background:rgba(40,44,52,.05);border:1px solid transparent;border-radius:6px;color:#3080d0;text-decoration:none!important;display:inline-block;font-size:.8rem;padding:8px 16px;margin:0 8px 8px 0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.chart-action[data-v-2afd21f1]:hover{background:rgba(48,128,208,.15);border-color:rgba(48,128,208,.2);color:#3080d0}.chart-action[data-v-2afd21f1]:active{background:rgba(48,128,208,.3);border-color:rgba(48,128,208,.4);color:#3080d0}.editor-output[data-v-42be9875]{color:#e0e0e0;font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;font-size:.85em;line-height:1.5;height:inherit}.editor-output-content[data-v-42be9875]{padding:16px 24px}.editor-output-content>span[data-v-42be9875]{white-space:pre-wrap;position:relative;display:block;margin-left:5px;opacity:.25}.editor-output-content>span[data-v-42be9875]:first-child:before{content:">";font-weight:700;position:absolute;opacity:.5;left:-15px}.editor-output-content>span[data-v-42be9875]:first-child{opacity:1}.editor-output-content>span[data-v-42be9875]:nth-child(2){opacity:.95}.editor-output-content>span[data-v-42be9875]:nth-child(3){opacity:.9}.editor-output-content>span[data-v-42be9875]:nth-child(4){opacity:.85}.editor-output-content>span[data-v-42be9875]:nth-child(5){opacity:.8}.editor-output-content>span[data-v-42be9875]:nth-child(6){opacity:.75}.editor-output-content>span[data-v-42be9875]:nth-child(7){opacity:.7}.editor-output-content>span[data-v-42be9875]:nth-child(8){opacity:.65}.editor-output-content>span[data-v-42be9875]:nth-child(9){opacity:.6}.editor-output-content>span[data-v-42be9875]:nth-child(10){opacity:.55}.editor-output-content>span[data-v-42be9875]:nth-child(11){opacity:.5}.editor-output-content>span[data-v-42be9875]:nth-child(12){opacity:.45}.editor-output-content>span[data-v-42be9875]:nth-child(13){opacity:.4}.editor-output-content>span[data-v-42be9875]:nth-child(14){opacity:.35}.editor-output-content>span[data-v-42be9875]:nth-child(15){opacity:.3}.editor-output-content>span[data-v-42be9875]:nth-child(16){opacity:.25}.prism-editor-wrapper{width:100%;height:100%;display:flex;align-items:flex-start;overflow:auto;-o-tab-size:1.5em;tab-size:1.5em;-moz-tab-size:1.5em}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.prism-editor-wrapper .prism-editor__textarea{color:transparent!important}.prism-editor-wrapper .prism-editor__textarea::-moz-selection{background-color:#accef7!important;color:transparent!important}.prism-editor-wrapper .prism-editor__textarea::selection{background-color:#accef7!important;color:transparent!important}}.prism-editor-wrapper .prism-editor__container{position:relative;text-align:left;box-sizing:border-box;padding:0;overflow:hidden;width:100%}.prism-editor-wrapper .prism-editor__line-numbers{height:100%;overflow:hidden;flex-shrink:0;padding-top:4px;margin-top:0;margin-right:10px}.prism-editor-wrapper .prism-editor__line-number{text-align:right;white-space:nowrap}.prism-editor-wrapper .prism-editor__textarea{position:absolute;top:0;left:0;height:100%;width:100%;resize:none;color:inherit;overflow:hidden;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-text-fill-color:transparent}.prism-editor-wrapper .prism-editor__editor,.prism-editor-wrapper .prism-editor__textarea{margin:0;border:0;background:none;box-sizing:inherit;display:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-variant-ligatures:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;-moz-tab-size:inherit;-o-tab-size:inherit;tab-size:inherit;text-indent:inherit;text-rendering:inherit;text-transform:inherit;white-space:pre-wrap;word-wrap:keep-all;overflow-wrap:break-word;padding:0}.prism-editor-wrapper .prism-editor__textarea--empty{-webkit-text-fill-color:inherit!important}.prism-editor-wrapper .prism-editor__editor{position:relative;pointer-events:none}.editor-textarea[data-v-05f11386]{color:#e0e0e0;font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;font-size:.85em;line-height:1.5;height:inherit}.editor-textarea[data-v-05f11386]:before{margin-right:8px;margin-top:4px}.editor-textarea .prism-editor-wrapper[data-v-05f11386]{overflow:visible}.editor-textarea-content[data-v-05f11386]{padding:16px 24px}.tooltip[data-v-402b0086]{position:relative}.tooltip .content[data-v-402b0086]{background:#eee;color:#444;box-shadow:0 4px 8px 0 rgba(0,0,0,.15);border-radius:6px;display:none;font-size:.8rem;position:absolute;min-width:256px;max-width:512px;max-height:256px;z-index:999;right:0}.tooltip:hover .content[data-v-402b0086]{display:block}.tooltip[data-v-402b0086] pre{background:none;overflow:visible;padding:0 16px}.code-editor[data-v-66ca8197]{background-color:#282c34;border-radius:6px}@media (max-width:419px){.code-editor[data-v-66ca8197]{border-radius:0!important;margin:0 -1.5rem}}.code-editor-header[data-v-66ca8197]{background:hsla(0,0%,100%,.02);padding:0 16px;display:flex}.code-editor-header .code-editor-tab[data-v-66ca8197],.code-editor-header .code-editor-tool[data-v-66ca8197]{margin:0 8px}.code-editor-tabs[data-v-66ca8197]{align-items:center;display:flex;flex:1}.code-editor-tab[data-v-66ca8197]{background:none;border:none;border-bottom:2px solid transparent;color:#e0e0e0;text-transform:capitalize;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-weight:700;cursor:pointer;padding:20px 4px 18px}.code-editor-tab[data-v-66ca8197]:focus{outline:none}.code-editor-tab.active[data-v-66ca8197]{border-bottom-color:#3080d0}.code-editor-tools[data-v-66ca8197]{align-items:center;display:flex;padding:16px 0}.code-editor-tool[data-v-66ca8197]{color:#e0e0e0;text-decoration:none!important}.code-editor-views[data-v-66ca8197]{height:360px}.chart-actions[data-v-365c20ab],.chart-view[data-v-365c20ab]{margin:16px 0}.badge[data-v-15b7b770]{display:inline-block;font-size:14px;height:18px;line-height:18px;border-radius:3px;padding:0 6px;color:#fff;background-color:#42b983}.badge.green[data-v-15b7b770],.badge.tip[data-v-15b7b770]{background-color:#42b983}.badge.error[data-v-15b7b770]{background-color:#da5961}.badge.warn[data-v-15b7b770],.badge.warning[data-v-15b7b770],.badge.yellow[data-v-15b7b770]{background-color:#e7c000}.badge+.badge[data-v-15b7b770]{margin-left:5px}.theme-code-block[data-v-759a7d02]{display:none}.theme-code-block__active[data-v-759a7d02]{display:block}.theme-code-block>pre[data-v-759a7d02]{background-color:orange}.theme-code-group__nav[data-v-deefee04]{margin-bottom:-35px;background-color:#282c34;padding-bottom:22px;border-top-left-radius:6px;border-top-right-radius:6px;padding-left:10px;padding-top:10px}.theme-code-group__ul[data-v-deefee04]{margin:auto 0;padding-left:0;display:inline-flex;list-style:none}.theme-code-group__nav-tab[data-v-deefee04]{border:0;padding:5px;cursor:pointer;background-color:transparent;font-size:.85em;line-height:1.4;color:hsla(0,0%,100%,.9);font-weight:600}.theme-code-group__nav-tab-active[data-v-deefee04]{border-bottom:1px solid #42b983}.pre-blank[data-v-deefee04]{color:#42b983} \ No newline at end of file +@import url(https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/css/all.min.css);.dropdown-enter,.dropdown-leave-to{height:0!important}.dropdown-wrapper{cursor:pointer}.dropdown-wrapper .dropdown-title,.dropdown-wrapper .mobile-dropdown-title{display:block;font-size:.9rem;font-family:inherit;cursor:inherit;padding:inherit;line-height:1.4rem;background:transparent;border:none;font-weight:500;color:#404244}.dropdown-wrapper .dropdown-title:hover,.dropdown-wrapper .mobile-dropdown-title:hover{border-color:transparent}.dropdown-wrapper .dropdown-title .arrow,.dropdown-wrapper .mobile-dropdown-title .arrow{vertical-align:middle;margin-top:-1px;margin-left:.4rem}.dropdown-wrapper .mobile-dropdown-title{display:none;font-weight:600}.dropdown-wrapper .mobile-dropdown-title font-size inherit:hover{color:#3080d0}.dropdown-wrapper .nav-dropdown .dropdown-item{color:inherit;line-height:1.7rem}.dropdown-wrapper .nav-dropdown .dropdown-item h4{margin:.45rem 0 0;border-top:1px solid #eee;padding:1rem 1.5rem .45rem 1.25rem}.dropdown-wrapper .nav-dropdown .dropdown-item .dropdown-subitem-wrapper{padding:0;list-style:none}.dropdown-wrapper .nav-dropdown .dropdown-item .dropdown-subitem-wrapper .dropdown-subitem{font-size:.9em}.dropdown-wrapper .nav-dropdown .dropdown-item a{display:block;line-height:1.7rem;position:relative;border-bottom:none;font-weight:400;margin-bottom:0;padding:0 1.5rem 0 1.25rem}.dropdown-wrapper .nav-dropdown .dropdown-item a:hover{color:#3080d0}.dropdown-wrapper .nav-dropdown .dropdown-item a.router-link-active{color:#3080d0}.dropdown-wrapper .nav-dropdown .dropdown-item a.router-link-active:after{content:"";width:0;height:0;border-left:5px solid #3080d0;border-top:3px solid transparent;border-bottom:3px solid transparent;position:absolute;top:calc(50% - 2px);left:9px}.dropdown-wrapper .nav-dropdown .dropdown-item:first-child h4{margin-top:0;padding-top:0;border-top:0}@media (max-width:719px){.dropdown-wrapper.open .dropdown-title{margin-bottom:.5rem}.dropdown-wrapper .dropdown-title{display:none}.dropdown-wrapper .mobile-dropdown-title{display:block}.dropdown-wrapper .nav-dropdown{transition:height .1s ease-out;overflow:hidden}.dropdown-wrapper .nav-dropdown .dropdown-item h4{border-top:0;margin-top:0;padding-top:0}.dropdown-wrapper .nav-dropdown .dropdown-item>a,.dropdown-wrapper .nav-dropdown .dropdown-item h4{font-size:15px;line-height:2rem}.dropdown-wrapper .nav-dropdown .dropdown-item .dropdown-subitem{font-size:14px;padding-left:1rem}}@media (min-width:719px){.dropdown-wrapper{height:1.8rem}.dropdown-wrapper.open .nav-dropdown,.dropdown-wrapper:hover .nav-dropdown{display:block!important}.dropdown-wrapper.open:blur{display:none}.dropdown-wrapper .nav-dropdown{display:none;height:auto!important;box-sizing:border-box;max-height:calc(100vh - 2.7rem);overflow-y:auto;position:absolute;top:100%;right:0;background-color:#fff;padding:.6rem 0;border:1px solid;border-color:#ddd #ddd #ccc;text-align:left;border-radius:.25rem;white-space:nowrap;margin:0}}.versions-dropdown[data-v-3dd359e2]{display:inline-block;position:relative;outline:none}:not(.nav-links)>.versions-dropdown[data-v-3dd359e2]{margin:8px 16px}.versions-dropdown[data-v-3dd359e2] .dropdown-title,.versions-dropdown[data-v-3dd359e2] .dropdown-wrapper{outline:none}.versions-dropdown[data-v-3dd359e2] .dropdown-title .nav-dropdown,.versions-dropdown[data-v-3dd359e2] .dropdown-wrapper .nav-dropdown{right:auto}.versions-dropdown[data-v-3dd359e2] .nav-link{color:inherit}code[class*=language-],pre[class*=language-]{color:#ccc;background:none;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#2d2d2d}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.block-comment,.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#999}.token.punctuation{color:#ccc}.token.attr-name,.token.deleted,.token.namespace,.token.tag{color:#e2777a}.token.function-name{color:#6196cc}.token.boolean,.token.function,.token.number{color:#f08d49}.token.class-name,.token.constant,.token.property,.token.symbol{color:#f8c555}.token.atrule,.token.builtin,.token.important,.token.keyword,.token.selector{color:#cc99cd}.token.attr-value,.token.char,.token.regex,.token.string,.token.variable{color:#7ec699}.token.entity,.token.operator,.token.url{color:#67cdcc}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}.ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{height:15px;bottom:0}.ps__rail-x,.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;position:absolute}.ps__rail-y{width:15px;right:0}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y,.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y{opacity:.6}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:#eee;opacity:.9}.ps__thumb-x{transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px}.ps__thumb-x,.ps__thumb-y{background-color:#aaa;border-radius:6px;position:absolute}.ps__thumb-y{transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px}.ps__rail-x.ps--clicking .ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x:hover>.ps__thumb-x{background-color:#999;height:11px}.ps__rail-y.ps--clicking .ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y:hover>.ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style:none){.ps{overflow:auto!important}}@media (-ms-high-contrast:none),screen and (-ms-high-contrast:active){.ps{overflow:auto!important}}.ps{position:relative}.theme-default-content code{color:#65686b;padding:.25rem .5rem;margin:0;font-size:.85em;background-color:rgba(27,31,35,.05);border-radius:3px}.theme-default-content code .token.deleted{color:#ec5975}.theme-default-content code .token.inserted{color:#3080d0}.theme-default-content pre,.theme-default-content pre[class*=language-]{line-height:1.4;padding:1.25rem 1.5rem;margin:.85rem 0;background-color:#282c34;border-radius:6px;overflow:auto}.theme-default-content pre[class*=language-] code,.theme-default-content pre code{color:#fff;padding:0;background-color:transparent;border-radius:0}div[class*=language-]{position:relative;background-color:#282c34;border-radius:6px}div[class*=language-] .highlight-lines{-webkit-user-select:none;user-select:none;padding-top:1.3rem;position:absolute;top:0;left:0;width:100%;line-height:1.4}div[class*=language-] .highlight-lines .highlighted{background-color:rgba(0,0,0,.66)}div[class*=language-] pre,div[class*=language-] pre[class*=language-]{background:transparent;position:relative;z-index:1}div[class*=language-]:before{position:absolute;z-index:3;top:.8em;right:1em;font-size:.75rem;color:hsla(0,0%,100%,.4)}div[class*=language-]:not(.line-numbers-mode) .line-numbers-wrapper{display:none}div[class*=language-].line-numbers-mode .highlight-lines .highlighted{position:relative}div[class*=language-].line-numbers-mode .highlight-lines .highlighted:before{content:" ";position:absolute;z-index:3;left:0;top:0;display:block;width:3.5rem;height:100%;background-color:rgba(0,0,0,.66)}div[class*=language-].line-numbers-mode pre{padding-left:4.5rem;vertical-align:middle}div[class*=language-].line-numbers-mode .line-numbers-wrapper{position:absolute;top:0;width:3.5rem;text-align:center;color:hsla(0,0%,100%,.3);padding:1.25rem 0;line-height:1.4}div[class*=language-].line-numbers-mode .line-numbers-wrapper br{-webkit-user-select:none;user-select:none}div[class*=language-].line-numbers-mode .line-numbers-wrapper .line-number{position:relative;z-index:4;-webkit-user-select:none;user-select:none;font-size:.85em}div[class*=language-].line-numbers-mode:after{content:"";position:absolute;z-index:2;top:0;left:0;width:3.5rem;height:100%;border-radius:6px 0 0 6px;border-right:1px solid rgba(0,0,0,.66);background-color:#282c34}div[class~=language-js]:before{content:"js"}div[class~=language-ts]:before{content:"ts"}div[class~=language-html]:before{content:"html"}div[class~=language-md]:before{content:"md"}div[class~=language-vue]:before{content:"vue"}div[class~=language-css]:before{content:"css"}div[class~=language-sass]:before{content:"sass"}div[class~=language-scss]:before{content:"scss"}div[class~=language-less]:before{content:"less"}div[class~=language-stylus]:before{content:"stylus"}div[class~=language-go]:before{content:"go"}div[class~=language-java]:before{content:"java"}div[class~=language-c]:before{content:"c"}div[class~=language-sh]:before{content:"sh"}div[class~=language-yaml]:before{content:"yaml"}div[class~=language-py]:before{content:"py"}div[class~=language-docker]:before{content:"docker"}div[class~=language-dockerfile]:before{content:"dockerfile"}div[class~=language-makefile]:before{content:"makefile"}div[class~=language-javascript]:before{content:"js"}div[class~=language-typescript]:before{content:"ts"}div[class~=language-markup]:before{content:"html"}div[class~=language-markdown]:before{content:"md"}div[class~=language-json]:before{content:"json"}div[class~=language-ruby]:before{content:"rb"}div[class~=language-python]:before{content:"py"}div[class~=language-bash]:before{content:"sh"}div[class~=language-php]:before{content:"php"}.custom-block .custom-block-title{font-weight:600;margin-bottom:-.4rem}.custom-block.danger,.custom-block.tip,.custom-block.warning{padding:.1rem 1.5rem;border-left-width:.5rem;border-left-style:solid;margin:1rem 0}.custom-block.tip{background-color:#f3f5f7;border-color:#42b983}.custom-block.warning{background-color:rgba(255,229,100,.3);border-color:#e7c000;color:#6b5900}.custom-block.warning .custom-block-title{color:#b29400}.custom-block.warning a{color:#404244}.custom-block.danger{background-color:#ffe6e6;border-color:#c00;color:#4d0000}.custom-block.danger .custom-block-title{color:#900}.custom-block.danger a{color:#404244}.custom-block.details{display:block;position:relative;border-radius:2px;margin:1.6em 0;padding:1.6em;background-color:#eee}.custom-block.details h4{margin-top:0}.custom-block.details figure:last-child,.custom-block.details p:last-child{margin-bottom:0;padding-bottom:0}.custom-block.details summary{outline:none;cursor:pointer}.arrow{display:inline-block;width:0;height:0}.arrow.up{border-bottom:6px solid #ccc}.arrow.down,.arrow.up{border-left:4px solid transparent;border-right:4px solid transparent}.arrow.down{border-top:6px solid #ccc}.arrow.right{border-left:6px solid #ccc}.arrow.left,.arrow.right{border-top:4px solid transparent;border-bottom:4px solid transparent}.arrow.left{border-right:6px solid #ccc}.theme-default-content:not(.custom){max-width:768px;margin:0 auto;padding:2rem 2.5rem}@media (max-width:959px){.theme-default-content:not(.custom){padding:2rem}}@media (max-width:419px){.theme-default-content:not(.custom){padding:1.5rem}}.table-of-contents .badge{vertical-align:middle}body,html{padding:0;margin:0;background-color:#fff}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:16px;color:#404244}.page{padding-left:20rem}.navbar{z-index:20;right:0;height:4.25rem;background-color:#fff;box-sizing:border-box;border-bottom:1px solid #eaecef}.navbar,.sidebar-mask{position:fixed;top:0;left:0}.sidebar-mask{z-index:9;width:100vw;height:100vh;display:none}.sidebar{font-size:16px;background-color:#fff;width:20rem;position:fixed;z-index:10;margin:0;top:4.25rem;left:0;bottom:0;box-sizing:border-box;border-right:1px solid #eaecef;overflow-y:auto}.theme-default-content:not(.custom)>:first-child{margin-top:4.25rem}.theme-default-content:not(.custom) a:hover{text-decoration:underline}.theme-default-content:not(.custom) p.demo{padding:1rem 1.5rem;border:1px solid #ddd;border-radius:4px}.theme-default-content:not(.custom) img{max-width:100%}.theme-default-content.custom{padding:0;margin:0}.theme-default-content.custom img{max-width:100%}a{font-weight:500;text-decoration:none}a,p a code{color:#3080d0}p a code{font-weight:400}kbd{background:#eee;border:.15rem solid #ddd;border-bottom:.25rem solid #ddd;border-radius:.15rem;padding:0 .15em}blockquote{font-size:1rem;color:#999;border-left:.2rem solid #dfe2e5;margin:1rem 0;padding:.25rem 0 .25rem 1rem}blockquote>p{margin:0}ol,ul{padding-left:1.2em}strong{font-weight:600}h1,h2,h3,h4,h5,h6{font-weight:600;line-height:1.25}.theme-default-content:not(.custom)>h1,.theme-default-content:not(.custom)>h2,.theme-default-content:not(.custom)>h3,.theme-default-content:not(.custom)>h4,.theme-default-content:not(.custom)>h5,.theme-default-content:not(.custom)>h6{margin-top:-3.75rem;padding-top:5.25rem;margin-bottom:0}.theme-default-content:not(.custom)>h1:first-child,.theme-default-content:not(.custom)>h2:first-child,.theme-default-content:not(.custom)>h3:first-child,.theme-default-content:not(.custom)>h4:first-child,.theme-default-content:not(.custom)>h5:first-child,.theme-default-content:not(.custom)>h6:first-child{margin-top:-1.5rem;margin-bottom:1rem}.theme-default-content:not(.custom)>h1:first-child+.custom-block,.theme-default-content:not(.custom)>h1:first-child+p,.theme-default-content:not(.custom)>h1:first-child+pre,.theme-default-content:not(.custom)>h2:first-child+.custom-block,.theme-default-content:not(.custom)>h2:first-child+p,.theme-default-content:not(.custom)>h2:first-child+pre,.theme-default-content:not(.custom)>h3:first-child+.custom-block,.theme-default-content:not(.custom)>h3:first-child+p,.theme-default-content:not(.custom)>h3:first-child+pre,.theme-default-content:not(.custom)>h4:first-child+.custom-block,.theme-default-content:not(.custom)>h4:first-child+p,.theme-default-content:not(.custom)>h4:first-child+pre,.theme-default-content:not(.custom)>h5:first-child+.custom-block,.theme-default-content:not(.custom)>h5:first-child+p,.theme-default-content:not(.custom)>h5:first-child+pre,.theme-default-content:not(.custom)>h6:first-child+.custom-block,.theme-default-content:not(.custom)>h6:first-child+p,.theme-default-content:not(.custom)>h6:first-child+pre{margin-top:2rem}h1:focus .header-anchor,h1:hover .header-anchor,h2:focus .header-anchor,h2:hover .header-anchor,h3:focus .header-anchor,h3:hover .header-anchor,h4:focus .header-anchor,h4:hover .header-anchor,h5:focus .header-anchor,h5:hover .header-anchor,h6:focus .header-anchor,h6:hover .header-anchor{opacity:1}h1{font-size:2.2rem}h2{font-size:1.65rem;padding-bottom:.3rem;border-bottom:1px solid #eaecef}h3{font-size:1.35rem}a.header-anchor{font-size:.85em;float:left;margin-left:-.87em;padding-right:.23em;margin-top:.125em;opacity:0}a.header-anchor:focus,a.header-anchor:hover{text-decoration:none}.line-number,code,kbd{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}ol,p,ul{line-height:1.7}hr{border:0;border-top:1px solid #eaecef}table{border-collapse:collapse;margin:1rem 0;display:block;overflow-x:auto}tr{border-top:1px solid #dfe2e5}tr:nth-child(2n){background-color:#f6f8fa}td,th{border:1px solid #dfe2e5;padding:.6em 1em}.theme-container.sidebar-open .sidebar-mask{display:block}.theme-container.no-navbar .theme-default-content:not(.custom)>h1,.theme-container.no-navbar h2,.theme-container.no-navbar h3,.theme-container.no-navbar h4,.theme-container.no-navbar h5,.theme-container.no-navbar h6{margin-top:1.5rem;padding-top:0}.theme-container.no-navbar .sidebar{top:0}@media (min-width:720px){.theme-container.no-sidebar .sidebar{display:none}.theme-container.no-sidebar .page{padding-left:0}}@media (max-width:959px){.sidebar{font-size:15px;width:16.4rem}.page{padding-left:16.4rem}}@media (max-width:719px){.sidebar{top:0;padding-top:4.25rem;transform:translateX(-100%);transition:transform .2s ease}.page{padding-left:0}.theme-container.sidebar-open .sidebar{transform:translateX(0)}.theme-container.no-navbar .sidebar{padding-top:0}}@media (max-width:419px){h1{font-size:1.9rem}.theme-default-content div[class*=language-]{margin:.85rem -1.5rem;border-radius:0}}.ps .ps__rail-x.ps--clicking,.ps .ps__rail-x:focus,.ps .ps__rail-x:hover,.ps .ps__rail-y.ps--clicking,.ps .ps__rail-y:focus,.ps .ps__rail-y:hover{background-color:transparent!important}.prism-editor__textarea:focus{outline:none!important}.text-muted{opacity:.5!important}.text-error{color:#e05025!important}.theme-container .navbar .nav-link,.theme-container .navbar .repo-link,.theme-container .sidebar .nav-link,.theme-container .sidebar .repo-link{font-weight:700}.theme-container .navbar{box-shadow:0 8px 8px -10px rgba(0,0,0,.15);border:none}.theme-container .navbar .nav-links{margin-left:1rem}.theme-container .navbar .nav-links :first-child{margin-left:0}.theme-container .navbar .nav-links .nav-link:not(.external){border-bottom-width:4px;margin-top:-20px;padding-top:20px;padding-bottom:20px}.theme-container .navbar .logo{margin-right:.5rem;margin-top:.25rem;min-width:2.5rem;height:2.5rem}.theme-container .navbar .site-name{color:#ff6384;font-size:1.1rem}.theme-container .navbar .sidebar-button{margin:.375rem 0;height:auto;width:auto}.theme-container .search-box input{background-color:#f4f4f4;background-position:.75rem .55rem;border-radius:8px;border-color:transparent;border-width:2px;padding-left:2.2rem;height:2.2rem}.theme-container .search-box input:hover{border-color:rgba(0,0,0,.2);background-color:#fff}.theme-container .search-box input:focus{border-color:rgba(48,128,208,.8);background-color:#fff}.theme-container .sidebar{border-right:1px dashed #eee}.theme-container .sidebar .sidebar-heading,.theme-container .sidebar .sidebar-link{transition:border-color .25s;padding:.35rem 1.475rem}.theme-container .sidebar .sidebar-heading.active,.theme-container .sidebar .sidebar-link.active{font-weight:700}.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-heading,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-link,.theme-container .sidebar>.sidebar-links>li>.sidebar-heading,.theme-container .sidebar>.sidebar-links>li>.sidebar-link{align-items:center;display:flex;border:none}.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-heading:before,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-link:before,.theme-container .sidebar>.sidebar-links>li>.sidebar-heading:before,.theme-container .sidebar>.sidebar-links>li>.sidebar-link:before{content:"\2981";font-size:1.25rem;margin-right:.75rem;line-height:0;opacity:.25}.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-heading.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-heading.open,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-link.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-link.open,.theme-container .sidebar>.sidebar-links>li>.sidebar-heading.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-heading.open,.theme-container .sidebar>.sidebar-links>li>.sidebar-link.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-link.open{color:#3080d0}.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-heading.active:before,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-heading.open:before,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-link.active:before,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-link.open:before,.theme-container .sidebar>.sidebar-links>li>.sidebar-heading.active:before,.theme-container .sidebar>.sidebar-links>li>.sidebar-heading.open:before,.theme-container .sidebar>.sidebar-links>li>.sidebar-link.active:before,.theme-container .sidebar>.sidebar-links>li>.sidebar-link.open:before{opacity:1}.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-heading .arrow,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-link .arrow,.theme-container .sidebar>.sidebar-links>li>.sidebar-heading .arrow,.theme-container .sidebar>.sidebar-links>li>.sidebar-link .arrow{display:none}.theme-container .sidebar>.sidebar-links>li>.sidebar-group-items,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-group-items,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-sub-headers,.theme-container .sidebar>.sidebar-links>li>.sidebar-sub-headers{padding-left:1.75rem}.theme-container .sidebar>.sidebar-links>li>.sidebar-group-items>li>.sidebar-link,.theme-container .sidebar>.sidebar-links>li>.sidebar-group-items>li>.sidebar-sub-headers,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-group-items>li>.sidebar-link,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-group-items>li>.sidebar-sub-headers,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-sub-headers>li>.sidebar-link,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-sub-headers>li>.sidebar-sub-headers,.theme-container .sidebar>.sidebar-links>li>.sidebar-sub-headers>li>.sidebar-link,.theme-container .sidebar>.sidebar-links>li>.sidebar-sub-headers>li>.sidebar-sub-headers{border-left:1px solid rgba(48,128,208,.25)}.theme-container .sidebar>.sidebar-links>li>.sidebar-group-items>li>.sidebar-link.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group-items>li>.sidebar-sub-headers.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-group-items>li>.sidebar-link.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-group-items>li>.sidebar-sub-headers.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-sub-headers>li>.sidebar-link.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-sub-headers>li>.sidebar-sub-headers.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-sub-headers>li>.sidebar-link.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-sub-headers>li>.sidebar-sub-headers.active{border-left-color:#3080d0}.theme-container .sidebar>.sidebar-links>li>.sidebar-group-items>li>.sidebar-link.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group-items>li>.sidebar-link:hover,.theme-container .sidebar>.sidebar-links>li>.sidebar-group-items>li>.sidebar-sub-headers.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-group-items>li>.sidebar-link.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-group-items>li>.sidebar-link:hover,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-group-items>li>.sidebar-sub-headers.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-sub-headers>li>.sidebar-link.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-sub-headers>li>.sidebar-link:hover,.theme-container .sidebar>.sidebar-links>li>.sidebar-group>.sidebar-sub-headers>li>.sidebar-sub-headers.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-sub-headers>li>.sidebar-link.active,.theme-container .sidebar>.sidebar-links>li>.sidebar-sub-headers>li>.sidebar-link:hover,.theme-container .sidebar>.sidebar-links>li>.sidebar-sub-headers>li>.sidebar-sub-headers.active{border-left-width:3px;margin-left:-1px;padding-left:calc(1.475rem - 1px)}.theme-container .home .hero h1{font-size:2.5rem;font-weight:700;margin-bottom:.75rem}.theme-container .home .hero .description{font-size:1.5rem;margin-top:.75rem;margin-bottom:3rem}.theme-default-content:not(.custom){padding-top:2.86875rem}.theme-default-content a .icon.outbound{margin-left:2px}.theme-default-content a .sr-only{display:none}.theme-default-content a img+span>.icon.outbound{display:none}.theme-default-content a code{color:#3080d0!important}.theme-default-content h1,.theme-default-content h2,.theme-default-content h3,.theme-default-content h4,.theme-default-content h5,.theme-default-content h6{font-weight:700}.theme-default-content h2{border-bottom-style:dashed}.theme-default-content sup{font-size:.75em!important}.theme-default-content td>a{align-items:center;display:inline-flex}.tabs-component{margin:2em 0}.tabs-component-tabs{border:1px solid #ddd;border-radius:6px;margin-bottom:5px;padding-left:0}.tabs-component-tab{color:#999;font-size:14px;font-weight:600;margin-right:0;list-style:none}.tabs-component-tab:hover{color:#666}.tabs-component-tab.is-active{color:#3080d0}.tabs-component-tab.is-disabled *{color:#cdcdcd;cursor:not-allowed!important}.tabs-component-tab-a{align-items:center;color:inherit;display:flex;padding:.25em .5em;text-decoration:none}.tabs-component-panels{padding:1em 0}@media (min-width:700px){.tabs-component-tabs{border:0;align-items:stretch;display:flex;justify-content:flex-start;margin-bottom:-1px}.tabs-component-tab{background-color:#fff;border:1px solid #ddd;border-radius:3px 3px 0 0;margin-right:.25em;transition:transform .3s ease}.is-active{border-bottom:1px solid #fff;z-index:2;transform:translateY(0)}.tabs-component-panels{border-top-left-radius:0;background-color:#fff;border:1px solid #ddd;border-radius:0 6px 6px 6px;box-shadow:0 0 10px rgba(0,0,0,.05);padding:1em}}.sidebar-group.is-sub-group.depth-1>.sidebar-group-items{border-left:1px solid rgba(48,128,208,.25)}.sidebar-group.is-sub-group.depth-1>.sidebar-heading:not(.open){border-left:1px solid rgba(48,128,208,.25);margin-left:0}.sidebar-group.is-sub-group.depth-1>.sidebar-heading{transition:border-color .25s;padding:.35rem 1.475rem;border-left-width:3px;margin-left:-1px;font-size:1em;line-height:1.4;opacity:1!important}.sidebar-group.is-sub-group.depth-1>.sidebar-heading.active,.sidebar-group.is-sub-group.depth-1>.sidebar-heading.open{border-left-color:#3080d0;color:#3080d0;font-weight:700}.sidebar-group.is-sub-group.depth-1>.sidebar-heading>.arrow{display:none}.sidebar-group.is-sub-group.depth-1>.sidebar-heading>.sidebar-group-items{padding-left:0}.sidebar-group.is-sub-group.depth-1:hover .sidebar-heading:not(.open){color:#3080d0;margin-left:-1px;border-left:3px solid rgba(48,128,208,.25);padding-left:calc(1.475rem - 1px)}#nprogress{pointer-events:none}#nprogress .bar{background:#3080d0;position:fixed;z-index:1031;top:0;left:0;width:100%;height:2px}#nprogress .peg{display:block;position:absolute;right:0;width:100px;height:100%;box-shadow:0 0 10px #3080d0,0 0 5px #3080d0;opacity:1;transform:rotate(3deg) translateY(-4px)}#nprogress .spinner{display:block;position:fixed;z-index:1031;top:15px;right:15px}#nprogress .spinner-icon{width:18px;height:18px;box-sizing:border-box;border-color:#3080d0 transparent transparent #3080d0;border-style:solid;border-width:2px;border-radius:50%;-webkit-animation:nprogress-spinner .4s linear infinite;animation:nprogress-spinner .4s linear infinite}.nprogress-custom-parent{overflow:hidden;position:relative}.nprogress-custom-parent #nprogress .bar,.nprogress-custom-parent #nprogress .spinner{position:absolute}@-webkit-keyframes nprogress-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes nprogress-spinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.icon.outbound{color:#aaa;display:inline-block;vertical-align:middle;position:relative;top:-1px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.home{padding:4.25rem 2rem 0;max-width:960px;margin:0 auto;display:block}.home .hero{text-align:center}.home .hero img{max-width:100%;max-height:280px;display:block;margin:3rem auto 1.5rem}.home .hero h1{font-size:3rem}.home .hero .action,.home .hero .description,.home .hero h1{margin:1.8rem auto}.home .hero .description{max-width:35rem;font-size:1.6rem;line-height:1.3;color:#8a8e91}.home .hero .action-button{display:inline-block;font-size:1.2rem;color:#fff;background-color:#3080d0;padding:.8rem 1.6rem;border-radius:4px;transition:background-color .1s ease;box-sizing:border-box;border-bottom:1px solid #2b73bc}.home .hero .action-button:hover{background-color:#458dd5}.home .features{border-top:1px solid #eaecef;padding:1.2rem 0;margin-top:2.5rem;display:flex;flex-wrap:wrap;align-items:flex-start;align-content:stretch;justify-content:space-between}.home .feature{flex-grow:1;flex-basis:30%;max-width:30%}.home .feature h2{font-size:1.4rem;font-weight:500;border-bottom:none;padding-bottom:0;color:#525557}.home .feature p{color:#6e7175}.home .footer{padding:2.5rem;border-top:1px solid #eaecef;text-align:center;color:#6e7175}@media (max-width:719px){.home .features{flex-direction:column}.home .feature{max-width:100%;padding:0 2.5rem}}@media (max-width:419px){.home{padding-left:1.5rem;padding-right:1.5rem}.home .hero img{max-height:210px;margin:2rem auto 1.2rem}.home .hero h1{font-size:2rem}.home .hero .action,.home .hero .description,.home .hero h1{margin:1.2rem auto}.home .hero .description{font-size:1.2rem}.home .hero .action-button{font-size:1rem;padding:.6rem 1.2rem}.home .feature h2{font-size:1.25rem}}.search-box{display:inline-block;position:relative;margin-right:1rem}.search-box input{cursor:text;width:10rem;height:2rem;color:#6e7175;display:inline-block;border:1px solid #cfd4db;border-radius:.4rem;font-size:.9rem;line-height:2rem;padding:0 .5rem 0 2rem;outline:none;transition:all .2s ease;background:#fff url(/docs/3.1.0/assets/img/search.77214953.svg) .6rem .5rem no-repeat;background-size:1rem}.search-box input:focus{cursor:auto;border-color:#3080d0;width:15rem}.search-box .suggestions{background:#fff;width:20rem;position:absolute;top:1.5rem;border:1px solid #cfd4db;padding:.4rem;border-radius:.6rem;list-style-type:none}.search-box .suggestions.align-right{right:0}.search-box .suggestion{line-height:1.4;padding:.6rem 1rem;cursor:pointer}.search-box .suggestion a{white-space:normal;color:#808488}.search-box .suggestion a em{color:#3080d0;font-weight:700;font-style:normal}.search-box .suggestion a .suggestion__title{font-weight:600;color:#404244;display:block;padding-bottom:.4rem}.search-box .suggestion a .suggestion__text{font-size:.9em}.search-box .suggestion.focused{background-color:#f1f6fc}@media (max-width:959px){.search-box input{cursor:pointer;width:0;border-color:transparent;position:relative}.search-box input:focus{cursor:text;left:0;width:10rem}}@media (-ms-high-contrast:none){.search-box input{height:2rem}}@media (max-width:959px) and (min-width:719px){.search-box .suggestions{left:0}}@media (max-width:719px){.search-box{margin-right:0}.search-box input{left:1rem}.search-box .suggestions{right:0}}@media (max-width:419px){.search-box .suggestions{width:calc(100vw - 4rem)}.search-box input:focus{width:8rem}}.highlighted{color:#3080d0}.sidebar-button{cursor:pointer;display:none;width:1.25rem;height:1.25rem;position:absolute;padding:.6rem;top:.6rem;left:1rem}.sidebar-button .icon{display:block;width:1.25rem;height:1.25rem}@media (max-width:719px){.sidebar-button{display:block}}.nav-links{display:inline-block}.nav-links a{line-height:1.4rem;color:inherit}.nav-links a.router-link-active,.nav-links a:hover{color:#3080d0}.nav-links .nav-item{position:relative;display:inline-block;margin-left:1.5rem;line-height:2rem}.nav-links .nav-item:first-child{margin-left:0}.nav-links .repo-link{margin-left:1.5rem}@media (max-width:719px){.nav-links .nav-item,.nav-links .repo-link{margin-left:0}}@media (min-width:719px){.nav-links a.router-link-active,.nav-links a:hover{color:#404244}.nav-item>a:not(.external).router-link-active,.nav-item>a:not(.external):hover{margin-bottom:-2px;border-bottom:2px solid #418ad4}}.navbar{padding:.7rem 1.5rem;line-height:2.85rem}.navbar a,.navbar img,.navbar span{display:inline-block}.navbar .logo{height:2.85rem;min-width:2.85rem;margin-right:.8rem;vertical-align:top}.navbar .site-name{font-size:1.3rem;font-weight:600;color:#404244;position:relative}.navbar .links{padding-left:1.5rem;box-sizing:border-box;background-color:#fff;white-space:nowrap;font-size:.9rem;position:absolute;right:1.5rem;top:.7rem;display:flex}.navbar .links .search-box{flex:0 0 auto;vertical-align:top}@media (max-width:719px){.navbar{padding-left:4rem}.navbar .can-hide{display:none}.navbar .links{padding-left:1.5rem}.navbar .site-name{width:calc(100vw - 9.4rem);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}}.page-edit{max-width:768px;margin:0 auto;padding:2rem 2.5rem}@media (max-width:959px){.page-edit{padding:2rem}}@media (max-width:419px){.page-edit{padding:1.5rem}}.page-edit{padding-top:1rem;padding-bottom:1rem;overflow:auto}.page-edit .edit-link{display:inline-block}.page-edit .edit-link a{color:#6e7175;margin-right:.25rem}.page-edit .last-updated{float:right;font-size:.9em}.page-edit .last-updated .prefix{font-weight:500;color:#6e7175}.page-edit .last-updated .time{font-weight:400;color:#767676}@media (max-width:719px){.page-edit .edit-link{margin-bottom:.5rem}.page-edit .last-updated{font-size:.8em;float:none;text-align:left}}.page-nav{max-width:768px;margin:0 auto;padding:2rem 2.5rem}@media (max-width:959px){.page-nav{padding:2rem}}@media (max-width:419px){.page-nav{padding:1.5rem}}.page-nav{padding-top:1rem;padding-bottom:0}.page-nav .inner{min-height:2rem;margin-top:0;border-top:1px solid #eaecef;padding-top:1rem;overflow:auto}.page-nav .next{float:right}.page{padding-bottom:2rem;display:block}.sidebar-group .sidebar-group{padding-left:.5em}.sidebar-group:not(.collapsable) .sidebar-heading:not(.clickable){cursor:auto;color:inherit}.sidebar-group.is-sub-group{padding-left:0}.sidebar-group.is-sub-group>.sidebar-heading{font-size:.95em;line-height:1.4;font-weight:400;padding-left:2rem}.sidebar-group.is-sub-group>.sidebar-heading:not(.clickable){opacity:.5}.sidebar-group.is-sub-group>.sidebar-group-items{padding-left:1rem}.sidebar-group.is-sub-group>.sidebar-group-items>li>.sidebar-link{font-size:.95em;border-left:none}.sidebar-group.depth-2>.sidebar-heading{border-left:none}.sidebar-heading{color:#404244;transition:color .15s ease;cursor:pointer;font-size:1.1em;font-weight:700;padding:.35rem 1.5rem .35rem 1.25rem;width:100%;box-sizing:border-box;margin:0;border-left:.25rem solid transparent}.sidebar-heading.open,.sidebar-heading:hover{color:inherit}.sidebar-heading .arrow{position:relative;top:-.12em;left:.5em}.sidebar-heading.clickable.active{font-weight:600;color:#3080d0;border-left-color:#3080d0}.sidebar-heading.clickable:hover{color:#3080d0}.sidebar-group-items{transition:height .1s ease-out;font-size:.95em;overflow:hidden}.sidebar .sidebar-sub-headers{padding-left:1rem;font-size:.95em}a.sidebar-link{font-size:1em;font-weight:400;display:inline-block;color:#404244;border-left:.25rem solid transparent;padding:.35rem 1rem .35rem 1.25rem;line-height:1.4;width:100%;box-sizing:border-box}a.sidebar-link:hover{color:#3080d0}a.sidebar-link.active{font-weight:600;color:#3080d0;border-left-color:#3080d0}.sidebar-group a.sidebar-link{padding-left:2rem}.sidebar-sub-headers a.sidebar-link{padding-top:.25rem;padding-bottom:.25rem;border-left:none}.sidebar-sub-headers a.sidebar-link.active{font-weight:500}.sidebar ul{padding:0;margin:0;list-style-type:none}.sidebar a{display:inline-block}.sidebar .nav-links{display:none;border-bottom:1px solid #eaecef;padding:.5rem 0 .75rem}.sidebar .nav-links a{font-weight:600}.sidebar .nav-links .nav-item,.sidebar .nav-links .repo-link{display:block;line-height:1.25rem;font-size:1.1em;padding:.5rem 0 .5rem 1.5rem}.sidebar>.sidebar-links{padding:1.5rem 0}.sidebar>.sidebar-links>li>a.sidebar-link{font-size:1.1em;line-height:1.7;font-weight:700}.sidebar>.sidebar-links>li:not(:first-child){margin-top:.75rem}@media (max-width:719px){.sidebar .nav-links{display:block}.sidebar .nav-links .dropdown-wrapper .nav-dropdown .dropdown-item a.router-link-active:after{top:calc(1rem - 2px)}.sidebar>.sidebar-links{padding:1rem 0}}.chart-actions[data-v-2afd21f1]{align-items:center;display:flex;flex-wrap:wrap}.chart-action[data-v-2afd21f1]{transition:background .25s,border-color .25s;background:rgba(40,44,52,.05);border:1px solid transparent;border-radius:6px;color:#3080d0;text-decoration:none!important;display:inline-block;font-size:.8rem;padding:8px 16px;margin:0 8px 8px 0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.chart-action[data-v-2afd21f1]:hover{background:rgba(48,128,208,.15);border-color:rgba(48,128,208,.2);color:#3080d0}.chart-action[data-v-2afd21f1]:active{background:rgba(48,128,208,.3);border-color:rgba(48,128,208,.4);color:#3080d0}.editor-output[data-v-42be9875]{color:#e0e0e0;font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;font-size:.85em;line-height:1.5;height:inherit}.editor-output-content[data-v-42be9875]{padding:16px 24px}.editor-output-content>span[data-v-42be9875]{white-space:pre-wrap;position:relative;display:block;margin-left:5px;opacity:.25}.editor-output-content>span[data-v-42be9875]:first-child:before{content:">";font-weight:700;position:absolute;opacity:.5;left:-15px}.editor-output-content>span[data-v-42be9875]:first-child{opacity:1}.editor-output-content>span[data-v-42be9875]:nth-child(2){opacity:.95}.editor-output-content>span[data-v-42be9875]:nth-child(3){opacity:.9}.editor-output-content>span[data-v-42be9875]:nth-child(4){opacity:.85}.editor-output-content>span[data-v-42be9875]:nth-child(5){opacity:.8}.editor-output-content>span[data-v-42be9875]:nth-child(6){opacity:.75}.editor-output-content>span[data-v-42be9875]:nth-child(7){opacity:.7}.editor-output-content>span[data-v-42be9875]:nth-child(8){opacity:.65}.editor-output-content>span[data-v-42be9875]:nth-child(9){opacity:.6}.editor-output-content>span[data-v-42be9875]:nth-child(10){opacity:.55}.editor-output-content>span[data-v-42be9875]:nth-child(11){opacity:.5}.editor-output-content>span[data-v-42be9875]:nth-child(12){opacity:.45}.editor-output-content>span[data-v-42be9875]:nth-child(13){opacity:.4}.editor-output-content>span[data-v-42be9875]:nth-child(14){opacity:.35}.editor-output-content>span[data-v-42be9875]:nth-child(15){opacity:.3}.editor-output-content>span[data-v-42be9875]:nth-child(16){opacity:.25}.prism-editor-wrapper{width:100%;height:100%;display:flex;align-items:flex-start;overflow:auto;-o-tab-size:1.5em;tab-size:1.5em;-moz-tab-size:1.5em}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.prism-editor-wrapper .prism-editor__textarea{color:transparent!important}.prism-editor-wrapper .prism-editor__textarea::-moz-selection{background-color:#accef7!important;color:transparent!important}.prism-editor-wrapper .prism-editor__textarea::selection{background-color:#accef7!important;color:transparent!important}}.prism-editor-wrapper .prism-editor__container{position:relative;text-align:left;box-sizing:border-box;padding:0;overflow:hidden;width:100%}.prism-editor-wrapper .prism-editor__line-numbers{height:100%;overflow:hidden;flex-shrink:0;padding-top:4px;margin-top:0;margin-right:10px}.prism-editor-wrapper .prism-editor__line-number{text-align:right;white-space:nowrap}.prism-editor-wrapper .prism-editor__textarea{position:absolute;top:0;left:0;height:100%;width:100%;resize:none;color:inherit;overflow:hidden;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-text-fill-color:transparent}.prism-editor-wrapper .prism-editor__editor,.prism-editor-wrapper .prism-editor__textarea{margin:0;border:0;background:none;box-sizing:inherit;display:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-variant-ligatures:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;-moz-tab-size:inherit;-o-tab-size:inherit;tab-size:inherit;text-indent:inherit;text-rendering:inherit;text-transform:inherit;white-space:pre-wrap;word-wrap:keep-all;overflow-wrap:break-word;padding:0}.prism-editor-wrapper .prism-editor__textarea--empty{-webkit-text-fill-color:inherit!important}.prism-editor-wrapper .prism-editor__editor{position:relative;pointer-events:none}.editor-textarea[data-v-05f11386]{color:#e0e0e0;font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;font-size:.85em;line-height:1.5;height:inherit}.editor-textarea[data-v-05f11386]:before{margin-right:8px;margin-top:4px}.editor-textarea .prism-editor-wrapper[data-v-05f11386]{overflow:visible}.editor-textarea-content[data-v-05f11386]{padding:16px 24px}.tooltip[data-v-402b0086]{position:relative}.tooltip .content[data-v-402b0086]{background:#eee;color:#444;box-shadow:0 4px 8px 0 rgba(0,0,0,.15);border-radius:6px;display:none;font-size:.8rem;position:absolute;min-width:256px;max-width:512px;max-height:256px;z-index:999;right:0}.tooltip:hover .content[data-v-402b0086]{display:block}.tooltip[data-v-402b0086] pre{background:none;overflow:visible;padding:0 16px}.code-editor[data-v-66ca8197]{background-color:#282c34;border-radius:6px}@media (max-width:419px){.code-editor[data-v-66ca8197]{border-radius:0!important;margin:0 -1.5rem}}.code-editor-header[data-v-66ca8197]{background:hsla(0,0%,100%,.02);padding:0 16px;display:flex}.code-editor-header .code-editor-tab[data-v-66ca8197],.code-editor-header .code-editor-tool[data-v-66ca8197]{margin:0 8px}.code-editor-tabs[data-v-66ca8197]{align-items:center;display:flex;flex:1}.code-editor-tab[data-v-66ca8197]{background:none;border:none;border-bottom:2px solid transparent;color:#e0e0e0;text-transform:capitalize;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-weight:700;cursor:pointer;padding:20px 4px 18px}.code-editor-tab[data-v-66ca8197]:focus{outline:none}.code-editor-tab.active[data-v-66ca8197]{border-bottom-color:#3080d0}.code-editor-tools[data-v-66ca8197]{align-items:center;display:flex;padding:16px 0}.code-editor-tool[data-v-66ca8197]{color:#e0e0e0;text-decoration:none!important}.code-editor-views[data-v-66ca8197]{height:360px}.chart-actions[data-v-365c20ab],.chart-view[data-v-365c20ab]{margin:16px 0}.badge[data-v-15b7b770]{display:inline-block;font-size:14px;height:18px;line-height:18px;border-radius:3px;padding:0 6px;color:#fff;background-color:#42b983}.badge.green[data-v-15b7b770],.badge.tip[data-v-15b7b770]{background-color:#42b983}.badge.error[data-v-15b7b770]{background-color:#da5961}.badge.warn[data-v-15b7b770],.badge.warning[data-v-15b7b770],.badge.yellow[data-v-15b7b770]{background-color:#e7c000}.badge+.badge[data-v-15b7b770]{margin-left:5px}.theme-code-group__nav[data-v-deefee04]{margin-bottom:-35px;background-color:#282c34;padding-bottom:22px;border-top-left-radius:6px;border-top-right-radius:6px;padding-left:10px;padding-top:10px}.theme-code-group__ul[data-v-deefee04]{margin:auto 0;padding-left:0;display:inline-flex;list-style:none}.theme-code-group__nav-tab[data-v-deefee04]{border:0;padding:5px;cursor:pointer;background-color:transparent;font-size:.85em;line-height:1.4;color:hsla(0,0%,100%,.9);font-weight:600}.theme-code-group__nav-tab-active[data-v-deefee04]{border-bottom:1px solid #42b983}.pre-blank[data-v-deefee04]{color:#42b983}.theme-code-block[data-v-759a7d02]{display:none}.theme-code-block__active[data-v-759a7d02]{display:block}.theme-code-block>pre[data-v-759a7d02]{background-color:orange} \ No newline at end of file diff --git a/docs/3.1.0/assets/js/10.a4bfd2ee.js b/docs/3.1.0/assets/js/10.a4bfd2ee.js deleted file mode 100644 index c331d526d5..0000000000 --- a/docs/3.1.0/assets/js/10.a4bfd2ee.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{338:function(t,e,a){"use strict";a.r(e);var r=a(7),n=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-animation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-animation"}},[t._v("#")]),t._v(" Class: Animation")]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new Animation")]),t._v("("),a("code",[t._v("cfg")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("target")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("prop")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("to?")]),t._v(": "),a("em",[t._v("unknown")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/animation.html"}},[a("em",[t._v("Animation")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("target")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("prop")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("to?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/animation.html"}},[a("em",[t._v("Animation")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("active")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"cancel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cancel"}},[t._v("#")]),t._v(" cancel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("cancel")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L8",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:8"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tick"}},[t._v("#")]),t._v(" tick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tick")]),t._v("("),a("code",[t._v("date")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("date")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("cfg")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("to")]),t._v(": "),a("em",[t._v("unknown")]),t._v(", "),a("code",[t._v("date")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("to")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("date")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:7"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/10.ceebed1f.js b/docs/3.1.0/assets/js/10.ceebed1f.js new file mode 100644 index 0000000000..f318497ab1 --- /dev/null +++ b/docs/3.1.0/assets/js/10.ceebed1f.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{347:function(t,e,a){"use strict";a.r(e);var r=a(7),n=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-animation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-animation"}},[t._v("#")]),t._v(" Class: Animation")]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new Animation")]),t._v("("),a("code",[t._v("cfg")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("target")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("prop")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("to?")]),t._v(": "),a("em",[t._v("unknown")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/animation.html"}},[a("em",[t._v("Animation")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("target")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("prop")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("to?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/animation.html"}},[a("em",[t._v("Animation")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("active")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"cancel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cancel"}},[t._v("#")]),t._v(" cancel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("cancel")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L8",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:8"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tick"}},[t._v("#")]),t._v(" tick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tick")]),t._v("("),a("code",[t._v("date")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("date")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("cfg")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("to")]),t._v(": "),a("em",[t._v("unknown")]),t._v(", "),a("code",[t._v("date")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("to")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("date")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:7"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/100.75733ea8.js b/docs/3.1.0/assets/js/100.75733ea8.js deleted file mode 100644 index 018a455b00..0000000000 --- a/docs/3.1.0/assets/js/100.75733ea8.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[100],{426:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-registry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-registry"}},[t._v("#")]),t._v(" Interface: Registry")]),t._v(" "),a("p",[t._v("Please use the module's default export which provides a singleton instance\nNote: class is exported for typedoc")]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"controllers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#controllers"}},[t._v("#")]),t._v(" controllers")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("controllers")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/typedregistry.html"}},[a("em",[t._v("TypedRegistry")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData>>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1041",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1041"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"elements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#elements"}},[t._v("#")]),t._v(" elements")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/typedregistry.html"}},[a("em",[t._v("TypedRegistry")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1042",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1042"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"plugins"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#plugins"}},[t._v("#")]),t._v(" plugins")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("plugins")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/typedregistry.html"}},[a("em",[t._v("TypedRegistry")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", Record>>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1043",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1043"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scales"}},[t._v("#")]),t._v(" scales")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("scales")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/typedregistry.html"}},[a("em",[t._v("TypedRegistry")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1044",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1044"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"add"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#add"}},[t._v("#")]),t._v(" add")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("add")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1046",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1046"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addcontrollers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addcontrollers"}},[t._v("#")]),t._v(" addControllers")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addControllers")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1049",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1049"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addelements"}},[t._v("#")]),t._v(" addElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addElements")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1050",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1050"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addplugins"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addplugins"}},[t._v("#")]),t._v(" addPlugins")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addPlugins")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1051",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1051"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addscales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addscales"}},[t._v("#")]),t._v(" addScales")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addScales")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1052",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1052"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcontroller"}},[t._v("#")]),t._v(" getController")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getController")]),t._v("("),a("code",[t._v("id")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData>")],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("id")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1054",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1054"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getelement"}},[t._v("#")]),t._v(" getElement")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getElement")]),t._v("("),a("code",[t._v("id")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("id")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1055",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1055"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getplugin"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getplugin"}},[t._v("#")]),t._v(" getPlugin")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPlugin")]),t._v("("),a("code",[t._v("id")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", Record>")],1),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("id")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", Record>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1056",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1056"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getscale"}},[t._v("#")]),t._v(" getScale")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getScale")]),t._v("("),a("code",[t._v("id")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("id")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1057",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1057"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"remove"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#remove"}},[t._v("#")]),t._v(" remove")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("remove")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1047",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1047"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/100.eee663a2.js b/docs/3.1.0/assets/js/100.eee663a2.js new file mode 100644 index 0000000000..a53a84c628 --- /dev/null +++ b/docs/3.1.0/assets/js/100.eee663a2.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[100],{424:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-registry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-registry"}},[t._v("#")]),t._v(" Interface: Registry")]),t._v(" "),a("p",[t._v("Please use the module's default export which provides a singleton instance\nNote: class is exported for typedoc")]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"controllers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#controllers"}},[t._v("#")]),t._v(" controllers")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("controllers")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/typedregistry.html"}},[a("em",[t._v("TypedRegistry")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData>>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1041",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1041"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"elements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#elements"}},[t._v("#")]),t._v(" elements")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/typedregistry.html"}},[a("em",[t._v("TypedRegistry")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1042",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1042"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"plugins"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#plugins"}},[t._v("#")]),t._v(" plugins")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("plugins")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/typedregistry.html"}},[a("em",[t._v("TypedRegistry")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", Record>>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1043",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1043"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scales"}},[t._v("#")]),t._v(" scales")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("scales")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/typedregistry.html"}},[a("em",[t._v("TypedRegistry")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1044",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1044"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"add"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#add"}},[t._v("#")]),t._v(" add")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("add")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1046",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1046"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addcontrollers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addcontrollers"}},[t._v("#")]),t._v(" addControllers")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addControllers")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1049",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1049"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addelements"}},[t._v("#")]),t._v(" addElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addElements")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1050",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1050"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addplugins"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addplugins"}},[t._v("#")]),t._v(" addPlugins")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addPlugins")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1051",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1051"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addscales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addscales"}},[t._v("#")]),t._v(" addScales")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addScales")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1052",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1052"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcontroller"}},[t._v("#")]),t._v(" getController")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getController")]),t._v("("),a("code",[t._v("id")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData>")],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("id")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1054",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1054"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getelement"}},[t._v("#")]),t._v(" getElement")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getElement")]),t._v("("),a("code",[t._v("id")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("id")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1055",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1055"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getplugin"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getplugin"}},[t._v("#")]),t._v(" getPlugin")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPlugin")]),t._v("("),a("code",[t._v("id")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", Record>")],1),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("id")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", Record>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1056",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1056"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getscale"}},[t._v("#")]),t._v(" getScale")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getScale")]),t._v("("),a("code",[t._v("id")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("id")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1057",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1057"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"remove"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#remove"}},[t._v("#")]),t._v(" remove")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("remove")]),t._v("(..."),a("code",[t._v("args")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1047",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1047"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/101.96612969.js b/docs/3.1.0/assets/js/101.96612969.js deleted file mode 100644 index 5ac816d8bf..0000000000 --- a/docs/3.1.0/assets/js/101.96612969.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[101],{427:function(t,e,a){"use strict";a.r(e);var r=a(7),i=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-scaletyperegistry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-scaletyperegistry"}},[t._v("#")]),t._v(" Interface: ScaleTypeRegistry")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[a("em",[t._v("CartesianScaleTypeRegistry")])])],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/radialscaletyperegistry.html"}},[a("em",[t._v("RadialScaleTypeRegistry")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("ScaleTypeRegistry")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"category"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#category"}},[t._v("#")]),t._v(" category")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("category")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#categoryscaleoptions"}},[a("em",[t._v("CategoryScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html#category"}},[t._v("category")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3186",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3186"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linear"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linear"}},[t._v("#")]),t._v(" linear")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("linear")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#linearscaleoptions"}},[a("em",[t._v("LinearScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html#linear"}},[t._v("linear")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3180",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3180"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"logarithmic"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#logarithmic"}},[t._v("#")]),t._v(" logarithmic")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("logarithmic")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-3"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#logarithmicscaleoptions"}},[a("em",[t._v("LogarithmicScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html#logarithmic"}},[t._v("logarithmic")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3183",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3183"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radiallinear"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radiallinear"}},[t._v("#")]),t._v(" radialLinear")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("radialLinear")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-4"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#radiallinearscaleoptions"}},[a("em",[t._v("RadialLinearScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/radialscaletyperegistry.html"}},[t._v("RadialScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/radialscaletyperegistry.html#radiallinear"}},[t._v("radialLinear")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3198",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3198"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"time"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#time"}},[t._v("#")]),t._v(" time")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("time")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-5"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html#time"}},[t._v("time")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3189",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3189"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timeseries"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timeseries"}},[t._v("#")]),t._v(" timeseries")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("timeseries")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-6"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html#timeseries"}},[t._v("timeseries")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3192",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3192"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/101.b9b1b068.js b/docs/3.1.0/assets/js/101.b9b1b068.js new file mode 100644 index 0000000000..ad0adff5b9 --- /dev/null +++ b/docs/3.1.0/assets/js/101.b9b1b068.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[101],{426:function(t,e,a){"use strict";a.r(e);var r=a(7),i=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-scaletyperegistry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-scaletyperegistry"}},[t._v("#")]),t._v(" Interface: ScaleTypeRegistry")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[a("em",[t._v("CartesianScaleTypeRegistry")])])],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/radialscaletyperegistry.html"}},[a("em",[t._v("RadialScaleTypeRegistry")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("ScaleTypeRegistry")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"category"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#category"}},[t._v("#")]),t._v(" category")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("category")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#categoryscaleoptions"}},[a("em",[t._v("CategoryScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html#category"}},[t._v("category")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3186",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3186"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linear"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linear"}},[t._v("#")]),t._v(" linear")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("linear")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#linearscaleoptions"}},[a("em",[t._v("LinearScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html#linear"}},[t._v("linear")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3180",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3180"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"logarithmic"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#logarithmic"}},[t._v("#")]),t._v(" logarithmic")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("logarithmic")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-3"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#logarithmicscaleoptions"}},[a("em",[t._v("LogarithmicScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html#logarithmic"}},[t._v("logarithmic")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3183",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3183"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radiallinear"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radiallinear"}},[t._v("#")]),t._v(" radialLinear")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("radialLinear")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-4"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#radiallinearscaleoptions"}},[a("em",[t._v("RadialLinearScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/radialscaletyperegistry.html"}},[t._v("RadialScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/radialscaletyperegistry.html#radiallinear"}},[t._v("radialLinear")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3198",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3198"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"time"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#time"}},[t._v("#")]),t._v(" time")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("time")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-5"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html#time"}},[t._v("time")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3189",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3189"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timeseries"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timeseries"}},[t._v("#")]),t._v(" timeseries")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("timeseries")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-6"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html#timeseries"}},[t._v("timeseries")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3192",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3192"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/102.3be5e9d1.js b/docs/3.1.0/assets/js/102.479c4581.js similarity index 50% rename from docs/3.1.0/assets/js/102.3be5e9d1.js rename to docs/3.1.0/assets/js/102.479c4581.js index 37aca0addf..f83ae95738 100644 --- a/docs/3.1.0/assets/js/102.3be5e9d1.js +++ b/docs/3.1.0/assets/js/102.479c4581.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[102],{428:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-scatterdatapoint"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-scatterdatapoint"}},[t._v("#")]),t._v(" Interface: ScatterDataPoint")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("x")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L220",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:220"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("y")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L221",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:221"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[102],{425:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-scatterdatapoint"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-scatterdatapoint"}},[t._v("#")]),t._v(" Interface: ScatterDataPoint")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("x")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L220",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:220"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("y")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L221",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:221"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/103.3b5a1ce3.js b/docs/3.1.0/assets/js/103.3b5a1ce3.js deleted file mode 100644 index d2f8e2c362..0000000000 --- a/docs/3.1.0/assets/js/103.3b5a1ce3.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[103],{429:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-scriptablecontext-ttype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-scriptablecontext-ttype"}},[t._v("#")]),t._v(" Interface: ScriptableContext")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L19",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:19"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L20",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:20"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"dataindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataindex"}},[t._v("#")]),t._v(" dataIndex")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("dataIndex")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"dataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[t._v("#")]),t._v(" dataset")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("dataset")]),t._v(": "),a("em",[t._v("UnionToIntersection")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L22",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:22"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"datasetindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[t._v("#")]),t._v(" datasetIndex")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L23",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:23"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsed"}},[t._v("#")]),t._v(" parsed")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("parsed")]),t._v(": "),a("em",[t._v("UnionToIntersection")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#parseddatatype"}},[a("em",[t._v("ParsedDataType")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L24",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:24"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"raw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#raw"}},[t._v("#")]),t._v(" raw")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("raw")]),t._v(": "),a("em",[t._v("unknown")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:25"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/103.53ead1e1.js b/docs/3.1.0/assets/js/103.53ead1e1.js new file mode 100644 index 0000000000..2138e59c47 --- /dev/null +++ b/docs/3.1.0/assets/js/103.53ead1e1.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[103],{427:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-scriptablecontext-ttype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-scriptablecontext-ttype"}},[t._v("#")]),t._v(" Interface: ScriptableContext")]),t._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("TType")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#charttype"}},[r("em",[t._v("ChartType")])])],1)])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"active"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("active")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L19",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:19"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"chart"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("chart")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L20",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:20"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"dataindex"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#dataindex"}},[t._v("#")]),t._v(" dataIndex")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("dataIndex")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:21"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"dataset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[t._v("#")]),t._v(" dataset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("dataset")]),t._v(": "),r("em",[t._v("UnionToIntersection")]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#chartdataset"}},[r("em",[t._v("ChartDataset")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L22",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:22"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"datasetindex"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[t._v("#")]),t._v(" datasetIndex")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("datasetIndex")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L23",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:23"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsed"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsed"}},[t._v("#")]),t._v(" parsed")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsed")]),t._v(": "),r("em",[t._v("UnionToIntersection")]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#parseddatatype"}},[r("em",[t._v("ParsedDataType")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L24",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:24"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"raw"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#raw"}},[t._v("#")]),t._v(" raw")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("raw")]),t._v(": "),r("em",[t._v("unknown")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:25"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/104.5c7d8858.js b/docs/3.1.0/assets/js/104.5c7d8858.js new file mode 100644 index 0000000000..2674f3682d --- /dev/null +++ b/docs/3.1.0/assets/js/104.5c7d8858.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[104],{428:function(t,e,r){"use strict";r.r(e);var n=r(7),s=Object(n.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-scriptablelinesegmentcontext"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-scriptablelinesegmentcontext"}},[t._v("#")]),t._v(" Interface: ScriptableLineSegmentContext")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"p0"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#p0"}},[t._v("#")]),t._v(" p0")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("p0")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointelement"}},[r("em",[t._v("PointElement")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[r("em",[t._v("PointProps")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[r("em",[t._v("PointOptions")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L30",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:30"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"p1"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#p1"}},[t._v("#")]),t._v(" p1")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("p1")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointelement"}},[r("em",[t._v("PointElement")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[r("em",[t._v("PointProps")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[r("em",[t._v("PointOptions")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L31",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:31"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"type"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("type")]),t._v(": "),r("em",[t._v("segment")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:29"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/104.91de94b5.js b/docs/3.1.0/assets/js/104.91de94b5.js deleted file mode 100644 index db98092edb..0000000000 --- a/docs/3.1.0/assets/js/104.91de94b5.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[104],{430:function(t,e,r){"use strict";r.r(e);var n=r(7),s=Object(n.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-scriptablelinesegmentcontext"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-scriptablelinesegmentcontext"}},[t._v("#")]),t._v(" Interface: ScriptableLineSegmentContext")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"p0"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#p0"}},[t._v("#")]),t._v(" p0")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("p0")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointelement"}},[r("em",[t._v("PointElement")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[r("em",[t._v("PointProps")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[r("em",[t._v("PointOptions")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L30",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:30"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"p1"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#p1"}},[t._v("#")]),t._v(" p1")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("p1")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointelement"}},[r("em",[t._v("PointElement")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[r("em",[t._v("PointProps")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[r("em",[t._v("PointOptions")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L31",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:31"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"type"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("type")]),t._v(": "),r("em",[t._v("segment")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:29"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/105.1d68e09a.js b/docs/3.1.0/assets/js/105.1d68e09a.js new file mode 100644 index 0000000000..7bd38a17e1 --- /dev/null +++ b/docs/3.1.0/assets/js/105.1d68e09a.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[105],{429:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-scriptablescalecontext"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-scriptablescalecontext"}},[t._v("#")]),t._v(" Interface: ScriptableScaleContext")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"chart"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("chart")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1262",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1262"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"index"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("index")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1264",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1264"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"scale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#scale"}},[t._v("#")]),t._v(" scale")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("scale")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[t._v("Scale")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1263",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1263"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tick"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tick"}},[t._v("#")]),t._v(" tick")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tick")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[r("em",[t._v("Tick")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1265",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1265"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/105.ccd083df.js b/docs/3.1.0/assets/js/105.ccd083df.js deleted file mode 100644 index 7da365018f..0000000000 --- a/docs/3.1.0/assets/js/105.ccd083df.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[105],{431:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-scriptablescalecontext"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-scriptablescalecontext"}},[t._v("#")]),t._v(" Interface: ScriptableScaleContext")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"chart"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("chart")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1262",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1262"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"index"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("index")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1264",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1264"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"scale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#scale"}},[t._v("#")]),t._v(" scale")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("scale")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[t._v("Scale")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1263",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1263"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tick"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tick"}},[t._v("#")]),t._v(" tick")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tick")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[r("em",[t._v("Tick")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1265",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1265"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/106.cd148c20.js b/docs/3.1.0/assets/js/106.92da18bd.js similarity index 53% rename from docs/3.1.0/assets/js/106.cd148c20.js rename to docs/3.1.0/assets/js/106.92da18bd.js index db4e65ec89..59c0b4c138 100644 --- a/docs/3.1.0/assets/js/106.cd148c20.js +++ b/docs/3.1.0/assets/js/106.92da18bd.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[106],{432:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-scriptabletooltipcontext-ttype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-scriptabletooltipcontext-ttype"}},[t._v("#")]),t._v(" Interface: ScriptableTooltipContext")]),t._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("TType")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#charttype"}},[r("em",[t._v("ChartType")])])],1)])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"chart"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("chart")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2392",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2392"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tooltip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tooltip"}},[t._v("#")]),t._v(" tooltip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tooltip")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[r("em",[t._v("TooltipModel")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2393",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2393"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tooltipitems"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tooltipitems"}},[t._v("#")]),t._v(" tooltipItems")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tooltipItems")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("[]")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2394",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2394"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[106],{430:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-scriptabletooltipcontext-ttype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-scriptabletooltipcontext-ttype"}},[t._v("#")]),t._v(" Interface: ScriptableTooltipContext")]),t._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("TType")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#charttype"}},[r("em",[t._v("ChartType")])])],1)])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"chart"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("chart")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2392",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2392"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tooltip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tooltip"}},[t._v("#")]),t._v(" tooltip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tooltip")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[r("em",[t._v("TooltipModel")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2393",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2393"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tooltipitems"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tooltipitems"}},[t._v("#")]),t._v(" tooltipItems")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tooltipItems")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("[]")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2394",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2394"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/107.6f10ac74.js b/docs/3.1.0/assets/js/107.6f10ac74.js new file mode 100644 index 0000000000..764a98e024 --- /dev/null +++ b/docs/3.1.0/assets/js/107.6f10ac74.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[107],{431:function(e,t,r){"use strict";r.r(t);var s=r(7),a=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-segment"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-segment"}},[e._v("#")]),e._v(" Interface: Segment")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"end"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#end"}},[e._v("#")]),e._v(" end")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("end")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1599",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1599"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"loop"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#loop"}},[e._v("#")]),e._v(" loop")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("loop")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1600",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1600"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"start"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#start"}},[e._v("#")]),e._v(" start")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("start")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1598",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1598"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/107.7da351ea.js b/docs/3.1.0/assets/js/107.7da351ea.js deleted file mode 100644 index 373c1381f0..0000000000 --- a/docs/3.1.0/assets/js/107.7da351ea.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[107],{433:function(t,e,r){"use strict";r.r(e);var s=r(7),a=Object(s.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-segment"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-segment"}},[t._v("#")]),t._v(" Interface: Segment")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"end"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#end"}},[t._v("#")]),t._v(" end")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("end")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1599",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1599"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"loop"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#loop"}},[t._v("#")]),t._v(" loop")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("loop")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1600",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1600"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"start"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#start"}},[t._v("#")]),t._v(" start")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("start")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1598",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1598"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/108.1e45abeb.js b/docs/3.1.0/assets/js/108.1e45abeb.js new file mode 100644 index 0000000000..56b9883642 --- /dev/null +++ b/docs/3.1.0/assets/js/108.1e45abeb.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[108],{432:function(e,t,r){"use strict";r.r(t);var a=r(7),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-tick"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-tick"}},[e._v("#")]),e._v(" Interface: Tick")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[e._v("#")]),e._v(" label")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("label")]),e._v(": "),r("em",[e._v("string")]),e._v(" | "),r("em",[e._v("string")]),e._v("[]")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1064",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1064"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"major"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#major"}},[e._v("#")]),e._v(" major")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("major")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1065",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1065"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"value"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#value"}},[e._v("#")]),e._v(" value")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("value")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1063",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1063"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/108.4f283413.js b/docs/3.1.0/assets/js/108.4f283413.js deleted file mode 100644 index e67b8ec48b..0000000000 --- a/docs/3.1.0/assets/js/108.4f283413.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[108],{435:function(e,t,r){"use strict";r.r(t);var a=r(7),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-tick"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-tick"}},[e._v("#")]),e._v(" Interface: Tick")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[e._v("#")]),e._v(" label")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("label")]),e._v(": "),r("em",[e._v("string")]),e._v(" | "),r("em",[e._v("string")]),e._v("[]")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1064",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1064"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"major"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#major"}},[e._v("#")]),e._v(" major")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("major")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1065",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1065"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"value"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#value"}},[e._v("#")]),e._v(" value")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("value")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1063",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1063"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/109.a738a660.js b/docs/3.1.0/assets/js/109.a738a660.js new file mode 100644 index 0000000000..cececb8c34 --- /dev/null +++ b/docs/3.1.0/assets/js/109.a738a660.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[109],{433:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-tickoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-tickoptions"}},[t._v("#")]),t._v(" Interface: TickOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"callback"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#callback"}},[t._v("#")]),t._v(" callback")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("callback")]),t._v(": ("),r("code",[t._v("tickValue")]),t._v(": "),r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("index")]),t._v(": "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("ticks")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[r("em",[t._v("Tick")])]),t._v("[]) => "),r("em",[t._v("string")])],1),t._v(" "),r("p",[t._v("Returns the string representation of the tick value as it should be displayed on the chart. See callback.")]),t._v(" "),r("h4",{attrs:{id:"type-declaration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("p",[t._v("▸ ("),r("code",[t._v("tickValue")]),t._v(": "),r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("index")]),t._v(": "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("ticks")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[r("em",[t._v("Tick")])]),t._v("[]): "),r("em",[t._v("string")])],1),t._v(" "),r("h4",{attrs:{id:"parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("tickValue")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("number")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("index")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("number")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("ticks")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[r("em",[t._v("Tick")])]),t._v("[]")],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2699",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2699"),r("OutboundLink")],1)]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2699",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2699"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"color"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[t._v("#")]),t._v(" color")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("color")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[t._v("ScriptableScaleContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color of tick")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("see")])]),t._v(" Defaults.color")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2709",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2709"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"display"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[t._v("#")]),t._v(" display")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("display")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("If true, show tick labels.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2704",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2704"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"font"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#font"}},[t._v("#")]),t._v(" font")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("font")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[r("em",[t._v("FontSpec")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[t._v("ScriptableScaleContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("see Fonts")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2713",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2713"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"major"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#major"}},[t._v("#")]),t._v(" major")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("major")]),t._v(": "),r("em",[t._v("object")])]),t._v(" "),r("h4",{attrs:{id:"type-declaration-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("enabled")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[t._v("If true, major ticks are generated. A major tick will affect autoskipping and major will be defined on ticks in the scriptable options context. "),r("strong",[r("code",[t._v("default")])]),t._v(" false")])])])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2734",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2734"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"padding"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#padding"}},[t._v("#")]),t._v(" padding")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("padding")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Sets the offset of the tick labels from the axis")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2717",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2717"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"textstrokecolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#textstrokecolor"}},[t._v("#")]),t._v(" textStrokeColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("textStrokeColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[t._v("ScriptableScaleContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The color of the stroke around the text.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" undefined")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2722",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2722"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"textstrokewidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#textstrokewidth"}},[t._v("#")]),t._v(" textStrokeWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("textStrokeWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1),t._v(" "),r("p",[t._v("Stroke width around the text.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2727",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2727"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"z"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#z"}},[t._v("#")]),t._v(" z")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("z")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2732",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2732"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/109.b3b6f582.js b/docs/3.1.0/assets/js/109.b3b6f582.js deleted file mode 100644 index 86dca57df9..0000000000 --- a/docs/3.1.0/assets/js/109.b3b6f582.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[109],{436:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-tickoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-tickoptions"}},[t._v("#")]),t._v(" Interface: TickOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"callback"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#callback"}},[t._v("#")]),t._v(" callback")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("callback")]),t._v(": ("),r("code",[t._v("tickValue")]),t._v(": "),r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("index")]),t._v(": "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("ticks")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[r("em",[t._v("Tick")])]),t._v("[]) => "),r("em",[t._v("string")])],1),t._v(" "),r("p",[t._v("Returns the string representation of the tick value as it should be displayed on the chart. See callback.")]),t._v(" "),r("h4",{attrs:{id:"type-declaration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("p",[t._v("▸ ("),r("code",[t._v("tickValue")]),t._v(": "),r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("index")]),t._v(": "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("ticks")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[r("em",[t._v("Tick")])]),t._v("[]): "),r("em",[t._v("string")])],1),t._v(" "),r("h4",{attrs:{id:"parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("tickValue")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("number")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("index")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("number")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("ticks")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[r("em",[t._v("Tick")])]),t._v("[]")],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2699",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2699"),r("OutboundLink")],1)]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2699",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2699"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"color"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[t._v("#")]),t._v(" color")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("color")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[t._v("ScriptableScaleContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color of tick")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("see")])]),t._v(" Defaults.color")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2709",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2709"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"display"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[t._v("#")]),t._v(" display")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("display")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("If true, show tick labels.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2704",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2704"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"font"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#font"}},[t._v("#")]),t._v(" font")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("font")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[r("em",[t._v("FontSpec")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[t._v("ScriptableScaleContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("see Fonts")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2713",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2713"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"major"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#major"}},[t._v("#")]),t._v(" major")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("major")]),t._v(": "),r("em",[t._v("object")])]),t._v(" "),r("h4",{attrs:{id:"type-declaration-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("enabled")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[t._v("If true, major ticks are generated. A major tick will affect autoskipping and major will be defined on ticks in the scriptable options context. "),r("strong",[r("code",[t._v("default")])]),t._v(" false")])])])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2734",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2734"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"padding"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#padding"}},[t._v("#")]),t._v(" padding")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("padding")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Sets the offset of the tick labels from the axis")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2717",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2717"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"textstrokecolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#textstrokecolor"}},[t._v("#")]),t._v(" textStrokeColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("textStrokeColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[t._v("ScriptableScaleContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The color of the stroke around the text.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" undefined")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2722",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2722"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"textstrokewidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#textstrokewidth"}},[t._v("#")]),t._v(" textStrokeWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("textStrokeWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1),t._v(" "),r("p",[t._v("Stroke width around the text.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2727",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2727"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"z"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#z"}},[t._v("#")]),t._v(" z")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("z")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2732",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2732"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/11.3ffb2b15.js b/docs/3.1.0/assets/js/11.f705aaa7.js similarity index 52% rename from docs/3.1.0/assets/js/11.3ffb2b15.js rename to docs/3.1.0/assets/js/11.f705aaa7.js index 06565cdfcf..5190edcc4d 100644 --- a/docs/3.1.0/assets/js/11.3ffb2b15.js +++ b/docs/3.1.0/assets/js/11.f705aaa7.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{337:function(t,e,a){"use strict";a.r(e);var r=a(7),n=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-animations"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-animations"}},[t._v("#")]),t._v(" Class: Animations")]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new Animations")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("animations")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/animations.html"}},[a("em",[t._v("Animations")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animations")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/animations.html"}},[a("em",[t._v("Animations")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L28",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:28"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("("),a("code",[t._v("animations")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animations")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L30",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:30"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("target")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("values")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("target")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("values")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L31",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:31"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{337:function(t,e,a){"use strict";a.r(e);var r=a(7),n=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-animations"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-animations"}},[t._v("#")]),t._v(" Class: Animations")]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new Animations")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("animations")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/animations.html"}},[a("em",[t._v("Animations")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animations")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/animations.html"}},[a("em",[t._v("Animations")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L28",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:28"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("("),a("code",[t._v("animations")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animations")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L30",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:30"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("target")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("values")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("target")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("values")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L31",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:31"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/110.e0faa63f.js b/docs/3.1.0/assets/js/110.e0faa63f.js new file mode 100644 index 0000000000..b727aa9b24 --- /dev/null +++ b/docs/3.1.0/assets/js/110.e0faa63f.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[110],{434:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-timescale-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-timescale-o"}},[t._v("#")]),t._v(" Interface: TimeScale")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("TimeScale")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#active"}},[t._v("active")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"axis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("axis")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#axis"}},[t._v("axis")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1160",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1160"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Bottom edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#bottom"}},[t._v("bottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L41",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:41"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#chart"}},[t._v("chart")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1150",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1150"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ctx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ctx"}},[t._v("#")]),t._v(" ctx")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("ctx")]),t._v(": CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#ctx"}},[t._v("ctx")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1149",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1149"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("fullSize")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("if true, and the item is horizontal, then push vertical boxes down")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#fullsize"}},[t._v("fullSize")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"height"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("height")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Height of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#height"}},[t._v("height")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"id"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("id")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#id"}},[t._v("id")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1147",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1147"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labelrotation"}},[t._v("#")]),t._v(" labelRotation")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("labelRotation")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#labelrotation"}},[t._v("labelRotation")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1161",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1161"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"left"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("left")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Left edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#left"}},[t._v("left")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:29"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"max"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#max"}},[t._v("#")]),t._v(" max")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("max")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#max"}},[t._v("max")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1163",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1163"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxheight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxheight"}},[t._v("#")]),t._v(" maxHeight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxHeight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#maxheight"}},[t._v("maxHeight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1153",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1153"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxwidth"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxwidth"}},[t._v("#")]),t._v(" maxWidth")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxWidth")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#maxwidth"}},[t._v("maxWidth")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1152",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1152"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"min"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#min"}},[t._v("#")]),t._v(" min")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("min")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#min"}},[t._v("min")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1162",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1162"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#options"}},[t._v("options")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingbottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingbottom"}},[t._v("#")]),t._v(" paddingBottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingBottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingbottom"}},[t._v("paddingBottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1156",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1156"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingleft"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingleft"}},[t._v("#")]),t._v(" paddingLeft")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingLeft")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingleft"}},[t._v("paddingLeft")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1157",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1157"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingright"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingright"}},[t._v("#")]),t._v(" paddingRight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingRight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingright"}},[t._v("paddingRight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1158",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1158"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingtop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingtop"}},[t._v("#")]),t._v(" paddingTop")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingTop")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingtop"}},[t._v("paddingTop")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1155",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1155"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])])],1),t._v(" "),a("p",[t._v("The position of the item in the chart layout. Possible values are")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#position"}},[t._v("position")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"right"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("right")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Right edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#right"}},[t._v("right")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:37"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[t._v("#")]),t._v(" ticks")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#ticks"}},[t._v("ticks")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1164",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1164"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"top"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("top")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Top edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#top"}},[t._v("top")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:33"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("type")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#type"}},[t._v("type")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1148",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1148"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the item. Higher weights are further away from the chart area")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#weight"}},[t._v("weight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"width"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("width")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Width of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#width"}},[t._v("width")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#x"}},[t._v("x")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#y"}},[t._v("y")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1244",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1244"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftercalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftercalculatelabelrotation"}},[t._v("#")]),t._v(" afterCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1250",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1250"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1241",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1241"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfit"}},[t._v("#")]),t._v(" afterFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1253",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1253"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftersetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftersetdimensions"}},[t._v("#")]),t._v(" afterSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1238",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1238"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterticktolabelconversion"}},[t._v("#")]),t._v(" afterTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1247",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1247"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1235",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1235"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1242",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1242"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforecalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforecalculatelabelrotation"}},[t._v("#")]),t._v(" beforeCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1248",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1248"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1239",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1239"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefit"}},[t._v("#")]),t._v(" beforeFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1251",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1251"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforelayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeLayout")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Called before the layout process starts")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L46",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:46"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforesetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforesetdimensions"}},[t._v("#")]),t._v(" beforeSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1236",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1236"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeticktolabelconversion"}},[t._v("#")]),t._v(" beforeTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1245",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1245"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1233",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1233"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildticks"}},[t._v("#")]),t._v(" buildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1243",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1243"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatelabelrotation"}},[t._v("#")]),t._v(" calculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1249",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1249"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1234",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1234"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"determinedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#determinedatalimits"}},[t._v("#")]),t._v(" determineDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("determineDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1240",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1240"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Draws the element")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L50",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:50"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawgrid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawgrid"}},[t._v("#")]),t._v(" drawGrid")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawGrid")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1169",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1169"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawlabels"}},[t._v("#")]),t._v(" drawLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawLabels")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1168",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1168"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawtitle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawtitle"}},[t._v("#")]),t._v(" drawTitle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawTitle")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1167",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1167"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fit"}},[t._v("#")]),t._v(" fit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("fit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1252",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1252"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"generateticklabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#generateticklabels"}},[t._v("#")]),t._v(" generateTickLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("generateTickLabels")]),t._v("("),a("code",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ticks")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1246",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1246"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasepixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasepixel"}},[t._v("#")]),t._v(" getBasePixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBasePixel")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the pixel for the minimum chart value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1225",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1225"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasevalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasevalue"}},[t._v("#")]),t._v(" getBaseValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBaseValue")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1219",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1219"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdatatimestamps"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdatatimestamps"}},[t._v("#")]),t._v(" getDataTimestamps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDataTimestamps")]),t._v("(): "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3013",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3013"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdecimalforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdecimalforpixel"}},[t._v("#")]),t._v(" getDecimalForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDecimalForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1175",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1175"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelforvalue"}},[t._v("#")]),t._v(" getLabelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Used to get the label to display in the tooltip for the given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1195",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1195"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabeltimestamps"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabeltimestamps"}},[t._v("#")]),t._v(" getLabelTimestamps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabelTimestamps")]),t._v("(): "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3014",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3014"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabels"}},[t._v("#")]),t._v(" getLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabels")]),t._v("(): "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1232",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1232"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlinewidthforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlinewidthforvalue"}},[t._v("#")]),t._v(" getLineWidthForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLineWidthForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the grid line width at given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1200",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1200"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmatchingvisiblemetas"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmatchingvisiblemetas"}},[t._v("#")]),t._v(" getMatchingVisibleMetas")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMatchingVisibleMetas")]),t._v("("),a("code",[t._v("type?")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1165",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1165"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("canStack")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1230",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1230"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpadding"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpadding"}},[t._v("#")]),t._v(" getPadding")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getPadding")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Returns an object with padding on the edges")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L54",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:54"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfordecimal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfordecimal"}},[t._v("#")]),t._v(" getPixelForDecimal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForDecimal")]),t._v("("),a("code",[t._v("decimal")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Utility for getting the pixel location of a percentage of scale\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("decimal")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1182",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1182"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfortick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfortick"}},[t._v("#")]),t._v(" getPixelForTick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForTick")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the tick at the given index\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1189",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1189"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelforvalue"}},[t._v("#")]),t._v(" getPixelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the given data point. Value can either be an index or a numerical value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1209",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1209"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": "),a("em",[t._v("never")]),t._v("[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getticks"}},[t._v("#")]),t._v(" getTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1231",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1231"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getuserbounds"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getuserbounds"}},[t._v("#")]),t._v(" getUserBounds")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getUserBounds")]),t._v("(): "),a("em",[t._v("object")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("maxDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("minDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1229",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1229"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getvalueforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getvalueforpixel"}},[t._v("#")]),t._v(" getValueForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getValueForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Used to get the data value from a given pixel. This is the inverse of getPixelForValue\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1217",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1217"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"init"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#init"}},[t._v("#")]),t._v(" init")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("init")]),t._v("("),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1227",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1227"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isfullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isfullsize"}},[t._v("#")]),t._v(" isFullSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isFullSize")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1255",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1255"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ishorizontal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ishorizontal"}},[t._v("#")]),t._v(" isHorizontal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isHorizontal")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("returns true if the layout item is horizontal (ie. top or bottom)")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"normalize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#normalize"}},[t._v("#")]),t._v(" normalize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("normalize")]),t._v("("),a("code",[t._v("values")]),t._v(": "),a("em",[t._v("number")]),t._v("[]): "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("values")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")]),t._v("[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3015",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3015"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("raw")]),t._v(": "),a("em",[t._v("unknown")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("unknown")])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("raw")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("unknown")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1228",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1228"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setdimensions"}},[t._v("#")]),t._v(" setDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1237",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1237"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("margins?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Takes two parameters: width and height.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("margins?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:64"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/110.f24db9f1.js b/docs/3.1.0/assets/js/110.f24db9f1.js deleted file mode 100644 index 75176debfe..0000000000 --- a/docs/3.1.0/assets/js/110.f24db9f1.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[110],{437:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-timescale-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-timescale-o"}},[t._v("#")]),t._v(" Interface: TimeScale")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("TimeScale")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#active"}},[t._v("active")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"axis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("axis")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#axis"}},[t._v("axis")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1160",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1160"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Bottom edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#bottom"}},[t._v("bottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L41",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:41"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#chart"}},[t._v("chart")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1150",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1150"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ctx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ctx"}},[t._v("#")]),t._v(" ctx")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("ctx")]),t._v(": CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#ctx"}},[t._v("ctx")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1149",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1149"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("fullSize")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("if true, and the item is horizontal, then push vertical boxes down")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#fullsize"}},[t._v("fullSize")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"height"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("height")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Height of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#height"}},[t._v("height")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"id"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("id")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#id"}},[t._v("id")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1147",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1147"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labelrotation"}},[t._v("#")]),t._v(" labelRotation")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("labelRotation")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#labelrotation"}},[t._v("labelRotation")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1161",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1161"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"left"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("left")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Left edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#left"}},[t._v("left")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:29"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"max"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#max"}},[t._v("#")]),t._v(" max")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("max")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#max"}},[t._v("max")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1163",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1163"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxheight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxheight"}},[t._v("#")]),t._v(" maxHeight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxHeight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#maxheight"}},[t._v("maxHeight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1153",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1153"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxwidth"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxwidth"}},[t._v("#")]),t._v(" maxWidth")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxWidth")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#maxwidth"}},[t._v("maxWidth")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1152",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1152"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"min"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#min"}},[t._v("#")]),t._v(" min")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("min")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#min"}},[t._v("min")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1162",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1162"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#options"}},[t._v("options")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingbottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingbottom"}},[t._v("#")]),t._v(" paddingBottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingBottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingbottom"}},[t._v("paddingBottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1156",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1156"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingleft"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingleft"}},[t._v("#")]),t._v(" paddingLeft")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingLeft")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingleft"}},[t._v("paddingLeft")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1157",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1157"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingright"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingright"}},[t._v("#")]),t._v(" paddingRight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingRight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingright"}},[t._v("paddingRight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1158",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1158"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingtop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingtop"}},[t._v("#")]),t._v(" paddingTop")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingTop")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingtop"}},[t._v("paddingTop")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1155",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1155"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])])],1),t._v(" "),a("p",[t._v("The position of the item in the chart layout. Possible values are")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#position"}},[t._v("position")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"right"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("right")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Right edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#right"}},[t._v("right")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:37"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[t._v("#")]),t._v(" ticks")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#ticks"}},[t._v("ticks")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1164",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1164"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"top"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("top")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Top edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#top"}},[t._v("top")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:33"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("type")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#type"}},[t._v("type")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1148",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1148"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the item. Higher weights are further away from the chart area")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#weight"}},[t._v("weight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"width"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("width")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Width of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#width"}},[t._v("width")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#x"}},[t._v("x")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#y"}},[t._v("y")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1244",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1244"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftercalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftercalculatelabelrotation"}},[t._v("#")]),t._v(" afterCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1250",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1250"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1241",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1241"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfit"}},[t._v("#")]),t._v(" afterFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1253",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1253"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftersetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftersetdimensions"}},[t._v("#")]),t._v(" afterSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1238",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1238"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterticktolabelconversion"}},[t._v("#")]),t._v(" afterTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1247",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1247"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1235",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1235"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1242",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1242"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforecalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforecalculatelabelrotation"}},[t._v("#")]),t._v(" beforeCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1248",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1248"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1239",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1239"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefit"}},[t._v("#")]),t._v(" beforeFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1251",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1251"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforelayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeLayout")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Called before the layout process starts")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L46",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:46"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforesetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforesetdimensions"}},[t._v("#")]),t._v(" beforeSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1236",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1236"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeticktolabelconversion"}},[t._v("#")]),t._v(" beforeTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1245",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1245"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1233",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1233"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildticks"}},[t._v("#")]),t._v(" buildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1243",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1243"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatelabelrotation"}},[t._v("#")]),t._v(" calculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1249",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1249"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1234",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1234"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"determinedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#determinedatalimits"}},[t._v("#")]),t._v(" determineDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("determineDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1240",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1240"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Draws the element")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L50",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:50"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawgrid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawgrid"}},[t._v("#")]),t._v(" drawGrid")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawGrid")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1169",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1169"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawlabels"}},[t._v("#")]),t._v(" drawLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawLabels")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1168",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1168"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawtitle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawtitle"}},[t._v("#")]),t._v(" drawTitle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawTitle")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1167",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1167"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fit"}},[t._v("#")]),t._v(" fit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("fit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1252",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1252"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"generateticklabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#generateticklabels"}},[t._v("#")]),t._v(" generateTickLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("generateTickLabels")]),t._v("("),a("code",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ticks")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1246",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1246"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasepixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasepixel"}},[t._v("#")]),t._v(" getBasePixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBasePixel")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the pixel for the minimum chart value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1225",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1225"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasevalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasevalue"}},[t._v("#")]),t._v(" getBaseValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBaseValue")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1219",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1219"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdatatimestamps"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdatatimestamps"}},[t._v("#")]),t._v(" getDataTimestamps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDataTimestamps")]),t._v("(): "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3013",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3013"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdecimalforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdecimalforpixel"}},[t._v("#")]),t._v(" getDecimalForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDecimalForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1175",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1175"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelforvalue"}},[t._v("#")]),t._v(" getLabelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Used to get the label to display in the tooltip for the given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1195",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1195"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabeltimestamps"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabeltimestamps"}},[t._v("#")]),t._v(" getLabelTimestamps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabelTimestamps")]),t._v("(): "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3014",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3014"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabels"}},[t._v("#")]),t._v(" getLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabels")]),t._v("(): "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1232",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1232"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlinewidthforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlinewidthforvalue"}},[t._v("#")]),t._v(" getLineWidthForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLineWidthForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the grid line width at given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1200",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1200"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmatchingvisiblemetas"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmatchingvisiblemetas"}},[t._v("#")]),t._v(" getMatchingVisibleMetas")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMatchingVisibleMetas")]),t._v("("),a("code",[t._v("type?")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1165",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1165"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("canStack")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1230",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1230"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpadding"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpadding"}},[t._v("#")]),t._v(" getPadding")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getPadding")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Returns an object with padding on the edges")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L54",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:54"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfordecimal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfordecimal"}},[t._v("#")]),t._v(" getPixelForDecimal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForDecimal")]),t._v("("),a("code",[t._v("decimal")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Utility for getting the pixel location of a percentage of scale\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("decimal")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1182",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1182"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfortick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfortick"}},[t._v("#")]),t._v(" getPixelForTick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForTick")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the tick at the given index\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1189",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1189"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelforvalue"}},[t._v("#")]),t._v(" getPixelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the given data point. Value can either be an index or a numerical value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1209",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1209"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": "),a("em",[t._v("never")]),t._v("[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getticks"}},[t._v("#")]),t._v(" getTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1231",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1231"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getuserbounds"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getuserbounds"}},[t._v("#")]),t._v(" getUserBounds")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getUserBounds")]),t._v("(): "),a("em",[t._v("object")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("maxDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("minDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1229",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1229"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getvalueforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getvalueforpixel"}},[t._v("#")]),t._v(" getValueForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getValueForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Used to get the data value from a given pixel. This is the inverse of getPixelForValue\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1217",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1217"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"init"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#init"}},[t._v("#")]),t._v(" init")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("init")]),t._v("("),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1227",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1227"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isfullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isfullsize"}},[t._v("#")]),t._v(" isFullSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isFullSize")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1255",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1255"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ishorizontal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ishorizontal"}},[t._v("#")]),t._v(" isHorizontal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isHorizontal")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("returns true if the layout item is horizontal (ie. top or bottom)")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"normalize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#normalize"}},[t._v("#")]),t._v(" normalize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("normalize")]),t._v("("),a("code",[t._v("values")]),t._v(": "),a("em",[t._v("number")]),t._v("[]): "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("values")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")]),t._v("[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3015",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3015"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("raw")]),t._v(": "),a("em",[t._v("unknown")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("unknown")])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("raw")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("unknown")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1228",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1228"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setdimensions"}},[t._v("#")]),t._v(" setDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1237",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1237"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("margins?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Takes two parameters: width and height.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("margins?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:64"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/111.7354a214.js b/docs/3.1.0/assets/js/111.7354a214.js new file mode 100644 index 0000000000..935c32e3a3 --- /dev/null +++ b/docs/3.1.0/assets/js/111.7354a214.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[111],{436:function(e,t,r){"use strict";r.r(t);var s=r(7),a=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-titleoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-titleoptions"}},[e._v("#")]),e._v(" Interface: TitleOptions")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"align"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#align"}},[e._v("#")]),e._v(" align")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("align")]),e._v(": "),r("em",[e._v("start")]),e._v(" | "),r("em",[e._v("end")]),e._v(" | "),r("em",[e._v("center")])]),e._v(" "),r("p",[e._v("Alignment of the title.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 'center'")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2219",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2219"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"color"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[e._v("#")]),e._v(" color")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("color")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Color of text")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("see")])]),e._v(" Defaults.color")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2234",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2234"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"display"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[e._v("#")]),e._v(" display")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("display")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Is the title shown?")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" false")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2224",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2224"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"font"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#font"}},[e._v("#")]),e._v(" font")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("font")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[r("em",[e._v("FontSpec")])])],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2235",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2235"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"fullsize"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[e._v("#")]),e._v(" fullSize")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("fullSize")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Marks that this box should take the full width/height of the canvas (moving other boxes). If set to "),r("code",[e._v("false")]),e._v(", places the box above/beside the\nchart area")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" true")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2242",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2242"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"padding"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#padding"}},[e._v("#")]),e._v(" padding")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("padding")]),e._v(": "),r("em",[e._v("number")]),e._v(" | { "),r("code",[e._v("bottom")]),e._v(": "),r("em",[e._v("number")]),e._v(" ; "),r("code",[e._v("top")]),e._v(": "),r("em",[e._v("number")]),e._v(" }")]),e._v(" "),r("p",[e._v("Adds padding above and below the title text if a single number is specified. It is also possible to change top and bottom padding separately.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2246",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2246"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"position"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[e._v("#")]),e._v(" position")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("position")]),e._v(": "),r("em",[e._v("left")]),e._v(" | "),r("em",[e._v("right")]),e._v(" | "),r("em",[e._v("bottom")]),e._v(" | "),r("em",[e._v("top")])]),e._v(" "),r("p",[e._v("Position of title")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 'top'")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2229",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2229"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"text"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#text"}},[e._v("#")]),e._v(" text")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("text")]),e._v(": "),r("em",[e._v("string")]),e._v(" | "),r("em",[e._v("string")]),e._v("[]")]),e._v(" "),r("p",[e._v("Title text to display. If specified as an array, text is rendered on multiple lines.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2250",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2250"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/111.8b3cbf74.js b/docs/3.1.0/assets/js/111.8b3cbf74.js deleted file mode 100644 index 1df1cd842c..0000000000 --- a/docs/3.1.0/assets/js/111.8b3cbf74.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[111],{438:function(t,e,r){"use strict";r.r(e);var s=r(7),a=Object(s.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-titleoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-titleoptions"}},[t._v("#")]),t._v(" Interface: TitleOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"align"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#align"}},[t._v("#")]),t._v(" align")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("align")]),t._v(": "),r("em",[t._v("start")]),t._v(" | "),r("em",[t._v("end")]),t._v(" | "),r("em",[t._v("center")])]),t._v(" "),r("p",[t._v("Alignment of the title.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'center'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2219",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2219"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"color"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[t._v("#")]),t._v(" color")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("color")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("Color of text")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("see")])]),t._v(" Defaults.color")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2234",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2234"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"display"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[t._v("#")]),t._v(" display")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("display")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Is the title shown?")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2224",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2224"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"font"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#font"}},[t._v("#")]),t._v(" font")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("font")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[r("em",[t._v("FontSpec")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2235",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2235"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"fullsize"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("fullSize")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Marks that this box should take the full width/height of the canvas (moving other boxes). If set to "),r("code",[t._v("false")]),t._v(", places the box above/beside the\nchart area")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2242",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2242"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"padding"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#padding"}},[t._v("#")]),t._v(" padding")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("padding")]),t._v(": "),r("em",[t._v("number")]),t._v(" | { "),r("code",[t._v("bottom")]),t._v(": "),r("em",[t._v("number")]),t._v(" ; "),r("code",[t._v("top")]),t._v(": "),r("em",[t._v("number")]),t._v(" }")]),t._v(" "),r("p",[t._v("Adds padding above and below the title text if a single number is specified. It is also possible to change top and bottom padding separately.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2246",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2246"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"position"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("position")]),t._v(": "),r("em",[t._v("left")]),t._v(" | "),r("em",[t._v("right")]),t._v(" | "),r("em",[t._v("bottom")]),t._v(" | "),r("em",[t._v("top")])]),t._v(" "),r("p",[t._v("Position of title")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'top'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2229",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2229"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"text"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#text"}},[t._v("#")]),t._v(" text")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("text")]),t._v(": "),r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("string")]),t._v("[]")]),t._v(" "),r("p",[t._v("Title text to display. If specified as an array, text is rendered on multiple lines.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2250",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2250"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/112.00e3774d.js b/docs/3.1.0/assets/js/112.00e3774d.js deleted file mode 100644 index e471611f85..0000000000 --- a/docs/3.1.0/assets/js/112.00e3774d.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[112],{439:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-tooltipcallbacks-ttype-model-item"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-tooltipcallbacks-ttype-model-item"}},[t._v("#")]),t._v(" Interface: TooltipCallbacks")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Model")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Item")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[a("em",[t._v("TooltipItem")])]),t._v("")],1)])])]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbody"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbody"}},[t._v("#")]),t._v(" afterBody")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBody")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2351",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2351"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfooter"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfooter"}},[t._v("#")]),t._v(" afterFooter")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFooter")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2363",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2363"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterlabel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterlabel"}},[t._v("#")]),t._v(" afterLabel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterLabel")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2355",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2355"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftertitle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftertitle"}},[t._v("#")]),t._v(" afterTitle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTitle")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2348",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2348"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebody"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebody"}},[t._v("#")]),t._v(" beforeBody")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBody")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2350",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2350"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefooter"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefooter"}},[t._v("#")]),t._v(" beforeFooter")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFooter")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2361",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2361"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforelabel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelabel"}},[t._v("#")]),t._v(" beforeLabel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeLabel")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2353",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2353"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforetitle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforetitle"}},[t._v("#")]),t._v(" beforeTitle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTitle")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2346",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2346"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"footer"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#footer"}},[t._v("#")]),t._v(" footer")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("footer")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2362",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2362"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"label"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("label")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2354",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2354"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labelcolor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labelcolor"}},[t._v("#")]),t._v(" labelColor")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("labelColor")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("RouterLink",{attrs:{to:"/api/interfaces/tooltiplabelstyle.html"}},[a("em",[t._v("TooltipLabelStyle")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tooltiplabelstyle.html"}},[a("em",[t._v("TooltipLabelStyle")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2357",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2357"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labelpointstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labelpointstyle"}},[t._v("#")]),t._v(" labelPointStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("labelPointStyle")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#pointstyle"}},[a("em",[t._v("PointStyle")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("rotation")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2359",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2359"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labeltextcolor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labeltextcolor"}},[t._v("#")]),t._v(" labelTextColor")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("labelTextColor")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2358",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2358"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"title"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" title")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("title")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2347",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2347"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/112.6ca1a838.js b/docs/3.1.0/assets/js/112.6ca1a838.js new file mode 100644 index 0000000000..76fefc57d5 --- /dev/null +++ b/docs/3.1.0/assets/js/112.6ca1a838.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[112],{435:function(t,e,a){"use strict";a.r(e);var r=a(7),_=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-tooltipcallbacks-ttype-model-item"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-tooltipcallbacks-ttype-model-item"}},[t._v("#")]),t._v(" Interface: TooltipCallbacks")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Model")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Item")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[a("em",[t._v("TooltipItem")])]),t._v("")],1)])])]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbody"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbody"}},[t._v("#")]),t._v(" afterBody")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBody")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2351",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2351"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfooter"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfooter"}},[t._v("#")]),t._v(" afterFooter")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFooter")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2363",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2363"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterlabel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterlabel"}},[t._v("#")]),t._v(" afterLabel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterLabel")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2355",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2355"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftertitle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftertitle"}},[t._v("#")]),t._v(" afterTitle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTitle")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2348",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2348"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebody"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebody"}},[t._v("#")]),t._v(" beforeBody")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBody")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2350",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2350"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefooter"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefooter"}},[t._v("#")]),t._v(" beforeFooter")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFooter")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2361",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2361"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforelabel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelabel"}},[t._v("#")]),t._v(" beforeLabel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeLabel")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2353",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2353"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforetitle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforetitle"}},[t._v("#")]),t._v(" beforeTitle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTitle")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2346",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2346"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"footer"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#footer"}},[t._v("#")]),t._v(" footer")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("footer")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2362",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2362"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"label"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("label")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2354",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2354"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labelcolor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labelcolor"}},[t._v("#")]),t._v(" labelColor")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("labelColor")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("RouterLink",{attrs:{to:"/api/interfaces/tooltiplabelstyle.html"}},[a("em",[t._v("TooltipLabelStyle")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tooltiplabelstyle.html"}},[a("em",[t._v("TooltipLabelStyle")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2357",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2357"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labelpointstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labelpointstyle"}},[t._v("#")]),t._v(" labelPointStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("labelPointStyle")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#pointstyle"}},[a("em",[t._v("PointStyle")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("rotation")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2359",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2359"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labeltextcolor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labeltextcolor"}},[t._v("#")]),t._v(" labelTextColor")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("labelTextColor")]),t._v("("),a("code",[t._v("tooltipItem")]),t._v(": Item): "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2358",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2358"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"title"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" title")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("title")]),t._v("("),a("code",[t._v("tooltipItems")]),t._v(": Item[]): "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("tooltipItems")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Item[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2347",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2347"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/113.3ec77bb7.js b/docs/3.1.0/assets/js/113.3ec77bb7.js deleted file mode 100644 index 6823547638..0000000000 --- a/docs/3.1.0/assets/js/113.3ec77bb7.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[113],{440:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-tooltipitem-ttype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-tooltipitem-ttype"}},[t._v("#")]),t._v(" Interface: TooltipItem")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("The chart the tooltip is being shown on")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2575",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2575"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"dataindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataindex"}},[t._v("#")]),t._v(" dataIndex")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("dataIndex")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Index of this data item in the dataset")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2610",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2610"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"dataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[t._v("#")]),t._v(" dataset")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("dataset")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[t._v("The dataset the item comes from")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2600",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2600"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"datasetindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[t._v("#")]),t._v(" datasetIndex")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Index of the dataset the item comes from")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2605",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2605"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"element"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#element"}},[t._v("#")]),t._v(" element")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1),t._v(" "),a("p",[t._v("The chart element (point, arc, bar, etc.) for this tooltip item")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2615",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2615"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"formattedvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#formattedvalue"}},[t._v("#")]),t._v(" formattedValue")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("formattedValue")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Formatted value for the tooltip")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2595",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2595"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"label"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("label")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Label for the tooltip")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2580"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsed"}},[t._v("#")]),t._v(" parsed")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("parsed")]),t._v(": "),a("em",[t._v("UnionToIntersection")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#parseddatatype"}},[a("em",[t._v("ParsedDataType")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Parsed data values for the given "),a("code",[t._v("dataIndex")]),t._v(" and "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2585",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2585"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"raw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#raw"}},[t._v("#")]),t._v(" raw")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("raw")]),t._v(": "),a("em",[t._v("unknown")])]),t._v(" "),a("p",[t._v("Raw data values for the given "),a("code",[t._v("dataIndex")]),t._v(" and "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2590",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2590"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/113.625030ba.js b/docs/3.1.0/assets/js/113.625030ba.js new file mode 100644 index 0000000000..c2690ed12b --- /dev/null +++ b/docs/3.1.0/assets/js/113.625030ba.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[113],{437:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-tooltipitem-ttype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-tooltipitem-ttype"}},[t._v("#")]),t._v(" Interface: TooltipItem")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("The chart the tooltip is being shown on")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2575",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2575"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"dataindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataindex"}},[t._v("#")]),t._v(" dataIndex")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("dataIndex")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Index of this data item in the dataset")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2610",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2610"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"dataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[t._v("#")]),t._v(" dataset")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("dataset")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[t._v("The dataset the item comes from")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2600",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2600"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"datasetindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[t._v("#")]),t._v(" datasetIndex")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Index of the dataset the item comes from")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2605",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2605"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"element"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#element"}},[t._v("#")]),t._v(" element")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1),t._v(" "),a("p",[t._v("The chart element (point, arc, bar, etc.) for this tooltip item")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2615",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2615"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"formattedvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#formattedvalue"}},[t._v("#")]),t._v(" formattedValue")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("formattedValue")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Formatted value for the tooltip")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2595",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2595"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"label"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("label")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Label for the tooltip")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2580"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsed"}},[t._v("#")]),t._v(" parsed")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("parsed")]),t._v(": "),a("em",[t._v("UnionToIntersection")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#parseddatatype"}},[a("em",[t._v("ParsedDataType")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Parsed data values for the given "),a("code",[t._v("dataIndex")]),t._v(" and "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2585",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2585"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"raw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#raw"}},[t._v("#")]),t._v(" raw")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("raw")]),t._v(": "),a("em",[t._v("unknown")])]),t._v(" "),a("p",[t._v("Raw data values for the given "),a("code",[t._v("dataIndex")]),t._v(" and "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2590",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2590"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/114.3a9c0bc2.js b/docs/3.1.0/assets/js/114.3a9c0bc2.js new file mode 100644 index 0000000000..993feeae73 --- /dev/null +++ b/docs/3.1.0/assets/js/114.3a9c0bc2.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[114],{438:function(e,r,t){"use strict";t.r(r);var o=t(7),s=Object(o.a)({},(function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"interface-tooltiplabelstyle"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interface-tooltiplabelstyle"}},[e._v("#")]),e._v(" Interface: TooltipLabelStyle")]),e._v(" "),t("h2",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),t("h3",{attrs:{id:"backgroundcolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[e._v("#")]),e._v(" backgroundColor")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("backgroundColor")]),e._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[e._v("Color")])])],1),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2257",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2257"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"bordercolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[e._v("#")]),e._v(" borderColor")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("borderColor")]),e._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[e._v("Color")])])],1),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2256",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2256"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"borderdash"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#borderdash"}},[e._v("#")]),e._v(" borderDash")]),e._v(" "),t("p",[e._v("• "),t("code",[e._v("Optional")]),e._v(" "),t("strong",[e._v("borderDash")]),e._v(": ["),t("em",[e._v("number")]),e._v(", "),t("em",[e._v("number")]),e._v("]")]),e._v(" "),t("p",[e._v("Border dash")]),e._v(" "),t("p",[t("strong",[t("code",[e._v("since")])]),e._v(" 3.1.0")]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2269",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2269"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"borderdashoffset"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#borderdashoffset"}},[e._v("#")]),e._v(" borderDashOffset")]),e._v(" "),t("p",[e._v("• "),t("code",[e._v("Optional")]),e._v(" "),t("strong",[e._v("borderDashOffset")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Border dash offset")]),e._v(" "),t("p",[t("strong",[t("code",[e._v("since")])]),e._v(" 3.1.0")]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2275",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2275"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"borderradius"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[e._v("#")]),e._v(" borderRadius")]),e._v(" "),t("p",[e._v("• "),t("code",[e._v("Optional")]),e._v(" "),t("strong",[e._v("borderRadius")]),e._v(": "),t("em",[e._v("number")]),e._v(" | "),t("RouterLink",{attrs:{to:"/api/interfaces/borderradius.html"}},[t("em",[e._v("BorderRadius")])])],1),e._v(" "),t("p",[e._v("borderRadius")]),e._v(" "),t("p",[t("strong",[t("code",[e._v("since")])]),e._v(" 3.1.0")]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2281",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2281"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"borderwidth"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[e._v("#")]),e._v(" borderWidth")]),e._v(" "),t("p",[e._v("• "),t("code",[e._v("Optional")]),e._v(" "),t("strong",[e._v("borderWidth")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Width of border line")]),e._v(" "),t("p",[t("strong",[t("code",[e._v("since")])]),e._v(" 3.1.0")]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2263",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2263"),t("OutboundLink")],1)])])}),[],!1,null,null,null);r.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/114.62f8796a.js b/docs/3.1.0/assets/js/114.62f8796a.js deleted file mode 100644 index 76210e2227..0000000000 --- a/docs/3.1.0/assets/js/114.62f8796a.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[114],{441:function(r,e,t){"use strict";t.r(e);var s=t(7),o=Object(s.a)({},(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[t("h1",{attrs:{id:"interface-tooltiplabelstyle"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interface-tooltiplabelstyle"}},[r._v("#")]),r._v(" Interface: TooltipLabelStyle")]),r._v(" "),t("h2",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),t("h3",{attrs:{id:"backgroundcolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[r._v("#")]),r._v(" backgroundColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("backgroundColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2257",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:2257"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"bordercolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[r._v("#")]),r._v(" borderColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("borderColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2256",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:2256"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"borderdash"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#borderdash"}},[r._v("#")]),r._v(" borderDash")]),r._v(" "),t("p",[r._v("• "),t("code",[r._v("Optional")]),r._v(" "),t("strong",[r._v("borderDash")]),r._v(": ["),t("em",[r._v("number")]),r._v(", "),t("em",[r._v("number")]),r._v("]")]),r._v(" "),t("p",[r._v("Border dash")]),r._v(" "),t("p",[t("strong",[t("code",[r._v("since")])]),r._v(" 3.1.0")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2269",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:2269"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"borderdashoffset"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#borderdashoffset"}},[r._v("#")]),r._v(" borderDashOffset")]),r._v(" "),t("p",[r._v("• "),t("code",[r._v("Optional")]),r._v(" "),t("strong",[r._v("borderDashOffset")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("Border dash offset")]),r._v(" "),t("p",[t("strong",[t("code",[r._v("since")])]),r._v(" 3.1.0")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2275",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:2275"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"borderradius"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[r._v("#")]),r._v(" borderRadius")]),r._v(" "),t("p",[r._v("• "),t("code",[r._v("Optional")]),r._v(" "),t("strong",[r._v("borderRadius")]),r._v(": "),t("em",[r._v("number")]),r._v(" | "),t("RouterLink",{attrs:{to:"/api/interfaces/borderradius.html"}},[t("em",[r._v("BorderRadius")])])],1),r._v(" "),t("p",[r._v("borderRadius")]),r._v(" "),t("p",[t("strong",[t("code",[r._v("since")])]),r._v(" 3.1.0")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2281",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:2281"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"borderwidth"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[r._v("#")]),r._v(" borderWidth")]),r._v(" "),t("p",[r._v("• "),t("code",[r._v("Optional")]),r._v(" "),t("strong",[r._v("borderWidth")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("Width of border line")]),r._v(" "),t("p",[t("strong",[t("code",[r._v("since")])]),r._v(" 3.1.0")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2263",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:2263"),t("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/115.10b47ecd.js b/docs/3.1.0/assets/js/115.10b47ecd.js new file mode 100644 index 0000000000..9bf47263e0 --- /dev/null +++ b/docs/3.1.0/assets/js/115.10b47ecd.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[115],{439:function(t,e,r){"use strict";r.r(e);var s=r(7),a=Object(s.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-tooltipmodel-ttype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-tooltipmodel-ttype"}},[t._v("#")]),t._v(" Interface: TooltipModel")]),t._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("TType")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#charttype"}},[r("em",[t._v("ChartType")])])],1)])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"afterbody"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#afterbody"}},[t._v("#")]),t._v(" afterBody")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("afterBody")]),t._v(": "),r("em",[t._v("string")]),t._v("[]")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2310",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2310"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"beforebody"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#beforebody"}},[t._v("#")]),t._v(" beforeBody")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("beforeBody")]),t._v(": "),r("em",[t._v("string")]),t._v("[]")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2308",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2308"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"body"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#body"}},[t._v("#")]),t._v(" body")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("body")]),t._v(": { "),r("code",[t._v("after")]),t._v(": "),r("em",[t._v("string")]),t._v("[] ; "),r("code",[t._v("before")]),t._v(": "),r("em",[t._v("string")]),t._v("[] ; "),r("code",[t._v("lines")]),t._v(": "),r("em",[t._v("string")]),t._v("[] }[]")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2306",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2306"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"caretx"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#caretx"}},[t._v("#")]),t._v(" caretX")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("caretX")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2297",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2297"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"carety"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#carety"}},[t._v("#")]),t._v(" caretY")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("caretY")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2298",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2298"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"datapoints"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#datapoints"}},[t._v("#")]),t._v(" dataPoints")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("dataPoints")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("[]")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2285",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2285"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footer"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footer"}},[t._v("#")]),t._v(" footer")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footer")]),t._v(": "),r("em",[t._v("string")]),t._v("[]")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2318",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2318"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"height"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("height")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2295",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2295"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"labelcolors"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#labelcolors"}},[t._v("#")]),t._v(" labelColors")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("labelColors")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltiplabelstyle.html"}},[r("em",[t._v("TooltipLabelStyle")])]),t._v("[]")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2321",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2321"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"labelpointstyles"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#labelpointstyles"}},[t._v("#")]),t._v(" labelPointStyles")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("labelPointStyles")]),t._v(": { "),r("code",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])]),t._v(" ; "),r("code",[t._v("rotation")]),t._v(": "),r("em",[t._v("number")]),t._v(" }[]")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2323",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2323"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"labeltextcolors"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#labeltextcolors"}},[t._v("#")]),t._v(" labelTextColors")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("labelTextColors")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v("[]")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2322",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2322"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"opacity"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#opacity"}},[t._v("#")]),t._v(" opacity")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("opacity")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2326",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2326"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"options"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("options")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipoptions.html"}},[r("em",[t._v("TooltipOptions")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2329",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2329"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"title"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" title")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("title")]),t._v(": "),r("em",[t._v("string")]),t._v("[]")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2314",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2314"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"width"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("width")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2294",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2294"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("x")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2292",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2292"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"xalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xalign"}},[t._v("#")]),t._v(" xAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("xAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[t._v("TextAlign")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2288",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2288"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("y")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2293",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2293"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"yalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yalign"}},[t._v("#")]),t._v(" yAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("yAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#tooltipyalignment"}},[r("em",[t._v("TooltipYAlignment")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2289",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2289"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/115.278437a3.js b/docs/3.1.0/assets/js/115.278437a3.js deleted file mode 100644 index c71e8c01e4..0000000000 --- a/docs/3.1.0/assets/js/115.278437a3.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[115],{442:function(t,e,r){"use strict";r.r(e);var s=r(7),a=Object(s.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-tooltipmodel-ttype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-tooltipmodel-ttype"}},[t._v("#")]),t._v(" Interface: TooltipModel")]),t._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("TType")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#charttype"}},[r("em",[t._v("ChartType")])])],1)])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"afterbody"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#afterbody"}},[t._v("#")]),t._v(" afterBody")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("afterBody")]),t._v(": "),r("em",[t._v("string")]),t._v("[]")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2310",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2310"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"beforebody"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#beforebody"}},[t._v("#")]),t._v(" beforeBody")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("beforeBody")]),t._v(": "),r("em",[t._v("string")]),t._v("[]")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2308",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2308"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"body"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#body"}},[t._v("#")]),t._v(" body")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("body")]),t._v(": { "),r("code",[t._v("after")]),t._v(": "),r("em",[t._v("string")]),t._v("[] ; "),r("code",[t._v("before")]),t._v(": "),r("em",[t._v("string")]),t._v("[] ; "),r("code",[t._v("lines")]),t._v(": "),r("em",[t._v("string")]),t._v("[] }[]")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2306",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2306"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"caretx"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#caretx"}},[t._v("#")]),t._v(" caretX")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("caretX")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2297",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2297"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"carety"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#carety"}},[t._v("#")]),t._v(" caretY")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("caretY")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2298",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2298"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"datapoints"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#datapoints"}},[t._v("#")]),t._v(" dataPoints")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("dataPoints")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("[]")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2285",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2285"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footer"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footer"}},[t._v("#")]),t._v(" footer")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footer")]),t._v(": "),r("em",[t._v("string")]),t._v("[]")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2318",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2318"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"height"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("height")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2295",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2295"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"labelcolors"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#labelcolors"}},[t._v("#")]),t._v(" labelColors")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("labelColors")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltiplabelstyle.html"}},[r("em",[t._v("TooltipLabelStyle")])]),t._v("[]")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2321",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2321"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"labelpointstyles"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#labelpointstyles"}},[t._v("#")]),t._v(" labelPointStyles")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("labelPointStyles")]),t._v(": { "),r("code",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])]),t._v(" ; "),r("code",[t._v("rotation")]),t._v(": "),r("em",[t._v("number")]),t._v(" }[]")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2323",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2323"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"labeltextcolors"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#labeltextcolors"}},[t._v("#")]),t._v(" labelTextColors")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("labelTextColors")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v("[]")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2322",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2322"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"opacity"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#opacity"}},[t._v("#")]),t._v(" opacity")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("opacity")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2326",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2326"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"options"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("options")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipoptions.html"}},[r("em",[t._v("TooltipOptions")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2329",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2329"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"title"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" title")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("title")]),t._v(": "),r("em",[t._v("string")]),t._v("[]")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2314",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2314"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"width"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("width")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2294",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2294"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("x")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2292",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2292"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"xalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xalign"}},[t._v("#")]),t._v(" xAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("xAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[t._v("TextAlign")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2288",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2288"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("y")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2293",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2293"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"yalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yalign"}},[t._v("#")]),t._v(" yAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("yAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#tooltipyalignment"}},[r("em",[t._v("TooltipYAlignment")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2289",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2289"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/116.a15a7d02.js b/docs/3.1.0/assets/js/116.a15a7d02.js deleted file mode 100644 index 8b2acc4638..0000000000 --- a/docs/3.1.0/assets/js/116.a15a7d02.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[116],{569:function(t,e,r){"use strict";r.r(e);var a=r(7),o=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-tooltipoptions-ttype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-tooltipoptions-ttype"}},[t._v("#")]),t._v(" Interface: TooltipOptions")]),t._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("TType")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#charttype"}},[r("em",[t._v("ChartType")])])],1)])])]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[r("em",[t._v("CoreInteractionOptions")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("TooltipOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2566",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2566"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2567",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2567"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"axis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("axis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")]),t._v(" | "),r("em",[t._v("xy")])]),t._v(" "),r("p",[t._v("Can be set to 'x', 'y', or 'xy' to define which directions are used in calculating distances. Defaults to 'x' for 'index' mode and 'xy' in dataset and 'nearest' modes.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[t._v("CoreInteractionOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html#axis"}},[t._v("axis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1349",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1349"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Background color of the tooltip.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'rgba(0, 0, 0, 0.8)'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2429",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2429"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bodyalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bodyalign"}},[t._v("#")]),t._v(" bodyAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bodyAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[t._v("TextAlign")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Horizontal alignment of the body text lines.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'left'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2474",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2474"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bodycolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bodycolor"}},[t._v("#")]),t._v(" bodyColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bodyColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color of body")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" '#fff'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2464",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2464"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bodyfont"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bodyfont"}},[t._v("#")]),t._v(" bodyFont")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bodyFont")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[r("em",[t._v("FontSpec")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("See Fonts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" {}")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2469",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2469"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bodyspacing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bodyspacing"}},[t._v("#")]),t._v(" bodySpacing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bodySpacing")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Spacing to add to top and bottom of each tooltip item.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2459",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2459"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color of the border.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'rgba(0, 0, 0, 0)'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2549",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2549"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Size of the border.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2554",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2554"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"boxheight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#boxheight"}},[t._v("#")]),t._v(" boxHeight")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("boxHeight")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Height of the color box if displayColors is true.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" bodyFont.size")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2539",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2539"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"boxwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#boxwidth"}},[t._v("#")]),t._v(" boxWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("boxWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Width of the color box if displayColors is true.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" bodyFont.size")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2534",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2534"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"callbacks"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#callbacks"}},[t._v("#")]),t._v(" callbacks")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("callbacks")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipcallbacks.html"}},[r("em",[t._v("TooltipCallbacks")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2568",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2568"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"caretpadding"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#caretpadding"}},[t._v("#")]),t._v(" caretPadding")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("caretPadding")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Extra distance to move the end of the tooltip arrow away from the tooltip point.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2509",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2509"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"caretsize"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#caretsize"}},[t._v("#")]),t._v(" caretSize")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("caretSize")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Size, in px, of the tooltip arrow.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 5")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2514",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2514"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"cornerradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#cornerradius"}},[t._v("#")]),t._v(" cornerRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("cornerRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Radius of tooltip corner curves.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 6")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2519",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2519"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"displaycolors"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#displaycolors"}},[t._v("#")]),t._v(" displayColors")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("displayColors")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("If true, color boxes are shown in the tooltip.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2529",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2529"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"enabled"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#enabled"}},[t._v("#")]),t._v(" enabled")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("enabled")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Are on-canvas tooltips enabled?")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2402",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2402"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"filter"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#filter"}},[t._v("#")]),t._v(" filter")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("filter")]),t._v(": ("),r("code",[t._v("e")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("index")]),t._v(": "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("array")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">[], "),r("code",[t._v("data")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>) => "),r("em",[t._v("boolean")])],1),t._v(" "),r("h4",{attrs:{id:"type-declaration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("p",[t._v("▸ ("),r("code",[t._v("e")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("index")]),t._v(": "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("array")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">[], "),r("code",[t._v("data")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),r("em",[t._v("boolean")])],1),t._v(" "),r("h4",{attrs:{id:"parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("e")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("index")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("number")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("array")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">[]")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("data")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2423",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2423"),r("OutboundLink")],1)]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2423",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2423"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footeralign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footeralign"}},[t._v("#")]),t._v(" footerAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footerAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[t._v("TextAlign")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Horizontal alignment of the footer text lines.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'left'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2499",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2499"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footercolor"}},[t._v("#")]),t._v(" footerColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footerColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color of footer")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" '#fff'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2489",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2489"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footerfont"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footerfont"}},[t._v("#")]),t._v(" footerFont")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footerFont")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[r("em",[t._v("FontSpec")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("See Fonts")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" {weight: 'bold'}")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2494",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2494"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footermargintop"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footermargintop"}},[t._v("#")]),t._v(" footerMarginTop")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footerMarginTop")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Margin to add before drawing the footer.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 6")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2484",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2484"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footerspacing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footerspacing"}},[t._v("#")]),t._v(" footerSpacing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footerSpacing")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Spacing to add to top and bottom of each footer line.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2479",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2479"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"intersect"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#intersect"}},[t._v("#")]),t._v(" intersect")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("intersect")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("if true, the hover mode only applies when the mouse position intersects an item on the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[t._v("CoreInteractionOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html#intersect"}},[t._v("intersect")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1344",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1344"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"itemsort"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#itemsort"}},[t._v("#")]),t._v(" itemSort")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("itemSort")]),t._v(": ("),r("code",[t._v("a")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("b")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("data")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>) => "),r("em",[t._v("number")])],1),t._v(" "),r("p",[t._v("Sort tooltip items.")]),t._v(" "),r("h4",{attrs:{id:"type-declaration-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("p",[t._v("▸ ("),r("code",[t._v("a")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("b")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("data")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),r("em",[t._v("number")])],1),t._v(" "),r("h4",{attrs:{id:"parameters-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("a")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("b")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("data")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2421",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2421"),r("OutboundLink")],1)]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2421",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2421"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"mode"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#mode"}},[t._v("#")]),t._v(" mode")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("mode")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")]),t._v(" | "),r("em",[t._v("dataset")]),t._v(" | "),r("em",[t._v("index")]),t._v(" | "),r("em",[t._v("point")]),t._v(" | "),r("em",[t._v("nearest")])]),t._v(" "),r("p",[t._v("Sets which elements appear in the tooltip. See Interaction Modes for details.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'nearest'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[t._v("CoreInteractionOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html#mode"}},[t._v("mode")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1339",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1339"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"multikeybackground"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#multikeybackground"}},[t._v("#")]),t._v(" multiKeyBackground")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("multiKeyBackground")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color to draw behind the colored boxes when multiple items are in the tooltip.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" '#fff'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2524",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2524"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"padding"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#padding"}},[t._v("#")]),t._v(" padding")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("padding")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Padding to add to the tooltip")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 6")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2504",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2504"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"position"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("position")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("em",[t._v("nearest")]),t._v(" | "),r("em",[t._v("average")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The mode for positioning the tooltip")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2410",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2410"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rtl"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rtl"}},[t._v("#")]),t._v(" rtl")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rtl")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("true for rendering the legends from right to left.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2558",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2558"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"textdirection"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#textdirection"}},[t._v("#")]),t._v(" textDirection")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("textDirection")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("This will force the text direction 'rtl' or 'ltr on the canvas for rendering the tooltips, regardless of the css specified on the canvas")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" canvas's default")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2564",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2564"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"titlealign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#titlealign"}},[t._v("#")]),t._v(" titleAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("titleAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[t._v("TextAlign")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Horizontal alignment of the title text lines.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'left'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2454",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2454"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"titlecolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#titlecolor"}},[t._v("#")]),t._v(" titleColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("titleColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color of title")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" '#fff'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2434",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2434"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"titlefont"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#titlefont"}},[t._v("#")]),t._v(" titleFont")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("titleFont")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[r("em",[t._v("FontSpec")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("See Fonts")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" {weight: 'bold'}")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2439",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2439"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"titlemarginbottom"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#titlemarginbottom"}},[t._v("#")]),t._v(" titleMarginBottom")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("titleMarginBottom")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Margin to add on bottom of title section.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 6")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2449",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2449"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"titlespacing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#titlespacing"}},[t._v("#")]),t._v(" titleSpacing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("titleSpacing")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Spacing to add to top and bottom of each title line.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2444",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2444"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"usepointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#usepointstyle"}},[t._v("#")]),t._v(" usePointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("usePointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Use the corresponding point style (from dataset options) instead of color boxes, ex: star, triangle etc. (size is based on the minimum value between boxWidth and boxHeight)")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"xalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xalign"}},[t._v("#")]),t._v(" xAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("xAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[t._v("TextAlign")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Override the tooltip alignment calculations")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2415",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2415"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"yalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yalign"}},[t._v("#")]),t._v(" yAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("yAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#tooltipyalignment"}},[r("em",[t._v("TooltipYAlignment")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2416",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2416"),r("OutboundLink")],1)]),t._v(" "),r("h2",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("h3",{attrs:{id:"external"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#external"}},[t._v("#")]),t._v(" external")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("external")]),t._v("("),r("code",[t._v("args")]),t._v(": { "),r("code",[t._v("chart")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown> ; "),r("code",[t._v("tooltip")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[r("em",[t._v("TooltipModel")])]),t._v(" }): "),r("em",[t._v("void")])],1),t._v(" "),r("p",[t._v("See external tooltip section.")]),t._v(" "),r("h4",{attrs:{id:"parameters-3"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("args")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("object")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("args.chart")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("args.tooltip")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[r("em",[t._v("TooltipModel")])]),t._v("")],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2406",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2406"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/116.bb2a90dc.js b/docs/3.1.0/assets/js/116.bb2a90dc.js new file mode 100644 index 0000000000..a5dec95a90 --- /dev/null +++ b/docs/3.1.0/assets/js/116.bb2a90dc.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[116],{441:function(t,e,r){"use strict";r.r(e);var a=r(7),o=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-tooltipoptions-ttype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-tooltipoptions-ttype"}},[t._v("#")]),t._v(" Interface: TooltipOptions")]),t._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("TType")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#charttype"}},[r("em",[t._v("ChartType")])])],1)])])]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[r("em",[t._v("CoreInteractionOptions")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("TooltipOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2566",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2566"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2567",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2567"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"axis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("axis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")]),t._v(" | "),r("em",[t._v("xy")])]),t._v(" "),r("p",[t._v("Can be set to 'x', 'y', or 'xy' to define which directions are used in calculating distances. Defaults to 'x' for 'index' mode and 'xy' in dataset and 'nearest' modes.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[t._v("CoreInteractionOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html#axis"}},[t._v("axis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1349",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1349"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Background color of the tooltip.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'rgba(0, 0, 0, 0.8)'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2429",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2429"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bodyalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bodyalign"}},[t._v("#")]),t._v(" bodyAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bodyAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[t._v("TextAlign")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Horizontal alignment of the body text lines.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'left'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2474",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2474"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bodycolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bodycolor"}},[t._v("#")]),t._v(" bodyColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bodyColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color of body")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" '#fff'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2464",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2464"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bodyfont"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bodyfont"}},[t._v("#")]),t._v(" bodyFont")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bodyFont")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[r("em",[t._v("FontSpec")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("See Fonts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" {}")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2469",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2469"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bodyspacing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bodyspacing"}},[t._v("#")]),t._v(" bodySpacing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bodySpacing")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Spacing to add to top and bottom of each tooltip item.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2459",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2459"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color of the border.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'rgba(0, 0, 0, 0)'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2549",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2549"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Size of the border.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2554",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2554"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"boxheight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#boxheight"}},[t._v("#")]),t._v(" boxHeight")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("boxHeight")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Height of the color box if displayColors is true.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" bodyFont.size")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2539",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2539"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"boxwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#boxwidth"}},[t._v("#")]),t._v(" boxWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("boxWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Width of the color box if displayColors is true.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" bodyFont.size")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2534",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2534"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"callbacks"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#callbacks"}},[t._v("#")]),t._v(" callbacks")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("callbacks")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipcallbacks.html"}},[r("em",[t._v("TooltipCallbacks")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2568",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2568"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"caretpadding"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#caretpadding"}},[t._v("#")]),t._v(" caretPadding")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("caretPadding")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Extra distance to move the end of the tooltip arrow away from the tooltip point.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2509",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2509"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"caretsize"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#caretsize"}},[t._v("#")]),t._v(" caretSize")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("caretSize")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Size, in px, of the tooltip arrow.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 5")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2514",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2514"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"cornerradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#cornerradius"}},[t._v("#")]),t._v(" cornerRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("cornerRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Radius of tooltip corner curves.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 6")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2519",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2519"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"displaycolors"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#displaycolors"}},[t._v("#")]),t._v(" displayColors")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("displayColors")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("If true, color boxes are shown in the tooltip.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2529",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2529"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"enabled"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#enabled"}},[t._v("#")]),t._v(" enabled")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("enabled")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Are on-canvas tooltips enabled?")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2402",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2402"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"filter"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#filter"}},[t._v("#")]),t._v(" filter")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("filter")]),t._v(": ("),r("code",[t._v("e")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("index")]),t._v(": "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("array")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">[], "),r("code",[t._v("data")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>) => "),r("em",[t._v("boolean")])],1),t._v(" "),r("h4",{attrs:{id:"type-declaration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("p",[t._v("▸ ("),r("code",[t._v("e")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("index")]),t._v(": "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("array")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">[], "),r("code",[t._v("data")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),r("em",[t._v("boolean")])],1),t._v(" "),r("h4",{attrs:{id:"parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("e")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("index")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("number")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("array")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">[]")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("data")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2423",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2423"),r("OutboundLink")],1)]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2423",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2423"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footeralign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footeralign"}},[t._v("#")]),t._v(" footerAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footerAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[t._v("TextAlign")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Horizontal alignment of the footer text lines.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'left'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2499",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2499"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footercolor"}},[t._v("#")]),t._v(" footerColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footerColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color of footer")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" '#fff'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2489",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2489"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footerfont"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footerfont"}},[t._v("#")]),t._v(" footerFont")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footerFont")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[r("em",[t._v("FontSpec")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("See Fonts")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" {weight: 'bold'}")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2494",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2494"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footermargintop"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footermargintop"}},[t._v("#")]),t._v(" footerMarginTop")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footerMarginTop")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Margin to add before drawing the footer.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 6")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2484",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2484"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"footerspacing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#footerspacing"}},[t._v("#")]),t._v(" footerSpacing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("footerSpacing")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Spacing to add to top and bottom of each footer line.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2479",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2479"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"intersect"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#intersect"}},[t._v("#")]),t._v(" intersect")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("intersect")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("if true, the hover mode only applies when the mouse position intersects an item on the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[t._v("CoreInteractionOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html#intersect"}},[t._v("intersect")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1344",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1344"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"itemsort"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#itemsort"}},[t._v("#")]),t._v(" itemSort")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("itemSort")]),t._v(": ("),r("code",[t._v("a")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("b")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("data")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>) => "),r("em",[t._v("number")])],1),t._v(" "),r("p",[t._v("Sort tooltip items.")]),t._v(" "),r("h4",{attrs:{id:"type-declaration-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("p",[t._v("▸ ("),r("code",[t._v("a")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("b")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">, "),r("code",[t._v("data")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),r("em",[t._v("number")])],1),t._v(" "),r("h4",{attrs:{id:"parameters-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("a")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("b")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[r("em",[t._v("TooltipItem")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("data")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[r("em",[t._v("ChartData")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2421",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2421"),r("OutboundLink")],1)]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2421",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2421"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"mode"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#mode"}},[t._v("#")]),t._v(" mode")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("mode")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")]),t._v(" | "),r("em",[t._v("dataset")]),t._v(" | "),r("em",[t._v("index")]),t._v(" | "),r("em",[t._v("point")]),t._v(" | "),r("em",[t._v("nearest")])]),t._v(" "),r("p",[t._v("Sets which elements appear in the tooltip. See Interaction Modes for details.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'nearest'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[t._v("CoreInteractionOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html#mode"}},[t._v("mode")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1339",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1339"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"multikeybackground"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#multikeybackground"}},[t._v("#")]),t._v(" multiKeyBackground")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("multiKeyBackground")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color to draw behind the colored boxes when multiple items are in the tooltip.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" '#fff'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2524",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2524"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"padding"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#padding"}},[t._v("#")]),t._v(" padding")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("padding")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Padding to add to the tooltip")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 6")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2504",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2504"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"position"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("position")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("em",[t._v("nearest")]),t._v(" | "),r("em",[t._v("average")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The mode for positioning the tooltip")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2410",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2410"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rtl"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rtl"}},[t._v("#")]),t._v(" rtl")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rtl")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("true for rendering the legends from right to left.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2558",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2558"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"textdirection"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#textdirection"}},[t._v("#")]),t._v(" textDirection")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("textDirection")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("This will force the text direction 'rtl' or 'ltr on the canvas for rendering the tooltips, regardless of the css specified on the canvas")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" canvas's default")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2564",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2564"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"titlealign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#titlealign"}},[t._v("#")]),t._v(" titleAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("titleAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[t._v("TextAlign")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Horizontal alignment of the title text lines.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'left'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2454",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2454"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"titlecolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#titlecolor"}},[t._v("#")]),t._v(" titleColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("titleColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Color of title")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" '#fff'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2434",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2434"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"titlefont"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#titlefont"}},[t._v("#")]),t._v(" titleFont")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("titleFont")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[r("em",[t._v("FontSpec")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("See Fonts")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" {weight: 'bold'}")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2439",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2439"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"titlemarginbottom"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#titlemarginbottom"}},[t._v("#")]),t._v(" titleMarginBottom")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("titleMarginBottom")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Margin to add on bottom of title section.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 6")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2449",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2449"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"titlespacing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#titlespacing"}},[t._v("#")]),t._v(" titleSpacing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("titleSpacing")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Spacing to add to top and bottom of each title line.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2444",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2444"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"usepointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#usepointstyle"}},[t._v("#")]),t._v(" usePointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("usePointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Use the corresponding point style (from dataset options) instead of color boxes, ex: star, triangle etc. (size is based on the minimum value between boxWidth and boxHeight)")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"xalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xalign"}},[t._v("#")]),t._v(" xAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("xAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[t._v("TextAlign")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Override the tooltip alignment calculations")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2415",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2415"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"yalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yalign"}},[t._v("#")]),t._v(" yAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("yAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#tooltipyalignment"}},[r("em",[t._v("TooltipYAlignment")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[r("em",[t._v("ScriptableTooltipContext")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2416",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2416"),r("OutboundLink")],1)]),t._v(" "),r("h2",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("h3",{attrs:{id:"external"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#external"}},[t._v("#")]),t._v(" external")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("external")]),t._v("("),r("code",[t._v("args")]),t._v(": { "),r("code",[t._v("chart")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown> ; "),r("code",[t._v("tooltip")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[r("em",[t._v("TooltipModel")])]),t._v(" }): "),r("em",[t._v("void")])],1),t._v(" "),r("p",[t._v("See external tooltip section.")]),t._v(" "),r("h4",{attrs:{id:"parameters-3"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("args")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("object")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("args.chart")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("args.tooltip")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[r("em",[t._v("TooltipModel")])]),t._v("")],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2406",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2406"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/117.38671888.js b/docs/3.1.0/assets/js/117.38671888.js new file mode 100644 index 0000000000..eb577dee51 --- /dev/null +++ b/docs/3.1.0/assets/js/117.38671888.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[117],{440:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-typedregistry-t"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-typedregistry-t"}},[t._v("#")]),t._v(" Interface: TypedRegistry")]),t._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("T")])])])])]),t._v(" "),r("h2",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("h3",{attrs:{id:"get"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#get"}},[t._v("#")]),t._v(" get")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("get")]),t._v("("),r("code",[t._v("id")]),t._v(": "),r("em",[t._v("string")]),t._v("): T")]),t._v(" "),r("h4",{attrs:{id:"parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("id")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")])])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1301",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1301"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"register"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#register"}},[t._v("#")]),t._v(" register")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("register")]),t._v("("),r("code",[t._v("item")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[r("em",[t._v("ChartComponent")])]),t._v("): "),r("em",[t._v("string")])],1),t._v(" "),r("h4",{attrs:{id:"parameters-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("item")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[r("em",[t._v("ChartComponent")])])],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The scope where items defaults were registered to.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1300",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1300"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"unregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#unregister"}},[t._v("#")]),t._v(" unregister")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("unregister")]),t._v("("),r("code",[t._v("item")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[r("em",[t._v("ChartComponent")])]),t._v("): "),r("em",[t._v("void")])],1),t._v(" "),r("h4",{attrs:{id:"parameters-3"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("item")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[r("em",[t._v("ChartComponent")])])],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1302",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1302"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/117.babf1042.js b/docs/3.1.0/assets/js/117.babf1042.js deleted file mode 100644 index 812df86ab2..0000000000 --- a/docs/3.1.0/assets/js/117.babf1042.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[117],{570:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-typedregistry-t"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-typedregistry-t"}},[t._v("#")]),t._v(" Interface: TypedRegistry")]),t._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("T")])])])])]),t._v(" "),r("h2",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("h3",{attrs:{id:"get"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#get"}},[t._v("#")]),t._v(" get")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("get")]),t._v("("),r("code",[t._v("id")]),t._v(": "),r("em",[t._v("string")]),t._v("): T")]),t._v(" "),r("h4",{attrs:{id:"parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("id")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")])])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1301",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1301"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"register"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#register"}},[t._v("#")]),t._v(" register")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("register")]),t._v("("),r("code",[t._v("item")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[r("em",[t._v("ChartComponent")])]),t._v("): "),r("em",[t._v("string")])],1),t._v(" "),r("h4",{attrs:{id:"parameters-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("item")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[r("em",[t._v("ChartComponent")])])],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The scope where items defaults were registered to.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1300",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1300"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"unregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#unregister"}},[t._v("#")]),t._v(" unregister")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("unregister")]),t._v("("),r("code",[t._v("item")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[r("em",[t._v("ChartComponent")])]),t._v("): "),r("em",[t._v("void")])],1),t._v(" "),r("h4",{attrs:{id:"parameters-3"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("item")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[r("em",[t._v("ChartComponent")])])],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1302",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1302"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/118.5761cc61.js b/docs/3.1.0/assets/js/118.5761cc61.js new file mode 100644 index 0000000000..43d01a967a --- /dev/null +++ b/docs/3.1.0/assets/js/118.5761cc61.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[118],{443:function(t,e,a){"use strict";a.r(e);var r=a(7),n=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-visualelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-visualelement"}},[t._v("#")]),t._v(" Interface: VisualElement")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("VisualElement")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/arcelement.html"}},[a("em",[t._v("ArcElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/lineelement.html"}},[a("em",[t._v("LineElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/pointelement.html"}},[a("em",[t._v("PointElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/barelement.html"}},[a("em",[t._v("BarElement")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1577",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1577"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcenterpoint"}},[t._v("#")]),t._v(" getCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getCenterPoint")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1581"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getrange"}},[t._v("#")]),t._v(" getRange")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getRange")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inrange"}},[t._v("#")]),t._v(" inRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1578",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1578"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inxrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inxrange"}},[t._v("#")]),t._v(" inXRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inXRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1579",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1579"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inyrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inyrange"}},[t._v("#")]),t._v(" inYRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inYRange")]),t._v("("),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1580"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/118.919bd10c.js b/docs/3.1.0/assets/js/118.919bd10c.js deleted file mode 100644 index 4684c43ba0..0000000000 --- a/docs/3.1.0/assets/js/118.919bd10c.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[118],{447:function(t,e,a){"use strict";a.r(e);var r=a(7),n=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-visualelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-visualelement"}},[t._v("#")]),t._v(" Interface: VisualElement")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("VisualElement")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/arcelement.html"}},[a("em",[t._v("ArcElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/lineelement.html"}},[a("em",[t._v("LineElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/pointelement.html"}},[a("em",[t._v("PointElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/barelement.html"}},[a("em",[t._v("BarElement")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1577",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1577"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcenterpoint"}},[t._v("#")]),t._v(" getCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getCenterPoint")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1581"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getrange"}},[t._v("#")]),t._v(" getRange")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getRange")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inrange"}},[t._v("#")]),t._v(" inRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1578",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1578"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inxrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inxrange"}},[t._v("#")]),t._v(" inXRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inXRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1579",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1579"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inyrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inyrange"}},[t._v("#")]),t._v(" inYRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inYRange")]),t._v("("),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1580"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/119.c87759f8.js b/docs/3.1.0/assets/js/119.3b5f344b.js similarity index 98% rename from docs/3.1.0/assets/js/119.c87759f8.js rename to docs/3.1.0/assets/js/119.3b5f344b.js index c0467878fb..ecae27fa3e 100644 --- a/docs/3.1.0/assets/js/119.c87759f8.js +++ b/docs/3.1.0/assets/js/119.3b5f344b.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[119],{443:function(t,e,o){"use strict";o.r(e);var v=o(7),d=Object(v.a)({},(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[o("h3",{attrs:{id:"common-options-to-all-axes"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-axes"}},[t._v("#")]),t._v(" Common options to all axes")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.scales[scaleId]")])]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("type")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Type of scale being employed. Custom scales can be created and registered with a string key. This allows changing the type of an axis for a chart.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("alignToPixels")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Align pixel values to device pixels.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("backgroundColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Background color of the scale area.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("display")])]),t._v(" "),o("td",[o("code",[t._v("boolean")]),t._v("|"),o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[t._v("Controls the axis global visibility (visible when "),o("code",[t._v("true")]),t._v(", hidden when "),o("code",[t._v("false")]),t._v("). When "),o("code",[t._v("display: 'auto'")]),t._v(", the axis is visible only if at least one associated dataset is visible.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("grid")])]),t._v(" "),o("td",[o("code",[t._v("object")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Grid line configuration. "),o("RouterLink",{attrs:{to:"/axes/styling.html#grid-line-configuration"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("min")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("User defined minimum number for the scale, overrides minimum value from data. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("max")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("User defined maximum number for the scale, overrides maximum value from data. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("reverse")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Reverse the scale.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("stacked")])]),t._v(" "),o("td",[o("code",[t._v("boolean")]),t._v("|"),o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Should the data be stacked. "),o("RouterLink",{attrs:{to:"/axes/#stacking"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("suggestedMax")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Adjustment used when calculating the maximum data value. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("suggestedMin")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Adjustment used when calculating the minimum data value. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("ticks")])]),t._v(" "),o("td",[o("code",[t._v("object")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Tick configuration. "),o("RouterLink",{attrs:{to:"/axes/#tick-configuration"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("weight")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")])])])])])}),[],!1,null,null,null);e.default=d.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[119],{442:function(t,e,o){"use strict";o.r(e);var v=o(7),d=Object(v.a)({},(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[o("h3",{attrs:{id:"common-options-to-all-axes"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-axes"}},[t._v("#")]),t._v(" Common options to all axes")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.scales[scaleId]")])]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("type")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Type of scale being employed. Custom scales can be created and registered with a string key. This allows changing the type of an axis for a chart.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("alignToPixels")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Align pixel values to device pixels.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("backgroundColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Background color of the scale area.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("display")])]),t._v(" "),o("td",[o("code",[t._v("boolean")]),t._v("|"),o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[t._v("Controls the axis global visibility (visible when "),o("code",[t._v("true")]),t._v(", hidden when "),o("code",[t._v("false")]),t._v("). When "),o("code",[t._v("display: 'auto'")]),t._v(", the axis is visible only if at least one associated dataset is visible.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("grid")])]),t._v(" "),o("td",[o("code",[t._v("object")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Grid line configuration. "),o("RouterLink",{attrs:{to:"/axes/styling.html#grid-line-configuration"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("min")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("User defined minimum number for the scale, overrides minimum value from data. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("max")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("User defined maximum number for the scale, overrides maximum value from data. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("reverse")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Reverse the scale.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("stacked")])]),t._v(" "),o("td",[o("code",[t._v("boolean")]),t._v("|"),o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Should the data be stacked. "),o("RouterLink",{attrs:{to:"/axes/#stacking"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("suggestedMax")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Adjustment used when calculating the maximum data value. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("suggestedMin")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Adjustment used when calculating the minimum data value. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("ticks")])]),t._v(" "),o("td",[o("code",[t._v("object")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Tick configuration. "),o("RouterLink",{attrs:{to:"/axes/#tick-configuration"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("weight")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")])])])])])}),[],!1,null,null,null);e.default=d.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/12.09150dfc.js b/docs/3.1.0/assets/js/12.09150dfc.js new file mode 100644 index 0000000000..31b33c2130 --- /dev/null +++ b/docs/3.1.0/assets/js/12.09150dfc.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{338:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-animator"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-animator"}},[t._v("#")]),t._v(" Class: Animator")]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new Animator")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/animator.html"}},[a("em",[t._v("Animator")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/animator.html"}},[a("em",[t._v("Animator")])])],1),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"add"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#add"}},[t._v("#")]),t._v(" add")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("add")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("items")]),t._v(": readonly "),a("RouterLink",{attrs:{to:"/api/classes/animation.html"}},[a("em",[t._v("Animation")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("items")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("readonly "),a("RouterLink",{attrs:{to:"/api/classes/animation.html"}},[a("em",[t._v("Animation")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L20",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:20"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"has"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#has"}},[t._v("#")]),t._v(" has")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("has")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("boolean")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"listen"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#listen"}},[t._v("#")]),t._v(" listen")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("listen")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("event")]),t._v(": "),a("em",[t._v("complete")]),t._v(" | "),a("em",[t._v("progress")]),t._v(", "),a("code",[t._v("cb")]),t._v(": ("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("complete")]),t._v(" | "),a("em",[t._v("progress")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cb")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L19",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:19"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"remove"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#remove"}},[t._v("#")]),t._v(" remove")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("remove")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("boolean")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"running"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#running"}},[t._v("#")]),t._v(" running")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("running")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("boolean")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L23",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:23"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"start"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#start"}},[t._v("#")]),t._v(" start")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("start")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L22",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:22"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"stop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stop"}},[t._v("#")]),t._v(" stop")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("stop")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L24",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:24"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/12.cbb7d1e1.js b/docs/3.1.0/assets/js/12.cbb7d1e1.js deleted file mode 100644 index bdd736872e..0000000000 --- a/docs/3.1.0/assets/js/12.cbb7d1e1.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{339:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-animator"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-animator"}},[t._v("#")]),t._v(" Class: Animator")]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new Animator")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/animator.html"}},[a("em",[t._v("Animator")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/animator.html"}},[a("em",[t._v("Animator")])])],1),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"add"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#add"}},[t._v("#")]),t._v(" add")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("add")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("items")]),t._v(": readonly "),a("RouterLink",{attrs:{to:"/api/classes/animation.html"}},[a("em",[t._v("Animation")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("items")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("readonly "),a("RouterLink",{attrs:{to:"/api/classes/animation.html"}},[a("em",[t._v("Animation")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L20",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:20"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"has"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#has"}},[t._v("#")]),t._v(" has")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("has")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("boolean")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"listen"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#listen"}},[t._v("#")]),t._v(" listen")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("listen")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("event")]),t._v(": "),a("em",[t._v("complete")]),t._v(" | "),a("em",[t._v("progress")]),t._v(", "),a("code",[t._v("cb")]),t._v(": ("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("complete")]),t._v(" | "),a("em",[t._v("progress")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cb")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L19",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:19"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"remove"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#remove"}},[t._v("#")]),t._v(" remove")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("remove")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("boolean")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"running"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#running"}},[t._v("#")]),t._v(" running")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("running")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("boolean")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L23",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:23"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"start"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#start"}},[t._v("#")]),t._v(" start")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("start")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L22",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:22"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"stop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stop"}},[t._v("#")]),t._v(" stop")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("stop")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L24",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:24"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/120.f4ecbdfa.js b/docs/3.1.0/assets/js/120.0e595569.js similarity index 100% rename from docs/3.1.0/assets/js/120.f4ecbdfa.js rename to docs/3.1.0/assets/js/120.0e595569.js diff --git a/docs/3.1.0/assets/js/121.45e7fb0f.js b/docs/3.1.0/assets/js/121.97e3bd5c.js similarity index 97% rename from docs/3.1.0/assets/js/121.45e7fb0f.js rename to docs/3.1.0/assets/js/121.97e3bd5c.js index 9b3c839190..57aaa66c3f 100644 --- a/docs/3.1.0/assets/js/121.45e7fb0f.js +++ b/docs/3.1.0/assets/js/121.97e3bd5c.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[121],{445:function(t,e,o){"use strict";o.r(e);var s=o(7),a=Object(s.a)({},(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[o("h3",{attrs:{id:"common-options-to-all-cartesian-axes"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-cartesian-axes"}},[t._v("#")]),t._v(" Common options to all cartesian axes")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.scales[scaleId]")])]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("bounds")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'ticks'")])]),t._v(" "),o("td",[t._v("Determines the scale bounds. "),o("RouterLink",{attrs:{to:"/axes/cartesian/#scale-bounds"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("position")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Position of the axis. "),o("RouterLink",{attrs:{to:"/axes/cartesian/#axis-position"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("axis")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Which type of axis this is. Possible values are: "),o("code",[t._v("'x'")]),t._v(", "),o("code",[t._v("'y'")]),t._v(". If not set, this is inferred from the first character of the ID which should be "),o("code",[t._v("'x'")]),t._v(" or "),o("code",[t._v("'y'")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("offset")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("If true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to "),o("code",[t._v("true")]),t._v(" for a bar chart by default.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("title")])]),t._v(" "),o("td",[o("code",[t._v("object")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Scale title configuration. "),o("RouterLink",{attrs:{to:"/axes/labelling.html#scale-title-configuration"}},[t._v("more...")])],1)])])])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[121],{446:function(t,e,o){"use strict";o.r(e);var s=o(7),a=Object(s.a)({},(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[o("h3",{attrs:{id:"common-options-to-all-cartesian-axes"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-cartesian-axes"}},[t._v("#")]),t._v(" Common options to all cartesian axes")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.scales[scaleId]")])]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("bounds")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'ticks'")])]),t._v(" "),o("td",[t._v("Determines the scale bounds. "),o("RouterLink",{attrs:{to:"/axes/cartesian/#scale-bounds"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("position")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Position of the axis. "),o("RouterLink",{attrs:{to:"/axes/cartesian/#axis-position"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("axis")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Which type of axis this is. Possible values are: "),o("code",[t._v("'x'")]),t._v(", "),o("code",[t._v("'y'")]),t._v(". If not set, this is inferred from the first character of the ID which should be "),o("code",[t._v("'x'")]),t._v(" or "),o("code",[t._v("'y'")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("offset")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("If true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to "),o("code",[t._v("true")]),t._v(" for a bar chart by default.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("title")])]),t._v(" "),o("td",[o("code",[t._v("object")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Scale title configuration. "),o("RouterLink",{attrs:{to:"/axes/labelling.html#scale-title-configuration"}},[t._v("more...")])],1)])])])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/122.677ea225.js b/docs/3.1.0/assets/js/122.d96fa0b5.js similarity index 98% rename from docs/3.1.0/assets/js/122.677ea225.js rename to docs/3.1.0/assets/js/122.d96fa0b5.js index 9c80a97f91..80630c5f0c 100644 --- a/docs/3.1.0/assets/js/122.677ea225.js +++ b/docs/3.1.0/assets/js/122.d96fa0b5.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[122],{446:function(e,t,a){"use strict";a.r(t);var o=a(7),i=Object(o.a)({},(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[a("h3",{attrs:{id:"common-tick-options-to-all-cartesian-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-cartesian-axes"}},[e._v("#")]),e._v(" Common tick options to all cartesian axes")]),e._v(" "),a("p",[e._v("Namespace: "),a("code",[e._v("options.scales[scaleId].ticks")])]),e._v(" "),a("table",[a("thead",[a("tr",[a("th",[e._v("Name")]),e._v(" "),a("th",[e._v("Type")]),e._v(" "),a("th",[e._v("Default")]),e._v(" "),a("th",[e._v("Description")])])]),e._v(" "),a("tbody",[a("tr",[a("td",[a("code",[e._v("align")])]),e._v(" "),a("td",[a("code",[e._v("string")])]),e._v(" "),a("td",[a("code",[e._v("'center'")])]),e._v(" "),a("td",[e._v("The tick alignment along the axis. Can be "),a("code",[e._v("'start'")]),e._v(", "),a("code",[e._v("'center'")]),e._v(", or "),a("code",[e._v("'end'")]),e._v(".")])]),e._v(" "),a("tr",[a("td",[a("code",[e._v("crossAlign")])]),e._v(" "),a("td",[a("code",[e._v("string")])]),e._v(" "),a("td",[a("code",[e._v("'near'")])]),e._v(" "),a("td",[e._v("The tick alignment perpendicular to the axis. Can be "),a("code",[e._v("'near'")]),e._v(", "),a("code",[e._v("'center'")]),e._v(", or "),a("code",[e._v("'far'")]),e._v(". See "),a("a",{attrs:{href:"./index#tick-alignment"}},[e._v("Tick Alignment")])])]),e._v(" "),a("tr",[a("td",[a("code",[e._v("sampleSize")])]),e._v(" "),a("td",[a("code",[e._v("number")])]),e._v(" "),a("td",[a("code",[e._v("ticks.length")])]),e._v(" "),a("td",[e._v("The number of ticks to examine when deciding how many labels will fit. Setting a smaller value will be faster, but may be less accurate when there is large variability in label length.")])]),e._v(" "),a("tr",[a("td",[a("code",[e._v("autoSkip")])]),e._v(" "),a("td",[a("code",[e._v("boolean")])]),e._v(" "),a("td",[a("code",[e._v("true")])]),e._v(" "),a("td",[e._v("If true, automatically calculates how many labels can be shown and hides labels accordingly. Labels will be rotated up to "),a("code",[e._v("maxRotation")]),e._v(" before skipping any. Turn "),a("code",[e._v("autoSkip")]),e._v(" off to show all labels no matter what.")])]),e._v(" "),a("tr",[a("td",[a("code",[e._v("autoSkipPadding")])]),e._v(" "),a("td",[a("code",[e._v("number")])]),e._v(" "),a("td",[a("code",[e._v("3")])]),e._v(" "),a("td",[e._v("Padding between the ticks on the horizontal axis when "),a("code",[e._v("autoSkip")]),e._v(" is enabled.")])]),e._v(" "),a("tr",[a("td",[a("code",[e._v("labelOffset")])]),e._v(" "),a("td",[a("code",[e._v("number")])]),e._v(" "),a("td",[a("code",[e._v("0")])]),e._v(" "),a("td",[e._v("Distance in pixels to offset the label from the centre point of the tick (in the x-direction for the x-axis, and the y-direction for the y-axis). "),a("em",[e._v("Note: this can cause labels at the edges to be cropped by the edge of the canvas")])])]),e._v(" "),a("tr",[a("td",[a("code",[e._v("maxRotation")])]),e._v(" "),a("td",[a("code",[e._v("number")])]),e._v(" "),a("td",[a("code",[e._v("50")])]),e._v(" "),a("td",[e._v("Maximum rotation for tick labels when rotating to condense labels. Note: Rotation doesn't occur until necessary. "),a("em",[e._v("Note: Only applicable to horizontal scales.")])])]),e._v(" "),a("tr",[a("td",[a("code",[e._v("minRotation")])]),e._v(" "),a("td",[a("code",[e._v("number")])]),e._v(" "),a("td",[a("code",[e._v("0")])]),e._v(" "),a("td",[e._v("Minimum rotation for tick labels. "),a("em",[e._v("Note: Only applicable to horizontal scales.")])])]),e._v(" "),a("tr",[a("td",[a("code",[e._v("mirror")])]),e._v(" "),a("td",[a("code",[e._v("boolean")])]),e._v(" "),a("td",[a("code",[e._v("false")])]),e._v(" "),a("td",[e._v("Flips tick labels around axis, displaying the labels inside the chart instead of outside. "),a("em",[e._v("Note: Only applicable to vertical scales.")])])]),e._v(" "),a("tr",[a("td",[a("code",[e._v("padding")])]),e._v(" "),a("td",[a("code",[e._v("number")])]),e._v(" "),a("td",[a("code",[e._v("0")])]),e._v(" "),a("td",[e._v("Padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this applies in the vertical (Y) direction.")])])])])])}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[122],{445:function(e,t,a){"use strict";a.r(t);var o=a(7),i=Object(o.a)({},(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[a("h3",{attrs:{id:"common-tick-options-to-all-cartesian-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-cartesian-axes"}},[e._v("#")]),e._v(" Common tick options to all cartesian axes")]),e._v(" "),a("p",[e._v("Namespace: "),a("code",[e._v("options.scales[scaleId].ticks")])]),e._v(" "),a("table",[a("thead",[a("tr",[a("th",[e._v("Name")]),e._v(" "),a("th",[e._v("Type")]),e._v(" "),a("th",[e._v("Default")]),e._v(" "),a("th",[e._v("Description")])])]),e._v(" "),a("tbody",[a("tr",[a("td",[a("code",[e._v("align")])]),e._v(" "),a("td",[a("code",[e._v("string")])]),e._v(" "),a("td",[a("code",[e._v("'center'")])]),e._v(" "),a("td",[e._v("The tick alignment along the axis. Can be "),a("code",[e._v("'start'")]),e._v(", "),a("code",[e._v("'center'")]),e._v(", or "),a("code",[e._v("'end'")]),e._v(".")])]),e._v(" "),a("tr",[a("td",[a("code",[e._v("crossAlign")])]),e._v(" "),a("td",[a("code",[e._v("string")])]),e._v(" "),a("td",[a("code",[e._v("'near'")])]),e._v(" "),a("td",[e._v("The tick alignment perpendicular to the axis. Can be "),a("code",[e._v("'near'")]),e._v(", "),a("code",[e._v("'center'")]),e._v(", or "),a("code",[e._v("'far'")]),e._v(". See "),a("a",{attrs:{href:"./index#tick-alignment"}},[e._v("Tick Alignment")])])]),e._v(" "),a("tr",[a("td",[a("code",[e._v("sampleSize")])]),e._v(" "),a("td",[a("code",[e._v("number")])]),e._v(" "),a("td",[a("code",[e._v("ticks.length")])]),e._v(" "),a("td",[e._v("The number of ticks to examine when deciding how many labels will fit. Setting a smaller value will be faster, but may be less accurate when there is large variability in label length.")])]),e._v(" "),a("tr",[a("td",[a("code",[e._v("autoSkip")])]),e._v(" "),a("td",[a("code",[e._v("boolean")])]),e._v(" "),a("td",[a("code",[e._v("true")])]),e._v(" "),a("td",[e._v("If true, automatically calculates how many labels can be shown and hides labels accordingly. Labels will be rotated up to "),a("code",[e._v("maxRotation")]),e._v(" before skipping any. Turn "),a("code",[e._v("autoSkip")]),e._v(" off to show all labels no matter what.")])]),e._v(" "),a("tr",[a("td",[a("code",[e._v("autoSkipPadding")])]),e._v(" "),a("td",[a("code",[e._v("number")])]),e._v(" "),a("td",[a("code",[e._v("3")])]),e._v(" "),a("td",[e._v("Padding between the ticks on the horizontal axis when "),a("code",[e._v("autoSkip")]),e._v(" is enabled.")])]),e._v(" "),a("tr",[a("td",[a("code",[e._v("labelOffset")])]),e._v(" "),a("td",[a("code",[e._v("number")])]),e._v(" "),a("td",[a("code",[e._v("0")])]),e._v(" "),a("td",[e._v("Distance in pixels to offset the label from the centre point of the tick (in the x-direction for the x-axis, and the y-direction for the y-axis). "),a("em",[e._v("Note: this can cause labels at the edges to be cropped by the edge of the canvas")])])]),e._v(" "),a("tr",[a("td",[a("code",[e._v("maxRotation")])]),e._v(" "),a("td",[a("code",[e._v("number")])]),e._v(" "),a("td",[a("code",[e._v("50")])]),e._v(" "),a("td",[e._v("Maximum rotation for tick labels when rotating to condense labels. Note: Rotation doesn't occur until necessary. "),a("em",[e._v("Note: Only applicable to horizontal scales.")])])]),e._v(" "),a("tr",[a("td",[a("code",[e._v("minRotation")])]),e._v(" "),a("td",[a("code",[e._v("number")])]),e._v(" "),a("td",[a("code",[e._v("0")])]),e._v(" "),a("td",[e._v("Minimum rotation for tick labels. "),a("em",[e._v("Note: Only applicable to horizontal scales.")])])]),e._v(" "),a("tr",[a("td",[a("code",[e._v("mirror")])]),e._v(" "),a("td",[a("code",[e._v("boolean")])]),e._v(" "),a("td",[a("code",[e._v("false")])]),e._v(" "),a("td",[e._v("Flips tick labels around axis, displaying the labels inside the chart instead of outside. "),a("em",[e._v("Note: Only applicable to vertical scales.")])])]),e._v(" "),a("tr",[a("td",[a("code",[e._v("padding")])]),e._v(" "),a("td",[a("code",[e._v("number")])]),e._v(" "),a("td",[a("code",[e._v("0")])]),e._v(" "),a("td",[e._v("Padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this applies in the vertical (Y) direction.")])])])])])}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/123.1df4c4f4.js b/docs/3.1.0/assets/js/123.1638a563.js similarity index 100% rename from docs/3.1.0/assets/js/123.1df4c4f4.js rename to docs/3.1.0/assets/js/123.1638a563.js diff --git a/docs/3.1.0/assets/js/124.14714d88.js b/docs/3.1.0/assets/js/124.76f2c8c1.js similarity index 99% rename from docs/3.1.0/assets/js/124.14714d88.js rename to docs/3.1.0/assets/js/124.76f2c8c1.js index 9913251e9e..72717e1e1a 100644 --- a/docs/3.1.0/assets/js/124.14714d88.js +++ b/docs/3.1.0/assets/js/124.76f2c8c1.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[124],{450:function(t,e,a){"use strict";a.r(e);var s=a(7),n=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"cartesian-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cartesian-axes"}},[t._v("#")]),t._v(" Cartesian Axes")]),t._v(" "),a("p",[t._v("Axes that follow a cartesian grid are known as 'Cartesian Axes'. Cartesian axes are used for line, bar, and bubble charts. Four cartesian axes are included in Chart.js by default.")]),t._v(" "),a("ul",[a("li",[a("a",{attrs:{href:"./linear"}},[t._v("linear")])]),t._v(" "),a("li",[a("a",{attrs:{href:"./logarithmic"}},[t._v("logarithmic")])]),t._v(" "),a("li",[a("a",{attrs:{href:"./category"}},[t._v("category")])]),t._v(" "),a("li",[a("a",{attrs:{href:"./time"}},[t._v("time")])]),t._v(" "),a("li",[a("a",{attrs:{href:"./timeseries"}},[t._v("timeseries")])])]),t._v(" "),a("h2",{attrs:{id:"visual-components"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#visual-components"}},[t._v("#")]),t._v(" Visual Components")]),t._v(" "),a("p",[t._v("A cartesian axis is composed of visual components that can be individually configured. These components are:")]),t._v(" "),a("ul",[a("li",[a("a",{attrs:{href:"#border"}},[t._v("border")])]),t._v(" "),a("li",[a("a",{attrs:{href:"#grid-lines"}},[t._v("grid lines")])]),t._v(" "),a("li",[a("a",{attrs:{href:"#ticks-and-tick-marks"}},[t._v("tick")])]),t._v(" "),a("li",[a("a",{attrs:{href:"#ticks-and-tick-marks"}},[t._v("tick mark")])]),t._v(" "),a("li",[a("a",{attrs:{href:"#title"}},[t._v("title")])])]),t._v(" "),a("h3",{attrs:{id:"border"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#border"}},[t._v("#")]),t._v(" Border")]),t._v(" "),a("p",[t._v("The axis border is drawn at the edge of the axis, beside the chart area. In the image below, it is drawn in red.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data,\n options: {\n scales: {\n x: {\n grid: {\n borderColor: 'red'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h3",{attrs:{id:"grid-lines"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#grid-lines"}},[t._v("#")]),t._v(" Grid lines")]),t._v(" "),a("p",[t._v("The grid lines for an axis are drawn on the chart area. In the image below, they are red.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data,\n options: {\n scales: {\n x: {\n grid: {\n color: 'red',\n borderColor: 'grey',\n tickColor: 'grey'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h3",{attrs:{id:"ticks-and-tick-marks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks-and-tick-marks"}},[t._v("#")]),t._v(" Ticks and Tick Marks")]),t._v(" "),a("p",[t._v("Ticks represent data values on the axis that appear as labels. The tick mark is the extension of the grid line from the axis border to the label.\nIn this example, the tick mark is drawn in red while the tick label is drawn in blue.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data,\n options: {\n scales: {\n x: {\n grid: {\n tickColor: 'red'\n },\n ticks: {\n color: 'blue',\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h3",{attrs:{id:"title"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" Title")]),t._v(" "),a("p",[t._v("The title component of the axis is used to label the data. In the example below, it is shown in red.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data,\n options: {\n scales: {\n x: {\n title: {\n color: 'red',\n display: true,\n text: 'Month'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"common-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-configuration"}},[t._v("#")]),t._v(" Common Configuration")]),t._v(" "),a("h3",{attrs:{id:"common-options-to-all-cartesian-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-cartesian-axes"}},[t._v("#")]),t._v(" Common options to all cartesian axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("bounds")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'ticks'")])]),t._v(" "),a("td",[t._v("Determines the scale bounds. "),a("RouterLink",{attrs:{to:"/axes/cartesian/#scale-bounds"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("position")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Position of the axis. "),a("RouterLink",{attrs:{to:"/axes/cartesian/#axis-position"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Which type of axis this is. Possible values are: "),a("code",[t._v("'x'")]),t._v(", "),a("code",[t._v("'y'")]),t._v(". If not set, this is inferred from the first character of the ID which should be "),a("code",[t._v("'x'")]),t._v(" or "),a("code",[t._v("'y'")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("offset")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("If true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to "),a("code",[t._v("true")]),t._v(" for a bar chart by default.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("title")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Scale title configuration. "),a("RouterLink",{attrs:{to:"/axes/labelling.html#scale-title-configuration"}},[t._v("more...")])],1)])])]),t._v(" "),a("h3",{attrs:{id:"common-options-to-all-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-axes"}},[t._v("#")]),t._v(" Common options to all axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("type")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Type of scale being employed. Custom scales can be created and registered with a string key. This allows changing the type of an axis for a chart.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("alignToPixels")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Align pixel values to device pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Background color of the scale area.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("Controls the axis global visibility (visible when "),a("code",[t._v("true")]),t._v(", hidden when "),a("code",[t._v("false")]),t._v("). When "),a("code",[t._v("display: 'auto'")]),t._v(", the axis is visible only if at least one associated dataset is visible.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("grid")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Grid line configuration. "),a("RouterLink",{attrs:{to:"/axes/styling.html#grid-line-configuration"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("min")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("User defined minimum number for the scale, overrides minimum value from data. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("max")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("User defined maximum number for the scale, overrides maximum value from data. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("reverse")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Reverse the scale.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("stacked")])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Should the data be stacked. "),a("RouterLink",{attrs:{to:"/axes/#stacking"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("suggestedMax")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Adjustment used when calculating the maximum data value. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("suggestedMin")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Adjustment used when calculating the minimum data value. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("ticks")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Tick configuration. "),a("RouterLink",{attrs:{to:"/axes/#tick-configuration"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("weight")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")])])])]),t._v(" "),a("h3",{attrs:{id:"axis-position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis-position"}},[t._v("#")]),t._v(" Axis Position")]),t._v(" "),a("p",[t._v("An axis can either be positioned at the edge of the chart, at the center of the chart area, or dynamically with respect to a data value.")]),t._v(" "),a("p",[t._v("To position the axis at the edge of the chart, set the "),a("code",[t._v("position")]),t._v(" option to one of: "),a("code",[t._v("'top'")]),t._v(", "),a("code",[t._v("'left'")]),t._v(", "),a("code",[t._v("'bottom'")]),t._v(", "),a("code",[t._v("'right'")]),t._v(".\nTo position the axis at the center of the chart area, set the "),a("code",[t._v("position")]),t._v(" option to "),a("code",[t._v("'center'")]),t._v(". In this mode, either the "),a("code",[t._v("axis")]),t._v(" option is specified or the axis ID starts with the letter 'x' or 'y'.\nTo position the axis with respect to a data value, set the "),a("code",[t._v("position")]),t._v(" option to an object such as:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("p",[t._v('This will position the axis at a value of -20 on the axis with ID "x". For cartesian axes, only 1 axis may be specified.')]),t._v(" "),a("h3",{attrs:{id:"scale-bounds"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scale-bounds"}},[t._v("#")]),t._v(" Scale Bounds")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("bounds")]),t._v(" property controls the scale boundary strategy (bypassed by "),a("code",[t._v("min")]),t._v("/"),a("code",[t._v("max")]),t._v(" options).")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'data'")]),t._v(": makes sure data are fully visible, labels outside are removed")]),t._v(" "),a("li",[a("code",[t._v("'ticks'")]),t._v(": makes sure ticks are fully visible, data outside are truncated")])]),t._v(" "),a("h3",{attrs:{id:"tick-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tick-configuration"}},[t._v("#")]),t._v(" Tick Configuration")]),t._v(" "),a("h3",{attrs:{id:"common-tick-options-to-all-cartesian-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-cartesian-axes"}},[t._v("#")]),t._v(" Common tick options to all cartesian axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("align")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'center'")])]),t._v(" "),a("td",[t._v("The tick alignment along the axis. Can be "),a("code",[t._v("'start'")]),t._v(", "),a("code",[t._v("'center'")]),t._v(", or "),a("code",[t._v("'end'")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("crossAlign")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'near'")])]),t._v(" "),a("td",[t._v("The tick alignment perpendicular to the axis. Can be "),a("code",[t._v("'near'")]),t._v(", "),a("code",[t._v("'center'")]),t._v(", or "),a("code",[t._v("'far'")]),t._v(". See "),a("a",{attrs:{href:"./index#tick-alignment"}},[t._v("Tick Alignment")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("sampleSize")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("ticks.length")])]),t._v(" "),a("td",[t._v("The number of ticks to examine when deciding how many labels will fit. Setting a smaller value will be faster, but may be less accurate when there is large variability in label length.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("autoSkip")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, automatically calculates how many labels can be shown and hides labels accordingly. Labels will be rotated up to "),a("code",[t._v("maxRotation")]),t._v(" before skipping any. Turn "),a("code",[t._v("autoSkip")]),t._v(" off to show all labels no matter what.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("autoSkipPadding")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("3")])]),t._v(" "),a("td",[t._v("Padding between the ticks on the horizontal axis when "),a("code",[t._v("autoSkip")]),t._v(" is enabled.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("labelOffset")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Distance in pixels to offset the label from the centre point of the tick (in the x-direction for the x-axis, and the y-direction for the y-axis). "),a("em",[t._v("Note: this can cause labels at the edges to be cropped by the edge of the canvas")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("maxRotation")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("50")])]),t._v(" "),a("td",[t._v("Maximum rotation for tick labels when rotating to condense labels. Note: Rotation doesn't occur until necessary. "),a("em",[t._v("Note: Only applicable to horizontal scales.")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("minRotation")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Minimum rotation for tick labels. "),a("em",[t._v("Note: Only applicable to horizontal scales.")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("mirror")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Flips tick labels around axis, displaying the labels inside the chart instead of outside. "),a("em",[t._v("Note: Only applicable to vertical scales.")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this applies in the vertical (Y) direction.")])])])]),t._v(" "),a("h3",{attrs:{id:"common-tick-options-to-all-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-axes"}},[t._v("#")]),t._v(" Common tick options to all axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[t._v("Scriptable")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("callback")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Returns the string representation of the tick value as it should be displayed on the chart. See "),a("RouterLink",{attrs:{to:"/axes/labelling.html#creating-custom-tick-formats"}},[t._v("callback")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, show tick labels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("color")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.color")])]),t._v(" "),a("td",[t._v("Color of ticks.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("font")])]),t._v(" "),a("td",[a("code",[t._v("Font")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.font")])]),t._v(" "),a("td",[t._v("See "),a("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("major")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("{}")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/axes/styling.html#major-tick-configuration"}},[t._v("Major ticks configuration")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("3")])]),t._v(" "),a("td",[t._v("Sets the offset of the tick labels from the axis")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textStrokeColor")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[t._v("``")]),t._v(" "),a("td",[t._v("The color of the stroke around the text.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textStrokeWidth")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Stroke width around the text.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("z")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.")])])])]),t._v(" "),a("h3",{attrs:{id:"tick-alignment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tick-alignment"}},[t._v("#")]),t._v(" Tick Alignment")]),t._v(" "),a("p",[t._v("The alignment of ticks is primarily controlled using two settings on the tick configuration object: "),a("code",[t._v("align")]),t._v(" and "),a("code",[t._v("crossAlign")]),t._v(". The "),a("code",[t._v("align")]),t._v(" setting configures how labels align with the tick mark along the axis direction (i.e. horizontal for a horizontal axis and vertical for a vertical axis). The "),a("code",[t._v("crossAlign")]),t._v(" setting configures how labels align with the tick mark in the perpendicular direction (i.e. vertical for a horizontal axis and horizontal for a vertical axis). In the example below, the "),a("code",[t._v("crossAlign")]),t._v(" setting is used to left align the labels on the Y axis.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: [\n 'rgba(255, 99, 132, 0.2)',\n 'rgba(255, 159, 64, 0.2)',\n 'rgba(255, 205, 86, 0.2)',\n 'rgba(75, 192, 192, 0.2)',\n 'rgba(54, 162, 235, 0.2)',\n 'rgba(153, 102, 255, 0.2)',\n 'rgba(201, 203, 207, 0.2)'\n ],\n borderColor: [\n 'rgb(255, 99, 132)',\n 'rgb(255, 159, 64)',\n 'rgb(255, 205, 86)',\n 'rgb(75, 192, 192)',\n 'rgb(54, 162, 235)',\n 'rgb(153, 102, 255)',\n 'rgb(201, 203, 207)'\n ],\n borderWidth: 1,\n data: [65, 59, 80, 81, 56, 55, 40],\n }]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data,\n options: {\n indexAxis: 'y',\n scales: {\n y: {\n ticks: {\n crossAlign: 'far',\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("div",{staticClass:"custom-block tip"},[a("p",{staticClass:"custom-block-title"},[t._v("Note")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("crossAlign")]),t._v(" setting is only effective when these preconditions are met:")]),t._v(" "),a("ul",[a("li",[t._v("tick rotation is "),a("code",[t._v("0")])]),t._v(" "),a("li",[t._v("axis position is "),a("code",[t._v("'top'")]),t._v(", '"),a("code",[t._v("left'")]),t._v(", "),a("code",[t._v("'bottom'")]),t._v(" or "),a("code",[t._v("'right'")])])])]),t._v(" "),a("h3",{attrs:{id:"axis-id"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis-id"}},[t._v("#")]),t._v(" Axis ID")]),t._v(" "),a("p",[t._v("The properties "),a("code",[t._v("dataset.xAxisID")]),t._v(" or "),a("code",[t._v("dataset.yAxisID")]),t._v(" have to match to "),a("code",[t._v("scales")]),t._v(" property. This is especially needed if multi-axes charts are used.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This dataset appears on the first axis")]),t._v("\n yAxisID"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'first-y-axis'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This dataset appears on the second axis")]),t._v("\n yAxisID"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'second-y-axis'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'first-y-axis'")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'linear'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'second-y-axis'")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'linear'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"creating-multiple-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#creating-multiple-axes"}},[t._v("#")]),t._v(" Creating Multiple Axes")]),t._v(" "),a("p",[t._v("With cartesian axes, it is possible to create multiple X and Y axes. To do so, you can add multiple configuration objects to the "),a("code",[t._v("xAxes")]),t._v(" and "),a("code",[t._v("yAxes")]),t._v(" properties. When adding new axes, it is important to ensure that you specify the type of the new axes as default types are "),a("strong",[t._v("not")]),t._v(" used in this case.")]),t._v(" "),a("p",[t._v("In the example below, we are creating two Y axes. We then use the "),a("code",[t._v("yAxisID")]),t._v(" property to map the datasets to their correct axes.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("100")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("75")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("25")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n label"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Left dataset'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This binds the dataset to the left y axis")]),t._v("\n yAxisID"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'left-y-axis'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0.1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0.5")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1.0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2.0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1.5")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n label"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Right dataset'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This binds the dataset to the right y axis")]),t._v("\n yAxisID"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'right-y-axis'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labels"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Jan'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Feb'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Mar'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Apr'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'May'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Jun'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'left-y-axis'")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'linear'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n position"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'left'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'right-y-axis'")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'linear'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n position"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'right'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])],1)}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[124],{569:function(t,e,a){"use strict";a.r(e);var s=a(7),n=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"cartesian-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cartesian-axes"}},[t._v("#")]),t._v(" Cartesian Axes")]),t._v(" "),a("p",[t._v("Axes that follow a cartesian grid are known as 'Cartesian Axes'. Cartesian axes are used for line, bar, and bubble charts. Four cartesian axes are included in Chart.js by default.")]),t._v(" "),a("ul",[a("li",[a("a",{attrs:{href:"./linear"}},[t._v("linear")])]),t._v(" "),a("li",[a("a",{attrs:{href:"./logarithmic"}},[t._v("logarithmic")])]),t._v(" "),a("li",[a("a",{attrs:{href:"./category"}},[t._v("category")])]),t._v(" "),a("li",[a("a",{attrs:{href:"./time"}},[t._v("time")])]),t._v(" "),a("li",[a("a",{attrs:{href:"./timeseries"}},[t._v("timeseries")])])]),t._v(" "),a("h2",{attrs:{id:"visual-components"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#visual-components"}},[t._v("#")]),t._v(" Visual Components")]),t._v(" "),a("p",[t._v("A cartesian axis is composed of visual components that can be individually configured. These components are:")]),t._v(" "),a("ul",[a("li",[a("a",{attrs:{href:"#border"}},[t._v("border")])]),t._v(" "),a("li",[a("a",{attrs:{href:"#grid-lines"}},[t._v("grid lines")])]),t._v(" "),a("li",[a("a",{attrs:{href:"#ticks-and-tick-marks"}},[t._v("tick")])]),t._v(" "),a("li",[a("a",{attrs:{href:"#ticks-and-tick-marks"}},[t._v("tick mark")])]),t._v(" "),a("li",[a("a",{attrs:{href:"#title"}},[t._v("title")])])]),t._v(" "),a("h3",{attrs:{id:"border"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#border"}},[t._v("#")]),t._v(" Border")]),t._v(" "),a("p",[t._v("The axis border is drawn at the edge of the axis, beside the chart area. In the image below, it is drawn in red.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data,\n options: {\n scales: {\n x: {\n grid: {\n borderColor: 'red'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h3",{attrs:{id:"grid-lines"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#grid-lines"}},[t._v("#")]),t._v(" Grid lines")]),t._v(" "),a("p",[t._v("The grid lines for an axis are drawn on the chart area. In the image below, they are red.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data,\n options: {\n scales: {\n x: {\n grid: {\n color: 'red',\n borderColor: 'grey',\n tickColor: 'grey'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h3",{attrs:{id:"ticks-and-tick-marks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks-and-tick-marks"}},[t._v("#")]),t._v(" Ticks and Tick Marks")]),t._v(" "),a("p",[t._v("Ticks represent data values on the axis that appear as labels. The tick mark is the extension of the grid line from the axis border to the label.\nIn this example, the tick mark is drawn in red while the tick label is drawn in blue.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data,\n options: {\n scales: {\n x: {\n grid: {\n tickColor: 'red'\n },\n ticks: {\n color: 'blue',\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h3",{attrs:{id:"title"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" Title")]),t._v(" "),a("p",[t._v("The title component of the axis is used to label the data. In the example below, it is shown in red.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data,\n options: {\n scales: {\n x: {\n title: {\n color: 'red',\n display: true,\n text: 'Month'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"common-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-configuration"}},[t._v("#")]),t._v(" Common Configuration")]),t._v(" "),a("h3",{attrs:{id:"common-options-to-all-cartesian-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-cartesian-axes"}},[t._v("#")]),t._v(" Common options to all cartesian axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("bounds")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'ticks'")])]),t._v(" "),a("td",[t._v("Determines the scale bounds. "),a("RouterLink",{attrs:{to:"/axes/cartesian/#scale-bounds"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("position")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Position of the axis. "),a("RouterLink",{attrs:{to:"/axes/cartesian/#axis-position"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Which type of axis this is. Possible values are: "),a("code",[t._v("'x'")]),t._v(", "),a("code",[t._v("'y'")]),t._v(". If not set, this is inferred from the first character of the ID which should be "),a("code",[t._v("'x'")]),t._v(" or "),a("code",[t._v("'y'")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("offset")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("If true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to "),a("code",[t._v("true")]),t._v(" for a bar chart by default.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("title")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Scale title configuration. "),a("RouterLink",{attrs:{to:"/axes/labelling.html#scale-title-configuration"}},[t._v("more...")])],1)])])]),t._v(" "),a("h3",{attrs:{id:"common-options-to-all-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-axes"}},[t._v("#")]),t._v(" Common options to all axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("type")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Type of scale being employed. Custom scales can be created and registered with a string key. This allows changing the type of an axis for a chart.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("alignToPixels")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Align pixel values to device pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Background color of the scale area.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("Controls the axis global visibility (visible when "),a("code",[t._v("true")]),t._v(", hidden when "),a("code",[t._v("false")]),t._v("). When "),a("code",[t._v("display: 'auto'")]),t._v(", the axis is visible only if at least one associated dataset is visible.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("grid")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Grid line configuration. "),a("RouterLink",{attrs:{to:"/axes/styling.html#grid-line-configuration"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("min")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("User defined minimum number for the scale, overrides minimum value from data. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("max")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("User defined maximum number for the scale, overrides maximum value from data. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("reverse")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Reverse the scale.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("stacked")])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Should the data be stacked. "),a("RouterLink",{attrs:{to:"/axes/#stacking"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("suggestedMax")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Adjustment used when calculating the maximum data value. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("suggestedMin")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Adjustment used when calculating the minimum data value. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("ticks")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Tick configuration. "),a("RouterLink",{attrs:{to:"/axes/#tick-configuration"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("weight")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")])])])]),t._v(" "),a("h3",{attrs:{id:"axis-position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis-position"}},[t._v("#")]),t._v(" Axis Position")]),t._v(" "),a("p",[t._v("An axis can either be positioned at the edge of the chart, at the center of the chart area, or dynamically with respect to a data value.")]),t._v(" "),a("p",[t._v("To position the axis at the edge of the chart, set the "),a("code",[t._v("position")]),t._v(" option to one of: "),a("code",[t._v("'top'")]),t._v(", "),a("code",[t._v("'left'")]),t._v(", "),a("code",[t._v("'bottom'")]),t._v(", "),a("code",[t._v("'right'")]),t._v(".\nTo position the axis at the center of the chart area, set the "),a("code",[t._v("position")]),t._v(" option to "),a("code",[t._v("'center'")]),t._v(". In this mode, either the "),a("code",[t._v("axis")]),t._v(" option is specified or the axis ID starts with the letter 'x' or 'y'.\nTo position the axis with respect to a data value, set the "),a("code",[t._v("position")]),t._v(" option to an object such as:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("p",[t._v('This will position the axis at a value of -20 on the axis with ID "x". For cartesian axes, only 1 axis may be specified.')]),t._v(" "),a("h3",{attrs:{id:"scale-bounds"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scale-bounds"}},[t._v("#")]),t._v(" Scale Bounds")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("bounds")]),t._v(" property controls the scale boundary strategy (bypassed by "),a("code",[t._v("min")]),t._v("/"),a("code",[t._v("max")]),t._v(" options).")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'data'")]),t._v(": makes sure data are fully visible, labels outside are removed")]),t._v(" "),a("li",[a("code",[t._v("'ticks'")]),t._v(": makes sure ticks are fully visible, data outside are truncated")])]),t._v(" "),a("h3",{attrs:{id:"tick-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tick-configuration"}},[t._v("#")]),t._v(" Tick Configuration")]),t._v(" "),a("h3",{attrs:{id:"common-tick-options-to-all-cartesian-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-cartesian-axes"}},[t._v("#")]),t._v(" Common tick options to all cartesian axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("align")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'center'")])]),t._v(" "),a("td",[t._v("The tick alignment along the axis. Can be "),a("code",[t._v("'start'")]),t._v(", "),a("code",[t._v("'center'")]),t._v(", or "),a("code",[t._v("'end'")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("crossAlign")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'near'")])]),t._v(" "),a("td",[t._v("The tick alignment perpendicular to the axis. Can be "),a("code",[t._v("'near'")]),t._v(", "),a("code",[t._v("'center'")]),t._v(", or "),a("code",[t._v("'far'")]),t._v(". See "),a("a",{attrs:{href:"./index#tick-alignment"}},[t._v("Tick Alignment")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("sampleSize")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("ticks.length")])]),t._v(" "),a("td",[t._v("The number of ticks to examine when deciding how many labels will fit. Setting a smaller value will be faster, but may be less accurate when there is large variability in label length.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("autoSkip")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, automatically calculates how many labels can be shown and hides labels accordingly. Labels will be rotated up to "),a("code",[t._v("maxRotation")]),t._v(" before skipping any. Turn "),a("code",[t._v("autoSkip")]),t._v(" off to show all labels no matter what.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("autoSkipPadding")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("3")])]),t._v(" "),a("td",[t._v("Padding between the ticks on the horizontal axis when "),a("code",[t._v("autoSkip")]),t._v(" is enabled.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("labelOffset")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Distance in pixels to offset the label from the centre point of the tick (in the x-direction for the x-axis, and the y-direction for the y-axis). "),a("em",[t._v("Note: this can cause labels at the edges to be cropped by the edge of the canvas")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("maxRotation")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("50")])]),t._v(" "),a("td",[t._v("Maximum rotation for tick labels when rotating to condense labels. Note: Rotation doesn't occur until necessary. "),a("em",[t._v("Note: Only applicable to horizontal scales.")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("minRotation")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Minimum rotation for tick labels. "),a("em",[t._v("Note: Only applicable to horizontal scales.")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("mirror")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Flips tick labels around axis, displaying the labels inside the chart instead of outside. "),a("em",[t._v("Note: Only applicable to vertical scales.")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this applies in the vertical (Y) direction.")])])])]),t._v(" "),a("h3",{attrs:{id:"common-tick-options-to-all-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-axes"}},[t._v("#")]),t._v(" Common tick options to all axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[t._v("Scriptable")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("callback")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Returns the string representation of the tick value as it should be displayed on the chart. See "),a("RouterLink",{attrs:{to:"/axes/labelling.html#creating-custom-tick-formats"}},[t._v("callback")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, show tick labels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("color")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.color")])]),t._v(" "),a("td",[t._v("Color of ticks.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("font")])]),t._v(" "),a("td",[a("code",[t._v("Font")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.font")])]),t._v(" "),a("td",[t._v("See "),a("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("major")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("{}")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/axes/styling.html#major-tick-configuration"}},[t._v("Major ticks configuration")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("3")])]),t._v(" "),a("td",[t._v("Sets the offset of the tick labels from the axis")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textStrokeColor")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[t._v("``")]),t._v(" "),a("td",[t._v("The color of the stroke around the text.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textStrokeWidth")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Stroke width around the text.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("z")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.")])])])]),t._v(" "),a("h3",{attrs:{id:"tick-alignment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tick-alignment"}},[t._v("#")]),t._v(" Tick Alignment")]),t._v(" "),a("p",[t._v("The alignment of ticks is primarily controlled using two settings on the tick configuration object: "),a("code",[t._v("align")]),t._v(" and "),a("code",[t._v("crossAlign")]),t._v(". The "),a("code",[t._v("align")]),t._v(" setting configures how labels align with the tick mark along the axis direction (i.e. horizontal for a horizontal axis and vertical for a vertical axis). The "),a("code",[t._v("crossAlign")]),t._v(" setting configures how labels align with the tick mark in the perpendicular direction (i.e. vertical for a horizontal axis and horizontal for a vertical axis). In the example below, the "),a("code",[t._v("crossAlign")]),t._v(" setting is used to left align the labels on the Y axis.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: [\n 'rgba(255, 99, 132, 0.2)',\n 'rgba(255, 159, 64, 0.2)',\n 'rgba(255, 205, 86, 0.2)',\n 'rgba(75, 192, 192, 0.2)',\n 'rgba(54, 162, 235, 0.2)',\n 'rgba(153, 102, 255, 0.2)',\n 'rgba(201, 203, 207, 0.2)'\n ],\n borderColor: [\n 'rgb(255, 99, 132)',\n 'rgb(255, 159, 64)',\n 'rgb(255, 205, 86)',\n 'rgb(75, 192, 192)',\n 'rgb(54, 162, 235)',\n 'rgb(153, 102, 255)',\n 'rgb(201, 203, 207)'\n ],\n borderWidth: 1,\n data: [65, 59, 80, 81, 56, 55, 40],\n }]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data,\n options: {\n indexAxis: 'y',\n scales: {\n y: {\n ticks: {\n crossAlign: 'far',\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("div",{staticClass:"custom-block tip"},[a("p",{staticClass:"custom-block-title"},[t._v("Note")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("crossAlign")]),t._v(" setting is only effective when these preconditions are met:")]),t._v(" "),a("ul",[a("li",[t._v("tick rotation is "),a("code",[t._v("0")])]),t._v(" "),a("li",[t._v("axis position is "),a("code",[t._v("'top'")]),t._v(", '"),a("code",[t._v("left'")]),t._v(", "),a("code",[t._v("'bottom'")]),t._v(" or "),a("code",[t._v("'right'")])])])]),t._v(" "),a("h3",{attrs:{id:"axis-id"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis-id"}},[t._v("#")]),t._v(" Axis ID")]),t._v(" "),a("p",[t._v("The properties "),a("code",[t._v("dataset.xAxisID")]),t._v(" or "),a("code",[t._v("dataset.yAxisID")]),t._v(" have to match to "),a("code",[t._v("scales")]),t._v(" property. This is especially needed if multi-axes charts are used.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This dataset appears on the first axis")]),t._v("\n yAxisID"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'first-y-axis'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This dataset appears on the second axis")]),t._v("\n yAxisID"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'second-y-axis'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'first-y-axis'")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'linear'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'second-y-axis'")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'linear'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"creating-multiple-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#creating-multiple-axes"}},[t._v("#")]),t._v(" Creating Multiple Axes")]),t._v(" "),a("p",[t._v("With cartesian axes, it is possible to create multiple X and Y axes. To do so, you can add multiple configuration objects to the "),a("code",[t._v("xAxes")]),t._v(" and "),a("code",[t._v("yAxes")]),t._v(" properties. When adding new axes, it is important to ensure that you specify the type of the new axes as default types are "),a("strong",[t._v("not")]),t._v(" used in this case.")]),t._v(" "),a("p",[t._v("In the example below, we are creating two Y axes. We then use the "),a("code",[t._v("yAxisID")]),t._v(" property to map the datasets to their correct axes.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("100")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("75")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("25")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n label"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Left dataset'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This binds the dataset to the left y axis")]),t._v("\n yAxisID"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'left-y-axis'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0.1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0.5")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1.0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2.0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1.5")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n label"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Right dataset'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This binds the dataset to the right y axis")]),t._v("\n yAxisID"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'right-y-axis'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labels"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Jan'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Feb'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Mar'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Apr'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'May'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Jun'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'left-y-axis'")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'linear'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n position"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'left'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'right-y-axis'")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'linear'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n position"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'right'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])],1)}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/125.f204c7e7.js b/docs/3.1.0/assets/js/125.2a9384bc.js similarity index 99% rename from docs/3.1.0/assets/js/125.f204c7e7.js rename to docs/3.1.0/assets/js/125.2a9384bc.js index 359c5ed2b0..ca08b45a76 100644 --- a/docs/3.1.0/assets/js/125.f204c7e7.js +++ b/docs/3.1.0/assets/js/125.2a9384bc.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[125],{449:function(t,e,a){"use strict";a.r(e);var o=a(7),s=Object(o.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"linear-axis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linear-axis"}},[t._v("#")]),t._v(" Linear Axis")]),t._v(" "),a("p",[t._v("The linear scale is used to chart numerical data. It can be placed on either the x or y-axis. The scatter chart type automatically configures a line chart to use one of these scales for the x-axis. As the name suggests, linear interpolation is used to determine where a value lies on the axis.")]),t._v(" "),a("h2",{attrs:{id:"configuration-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configuration-options"}},[t._v("#")]),t._v(" Configuration Options")]),t._v(" "),a("h3",{attrs:{id:"linear-axis-specific-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linear-axis-specific-options"}},[t._v("#")]),t._v(" Linear Axis specific options")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("beginAtZero")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[t._v("if true, scale will include 0 if it is not already included.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("grace")])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[t._v("Percentage (string ending with "),a("code",[t._v("%")]),t._v(") or amount (number) for added room in the scale range above and below data. "),a("a",{attrs:{href:"#grace"}},[t._v("more...")])])])])]),t._v(" "),a("h3",{attrs:{id:"common-options-to-all-cartesian-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-cartesian-axes"}},[t._v("#")]),t._v(" Common options to all cartesian axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("bounds")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'ticks'")])]),t._v(" "),a("td",[t._v("Determines the scale bounds. "),a("RouterLink",{attrs:{to:"/axes/cartesian/#scale-bounds"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("position")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Position of the axis. "),a("RouterLink",{attrs:{to:"/axes/cartesian/#axis-position"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Which type of axis this is. Possible values are: "),a("code",[t._v("'x'")]),t._v(", "),a("code",[t._v("'y'")]),t._v(". If not set, this is inferred from the first character of the ID which should be "),a("code",[t._v("'x'")]),t._v(" or "),a("code",[t._v("'y'")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("offset")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("If true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to "),a("code",[t._v("true")]),t._v(" for a bar chart by default.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("title")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Scale title configuration. "),a("RouterLink",{attrs:{to:"/axes/labelling.html#scale-title-configuration"}},[t._v("more...")])],1)])])]),t._v(" "),a("h3",{attrs:{id:"common-options-to-all-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-axes"}},[t._v("#")]),t._v(" Common options to all axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("type")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Type of scale being employed. Custom scales can be created and registered with a string key. This allows changing the type of an axis for a chart.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("alignToPixels")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Align pixel values to device pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Background color of the scale area.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("Controls the axis global visibility (visible when "),a("code",[t._v("true")]),t._v(", hidden when "),a("code",[t._v("false")]),t._v("). When "),a("code",[t._v("display: 'auto'")]),t._v(", the axis is visible only if at least one associated dataset is visible.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("grid")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Grid line configuration. "),a("RouterLink",{attrs:{to:"/axes/styling.html#grid-line-configuration"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("min")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("User defined minimum number for the scale, overrides minimum value from data. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("max")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("User defined maximum number for the scale, overrides maximum value from data. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("reverse")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Reverse the scale.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("stacked")])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Should the data be stacked. "),a("RouterLink",{attrs:{to:"/axes/#stacking"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("suggestedMax")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Adjustment used when calculating the maximum data value. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("suggestedMin")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Adjustment used when calculating the minimum data value. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("ticks")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Tick configuration. "),a("RouterLink",{attrs:{to:"/axes/#tick-configuration"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("weight")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")])])])]),t._v(" "),a("h2",{attrs:{id:"tick-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tick-configuration"}},[t._v("#")]),t._v(" Tick Configuration")]),t._v(" "),a("h3",{attrs:{id:"linear-axis-specific-tick-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linear-axis-specific-tick-options"}},[t._v("#")]),t._v(" Linear Axis specific tick options")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Scriptable")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("count")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])]),t._v(" "),a("td",[t._v("The number of ticks to generate. If specified, this overrides the automatic generation.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("format")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td",[t._v("Yes")]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("The "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat",target:"_blank",rel:"noopener noreferrer"}},[a("code",[t._v("Intl.NumberFormat")]),a("OutboundLink")],1),t._v(" options used by the default label formatter")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("maxTicksLimit")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("11")])]),t._v(" "),a("td",[t._v("Maximum number of ticks and gridlines to show.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("precision")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("Yes")]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("if defined and "),a("code",[t._v("stepSize")]),t._v(" is not specified, the step size will be rounded to this many decimal places.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("stepSize")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("Yes")]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("User-defined fixed step size for the scale. "),a("a",{attrs:{href:"#step-size"}},[t._v("more...")])])])])]),t._v(" "),a("h3",{attrs:{id:"common-tick-options-to-all-cartesian-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-cartesian-axes"}},[t._v("#")]),t._v(" Common tick options to all cartesian axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("align")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'center'")])]),t._v(" "),a("td",[t._v("The tick alignment along the axis. Can be "),a("code",[t._v("'start'")]),t._v(", "),a("code",[t._v("'center'")]),t._v(", or "),a("code",[t._v("'end'")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("crossAlign")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'near'")])]),t._v(" "),a("td",[t._v("The tick alignment perpendicular to the axis. Can be "),a("code",[t._v("'near'")]),t._v(", "),a("code",[t._v("'center'")]),t._v(", or "),a("code",[t._v("'far'")]),t._v(". See "),a("a",{attrs:{href:"./index#tick-alignment"}},[t._v("Tick Alignment")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("sampleSize")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("ticks.length")])]),t._v(" "),a("td",[t._v("The number of ticks to examine when deciding how many labels will fit. Setting a smaller value will be faster, but may be less accurate when there is large variability in label length.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("autoSkip")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, automatically calculates how many labels can be shown and hides labels accordingly. Labels will be rotated up to "),a("code",[t._v("maxRotation")]),t._v(" before skipping any. Turn "),a("code",[t._v("autoSkip")]),t._v(" off to show all labels no matter what.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("autoSkipPadding")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("3")])]),t._v(" "),a("td",[t._v("Padding between the ticks on the horizontal axis when "),a("code",[t._v("autoSkip")]),t._v(" is enabled.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("labelOffset")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Distance in pixels to offset the label from the centre point of the tick (in the x-direction for the x-axis, and the y-direction for the y-axis). "),a("em",[t._v("Note: this can cause labels at the edges to be cropped by the edge of the canvas")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("maxRotation")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("50")])]),t._v(" "),a("td",[t._v("Maximum rotation for tick labels when rotating to condense labels. Note: Rotation doesn't occur until necessary. "),a("em",[t._v("Note: Only applicable to horizontal scales.")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("minRotation")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Minimum rotation for tick labels. "),a("em",[t._v("Note: Only applicable to horizontal scales.")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("mirror")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Flips tick labels around axis, displaying the labels inside the chart instead of outside. "),a("em",[t._v("Note: Only applicable to vertical scales.")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this applies in the vertical (Y) direction.")])])])]),t._v(" "),a("h3",{attrs:{id:"common-tick-options-to-all-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-axes"}},[t._v("#")]),t._v(" Common tick options to all axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[t._v("Scriptable")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("callback")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Returns the string representation of the tick value as it should be displayed on the chart. See "),a("RouterLink",{attrs:{to:"/axes/labelling.html#creating-custom-tick-formats"}},[t._v("callback")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, show tick labels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("color")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.color")])]),t._v(" "),a("td",[t._v("Color of ticks.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("font")])]),t._v(" "),a("td",[a("code",[t._v("Font")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.font")])]),t._v(" "),a("td",[t._v("See "),a("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("major")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("{}")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/axes/styling.html#major-tick-configuration"}},[t._v("Major ticks configuration")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("3")])]),t._v(" "),a("td",[t._v("Sets the offset of the tick labels from the axis")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textStrokeColor")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[t._v("``")]),t._v(" "),a("td",[t._v("The color of the stroke around the text.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textStrokeWidth")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Stroke width around the text.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("z")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.")])])])]),t._v(" "),a("h2",{attrs:{id:"step-size"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#step-size"}},[t._v("#")]),t._v(" Step Size")]),t._v(" "),a("p",[t._v("If set, the scale ticks will be enumerated by multiple of "),a("code",[t._v("stepSize")]),t._v(", having one tick per increment. If not set, the ticks are labeled automatically using the nice numbers algorithm.")]),t._v(" "),a("p",[t._v("This example sets up a chart with a y axis that creates ticks at "),a("code",[t._v("0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5")]),t._v(".")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" options "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n y"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n max"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("5")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n min"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n ticks"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n stepSize"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0.5")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"grace"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#grace"}},[t._v("#")]),t._v(" Grace")]),t._v(" "),a("p",[t._v("If the value is string ending with "),a("code",[t._v("%")]),t._v(", its treat as percentage. If number, its treat as value.\nThe value is added to the maximum data value and subtracted from the minimum data. This extends the scale range as if the data values were that much greater.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: ['Positive', 'Negative'],\n datasets: [{\n data: [100, -50],\n backgroundColor: 'rgb(255, 99, 132)'\n }],\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data,\n options: {\n scales: {\n y: {\n type: 'linear',\n grace: '5%'\n }\n },\n plugins: {\n legend: false\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"internal-data-format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),a("p",[t._v("Internally, the linear scale uses numeric data")])],1)}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[125],{450:function(t,e,a){"use strict";a.r(e);var o=a(7),s=Object(o.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"linear-axis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linear-axis"}},[t._v("#")]),t._v(" Linear Axis")]),t._v(" "),a("p",[t._v("The linear scale is used to chart numerical data. It can be placed on either the x or y-axis. The scatter chart type automatically configures a line chart to use one of these scales for the x-axis. As the name suggests, linear interpolation is used to determine where a value lies on the axis.")]),t._v(" "),a("h2",{attrs:{id:"configuration-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configuration-options"}},[t._v("#")]),t._v(" Configuration Options")]),t._v(" "),a("h3",{attrs:{id:"linear-axis-specific-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linear-axis-specific-options"}},[t._v("#")]),t._v(" Linear Axis specific options")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("beginAtZero")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[t._v("if true, scale will include 0 if it is not already included.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("grace")])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[t._v("Percentage (string ending with "),a("code",[t._v("%")]),t._v(") or amount (number) for added room in the scale range above and below data. "),a("a",{attrs:{href:"#grace"}},[t._v("more...")])])])])]),t._v(" "),a("h3",{attrs:{id:"common-options-to-all-cartesian-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-cartesian-axes"}},[t._v("#")]),t._v(" Common options to all cartesian axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("bounds")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'ticks'")])]),t._v(" "),a("td",[t._v("Determines the scale bounds. "),a("RouterLink",{attrs:{to:"/axes/cartesian/#scale-bounds"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("position")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Position of the axis. "),a("RouterLink",{attrs:{to:"/axes/cartesian/#axis-position"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Which type of axis this is. Possible values are: "),a("code",[t._v("'x'")]),t._v(", "),a("code",[t._v("'y'")]),t._v(". If not set, this is inferred from the first character of the ID which should be "),a("code",[t._v("'x'")]),t._v(" or "),a("code",[t._v("'y'")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("offset")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("If true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to "),a("code",[t._v("true")]),t._v(" for a bar chart by default.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("title")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Scale title configuration. "),a("RouterLink",{attrs:{to:"/axes/labelling.html#scale-title-configuration"}},[t._v("more...")])],1)])])]),t._v(" "),a("h3",{attrs:{id:"common-options-to-all-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-axes"}},[t._v("#")]),t._v(" Common options to all axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("type")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Type of scale being employed. Custom scales can be created and registered with a string key. This allows changing the type of an axis for a chart.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("alignToPixels")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Align pixel values to device pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Background color of the scale area.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("Controls the axis global visibility (visible when "),a("code",[t._v("true")]),t._v(", hidden when "),a("code",[t._v("false")]),t._v("). When "),a("code",[t._v("display: 'auto'")]),t._v(", the axis is visible only if at least one associated dataset is visible.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("grid")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Grid line configuration. "),a("RouterLink",{attrs:{to:"/axes/styling.html#grid-line-configuration"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("min")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("User defined minimum number for the scale, overrides minimum value from data. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("max")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("User defined maximum number for the scale, overrides maximum value from data. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("reverse")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Reverse the scale.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("stacked")])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Should the data be stacked. "),a("RouterLink",{attrs:{to:"/axes/#stacking"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("suggestedMax")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Adjustment used when calculating the maximum data value. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("suggestedMin")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Adjustment used when calculating the minimum data value. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("ticks")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Tick configuration. "),a("RouterLink",{attrs:{to:"/axes/#tick-configuration"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("weight")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")])])])]),t._v(" "),a("h2",{attrs:{id:"tick-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tick-configuration"}},[t._v("#")]),t._v(" Tick Configuration")]),t._v(" "),a("h3",{attrs:{id:"linear-axis-specific-tick-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linear-axis-specific-tick-options"}},[t._v("#")]),t._v(" Linear Axis specific tick options")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Scriptable")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("count")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])]),t._v(" "),a("td",[t._v("The number of ticks to generate. If specified, this overrides the automatic generation.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("format")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td",[t._v("Yes")]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("The "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat",target:"_blank",rel:"noopener noreferrer"}},[a("code",[t._v("Intl.NumberFormat")]),a("OutboundLink")],1),t._v(" options used by the default label formatter")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("maxTicksLimit")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("11")])]),t._v(" "),a("td",[t._v("Maximum number of ticks and gridlines to show.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("precision")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("Yes")]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("if defined and "),a("code",[t._v("stepSize")]),t._v(" is not specified, the step size will be rounded to this many decimal places.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("stepSize")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("Yes")]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("User-defined fixed step size for the scale. "),a("a",{attrs:{href:"#step-size"}},[t._v("more...")])])])])]),t._v(" "),a("h3",{attrs:{id:"common-tick-options-to-all-cartesian-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-cartesian-axes"}},[t._v("#")]),t._v(" Common tick options to all cartesian axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("align")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'center'")])]),t._v(" "),a("td",[t._v("The tick alignment along the axis. Can be "),a("code",[t._v("'start'")]),t._v(", "),a("code",[t._v("'center'")]),t._v(", or "),a("code",[t._v("'end'")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("crossAlign")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'near'")])]),t._v(" "),a("td",[t._v("The tick alignment perpendicular to the axis. Can be "),a("code",[t._v("'near'")]),t._v(", "),a("code",[t._v("'center'")]),t._v(", or "),a("code",[t._v("'far'")]),t._v(". See "),a("a",{attrs:{href:"./index#tick-alignment"}},[t._v("Tick Alignment")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("sampleSize")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("ticks.length")])]),t._v(" "),a("td",[t._v("The number of ticks to examine when deciding how many labels will fit. Setting a smaller value will be faster, but may be less accurate when there is large variability in label length.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("autoSkip")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, automatically calculates how many labels can be shown and hides labels accordingly. Labels will be rotated up to "),a("code",[t._v("maxRotation")]),t._v(" before skipping any. Turn "),a("code",[t._v("autoSkip")]),t._v(" off to show all labels no matter what.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("autoSkipPadding")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("3")])]),t._v(" "),a("td",[t._v("Padding between the ticks on the horizontal axis when "),a("code",[t._v("autoSkip")]),t._v(" is enabled.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("labelOffset")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Distance in pixels to offset the label from the centre point of the tick (in the x-direction for the x-axis, and the y-direction for the y-axis). "),a("em",[t._v("Note: this can cause labels at the edges to be cropped by the edge of the canvas")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("maxRotation")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("50")])]),t._v(" "),a("td",[t._v("Maximum rotation for tick labels when rotating to condense labels. Note: Rotation doesn't occur until necessary. "),a("em",[t._v("Note: Only applicable to horizontal scales.")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("minRotation")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Minimum rotation for tick labels. "),a("em",[t._v("Note: Only applicable to horizontal scales.")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("mirror")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Flips tick labels around axis, displaying the labels inside the chart instead of outside. "),a("em",[t._v("Note: Only applicable to vertical scales.")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this applies in the vertical (Y) direction.")])])])]),t._v(" "),a("h3",{attrs:{id:"common-tick-options-to-all-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-axes"}},[t._v("#")]),t._v(" Common tick options to all axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[t._v("Scriptable")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("callback")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Returns the string representation of the tick value as it should be displayed on the chart. See "),a("RouterLink",{attrs:{to:"/axes/labelling.html#creating-custom-tick-formats"}},[t._v("callback")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, show tick labels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("color")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.color")])]),t._v(" "),a("td",[t._v("Color of ticks.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("font")])]),t._v(" "),a("td",[a("code",[t._v("Font")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.font")])]),t._v(" "),a("td",[t._v("See "),a("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("major")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("{}")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/axes/styling.html#major-tick-configuration"}},[t._v("Major ticks configuration")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("3")])]),t._v(" "),a("td",[t._v("Sets the offset of the tick labels from the axis")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textStrokeColor")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[t._v("``")]),t._v(" "),a("td",[t._v("The color of the stroke around the text.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textStrokeWidth")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Stroke width around the text.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("z")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.")])])])]),t._v(" "),a("h2",{attrs:{id:"step-size"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#step-size"}},[t._v("#")]),t._v(" Step Size")]),t._v(" "),a("p",[t._v("If set, the scale ticks will be enumerated by multiple of "),a("code",[t._v("stepSize")]),t._v(", having one tick per increment. If not set, the ticks are labeled automatically using the nice numbers algorithm.")]),t._v(" "),a("p",[t._v("This example sets up a chart with a y axis that creates ticks at "),a("code",[t._v("0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5")]),t._v(".")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" options "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n y"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n max"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("5")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n min"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n ticks"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n stepSize"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0.5")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"grace"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#grace"}},[t._v("#")]),t._v(" Grace")]),t._v(" "),a("p",[t._v("If the value is string ending with "),a("code",[t._v("%")]),t._v(", its treat as percentage. If number, its treat as value.\nThe value is added to the maximum data value and subtracted from the minimum data. This extends the scale range as if the data values were that much greater.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: ['Positive', 'Negative'],\n datasets: [{\n data: [100, -50],\n backgroundColor: 'rgb(255, 99, 132)'\n }],\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data,\n options: {\n scales: {\n y: {\n type: 'linear',\n grace: '5%'\n }\n },\n plugins: {\n legend: false\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"internal-data-format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),a("p",[t._v("Internally, the linear scale uses numeric data")])],1)}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/126.92a7d203.js b/docs/3.1.0/assets/js/126.f39ed9b5.js similarity index 99% rename from docs/3.1.0/assets/js/126.92a7d203.js rename to docs/3.1.0/assets/js/126.f39ed9b5.js index 48c0d0669e..6929ca19da 100644 --- a/docs/3.1.0/assets/js/126.92a7d203.js +++ b/docs/3.1.0/assets/js/126.f39ed9b5.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[126],{451:function(t,e,o){"use strict";o.r(e);var a=o(7),v=Object(a.a)({},(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[o("h1",{attrs:{id:"logarithmic-axis"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#logarithmic-axis"}},[t._v("#")]),t._v(" Logarithmic Axis")]),t._v(" "),o("p",[t._v("The logarithmic scale is used to chart numerical data. It can be placed on either the x or y-axis. As the name suggests, logarithmic interpolation is used to determine where a value lies on the axis.")]),t._v(" "),o("h2",{attrs:{id:"configuration-options"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#configuration-options"}},[t._v("#")]),t._v(" Configuration Options")]),t._v(" "),o("h3",{attrs:{id:"common-options-to-all-cartesian-axes"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-cartesian-axes"}},[t._v("#")]),t._v(" Common options to all cartesian axes")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.scales[scaleId]")])]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("bounds")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'ticks'")])]),t._v(" "),o("td",[t._v("Determines the scale bounds. "),o("RouterLink",{attrs:{to:"/axes/cartesian/#scale-bounds"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("position")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Position of the axis. "),o("RouterLink",{attrs:{to:"/axes/cartesian/#axis-position"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("axis")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Which type of axis this is. Possible values are: "),o("code",[t._v("'x'")]),t._v(", "),o("code",[t._v("'y'")]),t._v(". If not set, this is inferred from the first character of the ID which should be "),o("code",[t._v("'x'")]),t._v(" or "),o("code",[t._v("'y'")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("offset")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("If true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to "),o("code",[t._v("true")]),t._v(" for a bar chart by default.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("title")])]),t._v(" "),o("td",[o("code",[t._v("object")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Scale title configuration. "),o("RouterLink",{attrs:{to:"/axes/labelling.html#scale-title-configuration"}},[t._v("more...")])],1)])])]),t._v(" "),o("h3",{attrs:{id:"common-options-to-all-axes"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-axes"}},[t._v("#")]),t._v(" Common options to all axes")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.scales[scaleId]")])]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("type")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Type of scale being employed. Custom scales can be created and registered with a string key. This allows changing the type of an axis for a chart.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("alignToPixels")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Align pixel values to device pixels.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("backgroundColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Background color of the scale area.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("display")])]),t._v(" "),o("td",[o("code",[t._v("boolean")]),t._v("|"),o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[t._v("Controls the axis global visibility (visible when "),o("code",[t._v("true")]),t._v(", hidden when "),o("code",[t._v("false")]),t._v("). When "),o("code",[t._v("display: 'auto'")]),t._v(", the axis is visible only if at least one associated dataset is visible.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("grid")])]),t._v(" "),o("td",[o("code",[t._v("object")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Grid line configuration. "),o("RouterLink",{attrs:{to:"/axes/styling.html#grid-line-configuration"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("min")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("User defined minimum number for the scale, overrides minimum value from data. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("max")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("User defined maximum number for the scale, overrides maximum value from data. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("reverse")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Reverse the scale.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("stacked")])]),t._v(" "),o("td",[o("code",[t._v("boolean")]),t._v("|"),o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Should the data be stacked. "),o("RouterLink",{attrs:{to:"/axes/#stacking"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("suggestedMax")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Adjustment used when calculating the maximum data value. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("suggestedMin")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Adjustment used when calculating the minimum data value. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("ticks")])]),t._v(" "),o("td",[o("code",[t._v("object")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Tick configuration. "),o("RouterLink",{attrs:{to:"/axes/#tick-configuration"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("weight")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")])])])]),t._v(" "),o("h2",{attrs:{id:"tick-configuration"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#tick-configuration"}},[t._v("#")]),t._v(" Tick Configuration")]),t._v(" "),o("h3",{attrs:{id:"logarithmic-axis-specific-options"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#logarithmic-axis-specific-options"}},[t._v("#")]),t._v(" Logarithmic Axis specific options")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.scales[scaleId]")])]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("format")])]),t._v(" "),o("td",[o("code",[t._v("object")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("The "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat",target:"_blank",rel:"noopener noreferrer"}},[o("code",[t._v("Intl.NumberFormat")]),o("OutboundLink")],1),t._v(" options used by the default label formatter")])])])]),t._v(" "),o("h3",{attrs:{id:"common-tick-options-to-all-cartesian-axes"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-cartesian-axes"}},[t._v("#")]),t._v(" Common tick options to all cartesian axes")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("align")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'center'")])]),t._v(" "),o("td",[t._v("The tick alignment along the axis. Can be "),o("code",[t._v("'start'")]),t._v(", "),o("code",[t._v("'center'")]),t._v(", or "),o("code",[t._v("'end'")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("crossAlign")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'near'")])]),t._v(" "),o("td",[t._v("The tick alignment perpendicular to the axis. Can be "),o("code",[t._v("'near'")]),t._v(", "),o("code",[t._v("'center'")]),t._v(", or "),o("code",[t._v("'far'")]),t._v(". See "),o("a",{attrs:{href:"./index#tick-alignment"}},[t._v("Tick Alignment")])])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("sampleSize")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("ticks.length")])]),t._v(" "),o("td",[t._v("The number of ticks to examine when deciding how many labels will fit. Setting a smaller value will be faster, but may be less accurate when there is large variability in label length.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("autoSkip")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[t._v("If true, automatically calculates how many labels can be shown and hides labels accordingly. Labels will be rotated up to "),o("code",[t._v("maxRotation")]),t._v(" before skipping any. Turn "),o("code",[t._v("autoSkip")]),t._v(" off to show all labels no matter what.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("autoSkipPadding")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("3")])]),t._v(" "),o("td",[t._v("Padding between the ticks on the horizontal axis when "),o("code",[t._v("autoSkip")]),t._v(" is enabled.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("labelOffset")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("Distance in pixels to offset the label from the centre point of the tick (in the x-direction for the x-axis, and the y-direction for the y-axis). "),o("em",[t._v("Note: this can cause labels at the edges to be cropped by the edge of the canvas")])])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("maxRotation")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("50")])]),t._v(" "),o("td",[t._v("Maximum rotation for tick labels when rotating to condense labels. Note: Rotation doesn't occur until necessary. "),o("em",[t._v("Note: Only applicable to horizontal scales.")])])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("minRotation")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("Minimum rotation for tick labels. "),o("em",[t._v("Note: Only applicable to horizontal scales.")])])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("mirror")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Flips tick labels around axis, displaying the labels inside the chart instead of outside. "),o("em",[t._v("Note: Only applicable to vertical scales.")])])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("padding")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("Padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this applies in the vertical (Y) direction.")])])])]),t._v(" "),o("h3",{attrs:{id:"common-tick-options-to-all-axes"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-axes"}},[t._v("#")]),t._v(" Common tick options to all axes")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",{staticStyle:{"text-align":"center"}},[t._v("Scriptable")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("callback")])]),t._v(" "),o("td",[o("code",[t._v("function")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}}),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Returns the string representation of the tick value as it should be displayed on the chart. See "),o("RouterLink",{attrs:{to:"/axes/labelling.html#creating-custom-tick-formats"}},[t._v("callback")]),t._v(".")],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("display")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}}),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[t._v("If true, show tick labels.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("color")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.color")])]),t._v(" "),o("td",[t._v("Color of ticks.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("font")])]),t._v(" "),o("td",[o("code",[t._v("Font")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.font")])]),t._v(" "),o("td",[t._v("See "),o("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("major")])]),t._v(" "),o("td",[o("code",[t._v("object")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}}),t._v(" "),o("td",[o("code",[t._v("{}")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/axes/styling.html#major-tick-configuration"}},[t._v("Major ticks configuration")]),t._v(".")],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("padding")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}}),t._v(" "),o("td",[o("code",[t._v("3")])]),t._v(" "),o("td",[t._v("Sets the offset of the tick labels from the axis")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("textStrokeColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),o("td",[t._v("``")]),t._v(" "),o("td",[t._v("The color of the stroke around the text.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("textStrokeWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("Stroke width around the text.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("z")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}}),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.")])])])]),t._v(" "),o("h2",{attrs:{id:"internal-data-format"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),o("p",[t._v("Internally, the logarithmic scale uses numeric data.")])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[126],{449:function(t,e,o){"use strict";o.r(e);var a=o(7),v=Object(a.a)({},(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[o("h1",{attrs:{id:"logarithmic-axis"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#logarithmic-axis"}},[t._v("#")]),t._v(" Logarithmic Axis")]),t._v(" "),o("p",[t._v("The logarithmic scale is used to chart numerical data. It can be placed on either the x or y-axis. As the name suggests, logarithmic interpolation is used to determine where a value lies on the axis.")]),t._v(" "),o("h2",{attrs:{id:"configuration-options"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#configuration-options"}},[t._v("#")]),t._v(" Configuration Options")]),t._v(" "),o("h3",{attrs:{id:"common-options-to-all-cartesian-axes"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-cartesian-axes"}},[t._v("#")]),t._v(" Common options to all cartesian axes")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.scales[scaleId]")])]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("bounds")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'ticks'")])]),t._v(" "),o("td",[t._v("Determines the scale bounds. "),o("RouterLink",{attrs:{to:"/axes/cartesian/#scale-bounds"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("position")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Position of the axis. "),o("RouterLink",{attrs:{to:"/axes/cartesian/#axis-position"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("axis")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Which type of axis this is. Possible values are: "),o("code",[t._v("'x'")]),t._v(", "),o("code",[t._v("'y'")]),t._v(". If not set, this is inferred from the first character of the ID which should be "),o("code",[t._v("'x'")]),t._v(" or "),o("code",[t._v("'y'")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("offset")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("If true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to "),o("code",[t._v("true")]),t._v(" for a bar chart by default.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("title")])]),t._v(" "),o("td",[o("code",[t._v("object")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Scale title configuration. "),o("RouterLink",{attrs:{to:"/axes/labelling.html#scale-title-configuration"}},[t._v("more...")])],1)])])]),t._v(" "),o("h3",{attrs:{id:"common-options-to-all-axes"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-axes"}},[t._v("#")]),t._v(" Common options to all axes")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.scales[scaleId]")])]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("type")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Type of scale being employed. Custom scales can be created and registered with a string key. This allows changing the type of an axis for a chart.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("alignToPixels")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Align pixel values to device pixels.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("backgroundColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Background color of the scale area.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("display")])]),t._v(" "),o("td",[o("code",[t._v("boolean")]),t._v("|"),o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[t._v("Controls the axis global visibility (visible when "),o("code",[t._v("true")]),t._v(", hidden when "),o("code",[t._v("false")]),t._v("). When "),o("code",[t._v("display: 'auto'")]),t._v(", the axis is visible only if at least one associated dataset is visible.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("grid")])]),t._v(" "),o("td",[o("code",[t._v("object")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Grid line configuration. "),o("RouterLink",{attrs:{to:"/axes/styling.html#grid-line-configuration"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("min")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("User defined minimum number for the scale, overrides minimum value from data. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("max")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("User defined maximum number for the scale, overrides maximum value from data. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("reverse")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Reverse the scale.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("stacked")])]),t._v(" "),o("td",[o("code",[t._v("boolean")]),t._v("|"),o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Should the data be stacked. "),o("RouterLink",{attrs:{to:"/axes/#stacking"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("suggestedMax")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Adjustment used when calculating the maximum data value. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("suggestedMin")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Adjustment used when calculating the minimum data value. "),o("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("ticks")])]),t._v(" "),o("td",[o("code",[t._v("object")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Tick configuration. "),o("RouterLink",{attrs:{to:"/axes/#tick-configuration"}},[t._v("more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("weight")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")])])])]),t._v(" "),o("h2",{attrs:{id:"tick-configuration"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#tick-configuration"}},[t._v("#")]),t._v(" Tick Configuration")]),t._v(" "),o("h3",{attrs:{id:"logarithmic-axis-specific-options"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#logarithmic-axis-specific-options"}},[t._v("#")]),t._v(" Logarithmic Axis specific options")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.scales[scaleId]")])]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("format")])]),t._v(" "),o("td",[o("code",[t._v("object")])]),t._v(" "),o("td"),t._v(" "),o("td",[t._v("The "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat",target:"_blank",rel:"noopener noreferrer"}},[o("code",[t._v("Intl.NumberFormat")]),o("OutboundLink")],1),t._v(" options used by the default label formatter")])])])]),t._v(" "),o("h3",{attrs:{id:"common-tick-options-to-all-cartesian-axes"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-cartesian-axes"}},[t._v("#")]),t._v(" Common tick options to all cartesian axes")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("align")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'center'")])]),t._v(" "),o("td",[t._v("The tick alignment along the axis. Can be "),o("code",[t._v("'start'")]),t._v(", "),o("code",[t._v("'center'")]),t._v(", or "),o("code",[t._v("'end'")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("crossAlign")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'near'")])]),t._v(" "),o("td",[t._v("The tick alignment perpendicular to the axis. Can be "),o("code",[t._v("'near'")]),t._v(", "),o("code",[t._v("'center'")]),t._v(", or "),o("code",[t._v("'far'")]),t._v(". See "),o("a",{attrs:{href:"./index#tick-alignment"}},[t._v("Tick Alignment")])])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("sampleSize")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("ticks.length")])]),t._v(" "),o("td",[t._v("The number of ticks to examine when deciding how many labels will fit. Setting a smaller value will be faster, but may be less accurate when there is large variability in label length.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("autoSkip")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[t._v("If true, automatically calculates how many labels can be shown and hides labels accordingly. Labels will be rotated up to "),o("code",[t._v("maxRotation")]),t._v(" before skipping any. Turn "),o("code",[t._v("autoSkip")]),t._v(" off to show all labels no matter what.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("autoSkipPadding")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("3")])]),t._v(" "),o("td",[t._v("Padding between the ticks on the horizontal axis when "),o("code",[t._v("autoSkip")]),t._v(" is enabled.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("labelOffset")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("Distance in pixels to offset the label from the centre point of the tick (in the x-direction for the x-axis, and the y-direction for the y-axis). "),o("em",[t._v("Note: this can cause labels at the edges to be cropped by the edge of the canvas")])])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("maxRotation")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("50")])]),t._v(" "),o("td",[t._v("Maximum rotation for tick labels when rotating to condense labels. Note: Rotation doesn't occur until necessary. "),o("em",[t._v("Note: Only applicable to horizontal scales.")])])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("minRotation")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("Minimum rotation for tick labels. "),o("em",[t._v("Note: Only applicable to horizontal scales.")])])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("mirror")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("Flips tick labels around axis, displaying the labels inside the chart instead of outside. "),o("em",[t._v("Note: Only applicable to vertical scales.")])])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("padding")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("Padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this applies in the vertical (Y) direction.")])])])]),t._v(" "),o("h3",{attrs:{id:"common-tick-options-to-all-axes"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-axes"}},[t._v("#")]),t._v(" Common tick options to all axes")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",{staticStyle:{"text-align":"center"}},[t._v("Scriptable")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("callback")])]),t._v(" "),o("td",[o("code",[t._v("function")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}}),t._v(" "),o("td"),t._v(" "),o("td",[t._v("Returns the string representation of the tick value as it should be displayed on the chart. See "),o("RouterLink",{attrs:{to:"/axes/labelling.html#creating-custom-tick-formats"}},[t._v("callback")]),t._v(".")],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("display")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}}),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[t._v("If true, show tick labels.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("color")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.color")])]),t._v(" "),o("td",[t._v("Color of ticks.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("font")])]),t._v(" "),o("td",[o("code",[t._v("Font")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.font")])]),t._v(" "),o("td",[t._v("See "),o("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("major")])]),t._v(" "),o("td",[o("code",[t._v("object")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}}),t._v(" "),o("td",[o("code",[t._v("{}")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/axes/styling.html#major-tick-configuration"}},[t._v("Major ticks configuration")]),t._v(".")],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("padding")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}}),t._v(" "),o("td",[o("code",[t._v("3")])]),t._v(" "),o("td",[t._v("Sets the offset of the tick labels from the axis")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("textStrokeColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),o("td",[t._v("``")]),t._v(" "),o("td",[t._v("The color of the stroke around the text.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("textStrokeWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("Stroke width around the text.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("z")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",{staticStyle:{"text-align":"center"}}),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.")])])])]),t._v(" "),o("h2",{attrs:{id:"internal-data-format"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),o("p",[t._v("Internally, the logarithmic scale uses numeric data.")])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/127.b35a23b5.js b/docs/3.1.0/assets/js/127.787b00cf.js similarity index 99% rename from docs/3.1.0/assets/js/127.b35a23b5.js rename to docs/3.1.0/assets/js/127.787b00cf.js index b5582b42b5..8bb6568992 100644 --- a/docs/3.1.0/assets/js/127.b35a23b5.js +++ b/docs/3.1.0/assets/js/127.787b00cf.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[127],{452:function(t,e,a){"use strict";a.r(e);var s=a(7),o=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"time-cartesian-axis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#time-cartesian-axis"}},[t._v("#")]),t._v(" Time Cartesian Axis")]),t._v(" "),a("p",[t._v("The time scale is used to display times and dates. Data are spread according to the amount of time between data points. When building its ticks, it will automatically calculate the most comfortable unit base on the size of the scale.")]),t._v(" "),a("h2",{attrs:{id:"date-adapters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#date-adapters"}},[t._v("#")]),t._v(" Date Adapters")]),t._v(" "),a("p",[t._v("The time scale "),a("strong",[t._v("requires")]),t._v(" both a date library and a corresponding adapter to be present. Please choose from the "),a("a",{attrs:{href:"https://github.com/chartjs/awesome#adapters",target:"_blank",rel:"noopener noreferrer"}},[t._v("available adapters"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h2",{attrs:{id:"data-sets"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-sets"}},[t._v("#")]),t._v(" Data Sets")]),t._v(" "),a("h3",{attrs:{id:"input-data"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#input-data"}},[t._v("#")]),t._v(" Input Data")]),t._v(" "),a("p",[t._v("See "),a("RouterLink",{attrs:{to:"/general/data-structures.html"}},[t._v("data structures")]),t._v(".")],1),t._v(" "),a("h3",{attrs:{id:"date-formats"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#date-formats"}},[t._v("#")]),t._v(" Date Formats")]),t._v(" "),a("p",[t._v("When providing data for the time scale, Chart.js uses timestamps defined as milliseconds since the epoch (midnight January 1, 1970, UTC) internally. However, Chart.js also supports all of the formats that your chosen date adapter accepts. You should use timestamps if you'd like to set "),a("code",[t._v("parsing: false")]),t._v(" for better performance.")]),t._v(" "),a("h2",{attrs:{id:"configuration-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configuration-options"}},[t._v("#")]),t._v(" Configuration Options")]),t._v(" "),a("h3",{attrs:{id:"time-axis-specific-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#time-axis-specific-options"}},[t._v("#")]),t._v(" Time Axis specific options")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("adapters.date")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td",[a("code",[t._v("{}")])]),t._v(" "),a("td",[t._v("Options for adapter for external date library if that adapter needs or supports options")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("bounds")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'data'")])]),t._v(" "),a("td",[t._v("Determines the scale bounds. "),a("RouterLink",{attrs:{to:"/axes/cartesian/#scale-bounds"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("ticks.source")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'auto'")])]),t._v(" "),a("td",[t._v("How ticks are generated. "),a("a",{attrs:{href:"#ticks-source"}},[t._v("more...")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("time.displayFormats")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Sets how different time units are displayed. "),a("a",{attrs:{href:"#display-formats"}},[t._v("more...")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("time.isoWeekday")])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("If "),a("code",[t._v("boolean")]),t._v(" and true and the unit is set to 'week', then the first day of the week will be Monday. Otherwise, it will be Sunday. If "),a("code",[t._v("number")]),t._v(", the index of the first day of the week (0 - Sunday, 6 - Saturday)")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("time.parser")])]),t._v(" "),a("td",[a("code",[t._v("string")]),t._v("|"),a("code",[t._v("function")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Custom parser for dates. "),a("a",{attrs:{href:"#parser"}},[t._v("more...")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("time.round")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("If defined, dates will be rounded to the start of this unit. See "),a("a",{attrs:{href:"#time-units"}},[t._v("Time Units")]),t._v(" below for the allowed units.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("time.tooltipFormat")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("The format string to use for the tooltip.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("time.unit")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("If defined, will force the unit to be a certain type. See "),a("a",{attrs:{href:"#time-units"}},[t._v("Time Units")]),t._v(" section below for details.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("time.stepSize")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("1")])]),t._v(" "),a("td",[t._v("The number of units between grid lines.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("time.minUnit")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'millisecond'")])]),t._v(" "),a("td",[t._v("The minimum display format to be used for a time unit.")])])])]),t._v(" "),a("h3",{attrs:{id:"common-options-to-all-cartesian-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-cartesian-axes"}},[t._v("#")]),t._v(" Common options to all cartesian axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("bounds")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'ticks'")])]),t._v(" "),a("td",[t._v("Determines the scale bounds. "),a("RouterLink",{attrs:{to:"/axes/cartesian/#scale-bounds"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("position")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Position of the axis. "),a("RouterLink",{attrs:{to:"/axes/cartesian/#axis-position"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Which type of axis this is. Possible values are: "),a("code",[t._v("'x'")]),t._v(", "),a("code",[t._v("'y'")]),t._v(". If not set, this is inferred from the first character of the ID which should be "),a("code",[t._v("'x'")]),t._v(" or "),a("code",[t._v("'y'")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("offset")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("If true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to "),a("code",[t._v("true")]),t._v(" for a bar chart by default.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("title")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Scale title configuration. "),a("RouterLink",{attrs:{to:"/axes/labelling.html#scale-title-configuration"}},[t._v("more...")])],1)])])]),t._v(" "),a("h3",{attrs:{id:"common-options-to-all-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-axes"}},[t._v("#")]),t._v(" Common options to all axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("type")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Type of scale being employed. Custom scales can be created and registered with a string key. This allows changing the type of an axis for a chart.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("alignToPixels")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Align pixel values to device pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Background color of the scale area.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("Controls the axis global visibility (visible when "),a("code",[t._v("true")]),t._v(", hidden when "),a("code",[t._v("false")]),t._v("). When "),a("code",[t._v("display: 'auto'")]),t._v(", the axis is visible only if at least one associated dataset is visible.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("grid")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Grid line configuration. "),a("RouterLink",{attrs:{to:"/axes/styling.html#grid-line-configuration"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("min")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("User defined minimum number for the scale, overrides minimum value from data. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("max")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("User defined maximum number for the scale, overrides maximum value from data. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("reverse")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Reverse the scale.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("stacked")])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Should the data be stacked. "),a("RouterLink",{attrs:{to:"/axes/#stacking"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("suggestedMax")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Adjustment used when calculating the maximum data value. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("suggestedMin")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Adjustment used when calculating the minimum data value. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("ticks")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Tick configuration. "),a("RouterLink",{attrs:{to:"/axes/#tick-configuration"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("weight")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")])])])]),t._v(" "),a("h4",{attrs:{id:"time-units"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#time-units"}},[t._v("#")]),t._v(" Time Units")]),t._v(" "),a("p",[t._v("The following time measurements are supported. The names can be passed as strings to the "),a("code",[t._v("time.unit")]),t._v(" config option to force a certain unit.")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'millisecond'")])]),t._v(" "),a("li",[a("code",[t._v("'second'")])]),t._v(" "),a("li",[a("code",[t._v("'minute'")])]),t._v(" "),a("li",[a("code",[t._v("'hour'")])]),t._v(" "),a("li",[a("code",[t._v("'day'")])]),t._v(" "),a("li",[a("code",[t._v("'week'")])]),t._v(" "),a("li",[a("code",[t._v("'month'")])]),t._v(" "),a("li",[a("code",[t._v("'quarter'")])]),t._v(" "),a("li",[a("code",[t._v("'year'")])])]),t._v(" "),a("p",[t._v("For example, to create a chart with a time scale that always displayed units per month, the following config could be used.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'time'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n time"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n unit"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'month'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h4",{attrs:{id:"display-formats"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#display-formats"}},[t._v("#")]),t._v(" Display Formats")]),t._v(" "),a("p",[t._v("You may specify a map of display formats with a key for each unit:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("millisecond")])]),t._v(" "),a("li",[a("code",[t._v("second")])]),t._v(" "),a("li",[a("code",[t._v("minute")])]),t._v(" "),a("li",[a("code",[t._v("hour")])]),t._v(" "),a("li",[a("code",[t._v("day")])]),t._v(" "),a("li",[a("code",[t._v("week")])]),t._v(" "),a("li",[a("code",[t._v("month")])]),t._v(" "),a("li",[a("code",[t._v("quarter")])]),t._v(" "),a("li",[a("code",[t._v("year")])])]),t._v(" "),a("p",[t._v("The format string used as a value depends on the date adapter you chose to use.")]),t._v(" "),a("p",[t._v("For example, to set the display format for the "),a("code",[t._v("quarter")]),t._v(" unit to show the month and year, the following config might be passed to the chart constructor.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'time'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n time"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n displayFormats"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n quarter"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'MMM YYYY'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h4",{attrs:{id:"ticks-source"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks-source"}},[t._v("#")]),t._v(" Ticks Source")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("ticks.source")]),t._v(" property controls the ticks generation.")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'auto'")]),t._v(': generates "optimal" ticks based on scale size and time options')]),t._v(" "),a("li",[a("code",[t._v("'data'")]),t._v(": generates ticks from data (including labels from data "),a("code",[t._v("{x|y}")]),t._v(" objects)")]),t._v(" "),a("li",[a("code",[t._v("'labels'")]),t._v(": generates ticks from user given "),a("code",[t._v("labels")]),t._v(" ONLY")])]),t._v(" "),a("h4",{attrs:{id:"parser"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parser"}},[t._v("#")]),t._v(" Parser")]),t._v(" "),a("p",[t._v("If this property is defined as a string, it is interpreted as a custom format to be used by the date adapter to parse the date.")]),t._v(" "),a("p",[t._v("If this is a function, it must return a type that can be handled by your date adapter's "),a("code",[t._v("parse")]),t._v(" method.")]),t._v(" "),a("h2",{attrs:{id:"internal-data-format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),a("p",[t._v("Internally time scale uses milliseconds since epoch")])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[127],{451:function(t,e,a){"use strict";a.r(e);var s=a(7),o=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"time-cartesian-axis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#time-cartesian-axis"}},[t._v("#")]),t._v(" Time Cartesian Axis")]),t._v(" "),a("p",[t._v("The time scale is used to display times and dates. Data are spread according to the amount of time between data points. When building its ticks, it will automatically calculate the most comfortable unit base on the size of the scale.")]),t._v(" "),a("h2",{attrs:{id:"date-adapters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#date-adapters"}},[t._v("#")]),t._v(" Date Adapters")]),t._v(" "),a("p",[t._v("The time scale "),a("strong",[t._v("requires")]),t._v(" both a date library and a corresponding adapter to be present. Please choose from the "),a("a",{attrs:{href:"https://github.com/chartjs/awesome#adapters",target:"_blank",rel:"noopener noreferrer"}},[t._v("available adapters"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h2",{attrs:{id:"data-sets"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-sets"}},[t._v("#")]),t._v(" Data Sets")]),t._v(" "),a("h3",{attrs:{id:"input-data"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#input-data"}},[t._v("#")]),t._v(" Input Data")]),t._v(" "),a("p",[t._v("See "),a("RouterLink",{attrs:{to:"/general/data-structures.html"}},[t._v("data structures")]),t._v(".")],1),t._v(" "),a("h3",{attrs:{id:"date-formats"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#date-formats"}},[t._v("#")]),t._v(" Date Formats")]),t._v(" "),a("p",[t._v("When providing data for the time scale, Chart.js uses timestamps defined as milliseconds since the epoch (midnight January 1, 1970, UTC) internally. However, Chart.js also supports all of the formats that your chosen date adapter accepts. You should use timestamps if you'd like to set "),a("code",[t._v("parsing: false")]),t._v(" for better performance.")]),t._v(" "),a("h2",{attrs:{id:"configuration-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configuration-options"}},[t._v("#")]),t._v(" Configuration Options")]),t._v(" "),a("h3",{attrs:{id:"time-axis-specific-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#time-axis-specific-options"}},[t._v("#")]),t._v(" Time Axis specific options")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("adapters.date")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td",[a("code",[t._v("{}")])]),t._v(" "),a("td",[t._v("Options for adapter for external date library if that adapter needs or supports options")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("bounds")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'data'")])]),t._v(" "),a("td",[t._v("Determines the scale bounds. "),a("RouterLink",{attrs:{to:"/axes/cartesian/#scale-bounds"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("ticks.source")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'auto'")])]),t._v(" "),a("td",[t._v("How ticks are generated. "),a("a",{attrs:{href:"#ticks-source"}},[t._v("more...")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("time.displayFormats")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Sets how different time units are displayed. "),a("a",{attrs:{href:"#display-formats"}},[t._v("more...")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("time.isoWeekday")])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("If "),a("code",[t._v("boolean")]),t._v(" and true and the unit is set to 'week', then the first day of the week will be Monday. Otherwise, it will be Sunday. If "),a("code",[t._v("number")]),t._v(", the index of the first day of the week (0 - Sunday, 6 - Saturday)")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("time.parser")])]),t._v(" "),a("td",[a("code",[t._v("string")]),t._v("|"),a("code",[t._v("function")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Custom parser for dates. "),a("a",{attrs:{href:"#parser"}},[t._v("more...")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("time.round")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("If defined, dates will be rounded to the start of this unit. See "),a("a",{attrs:{href:"#time-units"}},[t._v("Time Units")]),t._v(" below for the allowed units.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("time.tooltipFormat")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("The format string to use for the tooltip.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("time.unit")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("If defined, will force the unit to be a certain type. See "),a("a",{attrs:{href:"#time-units"}},[t._v("Time Units")]),t._v(" section below for details.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("time.stepSize")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("1")])]),t._v(" "),a("td",[t._v("The number of units between grid lines.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("time.minUnit")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'millisecond'")])]),t._v(" "),a("td",[t._v("The minimum display format to be used for a time unit.")])])])]),t._v(" "),a("h3",{attrs:{id:"common-options-to-all-cartesian-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-cartesian-axes"}},[t._v("#")]),t._v(" Common options to all cartesian axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("bounds")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'ticks'")])]),t._v(" "),a("td",[t._v("Determines the scale bounds. "),a("RouterLink",{attrs:{to:"/axes/cartesian/#scale-bounds"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("position")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Position of the axis. "),a("RouterLink",{attrs:{to:"/axes/cartesian/#axis-position"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Which type of axis this is. Possible values are: "),a("code",[t._v("'x'")]),t._v(", "),a("code",[t._v("'y'")]),t._v(". If not set, this is inferred from the first character of the ID which should be "),a("code",[t._v("'x'")]),t._v(" or "),a("code",[t._v("'y'")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("offset")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("If true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to "),a("code",[t._v("true")]),t._v(" for a bar chart by default.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("title")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Scale title configuration. "),a("RouterLink",{attrs:{to:"/axes/labelling.html#scale-title-configuration"}},[t._v("more...")])],1)])])]),t._v(" "),a("h3",{attrs:{id:"common-options-to-all-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-axes"}},[t._v("#")]),t._v(" Common options to all axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("type")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Type of scale being employed. Custom scales can be created and registered with a string key. This allows changing the type of an axis for a chart.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("alignToPixels")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Align pixel values to device pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Background color of the scale area.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("Controls the axis global visibility (visible when "),a("code",[t._v("true")]),t._v(", hidden when "),a("code",[t._v("false")]),t._v("). When "),a("code",[t._v("display: 'auto'")]),t._v(", the axis is visible only if at least one associated dataset is visible.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("grid")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Grid line configuration. "),a("RouterLink",{attrs:{to:"/axes/styling.html#grid-line-configuration"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("min")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("User defined minimum number for the scale, overrides minimum value from data. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("max")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("User defined maximum number for the scale, overrides maximum value from data. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("reverse")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Reverse the scale.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("stacked")])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Should the data be stacked. "),a("RouterLink",{attrs:{to:"/axes/#stacking"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("suggestedMax")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Adjustment used when calculating the maximum data value. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("suggestedMin")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Adjustment used when calculating the minimum data value. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("ticks")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Tick configuration. "),a("RouterLink",{attrs:{to:"/axes/#tick-configuration"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("weight")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")])])])]),t._v(" "),a("h4",{attrs:{id:"time-units"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#time-units"}},[t._v("#")]),t._v(" Time Units")]),t._v(" "),a("p",[t._v("The following time measurements are supported. The names can be passed as strings to the "),a("code",[t._v("time.unit")]),t._v(" config option to force a certain unit.")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'millisecond'")])]),t._v(" "),a("li",[a("code",[t._v("'second'")])]),t._v(" "),a("li",[a("code",[t._v("'minute'")])]),t._v(" "),a("li",[a("code",[t._v("'hour'")])]),t._v(" "),a("li",[a("code",[t._v("'day'")])]),t._v(" "),a("li",[a("code",[t._v("'week'")])]),t._v(" "),a("li",[a("code",[t._v("'month'")])]),t._v(" "),a("li",[a("code",[t._v("'quarter'")])]),t._v(" "),a("li",[a("code",[t._v("'year'")])])]),t._v(" "),a("p",[t._v("For example, to create a chart with a time scale that always displayed units per month, the following config could be used.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'time'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n time"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n unit"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'month'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h4",{attrs:{id:"display-formats"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#display-formats"}},[t._v("#")]),t._v(" Display Formats")]),t._v(" "),a("p",[t._v("You may specify a map of display formats with a key for each unit:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("millisecond")])]),t._v(" "),a("li",[a("code",[t._v("second")])]),t._v(" "),a("li",[a("code",[t._v("minute")])]),t._v(" "),a("li",[a("code",[t._v("hour")])]),t._v(" "),a("li",[a("code",[t._v("day")])]),t._v(" "),a("li",[a("code",[t._v("week")])]),t._v(" "),a("li",[a("code",[t._v("month")])]),t._v(" "),a("li",[a("code",[t._v("quarter")])]),t._v(" "),a("li",[a("code",[t._v("year")])])]),t._v(" "),a("p",[t._v("The format string used as a value depends on the date adapter you chose to use.")]),t._v(" "),a("p",[t._v("For example, to set the display format for the "),a("code",[t._v("quarter")]),t._v(" unit to show the month and year, the following config might be passed to the chart constructor.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'time'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n time"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n displayFormats"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n quarter"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'MMM YYYY'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h4",{attrs:{id:"ticks-source"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks-source"}},[t._v("#")]),t._v(" Ticks Source")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("ticks.source")]),t._v(" property controls the ticks generation.")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'auto'")]),t._v(': generates "optimal" ticks based on scale size and time options')]),t._v(" "),a("li",[a("code",[t._v("'data'")]),t._v(": generates ticks from data (including labels from data "),a("code",[t._v("{x|y}")]),t._v(" objects)")]),t._v(" "),a("li",[a("code",[t._v("'labels'")]),t._v(": generates ticks from user given "),a("code",[t._v("labels")]),t._v(" ONLY")])]),t._v(" "),a("h4",{attrs:{id:"parser"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parser"}},[t._v("#")]),t._v(" Parser")]),t._v(" "),a("p",[t._v("If this property is defined as a string, it is interpreted as a custom format to be used by the date adapter to parse the date.")]),t._v(" "),a("p",[t._v("If this is a function, it must return a type that can be handled by your date adapter's "),a("code",[t._v("parse")]),t._v(" method.")]),t._v(" "),a("h2",{attrs:{id:"internal-data-format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),a("p",[t._v("Internally time scale uses milliseconds since epoch")])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/128.f6578e6b.js b/docs/3.1.0/assets/js/128.e9a4c541.js similarity index 98% rename from docs/3.1.0/assets/js/128.f6578e6b.js rename to docs/3.1.0/assets/js/128.e9a4c541.js index d8b6b5ab3b..69849704f1 100644 --- a/docs/3.1.0/assets/js/128.f6578e6b.js +++ b/docs/3.1.0/assets/js/128.e9a4c541.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[128],{453:function(t,s,a){"use strict";a.r(s);var e=a(7),n=Object(e.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"time-series-axis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#time-series-axis"}},[t._v("#")]),t._v(" Time Series Axis")]),t._v(" "),a("p",[t._v("The time series scale extends from the time scale and supports all the same options. However, for the time series scale, each data point is spread equidistant.")]),t._v(" "),a("h2",{attrs:{id:"example"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#example"}},[t._v("#")]),t._v(" Example")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'timeseries'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"more-details"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#more-details"}},[t._v("#")]),t._v(" More details")]),t._v(" "),a("p",[t._v("Please see "),a("RouterLink",{attrs:{to:"/axes/cartesian/time.html"}},[t._v("the time scale documentation")]),t._v(" for all other details.")],1)])}),[],!1,null,null,null);s.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[128],{452:function(t,s,a){"use strict";a.r(s);var e=a(7),n=Object(e.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"time-series-axis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#time-series-axis"}},[t._v("#")]),t._v(" Time Series Axis")]),t._v(" "),a("p",[t._v("The time series scale extends from the time scale and supports all the same options. However, for the time series scale, each data point is spread equidistant.")]),t._v(" "),a("h2",{attrs:{id:"example"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#example"}},[t._v("#")]),t._v(" Example")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'timeseries'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"more-details"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#more-details"}},[t._v("#")]),t._v(" More details")]),t._v(" "),a("p",[t._v("Please see "),a("RouterLink",{attrs:{to:"/axes/cartesian/time.html"}},[t._v("the time scale documentation")]),t._v(" for all other details.")],1)])}),[],!1,null,null,null);s.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/129.0bf6f97c.js b/docs/3.1.0/assets/js/129.cdd55064.js similarity index 99% rename from docs/3.1.0/assets/js/129.0bf6f97c.js rename to docs/3.1.0/assets/js/129.cdd55064.js index 3c13a8464e..32a95f2b2d 100644 --- a/docs/3.1.0/assets/js/129.0bf6f97c.js +++ b/docs/3.1.0/assets/js/129.cdd55064.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[129],{454:function(t,e,a){"use strict";a.r(e);var s=a(7),n=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axes"}},[t._v("#")]),t._v(" Axes")]),t._v(" "),a("p",[t._v("Axes are an integral part of a chart. They are used to determine how data maps to a pixel value on the chart. In a cartesian chart, there is 1 or more X-axis and 1 or more Y-axis to map points onto the 2-dimensional canvas. These axes are known as "),a("a",{attrs:{href:"./cartesian/index#cartesian-axes"}},[t._v("'cartesian axes'")]),t._v(".")]),t._v(" "),a("p",[t._v("In a radial chart, such as a radar chart or a polar area chart, there is a single axis that maps points in the angular and radial directions. These are known as "),a("a",{attrs:{href:"./radial/index#radial-axes"}},[t._v("'radial axes'")]),t._v(".")]),t._v(" "),a("p",[t._v("Scales in Chart.js >v2.0 are significantly more powerful, but also different than those of v1.0.")]),t._v(" "),a("ul",[a("li",[t._v("Multiple X & Y axes are supported.")]),t._v(" "),a("li",[t._v("A built-in label auto-skip feature detects would-be overlapping ticks and labels and removes every nth label to keep things displaying normally.")]),t._v(" "),a("li",[t._v("Scale titles are supported.")]),t._v(" "),a("li",[t._v("New scale types can be extended without writing an entirely new chart type.")])]),t._v(" "),a("h2",{attrs:{id:"common-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-configuration"}},[t._v("#")]),t._v(" Common Configuration")]),t._v(" "),a("h3",{attrs:{id:"common-options-to-all-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-axes"}},[t._v("#")]),t._v(" Common options to all axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("type")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Type of scale being employed. Custom scales can be created and registered with a string key. This allows changing the type of an axis for a chart.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("alignToPixels")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Align pixel values to device pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Background color of the scale area.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("Controls the axis global visibility (visible when "),a("code",[t._v("true")]),t._v(", hidden when "),a("code",[t._v("false")]),t._v("). When "),a("code",[t._v("display: 'auto'")]),t._v(", the axis is visible only if at least one associated dataset is visible.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("grid")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Grid line configuration. "),a("RouterLink",{attrs:{to:"/axes/styling.html#grid-line-configuration"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("min")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("User defined minimum number for the scale, overrides minimum value from data. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("max")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("User defined maximum number for the scale, overrides maximum value from data. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("reverse")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Reverse the scale.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("stacked")])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Should the data be stacked. "),a("RouterLink",{attrs:{to:"/axes/#stacking"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("suggestedMax")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Adjustment used when calculating the maximum data value. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("suggestedMin")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Adjustment used when calculating the minimum data value. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("ticks")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Tick configuration. "),a("RouterLink",{attrs:{to:"/axes/#tick-configuration"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("weight")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")])])])]),t._v(" "),a("h2",{attrs:{id:"tick-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tick-configuration"}},[t._v("#")]),t._v(" Tick Configuration")]),t._v(" "),a("h3",{attrs:{id:"common-tick-options-to-all-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-axes"}},[t._v("#")]),t._v(" Common tick options to all axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[t._v("Scriptable")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("callback")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Returns the string representation of the tick value as it should be displayed on the chart. See "),a("RouterLink",{attrs:{to:"/axes/labelling.html#creating-custom-tick-formats"}},[t._v("callback")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, show tick labels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("color")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.color")])]),t._v(" "),a("td",[t._v("Color of ticks.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("font")])]),t._v(" "),a("td",[a("code",[t._v("Font")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.font")])]),t._v(" "),a("td",[t._v("See "),a("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("major")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("{}")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/axes/styling.html#major-tick-configuration"}},[t._v("Major ticks configuration")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("3")])]),t._v(" "),a("td",[t._v("Sets the offset of the tick labels from the axis")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textStrokeColor")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[t._v("``")]),t._v(" "),a("td",[t._v("The color of the stroke around the text.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textStrokeWidth")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Stroke width around the text.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("z")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.")])])])]),t._v(" "),a("h2",{attrs:{id:"axis-range-settings"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis-range-settings"}},[t._v("#")]),t._v(" Axis Range Settings")]),t._v(" "),a("p",[t._v("Given the number of axis range settings, it is important to understand how they all interact with each other.")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("suggestedMax")]),t._v(" and "),a("code",[t._v("suggestedMin")]),t._v(" settings only change the data values that are used to scale the axis. These are useful for extending the range of the axis while maintaining the auto fit behaviour.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" minDataValue "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("min")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("mostNegativeValue"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("suggestedMin"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" maxDataValue "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("max")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("mostPositiveValue"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("suggestedMax"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("p",[t._v("In this example, the largest positive value is 50, but the data maximum is expanded out to 100. However, because the lowest data value is below the "),a("code",[t._v("suggestedMin")]),t._v(" setting, it is ignored.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'First dataset'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("40")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labels"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'January'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'February'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'March'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'April'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n y"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n suggestedMin"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n suggestedMax"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("100")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("p",[t._v("In contrast to the "),a("code",[t._v("suggested*")]),t._v(" settings, the "),a("code",[t._v("min")]),t._v(" and "),a("code",[t._v("max")]),t._v(" settings set explicit ends to the axes. When these are set, some data points may not be visible.")]),t._v(" "),a("h2",{attrs:{id:"stacking"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stacking"}},[t._v("#")]),t._v(" Stacking")]),t._v(" "),a("p",[t._v("By default data is not stacked. If the "),a("code",[t._v("stacked")]),t._v(" option of the value scale (y-axis on horizontal chart) is "),a("code",[t._v("true")]),t._v(", positive and negative values are stacked separately. Additionally a "),a("code",[t._v("stack")]),t._v(" option can be defined per dataset to further divide into stack groups "),a("RouterLink",{attrs:{to:"/general/data-structures/#dataset-configuration"}},[t._v("more...")]),t._v(".\nFor some charts, you might want to stack positive and negative values together. That can be achieved by specifying "),a("code",[t._v("stacked: 'single'")]),t._v(".")],1),t._v(" "),a("h2",{attrs:{id:"callbacks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#callbacks"}},[t._v("#")]),t._v(" Callbacks")]),t._v(" "),a("p",[t._v("There are a number of config callbacks that can be used to change parameters in the scale at different points in the update process. The options are supplied at the top level of the axis options.")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Arguments")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("beforeUpdate")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback called before the update process starts.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeSetDimensions")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before dimensions are set.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterSetDimensions")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after dimensions are set.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeDataLimits")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before data limits are determined.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterDataLimits")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after data limits are determined.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeBuildTicks")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before ticks are created.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterBuildTicks")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after ticks are created. Useful for filtering ticks.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeTickToLabelConversion")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before ticks are converted into strings.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterTickToLabelConversion")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after ticks are converted into strings.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeCalculateTickRotation")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before tick rotation is determined.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterCalculateTickRotation")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after tick rotation is determined.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeFit")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before the scale fits to the canvas.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterFit")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after the scale fits to the canvas.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterUpdate")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs at the end of the update process.")])])])]),t._v(" "),a("h3",{attrs:{id:"updating-axis-defaults"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updating-axis-defaults"}},[t._v("#")]),t._v(" Updating Axis Defaults")]),t._v(" "),a("p",[t._v("The default configuration for a scale can be easily changed. All you need to do is set the new options to "),a("code",[t._v("Chart.defaults.scales[type]")]),t._v(".")]),t._v(" "),a("p",[t._v("For example, to set the minimum value of 0 for all linear scales, you would do the following. Any linear scales created after this time would now have a minimum of 0.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("linear"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"creating-new-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#creating-new-axes"}},[t._v("#")]),t._v(" Creating New Axes")]),t._v(" "),a("p",[t._v("To create a new axis, see the "),a("RouterLink",{attrs:{to:"/developers/axes.html"}},[t._v("developer docs")]),t._v(".")],1)])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[129],{453:function(t,e,a){"use strict";a.r(e);var s=a(7),n=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axes"}},[t._v("#")]),t._v(" Axes")]),t._v(" "),a("p",[t._v("Axes are an integral part of a chart. They are used to determine how data maps to a pixel value on the chart. In a cartesian chart, there is 1 or more X-axis and 1 or more Y-axis to map points onto the 2-dimensional canvas. These axes are known as "),a("a",{attrs:{href:"./cartesian/index#cartesian-axes"}},[t._v("'cartesian axes'")]),t._v(".")]),t._v(" "),a("p",[t._v("In a radial chart, such as a radar chart or a polar area chart, there is a single axis that maps points in the angular and radial directions. These are known as "),a("a",{attrs:{href:"./radial/index#radial-axes"}},[t._v("'radial axes'")]),t._v(".")]),t._v(" "),a("p",[t._v("Scales in Chart.js >v2.0 are significantly more powerful, but also different than those of v1.0.")]),t._v(" "),a("ul",[a("li",[t._v("Multiple X & Y axes are supported.")]),t._v(" "),a("li",[t._v("A built-in label auto-skip feature detects would-be overlapping ticks and labels and removes every nth label to keep things displaying normally.")]),t._v(" "),a("li",[t._v("Scale titles are supported.")]),t._v(" "),a("li",[t._v("New scale types can be extended without writing an entirely new chart type.")])]),t._v(" "),a("h2",{attrs:{id:"common-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-configuration"}},[t._v("#")]),t._v(" Common Configuration")]),t._v(" "),a("h3",{attrs:{id:"common-options-to-all-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-options-to-all-axes"}},[t._v("#")]),t._v(" Common options to all axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("type")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Type of scale being employed. Custom scales can be created and registered with a string key. This allows changing the type of an axis for a chart.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("alignToPixels")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Align pixel values to device pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Background color of the scale area.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("Controls the axis global visibility (visible when "),a("code",[t._v("true")]),t._v(", hidden when "),a("code",[t._v("false")]),t._v("). When "),a("code",[t._v("display: 'auto'")]),t._v(", the axis is visible only if at least one associated dataset is visible.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("grid")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Grid line configuration. "),a("RouterLink",{attrs:{to:"/axes/styling.html#grid-line-configuration"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("min")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("User defined minimum number for the scale, overrides minimum value from data. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("max")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("User defined maximum number for the scale, overrides maximum value from data. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("reverse")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Reverse the scale.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("stacked")])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Should the data be stacked. "),a("RouterLink",{attrs:{to:"/axes/#stacking"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("suggestedMax")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Adjustment used when calculating the maximum data value. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("suggestedMin")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Adjustment used when calculating the minimum data value. "),a("RouterLink",{attrs:{to:"/axes/#axis-range-settings"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("ticks")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Tick configuration. "),a("RouterLink",{attrs:{to:"/axes/#tick-configuration"}},[t._v("more...")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("weight")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")])])])]),t._v(" "),a("h2",{attrs:{id:"tick-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tick-configuration"}},[t._v("#")]),t._v(" Tick Configuration")]),t._v(" "),a("h3",{attrs:{id:"common-tick-options-to-all-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-axes"}},[t._v("#")]),t._v(" Common tick options to all axes")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[t._v("Scriptable")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("callback")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Returns the string representation of the tick value as it should be displayed on the chart. See "),a("RouterLink",{attrs:{to:"/axes/labelling.html#creating-custom-tick-formats"}},[t._v("callback")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, show tick labels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("color")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.color")])]),t._v(" "),a("td",[t._v("Color of ticks.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("font")])]),t._v(" "),a("td",[a("code",[t._v("Font")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.font")])]),t._v(" "),a("td",[t._v("See "),a("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("major")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("{}")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/axes/styling.html#major-tick-configuration"}},[t._v("Major ticks configuration")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("3")])]),t._v(" "),a("td",[t._v("Sets the offset of the tick labels from the axis")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textStrokeColor")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[t._v("``")]),t._v(" "),a("td",[t._v("The color of the stroke around the text.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textStrokeWidth")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Stroke width around the text.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("z")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}}),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.")])])])]),t._v(" "),a("h2",{attrs:{id:"axis-range-settings"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis-range-settings"}},[t._v("#")]),t._v(" Axis Range Settings")]),t._v(" "),a("p",[t._v("Given the number of axis range settings, it is important to understand how they all interact with each other.")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("suggestedMax")]),t._v(" and "),a("code",[t._v("suggestedMin")]),t._v(" settings only change the data values that are used to scale the axis. These are useful for extending the range of the axis while maintaining the auto fit behaviour.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" minDataValue "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("min")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("mostNegativeValue"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("suggestedMin"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" maxDataValue "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("max")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("mostPositiveValue"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("suggestedMax"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("p",[t._v("In this example, the largest positive value is 50, but the data maximum is expanded out to 100. However, because the lowest data value is below the "),a("code",[t._v("suggestedMin")]),t._v(" setting, it is ignored.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'First dataset'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("40")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labels"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'January'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'February'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'March'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'April'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n y"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n suggestedMin"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n suggestedMax"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("100")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("p",[t._v("In contrast to the "),a("code",[t._v("suggested*")]),t._v(" settings, the "),a("code",[t._v("min")]),t._v(" and "),a("code",[t._v("max")]),t._v(" settings set explicit ends to the axes. When these are set, some data points may not be visible.")]),t._v(" "),a("h2",{attrs:{id:"stacking"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stacking"}},[t._v("#")]),t._v(" Stacking")]),t._v(" "),a("p",[t._v("By default data is not stacked. If the "),a("code",[t._v("stacked")]),t._v(" option of the value scale (y-axis on horizontal chart) is "),a("code",[t._v("true")]),t._v(", positive and negative values are stacked separately. Additionally a "),a("code",[t._v("stack")]),t._v(" option can be defined per dataset to further divide into stack groups "),a("RouterLink",{attrs:{to:"/general/data-structures/#dataset-configuration"}},[t._v("more...")]),t._v(".\nFor some charts, you might want to stack positive and negative values together. That can be achieved by specifying "),a("code",[t._v("stacked: 'single'")]),t._v(".")],1),t._v(" "),a("h2",{attrs:{id:"callbacks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#callbacks"}},[t._v("#")]),t._v(" Callbacks")]),t._v(" "),a("p",[t._v("There are a number of config callbacks that can be used to change parameters in the scale at different points in the update process. The options are supplied at the top level of the axis options.")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.scales[scaleId]")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Arguments")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("beforeUpdate")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback called before the update process starts.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeSetDimensions")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before dimensions are set.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterSetDimensions")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after dimensions are set.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeDataLimits")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before data limits are determined.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterDataLimits")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after data limits are determined.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeBuildTicks")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before ticks are created.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterBuildTicks")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after ticks are created. Useful for filtering ticks.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeTickToLabelConversion")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before ticks are converted into strings.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterTickToLabelConversion")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after ticks are converted into strings.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeCalculateTickRotation")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before tick rotation is determined.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterCalculateTickRotation")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after tick rotation is determined.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("beforeFit")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs before the scale fits to the canvas.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterFit")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs after the scale fits to the canvas.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("afterUpdate")])]),t._v(" "),a("td",[a("code",[t._v("axis")])]),t._v(" "),a("td",[t._v("Callback that runs at the end of the update process.")])])])]),t._v(" "),a("h3",{attrs:{id:"updating-axis-defaults"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updating-axis-defaults"}},[t._v("#")]),t._v(" Updating Axis Defaults")]),t._v(" "),a("p",[t._v("The default configuration for a scale can be easily changed. All you need to do is set the new options to "),a("code",[t._v("Chart.defaults.scales[type]")]),t._v(".")]),t._v(" "),a("p",[t._v("For example, to set the minimum value of 0 for all linear scales, you would do the following. Any linear scales created after this time would now have a minimum of 0.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("linear"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"creating-new-axes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#creating-new-axes"}},[t._v("#")]),t._v(" Creating New Axes")]),t._v(" "),a("p",[t._v("To create a new axis, see the "),a("RouterLink",{attrs:{to:"/developers/axes.html"}},[t._v("developer docs")]),t._v(".")],1)])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/13.412bcaed.js b/docs/3.1.0/assets/js/13.412bcaed.js deleted file mode 100644 index 876c37c88b..0000000000 --- a/docs/3.1.0/assets/js/13.412bcaed.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{341:function(t,e,a){"use strict";a.r(e);var v=a(7),r=Object(v.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-baseplatform"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-baseplatform"}},[t._v("#")]),t._v(" Class: BasePlatform")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("BasePlatform")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/classes/basicplatform.html"}},[a("em",[t._v("BasicPlatform")])])],1),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/classes/domplatform.html"}},[a("em",[t._v("DomPlatform")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new BasePlatform")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[a("em",[t._v("BasePlatform")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[a("em",[t._v("BasePlatform")])])],1),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"acquirecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#acquirecontext"}},[t._v("#")]),t._v(" acquireContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("acquireContext")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("options?")]),t._v(": CanvasRenderingContext2DSettings): CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Called at chart construction time, returns a context2d instance implementing\nthe "),a("a",{attrs:{href:"https://www.w3.org/TR/2dcontext/",target:"_blank",rel:"noopener noreferrer"}},[t._v("W3C Canvas 2D Context API standard"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas from which to acquire context (platform specific)")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2DSettings")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart options")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1907",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1907"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addeventlistener"}},[t._v("#")]),t._v(" addEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Registers the specified listener on the given chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to listen for event")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to listen for")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Receives a notification (an object that implements the "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(" interface) when an event of the specified type occurs.")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1925",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1925"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdevicepixelratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdevicepixelratio"}},[t._v("#")]),t._v(" getDevicePixelRatio")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDevicePixelRatio")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("the current devicePixelRatio of the device this platform is connected to.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1936",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1936"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaximumsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaximumsize"}},[t._v("#")]),t._v(" getMaximumSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMaximumSize")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("width?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("aspectRatio?")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas for which to calculate the maximum size")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("aspectRatio?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("the maximum size available.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1944",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1944"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isattached"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isattached"}},[t._v("#")]),t._v(" isAttached")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isAttached")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the canvas is attached to the platform, false if not.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1949",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1949"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"releasecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#releasecontext"}},[t._v("#")]),t._v(" releaseContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("releaseContext")]),t._v("("),a("code",[t._v("context")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Called at chart destruction time, releases any resources associated to the context\npreviously returned by the acquireContext() method.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("context")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The context2d instance")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the method succeeded, else false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1917",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1917"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removeeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removeeventlistener"}},[t._v("#")]),t._v(" removeEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Removes the specified listener previously registered with addEventListener.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to remove the listener")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to remove")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The listener function to remove from the event target.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1932",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1932"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/13.854ba43a.js b/docs/3.1.0/assets/js/13.854ba43a.js new file mode 100644 index 0000000000..d46a09332a --- /dev/null +++ b/docs/3.1.0/assets/js/13.854ba43a.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{366:function(t,e,a){"use strict";a.r(e);var v=a(7),r=Object(v.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-baseplatform"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-baseplatform"}},[t._v("#")]),t._v(" Class: BasePlatform")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("BasePlatform")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/classes/basicplatform.html"}},[a("em",[t._v("BasicPlatform")])])],1),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/classes/domplatform.html"}},[a("em",[t._v("DomPlatform")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new BasePlatform")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[a("em",[t._v("BasePlatform")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[a("em",[t._v("BasePlatform")])])],1),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"acquirecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#acquirecontext"}},[t._v("#")]),t._v(" acquireContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("acquireContext")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("options?")]),t._v(": CanvasRenderingContext2DSettings): CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Called at chart construction time, returns a context2d instance implementing\nthe "),a("a",{attrs:{href:"https://www.w3.org/TR/2dcontext/",target:"_blank",rel:"noopener noreferrer"}},[t._v("W3C Canvas 2D Context API standard"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas from which to acquire context (platform specific)")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2DSettings")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart options")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1907",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1907"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addeventlistener"}},[t._v("#")]),t._v(" addEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Registers the specified listener on the given chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to listen for event")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to listen for")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Receives a notification (an object that implements the "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(" interface) when an event of the specified type occurs.")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1925",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1925"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdevicepixelratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdevicepixelratio"}},[t._v("#")]),t._v(" getDevicePixelRatio")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDevicePixelRatio")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("the current devicePixelRatio of the device this platform is connected to.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1936",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1936"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaximumsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaximumsize"}},[t._v("#")]),t._v(" getMaximumSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMaximumSize")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("width?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("aspectRatio?")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas for which to calculate the maximum size")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("aspectRatio?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("the maximum size available.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1944",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1944"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isattached"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isattached"}},[t._v("#")]),t._v(" isAttached")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isAttached")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the canvas is attached to the platform, false if not.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1949",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1949"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"releasecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#releasecontext"}},[t._v("#")]),t._v(" releaseContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("releaseContext")]),t._v("("),a("code",[t._v("context")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Called at chart destruction time, releases any resources associated to the context\npreviously returned by the acquireContext() method.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("context")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The context2d instance")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the method succeeded, else false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1917",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1917"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removeeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removeeventlistener"}},[t._v("#")]),t._v(" removeEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Removes the specified listener previously registered with addEventListener.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to remove the listener")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to remove")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The listener function to remove from the event target.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1932",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1932"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/130.fbd01665.js b/docs/3.1.0/assets/js/130.b0e9a64a.js similarity index 99% rename from docs/3.1.0/assets/js/130.fbd01665.js rename to docs/3.1.0/assets/js/130.b0e9a64a.js index 1617db286d..b58b5c6826 100644 --- a/docs/3.1.0/assets/js/130.fbd01665.js +++ b/docs/3.1.0/assets/js/130.b0e9a64a.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[130],{455:function(t,a,e){"use strict";e.r(a);var s=e(7),n=Object(s.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"labeling-axes"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#labeling-axes"}},[t._v("#")]),t._v(" Labeling Axes")]),t._v(" "),e("p",[t._v("When creating a chart, you want to tell the viewer what data they are viewing. To do this, you need to label the axis.")]),t._v(" "),e("h2",{attrs:{id:"scale-title-configuration"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#scale-title-configuration"}},[t._v("#")]),t._v(" Scale Title Configuration")]),t._v(" "),e("p",[t._v("Namespace: "),e("code",[t._v("options.scales[scaleId].title")]),t._v(", it defines options for the scale title. Note that this only applies to cartesian axes.")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Default")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[e("code",[t._v("display")])]),t._v(" "),e("td",[e("code",[t._v("boolean")])]),t._v(" "),e("td",[e("code",[t._v("false")])]),t._v(" "),e("td",[t._v("If true, display the axis title.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("align")])]),t._v(" "),e("td",[e("code",[t._v("string")])]),t._v(" "),e("td",[e("code",[t._v("'center'")])]),t._v(" "),e("td",[t._v("Alignment of the axis title. Possible options are "),e("code",[t._v("'start'")]),t._v(", "),e("code",[t._v("'center'")]),t._v(" and "),e("code",[t._v("'end'")])])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("text")])]),t._v(" "),e("td",[e("code",[t._v("string")]),t._v("|"),e("code",[t._v("string[]")])]),t._v(" "),e("td",[e("code",[t._v("''")])]),t._v(" "),e("td",[t._v('The text for the title. (i.e. "# of People" or "Response Choices").')])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("color")])]),t._v(" "),e("td",[e("RouterLink",{attrs:{to:"/general/colors.html"}},[e("code",[t._v("Color")])])],1),t._v(" "),e("td",[e("code",[t._v("Chart.defaults.color")])]),t._v(" "),e("td",[t._v("Color of label.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("font")])]),t._v(" "),e("td",[e("code",[t._v("Font")])]),t._v(" "),e("td",[e("code",[t._v("Chart.defaults.font")])]),t._v(" "),e("td",[t._v("See "),e("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),e("tr",[e("td",[e("code",[t._v("padding")])]),t._v(" "),e("td",[e("RouterLink",{attrs:{to:"/general/padding.html"}},[e("code",[t._v("Padding")])])],1),t._v(" "),e("td",[e("code",[t._v("4")])]),t._v(" "),e("td",[t._v("Padding to apply around scale labels. Only "),e("code",[t._v("top")]),t._v(" and "),e("code",[t._v("bottom")]),t._v(" are implemented.")])])])]),t._v(" "),e("h2",{attrs:{id:"creating-custom-tick-formats"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#creating-custom-tick-formats"}},[t._v("#")]),t._v(" Creating Custom Tick Formats")]),t._v(" "),e("p",[t._v("It is also common to want to change the tick marks to include information about the data type. For example, adding a dollar sign ('$').\nTo do this, you need to override the "),e("code",[t._v("ticks.callback")]),t._v(" method in the axis configuration.")]),t._v(" "),e("p",[t._v("The method receiver 3 arguments:")]),t._v(" "),e("ul",[e("li",[e("code",[t._v("value")]),t._v(" - the tick value in the "),e("strong",[t._v("internal data format")]),t._v(" of the associated scale.")]),t._v(" "),e("li",[e("code",[t._v("index")]),t._v(" - the tick index in the ticks array.")]),t._v(" "),e("li",[e("code",[t._v("ticks")]),t._v(" - the array containing all of the "),e("a",{attrs:{href:"../api/interfaces/tick"}},[t._v("tick objects")]),t._v(".")])]),t._v(" "),e("p",[t._v("The call to the method is scoped to the scale. "),e("code",[t._v("this")]),t._v(" inside the method is the scale object.")]),t._v(" "),e("p",[t._v("If the callback returns "),e("code",[t._v("null")]),t._v(" or "),e("code",[t._v("undefined")]),t._v(" the associated grid line will be hidden.")]),t._v(" "),e("div",{staticClass:"custom-block tip"},[e("p",{staticClass:"custom-block-title"},[t._v("TIP")]),t._v(" "),e("p",[t._v("The "),e("a",{attrs:{href:"../axes/cartesian/category"}},[t._v("category axis")]),t._v(", which is the default x-axis for line and bar charts, uses the "),e("code",[t._v("index")]),t._v(" as internal data format. For accessing the label, use "),e("code",[t._v("this.getLabelForValue(value)")]),t._v(". "),e("RouterLink",{attrs:{to:"/api/classes/scale.html#getlabelforvalue"}},[t._v("API: getLabelForValue")])],1)]),t._v(" "),e("p",[t._v("In the following example, every label of the Y-axis would be displayed with a dollar sign at the front.")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n y"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n ticks"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Include a dollar sign in the ticks")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("callback")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("value"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" index"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" values")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'$'")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" value"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[t._v("Related samples:")]),t._v(" "),e("ul",[e("li",[e("a",{attrs:{href:"../samples/scale-options/ticks"}},[t._v("Tick configuration sample")])])])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[130],{454:function(t,a,e){"use strict";e.r(a);var s=e(7),n=Object(s.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"labeling-axes"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#labeling-axes"}},[t._v("#")]),t._v(" Labeling Axes")]),t._v(" "),e("p",[t._v("When creating a chart, you want to tell the viewer what data they are viewing. To do this, you need to label the axis.")]),t._v(" "),e("h2",{attrs:{id:"scale-title-configuration"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#scale-title-configuration"}},[t._v("#")]),t._v(" Scale Title Configuration")]),t._v(" "),e("p",[t._v("Namespace: "),e("code",[t._v("options.scales[scaleId].title")]),t._v(", it defines options for the scale title. Note that this only applies to cartesian axes.")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Default")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[e("code",[t._v("display")])]),t._v(" "),e("td",[e("code",[t._v("boolean")])]),t._v(" "),e("td",[e("code",[t._v("false")])]),t._v(" "),e("td",[t._v("If true, display the axis title.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("align")])]),t._v(" "),e("td",[e("code",[t._v("string")])]),t._v(" "),e("td",[e("code",[t._v("'center'")])]),t._v(" "),e("td",[t._v("Alignment of the axis title. Possible options are "),e("code",[t._v("'start'")]),t._v(", "),e("code",[t._v("'center'")]),t._v(" and "),e("code",[t._v("'end'")])])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("text")])]),t._v(" "),e("td",[e("code",[t._v("string")]),t._v("|"),e("code",[t._v("string[]")])]),t._v(" "),e("td",[e("code",[t._v("''")])]),t._v(" "),e("td",[t._v('The text for the title. (i.e. "# of People" or "Response Choices").')])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("color")])]),t._v(" "),e("td",[e("RouterLink",{attrs:{to:"/general/colors.html"}},[e("code",[t._v("Color")])])],1),t._v(" "),e("td",[e("code",[t._v("Chart.defaults.color")])]),t._v(" "),e("td",[t._v("Color of label.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("font")])]),t._v(" "),e("td",[e("code",[t._v("Font")])]),t._v(" "),e("td",[e("code",[t._v("Chart.defaults.font")])]),t._v(" "),e("td",[t._v("See "),e("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),e("tr",[e("td",[e("code",[t._v("padding")])]),t._v(" "),e("td",[e("RouterLink",{attrs:{to:"/general/padding.html"}},[e("code",[t._v("Padding")])])],1),t._v(" "),e("td",[e("code",[t._v("4")])]),t._v(" "),e("td",[t._v("Padding to apply around scale labels. Only "),e("code",[t._v("top")]),t._v(" and "),e("code",[t._v("bottom")]),t._v(" are implemented.")])])])]),t._v(" "),e("h2",{attrs:{id:"creating-custom-tick-formats"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#creating-custom-tick-formats"}},[t._v("#")]),t._v(" Creating Custom Tick Formats")]),t._v(" "),e("p",[t._v("It is also common to want to change the tick marks to include information about the data type. For example, adding a dollar sign ('$').\nTo do this, you need to override the "),e("code",[t._v("ticks.callback")]),t._v(" method in the axis configuration.")]),t._v(" "),e("p",[t._v("The method receiver 3 arguments:")]),t._v(" "),e("ul",[e("li",[e("code",[t._v("value")]),t._v(" - the tick value in the "),e("strong",[t._v("internal data format")]),t._v(" of the associated scale.")]),t._v(" "),e("li",[e("code",[t._v("index")]),t._v(" - the tick index in the ticks array.")]),t._v(" "),e("li",[e("code",[t._v("ticks")]),t._v(" - the array containing all of the "),e("a",{attrs:{href:"../api/interfaces/tick"}},[t._v("tick objects")]),t._v(".")])]),t._v(" "),e("p",[t._v("The call to the method is scoped to the scale. "),e("code",[t._v("this")]),t._v(" inside the method is the scale object.")]),t._v(" "),e("p",[t._v("If the callback returns "),e("code",[t._v("null")]),t._v(" or "),e("code",[t._v("undefined")]),t._v(" the associated grid line will be hidden.")]),t._v(" "),e("div",{staticClass:"custom-block tip"},[e("p",{staticClass:"custom-block-title"},[t._v("TIP")]),t._v(" "),e("p",[t._v("The "),e("a",{attrs:{href:"../axes/cartesian/category"}},[t._v("category axis")]),t._v(", which is the default x-axis for line and bar charts, uses the "),e("code",[t._v("index")]),t._v(" as internal data format. For accessing the label, use "),e("code",[t._v("this.getLabelForValue(value)")]),t._v(". "),e("RouterLink",{attrs:{to:"/api/classes/scale.html#getlabelforvalue"}},[t._v("API: getLabelForValue")])],1)]),t._v(" "),e("p",[t._v("In the following example, every label of the Y-axis would be displayed with a dollar sign at the front.")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n y"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n ticks"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Include a dollar sign in the ticks")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("callback")]),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("value"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" index"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" values")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'$'")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" value"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[t._v("Related samples:")]),t._v(" "),e("ul",[e("li",[e("a",{attrs:{href:"../samples/scale-options/ticks"}},[t._v("Tick configuration sample")])])])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/131.7eda5e4e.js b/docs/3.1.0/assets/js/131.33f2cf0f.js similarity index 98% rename from docs/3.1.0/assets/js/131.7eda5e4e.js rename to docs/3.1.0/assets/js/131.33f2cf0f.js index d3bafe39b5..e91b8938e0 100644 --- a/docs/3.1.0/assets/js/131.7eda5e4e.js +++ b/docs/3.1.0/assets/js/131.33f2cf0f.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[131],{456:function(n,a,e){"use strict";e.r(a);var t=e(7),s=Object(t.a)({},(function(){var n=this,a=n.$createElement,e=n._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":n.$parent.slotKey}},[e("h1",{attrs:{id:"radial-axes"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#radial-axes"}},[n._v("#")]),n._v(" Radial Axes")]),n._v(" "),e("p",[n._v("Radial axes are used specifically for the radar and polar area chart types. These axes overlay the chart area, rather than being positioned on one of the edges. One radial axis is included by default in Chart.js.")]),n._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/axes/radial/linear.html"}},[n._v("radialLinear")])],1)]),n._v(" "),e("h2",{attrs:{id:"visual-components"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#visual-components"}},[n._v("#")]),n._v(" Visual Components")]),n._v(" "),e("p",[n._v("A radial axis is composed of visual components that can be individually configured. These components are:")]),n._v(" "),e("ul",[e("li",[e("a",{attrs:{href:"#angle-lines"}},[n._v("angle lines")])]),n._v(" "),e("li",[e("a",{attrs:{href:"#grid-lines"}},[n._v("grid lines")])]),n._v(" "),e("li",[e("a",{attrs:{href:"#point-labels"}},[n._v("point labels")])]),n._v(" "),e("li",[e("a",{attrs:{href:"#ticks"}},[n._v("ticks")])])]),n._v(" "),e("h3",{attrs:{id:"angle-lines"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#angle-lines"}},[n._v("#")]),n._v(" Angle Lines")]),n._v(" "),e("p",[n._v("The grid lines for an axis are drawn on the chart area. They stretch out from the center towards the edge of the canvas. In the example below, they are red.")]),n._v(" "),e("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data,\n options: {\n scales: {\n r: {\n angleLines: {\n color: 'red'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),e("h3",{attrs:{id:"grid-lines"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#grid-lines"}},[n._v("#")]),n._v(" Grid Lines")]),n._v(" "),e("p",[n._v("The grid lines for an axis are drawn on the chart area. In the example below, they are red.")]),n._v(" "),e("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data,\n options: {\n scales: {\n r: {\n grid: {\n color: 'red'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),e("h3",{attrs:{id:"point-labels"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#point-labels"}},[n._v("#")]),n._v(" Point Labels")]),n._v(" "),e("p",[n._v("The point labels indicate the value for each angle line. In the example below, they are red.")]),n._v(" "),e("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data,\n options: {\n scales: {\n r: {\n pointLabels: {\n color: 'red'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),e("h3",{attrs:{id:"ticks"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[n._v("#")]),n._v(" Ticks")]),n._v(" "),e("p",[n._v("The ticks are used to label values based on how far they are from the center of the axis. In the example below, they are red.")]),n._v(" "),e("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data,\n options: {\n scales: {\n r: {\n ticks: {\n color: 'red'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);a.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[131],{570:function(n,a,e){"use strict";e.r(a);var t=e(7),s=Object(t.a)({},(function(){var n=this,a=n.$createElement,e=n._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":n.$parent.slotKey}},[e("h1",{attrs:{id:"radial-axes"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#radial-axes"}},[n._v("#")]),n._v(" Radial Axes")]),n._v(" "),e("p",[n._v("Radial axes are used specifically for the radar and polar area chart types. These axes overlay the chart area, rather than being positioned on one of the edges. One radial axis is included by default in Chart.js.")]),n._v(" "),e("ul",[e("li",[e("RouterLink",{attrs:{to:"/axes/radial/linear.html"}},[n._v("radialLinear")])],1)]),n._v(" "),e("h2",{attrs:{id:"visual-components"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#visual-components"}},[n._v("#")]),n._v(" Visual Components")]),n._v(" "),e("p",[n._v("A radial axis is composed of visual components that can be individually configured. These components are:")]),n._v(" "),e("ul",[e("li",[e("a",{attrs:{href:"#angle-lines"}},[n._v("angle lines")])]),n._v(" "),e("li",[e("a",{attrs:{href:"#grid-lines"}},[n._v("grid lines")])]),n._v(" "),e("li",[e("a",{attrs:{href:"#point-labels"}},[n._v("point labels")])]),n._v(" "),e("li",[e("a",{attrs:{href:"#ticks"}},[n._v("ticks")])])]),n._v(" "),e("h3",{attrs:{id:"angle-lines"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#angle-lines"}},[n._v("#")]),n._v(" Angle Lines")]),n._v(" "),e("p",[n._v("The grid lines for an axis are drawn on the chart area. They stretch out from the center towards the edge of the canvas. In the example below, they are red.")]),n._v(" "),e("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data,\n options: {\n scales: {\n r: {\n angleLines: {\n color: 'red'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),e("h3",{attrs:{id:"grid-lines"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#grid-lines"}},[n._v("#")]),n._v(" Grid Lines")]),n._v(" "),e("p",[n._v("The grid lines for an axis are drawn on the chart area. In the example below, they are red.")]),n._v(" "),e("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data,\n options: {\n scales: {\n r: {\n grid: {\n color: 'red'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),e("h3",{attrs:{id:"point-labels"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#point-labels"}},[n._v("#")]),n._v(" Point Labels")]),n._v(" "),e("p",[n._v("The point labels indicate the value for each angle line. In the example below, they are red.")]),n._v(" "),e("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data,\n options: {\n scales: {\n r: {\n pointLabels: {\n color: 'red'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),e("h3",{attrs:{id:"ticks"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[n._v("#")]),n._v(" Ticks")]),n._v(" "),e("p",[n._v("The ticks are used to label values based on how far they are from the center of the axis. In the example below, they are red.")]),n._v(" "),e("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgba(54, 162, 235, 0.5)',\n borderColor: 'rgb(54, 162, 235)',\n borderWidth: 1,\n data: [10, 20, 30, 40, 50, 0, 5],\n }]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data,\n options: {\n scales: {\n r: {\n ticks: {\n color: 'red'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);a.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/132.c5ff9ddb.js b/docs/3.1.0/assets/js/132.144a5acb.js similarity index 100% rename from docs/3.1.0/assets/js/132.c5ff9ddb.js rename to docs/3.1.0/assets/js/132.144a5acb.js diff --git a/docs/3.1.0/assets/js/133.135d54b9.js b/docs/3.1.0/assets/js/133.3b4bce40.js similarity index 99% rename from docs/3.1.0/assets/js/133.135d54b9.js rename to docs/3.1.0/assets/js/133.3b4bce40.js index 0cd22a2865..327540ca77 100644 --- a/docs/3.1.0/assets/js/133.135d54b9.js +++ b/docs/3.1.0/assets/js/133.3b4bce40.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[133],{458:function(t,e,r){"use strict";r.r(e);var a=r(7),d=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"styling"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#styling"}},[t._v("#")]),t._v(" Styling")]),t._v(" "),r("p",[t._v("There are a number of options to allow styling an axis. There are settings to control "),r("a",{attrs:{href:"#grid-line-configuration"}},[t._v("grid lines")]),t._v(" and "),r("a",{attrs:{href:"#tick-configuration"}},[t._v("ticks")]),t._v(".")]),t._v(" "),r("h2",{attrs:{id:"grid-line-configuration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#grid-line-configuration"}},[t._v("#")]),t._v(" Grid Line Configuration")]),t._v(" "),r("p",[t._v("Namespace: "),r("code",[t._v("options.scales[scaleId].grid")]),t._v(", it defines options for the grid lines that run perpendicular to the axis.")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",[t._v("Name")]),t._v(" "),r("th",[t._v("Type")]),t._v(" "),r("th",{staticStyle:{"text-align":"center"}},[t._v("Scriptable")]),t._v(" "),r("th",{staticStyle:{"text-align":"center"}},[t._v("Indexable")]),t._v(" "),r("th",[t._v("Default")]),t._v(" "),r("th",[t._v("Description")])])]),t._v(" "),r("tbody",[r("tr",[r("td",[r("code",[t._v("borderColor")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/general/colors.html"}},[r("code",[t._v("Color")])])],1),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("Chart.defaults.borderColor")])]),t._v(" "),r("td",[t._v("The color of the border line.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("borderWidth")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("1")])]),t._v(" "),r("td",[t._v("The width of the border line.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("borderDash")])]),t._v(" "),r("td",[r("code",[t._v("number[]")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("[]")])]),t._v(" "),r("td",[t._v("Length and spacing of dashes on grid lines. See "),r("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),r("OutboundLink")],1),t._v(".")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("borderDashOffset")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("0.0")])]),t._v(" "),r("td",[t._v("Offset for line dashes. See "),r("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),r("OutboundLink")],1),t._v(".")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("circular")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("false")])]),t._v(" "),r("td",[t._v("If true, gridlines are circular (on radar chart only).")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("color")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/general/colors.html"}},[r("code",[t._v("Color")])])],1),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[r("code",[t._v("Chart.defaults.borderColor")])]),t._v(" "),r("td",[t._v("The color of the grid lines. If specified as an array, the first color applies to the first grid line, the second to the second grid line, and so on.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("display")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("true")])]),t._v(" "),r("td",[t._v("If false, do not display grid lines for this axis.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("drawBorder")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("true")])]),t._v(" "),r("td",[t._v("If true, draw a border at the edge between the axis and the chart area.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("drawOnChartArea")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("true")])]),t._v(" "),r("td",[t._v("If true, draw lines on the chart area inside the axis lines. This is useful when there are multiple axes and you need to control which grid lines are drawn.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("drawTicks")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("true")])]),t._v(" "),r("td",[t._v("If true, draw lines beside the ticks in the axis area beside the chart.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("lineWidth")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[r("code",[t._v("1")])]),t._v(" "),r("td",[t._v("Stroke width of grid lines.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("offset")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("false")])]),t._v(" "),r("td",[t._v("If true, grid lines will be shifted to be between labels. This is set to "),r("code",[t._v("true")]),t._v(" for a bar chart by default.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("tickBorderDash")])]),t._v(" "),r("td",[r("code",[t._v("number[]")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td"),t._v(" "),r("td",[t._v("Length and spacing of the tick mark line. If not set, defaults to the grid line "),r("code",[t._v("borderDash")]),t._v(" value.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("tickBorderDashOffset")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td"),t._v(" "),r("td",[t._v("Offset for the line dash of the tick mark. If unset, defaults to the grid line "),r("code",[t._v("borderDashOffset")]),t._v(" value")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("tickColor")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/general/colors.html"}},[r("code",[t._v("Color")])])],1),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td"),t._v(" "),r("td",[t._v("Color of the tick line. If unset, defaults to the grid line color.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("tickLength")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("8")])]),t._v(" "),r("td",[t._v("Length in pixels that the grid lines will draw into the axis area.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("tickWidth")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td"),t._v(" "),r("td",[t._v("Width of the tick mark in pixels. If unset, defaults to the grid line width.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("z")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("0")])]),t._v(" "),r("td",[t._v("z-index of gridline layer. Values <= 0 are drawn under datasets, > 0 on top.")])])])]),t._v(" "),r("p",[t._v("The scriptable context is described in "),r("RouterLink",{attrs:{to:"/general/options.html#tick"}},[t._v("Options")]),t._v(" section.")],1),t._v(" "),r("h2",{attrs:{id:"tick-configuration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tick-configuration"}},[t._v("#")]),t._v(" Tick Configuration")]),t._v(" "),r("h3",{attrs:{id:"common-tick-options-to-all-axes"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-axes"}},[t._v("#")]),t._v(" Common tick options to all axes")]),t._v(" "),r("p",[t._v("Namespace: "),r("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",[t._v("Name")]),t._v(" "),r("th",[t._v("Type")]),t._v(" "),r("th",{staticStyle:{"text-align":"center"}},[t._v("Scriptable")]),t._v(" "),r("th",[t._v("Default")]),t._v(" "),r("th",[t._v("Description")])])]),t._v(" "),r("tbody",[r("tr",[r("td",[r("code",[t._v("callback")])]),t._v(" "),r("td",[r("code",[t._v("function")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td"),t._v(" "),r("td",[t._v("Returns the string representation of the tick value as it should be displayed on the chart. See "),r("RouterLink",{attrs:{to:"/axes/labelling.html#creating-custom-tick-formats"}},[t._v("callback")]),t._v(".")],1)]),t._v(" "),r("tr",[r("td",[r("code",[t._v("display")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("true")])]),t._v(" "),r("td",[t._v("If true, show tick labels.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("color")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/general/colors.html"}},[r("code",[t._v("Color")])])],1),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[r("code",[t._v("Chart.defaults.color")])]),t._v(" "),r("td",[t._v("Color of ticks.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("font")])]),t._v(" "),r("td",[r("code",[t._v("Font")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[r("code",[t._v("Chart.defaults.font")])]),t._v(" "),r("td",[t._v("See "),r("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),r("tr",[r("td",[r("code",[t._v("major")])]),t._v(" "),r("td",[r("code",[t._v("object")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("{}")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/axes/styling.html#major-tick-configuration"}},[t._v("Major ticks configuration")]),t._v(".")],1)]),t._v(" "),r("tr",[r("td",[r("code",[t._v("padding")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("3")])]),t._v(" "),r("td",[t._v("Sets the offset of the tick labels from the axis")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("textStrokeColor")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/general/colors.html"}},[r("code",[t._v("Color")])])],1),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[t._v("``")]),t._v(" "),r("td",[t._v("The color of the stroke around the text.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("textStrokeWidth")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[r("code",[t._v("0")])]),t._v(" "),r("td",[t._v("Stroke width around the text.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("z")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("0")])]),t._v(" "),r("td",[t._v("z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.")])])])]),t._v(" "),r("p",[t._v("The scriptable context is described in "),r("RouterLink",{attrs:{to:"/general/options.html#tick"}},[t._v("Options")]),t._v(" section.")],1),t._v(" "),r("h2",{attrs:{id:"major-tick-configuration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#major-tick-configuration"}},[t._v("#")]),t._v(" Major Tick Configuration")]),t._v(" "),r("p",[t._v("Namespace: "),r("code",[t._v("options.scales[scaleId].ticks.major")]),t._v(", it defines options for the major tick marks that are generated by the axis.")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",[t._v("Name")]),t._v(" "),r("th",[t._v("Type")]),t._v(" "),r("th",[t._v("Default")]),t._v(" "),r("th",[t._v("Description")])])]),t._v(" "),r("tbody",[r("tr",[r("td",[r("code",[t._v("enabled")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",[r("code",[t._v("false")])]),t._v(" "),r("td",[t._v("If true, major ticks are generated. A major tick will affect autoskipping and "),r("code",[t._v("major")]),t._v(" will be defined on ticks in the scriptable options context.")])])])])])}),[],!1,null,null,null);e.default=d.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[133],{456:function(t,e,r){"use strict";r.r(e);var a=r(7),d=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"styling"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#styling"}},[t._v("#")]),t._v(" Styling")]),t._v(" "),r("p",[t._v("There are a number of options to allow styling an axis. There are settings to control "),r("a",{attrs:{href:"#grid-line-configuration"}},[t._v("grid lines")]),t._v(" and "),r("a",{attrs:{href:"#tick-configuration"}},[t._v("ticks")]),t._v(".")]),t._v(" "),r("h2",{attrs:{id:"grid-line-configuration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#grid-line-configuration"}},[t._v("#")]),t._v(" Grid Line Configuration")]),t._v(" "),r("p",[t._v("Namespace: "),r("code",[t._v("options.scales[scaleId].grid")]),t._v(", it defines options for the grid lines that run perpendicular to the axis.")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",[t._v("Name")]),t._v(" "),r("th",[t._v("Type")]),t._v(" "),r("th",{staticStyle:{"text-align":"center"}},[t._v("Scriptable")]),t._v(" "),r("th",{staticStyle:{"text-align":"center"}},[t._v("Indexable")]),t._v(" "),r("th",[t._v("Default")]),t._v(" "),r("th",[t._v("Description")])])]),t._v(" "),r("tbody",[r("tr",[r("td",[r("code",[t._v("borderColor")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/general/colors.html"}},[r("code",[t._v("Color")])])],1),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("Chart.defaults.borderColor")])]),t._v(" "),r("td",[t._v("The color of the border line.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("borderWidth")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("1")])]),t._v(" "),r("td",[t._v("The width of the border line.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("borderDash")])]),t._v(" "),r("td",[r("code",[t._v("number[]")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("[]")])]),t._v(" "),r("td",[t._v("Length and spacing of dashes on grid lines. See "),r("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),r("OutboundLink")],1),t._v(".")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("borderDashOffset")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("0.0")])]),t._v(" "),r("td",[t._v("Offset for line dashes. See "),r("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),r("OutboundLink")],1),t._v(".")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("circular")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("false")])]),t._v(" "),r("td",[t._v("If true, gridlines are circular (on radar chart only).")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("color")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/general/colors.html"}},[r("code",[t._v("Color")])])],1),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[r("code",[t._v("Chart.defaults.borderColor")])]),t._v(" "),r("td",[t._v("The color of the grid lines. If specified as an array, the first color applies to the first grid line, the second to the second grid line, and so on.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("display")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("true")])]),t._v(" "),r("td",[t._v("If false, do not display grid lines for this axis.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("drawBorder")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("true")])]),t._v(" "),r("td",[t._v("If true, draw a border at the edge between the axis and the chart area.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("drawOnChartArea")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("true")])]),t._v(" "),r("td",[t._v("If true, draw lines on the chart area inside the axis lines. This is useful when there are multiple axes and you need to control which grid lines are drawn.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("drawTicks")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("true")])]),t._v(" "),r("td",[t._v("If true, draw lines beside the ticks in the axis area beside the chart.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("lineWidth")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[r("code",[t._v("1")])]),t._v(" "),r("td",[t._v("Stroke width of grid lines.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("offset")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("false")])]),t._v(" "),r("td",[t._v("If true, grid lines will be shifted to be between labels. This is set to "),r("code",[t._v("true")]),t._v(" for a bar chart by default.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("tickBorderDash")])]),t._v(" "),r("td",[r("code",[t._v("number[]")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td"),t._v(" "),r("td",[t._v("Length and spacing of the tick mark line. If not set, defaults to the grid line "),r("code",[t._v("borderDash")]),t._v(" value.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("tickBorderDashOffset")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td"),t._v(" "),r("td",[t._v("Offset for the line dash of the tick mark. If unset, defaults to the grid line "),r("code",[t._v("borderDashOffset")]),t._v(" value")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("tickColor")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/general/colors.html"}},[r("code",[t._v("Color")])])],1),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td"),t._v(" "),r("td",[t._v("Color of the tick line. If unset, defaults to the grid line color.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("tickLength")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("8")])]),t._v(" "),r("td",[t._v("Length in pixels that the grid lines will draw into the axis area.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("tickWidth")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td"),t._v(" "),r("td",[t._v("Width of the tick mark in pixels. If unset, defaults to the grid line width.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("z")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("0")])]),t._v(" "),r("td",[t._v("z-index of gridline layer. Values <= 0 are drawn under datasets, > 0 on top.")])])])]),t._v(" "),r("p",[t._v("The scriptable context is described in "),r("RouterLink",{attrs:{to:"/general/options.html#tick"}},[t._v("Options")]),t._v(" section.")],1),t._v(" "),r("h2",{attrs:{id:"tick-configuration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tick-configuration"}},[t._v("#")]),t._v(" Tick Configuration")]),t._v(" "),r("h3",{attrs:{id:"common-tick-options-to-all-axes"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#common-tick-options-to-all-axes"}},[t._v("#")]),t._v(" Common tick options to all axes")]),t._v(" "),r("p",[t._v("Namespace: "),r("code",[t._v("options.scales[scaleId].ticks")])]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",[t._v("Name")]),t._v(" "),r("th",[t._v("Type")]),t._v(" "),r("th",{staticStyle:{"text-align":"center"}},[t._v("Scriptable")]),t._v(" "),r("th",[t._v("Default")]),t._v(" "),r("th",[t._v("Description")])])]),t._v(" "),r("tbody",[r("tr",[r("td",[r("code",[t._v("callback")])]),t._v(" "),r("td",[r("code",[t._v("function")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td"),t._v(" "),r("td",[t._v("Returns the string representation of the tick value as it should be displayed on the chart. See "),r("RouterLink",{attrs:{to:"/axes/labelling.html#creating-custom-tick-formats"}},[t._v("callback")]),t._v(".")],1)]),t._v(" "),r("tr",[r("td",[r("code",[t._v("display")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("true")])]),t._v(" "),r("td",[t._v("If true, show tick labels.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("color")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/general/colors.html"}},[r("code",[t._v("Color")])])],1),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[r("code",[t._v("Chart.defaults.color")])]),t._v(" "),r("td",[t._v("Color of ticks.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("font")])]),t._v(" "),r("td",[r("code",[t._v("Font")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[r("code",[t._v("Chart.defaults.font")])]),t._v(" "),r("td",[t._v("See "),r("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),r("tr",[r("td",[r("code",[t._v("major")])]),t._v(" "),r("td",[r("code",[t._v("object")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("{}")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/axes/styling.html#major-tick-configuration"}},[t._v("Major ticks configuration")]),t._v(".")],1)]),t._v(" "),r("tr",[r("td",[r("code",[t._v("padding")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("3")])]),t._v(" "),r("td",[t._v("Sets the offset of the tick labels from the axis")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("textStrokeColor")])]),t._v(" "),r("td",[r("RouterLink",{attrs:{to:"/general/colors.html"}},[r("code",[t._v("Color")])])],1),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[t._v("``")]),t._v(" "),r("td",[t._v("The color of the stroke around the text.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("textStrokeWidth")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),r("td",[r("code",[t._v("0")])]),t._v(" "),r("td",[t._v("Stroke width around the text.")])]),t._v(" "),r("tr",[r("td",[r("code",[t._v("z")])]),t._v(" "),r("td",[r("code",[t._v("number")])]),t._v(" "),r("td",{staticStyle:{"text-align":"center"}}),t._v(" "),r("td",[r("code",[t._v("0")])]),t._v(" "),r("td",[t._v("z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.")])])])]),t._v(" "),r("p",[t._v("The scriptable context is described in "),r("RouterLink",{attrs:{to:"/general/options.html#tick"}},[t._v("Options")]),t._v(" section.")],1),t._v(" "),r("h2",{attrs:{id:"major-tick-configuration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#major-tick-configuration"}},[t._v("#")]),t._v(" Major Tick Configuration")]),t._v(" "),r("p",[t._v("Namespace: "),r("code",[t._v("options.scales[scaleId].ticks.major")]),t._v(", it defines options for the major tick marks that are generated by the axis.")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",[t._v("Name")]),t._v(" "),r("th",[t._v("Type")]),t._v(" "),r("th",[t._v("Default")]),t._v(" "),r("th",[t._v("Description")])])]),t._v(" "),r("tbody",[r("tr",[r("td",[r("code",[t._v("enabled")])]),t._v(" "),r("td",[r("code",[t._v("boolean")])]),t._v(" "),r("td",[r("code",[t._v("false")])]),t._v(" "),r("td",[t._v("If true, major ticks are generated. A major tick will affect autoskipping and "),r("code",[t._v("major")]),t._v(" will be defined on ticks in the scriptable options context.")])])])])])}),[],!1,null,null,null);e.default=d.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/134.5cc44131.js b/docs/3.1.0/assets/js/134.dc5ffe9b.js similarity index 100% rename from docs/3.1.0/assets/js/134.5cc44131.js rename to docs/3.1.0/assets/js/134.dc5ffe9b.js diff --git a/docs/3.1.0/assets/js/135.c23857ac.js b/docs/3.1.0/assets/js/135.5c63beb8.js similarity index 99% rename from docs/3.1.0/assets/js/135.c23857ac.js rename to docs/3.1.0/assets/js/135.5c63beb8.js index 0c4f432914..427054ec34 100644 --- a/docs/3.1.0/assets/js/135.c23857ac.js +++ b/docs/3.1.0/assets/js/135.5c63beb8.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[135],{460:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"bar-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bar-chart"}},[t._v("#")]),t._v(" Bar Chart")]),t._v(" "),a("p",[t._v("A bar chart provides a way of showing data values represented as vertical bars. It is sometimes used to show trend data, and the comparison of multiple data sets side by side.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First Dataset',\n data: [65, 59, 80, 81, 56, 55, 40],\n backgroundColor: [\n 'rgba(255, 99, 132, 0.2)',\n 'rgba(255, 159, 64, 0.2)',\n 'rgba(255, 205, 86, 0.2)',\n 'rgba(75, 192, 192, 0.2)',\n 'rgba(54, 162, 235, 0.2)',\n 'rgba(153, 102, 255, 0.2)',\n 'rgba(201, 203, 207, 0.2)'\n ],\n borderColor: [\n 'rgb(255, 99, 132)',\n 'rgb(255, 159, 64)',\n 'rgb(255, 205, 86)',\n 'rgb(75, 192, 192)',\n 'rgb(54, 162, 235)',\n 'rgb(153, 102, 255)',\n 'rgb(201, 203, 207)'\n ],\n borderWidth: 1\n }]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n scales: {\n y: {\n beginAtZero: true\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.bar")]),t._v(" - options for all bar datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.bar")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#bar-configuration"}},[t._v("bar elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The bar chart allows a number of properties to be specified for each dataset.\nThese are used to set display properties for a specific dataset. For example,\nthe color of the bars is generally set this way.\nOnly the "),a("code",[t._v("data")]),t._v(" option needs to be specified in the dataset namespace.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("base")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#barpercentage"}},[a("code",[t._v("barPercentage")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0.9")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#barthickness"}},[a("code",[t._v("barThickness")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'start'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderwidth"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderradius"}},[a("code",[t._v("borderRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#categorypercentage"}},[a("code",[t._v("categoryPercentage")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0.8")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("object")]),t._v("|"),a("code",[t._v("object[]")]),t._v("| "),a("code",[t._v("number[]")]),t._v("|"),a("code",[t._v("string[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("grouped")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("true")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("indexAxis")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'x'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#maxbarthickness"}},[a("code",[t._v("maxBarThickness")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("minBarLength")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("label")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("''")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("order")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("RouterLink",{attrs:{to:"/configuration/elements.html#point-styles"}},[a("code",[t._v("pointStyle")])])],1),t._v(" "),a("td",[a("code",[t._v("string")]),t._v("|"),a("code",[t._v("Image")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'circle'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("skipNull")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("stack")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'bar'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("xAxisID")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[t._v("first x axis")])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("yAxisID")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[t._v("first y axis")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"example-dataset-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#example-dataset-configuration"}},[t._v("#")]),t._v(" Example dataset configuration")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n barPercentage"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0.5")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n barThickness"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("6")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n maxBarThickness"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("8")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n minBarLength"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("40")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("60")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("70")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("base")])]),t._v(" "),a("td",[t._v("Base value for the bar in data units along the value axis. If not set, defaults to the value axis base value.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("grouped")])]),t._v(" "),a("td",[t._v("Should the bars be grouped on index axis. When "),a("code",[t._v("true")]),t._v(", all the datasets at same index value will be placed next to each other centering on that index value. When "),a("code",[t._v("false")]),t._v(", each bar is placed on its actual index-axis value.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("indexAxis")])]),t._v(" "),a("td",[t._v("The base axis of the dataset. "),a("code",[t._v("'x'")]),t._v(" for vertical bars and "),a("code",[t._v("'y'")]),t._v(" for horizontal bars.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("label")])]),t._v(" "),a("td",[t._v("The label for the dataset which appears in the legend and tooltips.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("order")])]),t._v(" "),a("td",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip, and legend.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("skipNull")])]),t._v(" "),a("td",[t._v("If "),a("code",[t._v("true")]),t._v(", null or undefined values will not be used for spacing calculations when determining bar size.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("stack")])]),t._v(" "),a("td",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack). "),a("a",{attrs:{href:"#stacked-bar-charts"}},[t._v("more")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("xAxisID")])]),t._v(" "),a("td",[t._v("The ID of the x-axis to plot this dataset on.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("yAxisID")])]),t._v(" "),a("td",[t._v("The ID of the y-axis to plot this dataset on.")])])])]),t._v(" "),a("h3",{attrs:{id:"styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#styling"}},[t._v("#")]),t._v(" Styling")]),t._v(" "),a("p",[t._v("The style of each bar can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("The bar background color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("The bar border color.")])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])])]),t._v(" "),a("td",[t._v("The edge to skip when drawing bar.")])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderwidth"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[t._v("The bar border width (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderradius"}},[a("code",[t._v("borderRadius")])])]),t._v(" "),a("td",[t._v("The bar border radius (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("minBarLength")])]),t._v(" "),a("td",[t._v("Set this to ensure that bars have a minimum length in pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",[t._v("Style of the point for legend. "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-styles"}},[t._v("more...")])],1)])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#bar-configuration"}},[a("code",[t._v("elements.bar.*")])]),t._v(" options.")],1),t._v(" "),a("h4",{attrs:{id:"borderskipped"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#borderskipped"}},[t._v("#")]),t._v(" borderSkipped")]),t._v(" "),a("p",[t._v("This setting is used to avoid drawing the bar stroke at the base of the fill, or disable the border radius.\nIn general, this does not need to be changed except when creating chart types\nthat derive from a bar chart.")]),t._v(" "),a("div",{staticClass:"custom-block tip"},[a("p",{staticClass:"custom-block-title"},[t._v("Note")]),t._v(" "),a("p",[t._v("For negative bars in a vertical chart, "),a("code",[t._v("top")]),t._v(" and "),a("code",[t._v("bottom")]),t._v(" are flipped. Same goes for "),a("code",[t._v("left")]),t._v(" and "),a("code",[t._v("right")]),t._v(" in a horizontal chart.")])]),t._v(" "),a("p",[t._v("Options are:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'start'")])]),t._v(" "),a("li",[a("code",[t._v("'end'")])]),t._v(" "),a("li",[a("code",[t._v("'bottom'")])]),t._v(" "),a("li",[a("code",[t._v("'left'")])]),t._v(" "),a("li",[a("code",[t._v("'top'")])]),t._v(" "),a("li",[a("code",[t._v("'right'")])]),t._v(" "),a("li",[a("code",[t._v("false")])])]),t._v(" "),a("h4",{attrs:{id:"borderwidth"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),a("p",[t._v("If this value is a number, it is applied to all sides of the rectangle (left, top, right, bottom), except "),a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])]),t._v(". If this value is an object, the "),a("code",[t._v("left")]),t._v(" property defines the left border width. Similarly, the "),a("code",[t._v("right")]),t._v(", "),a("code",[t._v("top")]),t._v(", and "),a("code",[t._v("bottom")]),t._v(" properties can also be specified. Omitted borders and "),a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])]),t._v(" are skipped.")]),t._v(" "),a("h4",{attrs:{id:"borderradius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[t._v("#")]),t._v(" borderRadius")]),t._v(" "),a("p",[t._v("If this value is a number, it is applied to all corners of the rectangle (topLeft, topRight, bottomLeft, bottomRight), except corners touching the "),a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])]),t._v(". If this value is an object, the "),a("code",[t._v("topLeft")]),t._v(" property defines the top-left corners border radius. Similarly, the "),a("code",[t._v("topRight")]),t._v(", "),a("code",[t._v("bottomLeft")]),t._v(", and "),a("code",[t._v("bottomRight")]),t._v(" properties can also be specified. Omitted corners and those touching the "),a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])]),t._v(" are skipped. For example if the "),a("code",[t._v("top")]),t._v(" border is skipped, the border radius for the corners "),a("code",[t._v("topLeft")]),t._v(" and "),a("code",[t._v("topRight")]),t._v(" will be skipped as well.")]),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each bar can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("hoverBackgroundColor")])]),t._v(" "),a("td",[t._v("The bar background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderColor")])]),t._v(" "),a("td",[t._v("The bar border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderWidth")])]),t._v(" "),a("td",[t._v("The bar border width when hovered (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderRadius")])]),t._v(" "),a("td",[t._v("The bar border radius when hovered (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#bar-configuration"}},[a("code",[t._v("elements.bar.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"barpercentage"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barpercentage"}},[t._v("#")]),t._v(" barPercentage")]),t._v(" "),a("p",[t._v("Percent (0-1) of the available width each bar should be within the category width. 1.0 will take the whole category width and put the bars right next to each other. "),a("a",{attrs:{href:"#barpercentage-vs-categorypercentage"}},[t._v("more...")])]),t._v(" "),a("h3",{attrs:{id:"categorypercentage"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#categorypercentage"}},[t._v("#")]),t._v(" categoryPercentage")]),t._v(" "),a("p",[t._v("Percent (0-1) of the available width each category should be within the sample width. "),a("a",{attrs:{href:"#barpercentage-vs-categorypercentage"}},[t._v("more...")])]),t._v(" "),a("h3",{attrs:{id:"barthickness"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barthickness"}},[t._v("#")]),t._v(" barThickness")]),t._v(" "),a("p",[t._v("If this value is a number, it is applied to the width of each bar, in pixels. When this is enforced, "),a("code",[t._v("barPercentage")]),t._v(" and "),a("code",[t._v("categoryPercentage")]),t._v(" are ignored.")]),t._v(" "),a("p",[t._v("If set to "),a("code",[t._v("'flex'")]),t._v(", the base sample widths are calculated automatically based on the previous and following samples so that they take the full available widths without overlap. Then, bars are sized using "),a("code",[t._v("barPercentage")]),t._v(" and "),a("code",[t._v("categoryPercentage")]),t._v(". There is no gap when the percentage options are 1. This mode generates bars with different widths when data are not evenly spaced.")]),t._v(" "),a("p",[t._v("If not set (default), the base sample widths are calculated using the smallest interval that prevents bar overlapping, and bars are sized using "),a("code",[t._v("barPercentage")]),t._v(" and "),a("code",[t._v("categoryPercentage")]),t._v(". This mode always generates bars equally sized.")]),t._v(" "),a("h3",{attrs:{id:"maxbarthickness"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxbarthickness"}},[t._v("#")]),t._v(" maxBarThickness")]),t._v(" "),a("p",[t._v("Set this to ensure that bars are not sized thicker than this.")]),t._v(" "),a("h2",{attrs:{id:"scale-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scale-configuration"}},[t._v("#")]),t._v(" Scale Configuration")]),t._v(" "),a("p",[t._v("The bar chart sets unique default values for the following configuration from the associated "),a("code",[t._v("scale")]),t._v(" options:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("offset")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, extra space is added to both edges and the axis is scaled to fit into the chart area.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("grid.offset")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, the bars for a particular data point fall between the grid lines. The grid line will move to the left by one half of the tick interval. If false, the grid line will go right down the middle of the bars. "),a("a",{attrs:{href:"#offsetgridlines"}},[t._v("more...")])])])])]),t._v(" "),a("h3",{attrs:{id:"example-scale-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#example-scale-configuration"}},[t._v("#")]),t._v(" Example scale configuration")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("options "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n grid"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n offset"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h3",{attrs:{id:"offset-grid-lines"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offset-grid-lines"}},[t._v("#")]),t._v(" Offset Grid Lines")]),t._v(" "),a("p",[t._v("If true, the bars for a particular data point fall between the grid lines. The grid line will move to the left by one half of the tick interval, which is the space between the grid lines. If false, the grid line will go right down the middle of the bars. This is set to true for a category scale in a bar chart while false for other scales or chart types by default.")]),t._v(" "),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("It is common to want to apply a configuration setting to all created bar charts. The global bar chart settings are stored in "),a("code",[t._v("Chart.overrides.bar")]),t._v(". Changing the global options only affects charts created after the change. Existing charts are not changed.")]),t._v(" "),a("h2",{attrs:{id:"barpercentage-vs-categorypercentage"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barpercentage-vs-categorypercentage"}},[t._v("#")]),t._v(" barPercentage vs categoryPercentage")]),t._v(" "),a("p",[t._v("The following shows the relationship between the bar percentage option and the category percentage option.")]),t._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[t._v("// categoryPercentage: 1.0\n// barPercentage: 1.0\nBar: | 1.0 | 1.0 |\nCategory: | 1.0 |\nSample: |===========|\n\n// categoryPercentage: 1.0\n// barPercentage: 0.5\nBar: |.5| |.5|\nCategory: | 1.0 |\nSample: |==============|\n\n// categoryPercentage: 0.5\n// barPercentage: 1.0\nBar: |1.0||1.0|\nCategory: | .5 |\nSample: |==================|\n")])])]),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("All of the supported "),a("RouterLink",{attrs:{to:"/general/data-structures.html"}},[t._v("data structures")]),t._v(" can be used with bar charts.")],1),t._v(" "),a("h2",{attrs:{id:"stacked-bar-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stacked-bar-chart"}},[t._v("#")]),t._v(" Stacked Bar Chart")]),t._v(" "),a("p",[t._v("Bar charts can be configured into stacked bar charts by changing the settings on the X and Y axes to enable stacking. Stacked bar charts can be used to show how one data series is made up of a number of smaller pieces.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" stackedBar "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n stacked"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n stacked"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"horizontal-bar-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#horizontal-bar-chart"}},[t._v("#")]),t._v(" Horizontal Bar Chart")]),t._v(" "),a("p",[t._v("A horizontal bar chart is a variation on a vertical bar chart. It is sometimes used to show trend data, and the comparison of multiple data sets side by side.\nTo achieve this you will have to set the "),a("code",[t._v("indexAxis")]),t._v(" property in the options object to "),a("code",[t._v("'y'")]),t._v(".\nThe default for this property is "),a("code",[t._v("'x'")]),t._v(" and thus will show vertical bars.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n axis: 'y',\n label: 'My First Dataset',\n data: [65, 59, 80, 81, 56, 55, 40],\n fill: false,\n backgroundColor: [\n 'rgba(255, 99, 132, 0.2)',\n 'rgba(255, 159, 64, 0.2)',\n 'rgba(255, 205, 86, 0.2)',\n 'rgba(75, 192, 192, 0.2)',\n 'rgba(54, 162, 235, 0.2)',\n 'rgba(153, 102, 255, 0.2)',\n 'rgba(201, 203, 207, 0.2)'\n ],\n borderColor: [\n 'rgb(255, 99, 132)',\n 'rgb(255, 159, 64)',\n 'rgb(255, 205, 86)',\n 'rgb(75, 192, 192)',\n 'rgb(54, 162, 235)',\n 'rgb(153, 102, 255)',\n 'rgb(201, 203, 207)'\n ],\n borderWidth: 1\n }]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data,\n options: {\n indexAxis: 'y',\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h3",{attrs:{id:"horizontal-bar-chart-config-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#horizontal-bar-chart-config-options"}},[t._v("#")]),t._v(" Horizontal Bar Chart config Options")]),t._v(" "),a("p",[t._v("The configuration options for the horizontal bar chart are the same as for the "),a("a",{attrs:{href:"#scale-configuration"}},[t._v("bar chart")]),t._v(". However, any options specified on the x-axis in a bar chart, are applied to the y-axis in a horizontal bar chart.")]),t._v(" "),a("h2",{attrs:{id:"internal-data-format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),a("p",[a("code",[t._v("{x, y, _custom}")]),t._v(" where "),a("code",[t._v("_custom")]),t._v(" is an optional object defining stacked bar properties: "),a("code",[t._v("{start, end, barStart, barEnd, min, max}")]),t._v(". "),a("code",[t._v("start")]),t._v(" and "),a("code",[t._v("end")]),t._v(" are the input values. Those two are repeated in "),a("code",[t._v("barStart")]),t._v(" (closer to origin), "),a("code",[t._v("barEnd")]),t._v(" (further from origin), "),a("code",[t._v("min")]),t._v(" and "),a("code",[t._v("max")]),t._v(".")])],1)}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[135],{458:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"bar-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bar-chart"}},[t._v("#")]),t._v(" Bar Chart")]),t._v(" "),a("p",[t._v("A bar chart provides a way of showing data values represented as vertical bars. It is sometimes used to show trend data, and the comparison of multiple data sets side by side.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First Dataset',\n data: [65, 59, 80, 81, 56, 55, 40],\n backgroundColor: [\n 'rgba(255, 99, 132, 0.2)',\n 'rgba(255, 159, 64, 0.2)',\n 'rgba(255, 205, 86, 0.2)',\n 'rgba(75, 192, 192, 0.2)',\n 'rgba(54, 162, 235, 0.2)',\n 'rgba(153, 102, 255, 0.2)',\n 'rgba(201, 203, 207, 0.2)'\n ],\n borderColor: [\n 'rgb(255, 99, 132)',\n 'rgb(255, 159, 64)',\n 'rgb(255, 205, 86)',\n 'rgb(75, 192, 192)',\n 'rgb(54, 162, 235)',\n 'rgb(153, 102, 255)',\n 'rgb(201, 203, 207)'\n ],\n borderWidth: 1\n }]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n scales: {\n y: {\n beginAtZero: true\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.bar")]),t._v(" - options for all bar datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.bar")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#bar-configuration"}},[t._v("bar elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The bar chart allows a number of properties to be specified for each dataset.\nThese are used to set display properties for a specific dataset. For example,\nthe color of the bars is generally set this way.\nOnly the "),a("code",[t._v("data")]),t._v(" option needs to be specified in the dataset namespace.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("base")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#barpercentage"}},[a("code",[t._v("barPercentage")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0.9")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#barthickness"}},[a("code",[t._v("barThickness")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'start'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderwidth"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderradius"}},[a("code",[t._v("borderRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#categorypercentage"}},[a("code",[t._v("categoryPercentage")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0.8")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("object")]),t._v("|"),a("code",[t._v("object[]")]),t._v("| "),a("code",[t._v("number[]")]),t._v("|"),a("code",[t._v("string[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("grouped")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("true")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("indexAxis")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'x'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#maxbarthickness"}},[a("code",[t._v("maxBarThickness")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("minBarLength")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("label")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("''")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("order")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("RouterLink",{attrs:{to:"/configuration/elements.html#point-styles"}},[a("code",[t._v("pointStyle")])])],1),t._v(" "),a("td",[a("code",[t._v("string")]),t._v("|"),a("code",[t._v("Image")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'circle'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("skipNull")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td")]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("stack")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'bar'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("xAxisID")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[t._v("first x axis")])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("yAxisID")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[t._v("first y axis")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"example-dataset-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#example-dataset-configuration"}},[t._v("#")]),t._v(" Example dataset configuration")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n barPercentage"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0.5")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n barThickness"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("6")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n maxBarThickness"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("8")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n minBarLength"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("40")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("60")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("70")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("base")])]),t._v(" "),a("td",[t._v("Base value for the bar in data units along the value axis. If not set, defaults to the value axis base value.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("grouped")])]),t._v(" "),a("td",[t._v("Should the bars be grouped on index axis. When "),a("code",[t._v("true")]),t._v(", all the datasets at same index value will be placed next to each other centering on that index value. When "),a("code",[t._v("false")]),t._v(", each bar is placed on its actual index-axis value.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("indexAxis")])]),t._v(" "),a("td",[t._v("The base axis of the dataset. "),a("code",[t._v("'x'")]),t._v(" for vertical bars and "),a("code",[t._v("'y'")]),t._v(" for horizontal bars.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("label")])]),t._v(" "),a("td",[t._v("The label for the dataset which appears in the legend and tooltips.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("order")])]),t._v(" "),a("td",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip, and legend.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("skipNull")])]),t._v(" "),a("td",[t._v("If "),a("code",[t._v("true")]),t._v(", null or undefined values will not be used for spacing calculations when determining bar size.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("stack")])]),t._v(" "),a("td",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack). "),a("a",{attrs:{href:"#stacked-bar-charts"}},[t._v("more")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("xAxisID")])]),t._v(" "),a("td",[t._v("The ID of the x-axis to plot this dataset on.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("yAxisID")])]),t._v(" "),a("td",[t._v("The ID of the y-axis to plot this dataset on.")])])])]),t._v(" "),a("h3",{attrs:{id:"styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#styling"}},[t._v("#")]),t._v(" Styling")]),t._v(" "),a("p",[t._v("The style of each bar can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("The bar background color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("The bar border color.")])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])])]),t._v(" "),a("td",[t._v("The edge to skip when drawing bar.")])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderwidth"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[t._v("The bar border width (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#borderradius"}},[a("code",[t._v("borderRadius")])])]),t._v(" "),a("td",[t._v("The bar border radius (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("minBarLength")])]),t._v(" "),a("td",[t._v("Set this to ensure that bars have a minimum length in pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",[t._v("Style of the point for legend. "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-styles"}},[t._v("more...")])],1)])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#bar-configuration"}},[a("code",[t._v("elements.bar.*")])]),t._v(" options.")],1),t._v(" "),a("h4",{attrs:{id:"borderskipped"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#borderskipped"}},[t._v("#")]),t._v(" borderSkipped")]),t._v(" "),a("p",[t._v("This setting is used to avoid drawing the bar stroke at the base of the fill, or disable the border radius.\nIn general, this does not need to be changed except when creating chart types\nthat derive from a bar chart.")]),t._v(" "),a("div",{staticClass:"custom-block tip"},[a("p",{staticClass:"custom-block-title"},[t._v("Note")]),t._v(" "),a("p",[t._v("For negative bars in a vertical chart, "),a("code",[t._v("top")]),t._v(" and "),a("code",[t._v("bottom")]),t._v(" are flipped. Same goes for "),a("code",[t._v("left")]),t._v(" and "),a("code",[t._v("right")]),t._v(" in a horizontal chart.")])]),t._v(" "),a("p",[t._v("Options are:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'start'")])]),t._v(" "),a("li",[a("code",[t._v("'end'")])]),t._v(" "),a("li",[a("code",[t._v("'bottom'")])]),t._v(" "),a("li",[a("code",[t._v("'left'")])]),t._v(" "),a("li",[a("code",[t._v("'top'")])]),t._v(" "),a("li",[a("code",[t._v("'right'")])]),t._v(" "),a("li",[a("code",[t._v("false")])])]),t._v(" "),a("h4",{attrs:{id:"borderwidth"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),a("p",[t._v("If this value is a number, it is applied to all sides of the rectangle (left, top, right, bottom), except "),a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])]),t._v(". If this value is an object, the "),a("code",[t._v("left")]),t._v(" property defines the left border width. Similarly, the "),a("code",[t._v("right")]),t._v(", "),a("code",[t._v("top")]),t._v(", and "),a("code",[t._v("bottom")]),t._v(" properties can also be specified. Omitted borders and "),a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])]),t._v(" are skipped.")]),t._v(" "),a("h4",{attrs:{id:"borderradius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[t._v("#")]),t._v(" borderRadius")]),t._v(" "),a("p",[t._v("If this value is a number, it is applied to all corners of the rectangle (topLeft, topRight, bottomLeft, bottomRight), except corners touching the "),a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])]),t._v(". If this value is an object, the "),a("code",[t._v("topLeft")]),t._v(" property defines the top-left corners border radius. Similarly, the "),a("code",[t._v("topRight")]),t._v(", "),a("code",[t._v("bottomLeft")]),t._v(", and "),a("code",[t._v("bottomRight")]),t._v(" properties can also be specified. Omitted corners and those touching the "),a("a",{attrs:{href:"#borderskipped"}},[a("code",[t._v("borderSkipped")])]),t._v(" are skipped. For example if the "),a("code",[t._v("top")]),t._v(" border is skipped, the border radius for the corners "),a("code",[t._v("topLeft")]),t._v(" and "),a("code",[t._v("topRight")]),t._v(" will be skipped as well.")]),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each bar can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("hoverBackgroundColor")])]),t._v(" "),a("td",[t._v("The bar background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderColor")])]),t._v(" "),a("td",[t._v("The bar border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderWidth")])]),t._v(" "),a("td",[t._v("The bar border width when hovered (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderRadius")])]),t._v(" "),a("td",[t._v("The bar border radius when hovered (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#bar-configuration"}},[a("code",[t._v("elements.bar.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"barpercentage"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barpercentage"}},[t._v("#")]),t._v(" barPercentage")]),t._v(" "),a("p",[t._v("Percent (0-1) of the available width each bar should be within the category width. 1.0 will take the whole category width and put the bars right next to each other. "),a("a",{attrs:{href:"#barpercentage-vs-categorypercentage"}},[t._v("more...")])]),t._v(" "),a("h3",{attrs:{id:"categorypercentage"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#categorypercentage"}},[t._v("#")]),t._v(" categoryPercentage")]),t._v(" "),a("p",[t._v("Percent (0-1) of the available width each category should be within the sample width. "),a("a",{attrs:{href:"#barpercentage-vs-categorypercentage"}},[t._v("more...")])]),t._v(" "),a("h3",{attrs:{id:"barthickness"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barthickness"}},[t._v("#")]),t._v(" barThickness")]),t._v(" "),a("p",[t._v("If this value is a number, it is applied to the width of each bar, in pixels. When this is enforced, "),a("code",[t._v("barPercentage")]),t._v(" and "),a("code",[t._v("categoryPercentage")]),t._v(" are ignored.")]),t._v(" "),a("p",[t._v("If set to "),a("code",[t._v("'flex'")]),t._v(", the base sample widths are calculated automatically based on the previous and following samples so that they take the full available widths without overlap. Then, bars are sized using "),a("code",[t._v("barPercentage")]),t._v(" and "),a("code",[t._v("categoryPercentage")]),t._v(". There is no gap when the percentage options are 1. This mode generates bars with different widths when data are not evenly spaced.")]),t._v(" "),a("p",[t._v("If not set (default), the base sample widths are calculated using the smallest interval that prevents bar overlapping, and bars are sized using "),a("code",[t._v("barPercentage")]),t._v(" and "),a("code",[t._v("categoryPercentage")]),t._v(". This mode always generates bars equally sized.")]),t._v(" "),a("h3",{attrs:{id:"maxbarthickness"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxbarthickness"}},[t._v("#")]),t._v(" maxBarThickness")]),t._v(" "),a("p",[t._v("Set this to ensure that bars are not sized thicker than this.")]),t._v(" "),a("h2",{attrs:{id:"scale-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scale-configuration"}},[t._v("#")]),t._v(" Scale Configuration")]),t._v(" "),a("p",[t._v("The bar chart sets unique default values for the following configuration from the associated "),a("code",[t._v("scale")]),t._v(" options:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("offset")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, extra space is added to both edges and the axis is scaled to fit into the chart area.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("grid.offset")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, the bars for a particular data point fall between the grid lines. The grid line will move to the left by one half of the tick interval. If false, the grid line will go right down the middle of the bars. "),a("a",{attrs:{href:"#offsetgridlines"}},[t._v("more...")])])])])]),t._v(" "),a("h3",{attrs:{id:"example-scale-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#example-scale-configuration"}},[t._v("#")]),t._v(" Example scale configuration")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("options "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n grid"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n offset"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h3",{attrs:{id:"offset-grid-lines"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offset-grid-lines"}},[t._v("#")]),t._v(" Offset Grid Lines")]),t._v(" "),a("p",[t._v("If true, the bars for a particular data point fall between the grid lines. The grid line will move to the left by one half of the tick interval, which is the space between the grid lines. If false, the grid line will go right down the middle of the bars. This is set to true for a category scale in a bar chart while false for other scales or chart types by default.")]),t._v(" "),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("It is common to want to apply a configuration setting to all created bar charts. The global bar chart settings are stored in "),a("code",[t._v("Chart.overrides.bar")]),t._v(". Changing the global options only affects charts created after the change. Existing charts are not changed.")]),t._v(" "),a("h2",{attrs:{id:"barpercentage-vs-categorypercentage"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barpercentage-vs-categorypercentage"}},[t._v("#")]),t._v(" barPercentage vs categoryPercentage")]),t._v(" "),a("p",[t._v("The following shows the relationship between the bar percentage option and the category percentage option.")]),t._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[t._v("// categoryPercentage: 1.0\n// barPercentage: 1.0\nBar: | 1.0 | 1.0 |\nCategory: | 1.0 |\nSample: |===========|\n\n// categoryPercentage: 1.0\n// barPercentage: 0.5\nBar: |.5| |.5|\nCategory: | 1.0 |\nSample: |==============|\n\n// categoryPercentage: 0.5\n// barPercentage: 1.0\nBar: |1.0||1.0|\nCategory: | .5 |\nSample: |==================|\n")])])]),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("All of the supported "),a("RouterLink",{attrs:{to:"/general/data-structures.html"}},[t._v("data structures")]),t._v(" can be used with bar charts.")],1),t._v(" "),a("h2",{attrs:{id:"stacked-bar-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stacked-bar-chart"}},[t._v("#")]),t._v(" Stacked Bar Chart")]),t._v(" "),a("p",[t._v("Bar charts can be configured into stacked bar charts by changing the settings on the X and Y axes to enable stacking. Stacked bar charts can be used to show how one data series is made up of a number of smaller pieces.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" stackedBar "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n stacked"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n stacked"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"horizontal-bar-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#horizontal-bar-chart"}},[t._v("#")]),t._v(" Horizontal Bar Chart")]),t._v(" "),a("p",[t._v("A horizontal bar chart is a variation on a vertical bar chart. It is sometimes used to show trend data, and the comparison of multiple data sets side by side.\nTo achieve this you will have to set the "),a("code",[t._v("indexAxis")]),t._v(" property in the options object to "),a("code",[t._v("'y'")]),t._v(".\nThe default for this property is "),a("code",[t._v("'x'")]),t._v(" and thus will show vertical bars.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n axis: 'y',\n label: 'My First Dataset',\n data: [65, 59, 80, 81, 56, 55, 40],\n fill: false,\n backgroundColor: [\n 'rgba(255, 99, 132, 0.2)',\n 'rgba(255, 159, 64, 0.2)',\n 'rgba(255, 205, 86, 0.2)',\n 'rgba(75, 192, 192, 0.2)',\n 'rgba(54, 162, 235, 0.2)',\n 'rgba(153, 102, 255, 0.2)',\n 'rgba(201, 203, 207, 0.2)'\n ],\n borderColor: [\n 'rgb(255, 99, 132)',\n 'rgb(255, 159, 64)',\n 'rgb(255, 205, 86)',\n 'rgb(75, 192, 192)',\n 'rgb(54, 162, 235)',\n 'rgb(153, 102, 255)',\n 'rgb(201, 203, 207)'\n ],\n borderWidth: 1\n }]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data,\n options: {\n indexAxis: 'y',\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h3",{attrs:{id:"horizontal-bar-chart-config-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#horizontal-bar-chart-config-options"}},[t._v("#")]),t._v(" Horizontal Bar Chart config Options")]),t._v(" "),a("p",[t._v("The configuration options for the horizontal bar chart are the same as for the "),a("a",{attrs:{href:"#scale-configuration"}},[t._v("bar chart")]),t._v(". However, any options specified on the x-axis in a bar chart, are applied to the y-axis in a horizontal bar chart.")]),t._v(" "),a("h2",{attrs:{id:"internal-data-format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),a("p",[a("code",[t._v("{x, y, _custom}")]),t._v(" where "),a("code",[t._v("_custom")]),t._v(" is an optional object defining stacked bar properties: "),a("code",[t._v("{start, end, barStart, barEnd, min, max}")]),t._v(". "),a("code",[t._v("start")]),t._v(" and "),a("code",[t._v("end")]),t._v(" are the input values. Those two are repeated in "),a("code",[t._v("barStart")]),t._v(" (closer to origin), "),a("code",[t._v("barEnd")]),t._v(" (further from origin), "),a("code",[t._v("min")]),t._v(" and "),a("code",[t._v("max")]),t._v(".")])],1)}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/136.d7d24c70.js b/docs/3.1.0/assets/js/136.ac5c4228.js similarity index 99% rename from docs/3.1.0/assets/js/136.d7d24c70.js rename to docs/3.1.0/assets/js/136.ac5c4228.js index 0d46ee49bf..02fbb6879e 100644 --- a/docs/3.1.0/assets/js/136.d7d24c70.js +++ b/docs/3.1.0/assets/js/136.ac5c4228.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[136],{461:function(t,e,a){"use strict";a.r(e);var r=a(7),o=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"bubble-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bubble-chart"}},[t._v("#")]),t._v(" Bubble Chart")]),t._v(" "),a("p",[t._v("A bubble chart is used to display three dimensions of data at the same time. The location of the bubble is determined by the first two dimensions and the corresponding horizontal and vertical axes. The third dimension is represented by the size of the individual bubbles.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst data = {\n datasets: [{\n label: 'First Dataset',\n data: [{\n x: 20,\n y: 30,\n r: 15\n }, {\n x: 40,\n y: 10,\n r: 10\n }],\n backgroundColor: 'rgb(255, 99, 132)'\n }]\n};\n// \n\n// \nconst config = {\n type: 'bubble',\n data: data,\n options: {}\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.bubble")]),t._v(" - options for all bubble datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.point")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[t._v("point elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The bubble chart allows a number of properties to be specified for each dataset. These are used to set display properties for a specific dataset. For example, the colour of the bubbles is generally set this way.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("3")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("object[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("4")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hitRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("label")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("order")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("pointStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'circle'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("rotation")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("radius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("3")])])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("label")])]),t._v(" "),a("td",[t._v("The label for the dataset which appears in the legend and tooltips.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("order")])]),t._v(" "),a("td",[t._v("The drawing order of dataset. Also affects order for tooltip and legend.")])])])]),t._v(" "),a("h3",{attrs:{id:"styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#styling"}},[t._v("#")]),t._v(" Styling")]),t._v(" "),a("p",[t._v("The style of each bubble can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("bubble background color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("bubble border color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderWidth")])]),t._v(" "),a("td",[t._v("bubble border width (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",[t._v("bubble "),a("a",{attrs:{href:"../configuration/elements#point-styles"}},[t._v("shape style")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("rotation")])]),t._v(" "),a("td",[t._v("bubble rotation (in degrees).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("radius")])]),t._v(" "),a("td",[t._v("bubble radius (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[a("code",[t._v("elements.point.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each bubble can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("hoverBackgroundColor")])]),t._v(" "),a("td",[t._v("bubble background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderColor")])]),t._v(" "),a("td",[t._v("bubble border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderWidth")])]),t._v(" "),a("td",[t._v("bubble border width when hovered (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverRadius")])]),t._v(" "),a("td",[t._v("bubble "),a("strong",[t._v("additional")]),t._v(" radius when hovered (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hitRadius")])]),t._v(" "),a("td",[t._v("bubble "),a("strong",[t._v("additional")]),t._v(" radius for hit detection (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[a("code",[t._v("elements.point.*")])]),t._v(" options.")],1),t._v(" "),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("We can also change the default values for the Bubble chart type. Doing so will give all bubble charts created after this point the new defaults. The default configuration for the bubble chart can be accessed at "),a("code",[t._v("Chart.overrides.bubble")]),t._v(".")]),t._v(" "),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("Bubble chart datasets need to contain a "),a("code",[t._v("data")]),t._v(" array of points, each point represented by an object containing the following properties:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// X Value")]),t._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Y Value")]),t._v("\n y"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Bubble radius in pixels (not scaled).")]),t._v("\n r"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("p",[a("strong",[t._v("Important:")]),t._v(" the radius property, "),a("code",[t._v("r")]),t._v(" is "),a("strong",[t._v("not")]),t._v(" scaled by the chart, it is the raw radius in pixels of the bubble that is drawn on the canvas.")]),t._v(" "),a("h2",{attrs:{id:"internal-data-format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),a("p",[a("code",[t._v("{x, y, _custom}")]),t._v(" where "),a("code",[t._v("_custom")]),t._v(" is the radius.")])],1)}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[136],{462:function(t,e,a){"use strict";a.r(e);var r=a(7),o=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"bubble-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bubble-chart"}},[t._v("#")]),t._v(" Bubble Chart")]),t._v(" "),a("p",[t._v("A bubble chart is used to display three dimensions of data at the same time. The location of the bubble is determined by the first two dimensions and the corresponding horizontal and vertical axes. The third dimension is represented by the size of the individual bubbles.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst data = {\n datasets: [{\n label: 'First Dataset',\n data: [{\n x: 20,\n y: 30,\n r: 15\n }, {\n x: 40,\n y: 10,\n r: 10\n }],\n backgroundColor: 'rgb(255, 99, 132)'\n }]\n};\n// \n\n// \nconst config = {\n type: 'bubble',\n data: data,\n options: {}\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.bubble")]),t._v(" - options for all bubble datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.point")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[t._v("point elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The bubble chart allows a number of properties to be specified for each dataset. These are used to set display properties for a specific dataset. For example, the colour of the bubbles is generally set this way.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("3")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("object[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("4")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hitRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("label")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("order")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("pointStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'circle'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("rotation")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("radius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("3")])])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("label")])]),t._v(" "),a("td",[t._v("The label for the dataset which appears in the legend and tooltips.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("order")])]),t._v(" "),a("td",[t._v("The drawing order of dataset. Also affects order for tooltip and legend.")])])])]),t._v(" "),a("h3",{attrs:{id:"styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#styling"}},[t._v("#")]),t._v(" Styling")]),t._v(" "),a("p",[t._v("The style of each bubble can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("bubble background color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("bubble border color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderWidth")])]),t._v(" "),a("td",[t._v("bubble border width (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",[t._v("bubble "),a("a",{attrs:{href:"../configuration/elements#point-styles"}},[t._v("shape style")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("rotation")])]),t._v(" "),a("td",[t._v("bubble rotation (in degrees).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("radius")])]),t._v(" "),a("td",[t._v("bubble radius (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[a("code",[t._v("elements.point.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each bubble can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("hoverBackgroundColor")])]),t._v(" "),a("td",[t._v("bubble background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderColor")])]),t._v(" "),a("td",[t._v("bubble border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderWidth")])]),t._v(" "),a("td",[t._v("bubble border width when hovered (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverRadius")])]),t._v(" "),a("td",[t._v("bubble "),a("strong",[t._v("additional")]),t._v(" radius when hovered (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hitRadius")])]),t._v(" "),a("td",[t._v("bubble "),a("strong",[t._v("additional")]),t._v(" radius for hit detection (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[a("code",[t._v("elements.point.*")])]),t._v(" options.")],1),t._v(" "),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("We can also change the default values for the Bubble chart type. Doing so will give all bubble charts created after this point the new defaults. The default configuration for the bubble chart can be accessed at "),a("code",[t._v("Chart.overrides.bubble")]),t._v(".")]),t._v(" "),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("Bubble chart datasets need to contain a "),a("code",[t._v("data")]),t._v(" array of points, each point represented by an object containing the following properties:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// X Value")]),t._v("\n x"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Y Value")]),t._v("\n y"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Bubble radius in pixels (not scaled).")]),t._v("\n r"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("p",[a("strong",[t._v("Important:")]),t._v(" the radius property, "),a("code",[t._v("r")]),t._v(" is "),a("strong",[t._v("not")]),t._v(" scaled by the chart, it is the raw radius in pixels of the bubble that is drawn on the canvas.")]),t._v(" "),a("h2",{attrs:{id:"internal-data-format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),a("p",[a("code",[t._v("{x, y, _custom}")]),t._v(" where "),a("code",[t._v("_custom")]),t._v(" is the radius.")])],1)}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/137.2f82698b.js b/docs/3.1.0/assets/js/137.d8e51241.js similarity index 99% rename from docs/3.1.0/assets/js/137.2f82698b.js rename to docs/3.1.0/assets/js/137.d8e51241.js index 01fc5b577c..cac7d35c78 100644 --- a/docs/3.1.0/assets/js/137.2f82698b.js +++ b/docs/3.1.0/assets/js/137.d8e51241.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[137],{462:function(t,e,a){"use strict";a.r(e);var r=a(7),o=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"doughnut-and-pie-charts"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#doughnut-and-pie-charts"}},[t._v("#")]),t._v(" Doughnut and Pie Charts")]),t._v(" "),a("p",[t._v("Pie and doughnut charts are probably the most commonly used charts. They are divided into segments, the arc of each segment shows the proportional value of each piece of data.")]),t._v(" "),a("p",[t._v("They are excellent at showing the relational proportions between data.")]),t._v(" "),a("p",[t._v("Pie and doughnut charts are effectively the same class in Chart.js, but have one different default value - their "),a("code",[t._v("cutout")]),t._v(". This equates to what portion of the inner should be cut out. This defaults to "),a("code",[t._v("0")]),t._v(" for pie charts, and "),a("code",[t._v("'50%'")]),t._v(" for doughnuts.")]),t._v(" "),a("p",[t._v("They are also registered under two aliases in the "),a("code",[t._v("Chart")]),t._v(" core. Other than their different default value, and different alias, they are exactly the same.")]),t._v(" "),a("tabs",[a("tab",{attrs:{name:"Doughnut"}},[a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Red',\n 'Blue',\n 'Yellow'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [300, 50, 100],\n backgroundColor: [\n 'rgb(255, 99, 132)',\n 'rgb(54, 162, 235)',\n 'rgb(255, 205, 86)'\n ],\n hoverOffset: 4\n }]\n};\n// \n\n// \nconst config = {\n type: 'doughnut',\n data: data,\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1),t._v(" "),a("tab",{attrs:{name:"Pie"}},[a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Red',\n 'Blue',\n 'Yellow'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [300, 50, 100],\n backgroundColor: [\n 'rgb(255, 99, 132)',\n 'rgb(54, 162, 235)',\n 'rgb(255, 205, 86)'\n ],\n hoverOffset: 4\n }]\n};\n// \n\n// \nconst config = {\n type: 'pie',\n data: data,\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)],1),t._v(" "),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.doughnut")]),t._v(" - options for all doughnut datasets")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.pie")]),t._v(" - options for all pie datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.arc")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[t._v("arc elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The doughnut/pie chart allows a number of properties to be specified for each dataset. These are used to set display properties for a specific dataset. For example, the colours of the dataset's arcs are generally set this way.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#border-alignment"}},[a("code",[t._v("borderAlign")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'center'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'#fff'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#border-radius"}},[a("code",[t._v("borderRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("2")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("circumference")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interations"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverOffset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("offset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("rotation")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("weight")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("1")])])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("circumference")])]),t._v(" "),a("td",[t._v("Per-dataset override for the sweep that the arcs cover")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("rotation")])]),t._v(" "),a("td",[t._v("Per-dataset override for the starting angle to draw arcs from")])])])]),t._v(" "),a("h3",{attrs:{id:"styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#styling"}},[t._v("#")]),t._v(" Styling")]),t._v(" "),a("p",[t._v("The style of each arc can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("arc background color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("arc border color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderWidth")])]),t._v(" "),a("td",[t._v("arc border width (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("offset")])]),t._v(" "),a("td",[t._v("arc offset (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("weight")])]),t._v(" "),a("td",[t._v("The relative thickness of the dataset. Providing a value for weight will cause the pie or doughnut dataset to be drawn with a thickness relative to the sum of all the dataset weight values.")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[a("code",[t._v("elements.arc.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"border-alignment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#border-alignment"}},[t._v("#")]),t._v(" Border Alignment")]),t._v(" "),a("p",[t._v("The following values are supported for "),a("code",[t._v("borderAlign")]),t._v(".")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'center'")]),t._v(" (default)")]),t._v(" "),a("li",[a("code",[t._v("'inner'")])])]),t._v(" "),a("p",[t._v("When "),a("code",[t._v("'center'")]),t._v(" is set, the borders of arcs next to each other will overlap. When "),a("code",[t._v("'inner'")]),t._v(" is set, it is guaranteed that all borders will not overlap.")]),t._v(" "),a("h3",{attrs:{id:"border-radius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#border-radius"}},[t._v("#")]),t._v(" Border Radius")]),t._v(" "),a("p",[t._v("If this value is a number, it is applied to all corners of the arc (outerStart, outerEnd, innerStart, innerRight). If this value is an object, the "),a("code",[t._v("outerStart")]),t._v(" property defines the outer-start corner's border radius. Similarly, the "),a("code",[t._v("outerEnd")]),t._v(", "),a("code",[t._v("innerStart")]),t._v(", and "),a("code",[t._v("innerEnd")]),t._v(" properties can also be specified.")]),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each arc can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("hoverBackgroundColor")])]),t._v(" "),a("td",[t._v("arc background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderColor")])]),t._v(" "),a("td",[t._v("arc border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderWidth")])]),t._v(" "),a("td",[t._v("arc border width when hovered (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverOffset")])]),t._v(" "),a("td",[t._v("arc offset when hovered (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[a("code",[t._v("elements.arc.*")])]),t._v(" options.")],1),t._v(" "),a("h2",{attrs:{id:"config-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#config-options"}},[t._v("#")]),t._v(" Config Options")]),t._v(" "),a("p",[t._v("These are the customisation options specific to Pie & Doughnut charts. These options are looked up on access, and form together with the global chart configuration the options of the chart.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("cutout")])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("50%")]),t._v(" - for doughnut, "),a("code",[t._v("0")]),t._v(" - for pie")]),t._v(" "),a("td",[t._v("The portion of the chart that is cut out of the middle. If "),a("code",[t._v("string")]),t._v(" and ending with '%', percentage of the chart radius. "),a("code",[t._v("number")]),t._v(" is considered to be pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("radius")])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("100%")])]),t._v(" "),a("td",[t._v("The outer radius of the chart. If "),a("code",[t._v("string")]),t._v(" and ending with '%', percentage of the maximum radius. "),a("code",[t._v("number")]),t._v(" is considered to be pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("rotation")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("0")]),t._v(" "),a("td",[t._v("Starting angle to draw arcs from.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("circumference")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("360")]),t._v(" "),a("td",[t._v("Sweep to allow arcs to cover.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("animation.animateRotate")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, the chart will animate in with a rotation animation. This property is in the "),a("code",[t._v("options.animation")]),t._v(" object.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("animation.animateScale")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("If true, will animate scaling the chart from the center outwards.")])])])]),t._v(" "),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("We can also change these default values for each Doughnut type that is created, this object is available at "),a("code",[t._v("Chart.overrides.doughnut")]),t._v(". Pie charts also have a clone of these defaults available to change at "),a("code",[t._v("Chart.overrides.pie")]),t._v(", with the only difference being "),a("code",[t._v("cutout")]),t._v(" being set to 0.")]),t._v(" "),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("For a pie chart, datasets need to contain an array of data points. The data points should be a number, Chart.js will total all of the numbers and calculate the relative proportion of each.")]),t._v(" "),a("p",[t._v("You also need to specify an array of labels so that tooltips appear correctly.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("data "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// These labels appear in the legend and in the tooltips when hovering different arcs")]),t._v("\n labels"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Red'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Yellow'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Blue'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])],1)}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[137],{460:function(t,e,a){"use strict";a.r(e);var r=a(7),o=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"doughnut-and-pie-charts"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#doughnut-and-pie-charts"}},[t._v("#")]),t._v(" Doughnut and Pie Charts")]),t._v(" "),a("p",[t._v("Pie and doughnut charts are probably the most commonly used charts. They are divided into segments, the arc of each segment shows the proportional value of each piece of data.")]),t._v(" "),a("p",[t._v("They are excellent at showing the relational proportions between data.")]),t._v(" "),a("p",[t._v("Pie and doughnut charts are effectively the same class in Chart.js, but have one different default value - their "),a("code",[t._v("cutout")]),t._v(". This equates to what portion of the inner should be cut out. This defaults to "),a("code",[t._v("0")]),t._v(" for pie charts, and "),a("code",[t._v("'50%'")]),t._v(" for doughnuts.")]),t._v(" "),a("p",[t._v("They are also registered under two aliases in the "),a("code",[t._v("Chart")]),t._v(" core. Other than their different default value, and different alias, they are exactly the same.")]),t._v(" "),a("tabs",[a("tab",{attrs:{name:"Doughnut"}},[a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Red',\n 'Blue',\n 'Yellow'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [300, 50, 100],\n backgroundColor: [\n 'rgb(255, 99, 132)',\n 'rgb(54, 162, 235)',\n 'rgb(255, 205, 86)'\n ],\n hoverOffset: 4\n }]\n};\n// \n\n// \nconst config = {\n type: 'doughnut',\n data: data,\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1),t._v(" "),a("tab",{attrs:{name:"Pie"}},[a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Red',\n 'Blue',\n 'Yellow'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [300, 50, 100],\n backgroundColor: [\n 'rgb(255, 99, 132)',\n 'rgb(54, 162, 235)',\n 'rgb(255, 205, 86)'\n ],\n hoverOffset: 4\n }]\n};\n// \n\n// \nconst config = {\n type: 'pie',\n data: data,\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)],1),t._v(" "),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.doughnut")]),t._v(" - options for all doughnut datasets")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.pie")]),t._v(" - options for all pie datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.arc")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[t._v("arc elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The doughnut/pie chart allows a number of properties to be specified for each dataset. These are used to set display properties for a specific dataset. For example, the colours of the dataset's arcs are generally set this way.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#border-alignment"}},[a("code",[t._v("borderAlign")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'center'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'#fff'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#border-radius"}},[a("code",[t._v("borderRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("2")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("circumference")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interations"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverOffset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("offset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("rotation")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("weight")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("1")])])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("circumference")])]),t._v(" "),a("td",[t._v("Per-dataset override for the sweep that the arcs cover")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("rotation")])]),t._v(" "),a("td",[t._v("Per-dataset override for the starting angle to draw arcs from")])])])]),t._v(" "),a("h3",{attrs:{id:"styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#styling"}},[t._v("#")]),t._v(" Styling")]),t._v(" "),a("p",[t._v("The style of each arc can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("arc background color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("arc border color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderWidth")])]),t._v(" "),a("td",[t._v("arc border width (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("offset")])]),t._v(" "),a("td",[t._v("arc offset (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("weight")])]),t._v(" "),a("td",[t._v("The relative thickness of the dataset. Providing a value for weight will cause the pie or doughnut dataset to be drawn with a thickness relative to the sum of all the dataset weight values.")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[a("code",[t._v("elements.arc.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"border-alignment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#border-alignment"}},[t._v("#")]),t._v(" Border Alignment")]),t._v(" "),a("p",[t._v("The following values are supported for "),a("code",[t._v("borderAlign")]),t._v(".")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'center'")]),t._v(" (default)")]),t._v(" "),a("li",[a("code",[t._v("'inner'")])])]),t._v(" "),a("p",[t._v("When "),a("code",[t._v("'center'")]),t._v(" is set, the borders of arcs next to each other will overlap. When "),a("code",[t._v("'inner'")]),t._v(" is set, it is guaranteed that all borders will not overlap.")]),t._v(" "),a("h3",{attrs:{id:"border-radius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#border-radius"}},[t._v("#")]),t._v(" Border Radius")]),t._v(" "),a("p",[t._v("If this value is a number, it is applied to all corners of the arc (outerStart, outerEnd, innerStart, innerRight). If this value is an object, the "),a("code",[t._v("outerStart")]),t._v(" property defines the outer-start corner's border radius. Similarly, the "),a("code",[t._v("outerEnd")]),t._v(", "),a("code",[t._v("innerStart")]),t._v(", and "),a("code",[t._v("innerEnd")]),t._v(" properties can also be specified.")]),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each arc can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("hoverBackgroundColor")])]),t._v(" "),a("td",[t._v("arc background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderColor")])]),t._v(" "),a("td",[t._v("arc border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderWidth")])]),t._v(" "),a("td",[t._v("arc border width when hovered (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverOffset")])]),t._v(" "),a("td",[t._v("arc offset when hovered (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[a("code",[t._v("elements.arc.*")])]),t._v(" options.")],1),t._v(" "),a("h2",{attrs:{id:"config-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#config-options"}},[t._v("#")]),t._v(" Config Options")]),t._v(" "),a("p",[t._v("These are the customisation options specific to Pie & Doughnut charts. These options are looked up on access, and form together with the global chart configuration the options of the chart.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("cutout")])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("50%")]),t._v(" - for doughnut, "),a("code",[t._v("0")]),t._v(" - for pie")]),t._v(" "),a("td",[t._v("The portion of the chart that is cut out of the middle. If "),a("code",[t._v("string")]),t._v(" and ending with '%', percentage of the chart radius. "),a("code",[t._v("number")]),t._v(" is considered to be pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("radius")])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("100%")])]),t._v(" "),a("td",[t._v("The outer radius of the chart. If "),a("code",[t._v("string")]),t._v(" and ending with '%', percentage of the maximum radius. "),a("code",[t._v("number")]),t._v(" is considered to be pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("rotation")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("0")]),t._v(" "),a("td",[t._v("Starting angle to draw arcs from.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("circumference")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[t._v("360")]),t._v(" "),a("td",[t._v("Sweep to allow arcs to cover.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("animation.animateRotate")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, the chart will animate in with a rotation animation. This property is in the "),a("code",[t._v("options.animation")]),t._v(" object.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("animation.animateScale")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("If true, will animate scaling the chart from the center outwards.")])])])]),t._v(" "),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("We can also change these default values for each Doughnut type that is created, this object is available at "),a("code",[t._v("Chart.overrides.doughnut")]),t._v(". Pie charts also have a clone of these defaults available to change at "),a("code",[t._v("Chart.overrides.pie")]),t._v(", with the only difference being "),a("code",[t._v("cutout")]),t._v(" being set to 0.")]),t._v(" "),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("For a pie chart, datasets need to contain an array of data points. The data points should be a number, Chart.js will total all of the numbers and calculate the relative proportion of each.")]),t._v(" "),a("p",[t._v("You also need to specify an array of labels so that tooltips appear correctly.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("data "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// These labels appear in the legend and in the tooltips when hovering different arcs")]),t._v("\n labels"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Red'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Yellow'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Blue'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])],1)}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/138.28a46530.js b/docs/3.1.0/assets/js/138.fdf11c55.js similarity index 99% rename from docs/3.1.0/assets/js/138.28a46530.js rename to docs/3.1.0/assets/js/138.fdf11c55.js index baf6327180..1d78ac4db0 100644 --- a/docs/3.1.0/assets/js/138.28a46530.js +++ b/docs/3.1.0/assets/js/138.fdf11c55.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[138],{463:function(t,e,a){"use strict";a.r(e);var n=a(7),o=Object(n.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"line-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#line-chart"}},[t._v("#")]),t._v(" Line Chart")]),t._v(" "),a("p",[t._v("A line chart is a way of plotting data points on a line. Often, it is used to show trend data, or the comparison of two data sets.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First Dataset',\n data: [65, 59, 80, 81, 56, 55, 40],\n fill: false,\n borderColor: 'rgb(75, 192, 192)',\n tension: 0.1\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.line")]),t._v(" - options for all line datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.line")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#line-configuration"}},[t._v("line elements")])],1),t._v(" "),a("li",[a("code",[t._v("options.elements.point")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[t._v("point elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The line chart allows a number of properties to be specified for each dataset. These are used to set display properties for a specific dataset. For example, the colour of a line is generally set this way.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderCapStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'butt'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderDash")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("[]")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderDashOffset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0.0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderJoinStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'miter'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("3")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#cubicinterpolationmode"}},[a("code",[t._v("cubicInterpolationMode")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'default'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("object")]),t._v("|"),a("code",[t._v("object[]")]),t._v("| "),a("code",[t._v("number[]")]),t._v("|"),a("code",[t._v("string[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("fill")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("false")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderCapStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderDash")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderDashOffset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderJoinStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("indexAxis")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'x'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("label")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("''")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("order")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBackgroundColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBorderColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointHitRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBackgroundColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBorderColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("4")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("3")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointRotation")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")]),t._v("|"),a("code",[t._v("Image")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'circle'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#segment"}},[a("code",[t._v("segment")])])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("showLine")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("true")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("spanGaps")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("stack")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'line'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#stepped"}},[a("code",[t._v("stepped")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("false")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("tension")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("xAxisID")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[t._v("first x axis")])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("yAxisID")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[t._v("first y axis")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("indexAxis")])]),t._v(" "),a("td",[t._v("The base axis of the dataset. "),a("code",[t._v("'x'")]),t._v(" for horizontal lines and "),a("code",[t._v("'y'")]),t._v(" for vertical lines.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("label")])]),t._v(" "),a("td",[t._v("The label for the dataset which appears in the legend and tooltips.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("order")])]),t._v(" "),a("td",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip, and legend.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("stack")])]),t._v(" "),a("td",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack). "),a("a",{attrs:{href:"#stacked-area-charts"}},[t._v("more")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("xAxisID")])]),t._v(" "),a("td",[t._v("The ID of the x-axis to plot this dataset on.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("yAxisID")])]),t._v(" "),a("td",[t._v("The ID of the y-axis to plot this dataset on.")])])])]),t._v(" "),a("h3",{attrs:{id:"point-styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#point-styling"}},[t._v("#")]),t._v(" Point Styling")]),t._v(" "),a("p",[t._v("The style of each point can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("pointBackgroundColor")])]),t._v(" "),a("td",[t._v("The fill color for points.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointBorderColor")])]),t._v(" "),a("td",[t._v("The border color for points.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointBorderWidth")])]),t._v(" "),a("td",[t._v("The width of the point border in pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHitRadius")])]),t._v(" "),a("td",[t._v("The pixel size of the non-displayed point that reacts to mouse events.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointRadius")])]),t._v(" "),a("td",[t._v("The radius of the point shape. If set to 0, the point is not rendered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointRotation")])]),t._v(" "),a("td",[t._v("The rotation of the point in degrees.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",[t._v("Style of the point. "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-styles"}},[t._v("more...")])],1)])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback first to the dataset options then to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[a("code",[t._v("elements.point.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"line-styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#line-styling"}},[t._v("#")]),t._v(" Line Styling")]),t._v(" "),a("p",[t._v("The style of the line can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("The line fill color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderCapStyle")])]),t._v(" "),a("td",[t._v("Cap style of the line. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("The line color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderDash")])]),t._v(" "),a("td",[t._v("Length and spacing of dashes. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderDashOffset")])]),t._v(" "),a("td",[t._v("Offset for line dashes. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderJoinStyle")])]),t._v(" "),a("td",[t._v("Line joint style. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderWidth")])]),t._v(" "),a("td",[t._v("The line width (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("fill")])]),t._v(" "),a("td",[t._v("How to fill the area under the line. See "),a("RouterLink",{attrs:{to:"/charts/area.html"}},[t._v("area charts")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("tension")])]),t._v(" "),a("td",[t._v("Bezier curve tension of the line. Set to 0 to draw straightlines. This option is ignored if monotone cubic interpolation is used.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("showLine")])]),t._v(" "),a("td",[t._v("If false, the line is not drawn for this dataset.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("spanGaps")])]),t._v(" "),a("td",[t._v("If true, lines will be drawn between points with no or null data. If false, points with "),a("code",[t._v("null")]),t._v(" data will create a break in the line. Can also be a number specifying the maximum gap length to span. The unit of the value depends on the scale used.")])])])]),t._v(" "),a("p",[t._v("If the value is "),a("code",[t._v("undefined")]),t._v(", "),a("code",[t._v("showLine")]),t._v(" and "),a("code",[t._v("spanGaps")]),t._v(" fallback to the associated "),a("a",{attrs:{href:"#configuration-options"}},[t._v("chart configuration options")]),t._v(". The rest of the values fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#line-configuration"}},[a("code",[t._v("elements.line.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each point can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("pointHoverBackgroundColor")])]),t._v(" "),a("td",[t._v("Point background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverBorderColor")])]),t._v(" "),a("td",[t._v("Point border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverBorderWidth")])]),t._v(" "),a("td",[t._v("Border width of point when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverRadius")])]),t._v(" "),a("td",[t._v("The radius of the point when hovered.")])])])]),t._v(" "),a("h3",{attrs:{id:"cubicinterpolationmode"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cubicinterpolationmode"}},[t._v("#")]),t._v(" cubicInterpolationMode")]),t._v(" "),a("p",[t._v("The following interpolation modes are supported.")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'default'")])]),t._v(" "),a("li",[a("code",[t._v("'monotone'")])])]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("'default'")]),t._v(" algorithm uses a custom weighted cubic interpolation, which produces pleasant curves for all types of datasets.")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("'monotone'")]),t._v(" algorithm is more suited to "),a("code",[t._v("y = f(x)")]),t._v(" datasets: it preserves monotonicity (or piecewise monotonicity) of the dataset being interpolated, and ensures local extremums (if any) stay at input data points.")]),t._v(" "),a("p",[t._v("If left untouched ("),a("code",[t._v("undefined")]),t._v("), the global "),a("code",[t._v("options.elements.line.cubicInterpolationMode")]),t._v(" property is used.")]),t._v(" "),a("h3",{attrs:{id:"segment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#segment"}},[t._v("#")]),t._v(" Segment")]),t._v(" "),a("p",[t._v("Line segment styles can be overridden by scriptable options in the "),a("code",[t._v("segment")]),t._v(" object. Currently all of the "),a("code",[t._v("border*")]),t._v(" and "),a("code",[t._v("backgroundColor")]),t._v(" options are supported. The segment styles are resolved for each section of the line between each point. "),a("code",[t._v("undefined")]),t._v(" fallbacks to main line styles.")]),t._v(" "),a("p",[t._v("Context for the scriptable segment contains the following properties:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'segment'")])]),t._v(" "),a("li",[a("code",[t._v("p0")]),t._v(": first point element")]),t._v(" "),a("li",[a("code",[t._v("p1")]),t._v(": second point element")])]),t._v(" "),a("p",[a("RouterLink",{attrs:{to:"/samples/line/segments.html"}},[t._v("Example usage")])],1),t._v(" "),a("h3",{attrs:{id:"stepped"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stepped"}},[t._v("#")]),t._v(" Stepped")]),t._v(" "),a("p",[t._v("The following values are supported for "),a("code",[t._v("stepped")]),t._v(".")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("false")]),t._v(": No Step Interpolation (default)")]),t._v(" "),a("li",[a("code",[t._v("true")]),t._v(": Step-before Interpolation (eq. "),a("code",[t._v("'before'")]),t._v(")")]),t._v(" "),a("li",[a("code",[t._v("'before'")]),t._v(": Step-before Interpolation")]),t._v(" "),a("li",[a("code",[t._v("'after'")]),t._v(": Step-after Interpolation")]),t._v(" "),a("li",[a("code",[t._v("'middle'")]),t._v(": Step-middle Interpolation")])]),t._v(" "),a("p",[t._v("If the "),a("code",[t._v("stepped")]),t._v(" value is set to anything other than false, "),a("code",[t._v("tension")]),t._v(" will be ignored.")]),t._v(" "),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("It is common to want to apply a configuration setting to all created line charts. The global line chart settings are stored in "),a("code",[t._v("Chart.overrides.line")]),t._v(". Changing the global options only affects charts created after the change. Existing charts are not changed.")]),t._v(" "),a("p",[t._v("For example, to configure all line charts with "),a("code",[t._v("spanGaps = true")]),t._v(" you would do:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("overrides"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("line"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("spanGaps "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("All of the supported "),a("RouterLink",{attrs:{to:"/general/data-structures.html"}},[t._v("data structures")]),t._v(" can be used with line charts.")],1),t._v(" "),a("h2",{attrs:{id:"stacked-area-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stacked-area-chart"}},[t._v("#")]),t._v(" Stacked Area Chart")]),t._v(" "),a("p",[t._v("Line charts can be configured into stacked area charts by changing the settings on the y-axis to enable stacking. Stacked area charts can be used to show how one data trend is made up of a number of smaller pieces.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" stackedLine "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n y"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n stacked"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"vertical-line-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#vertical-line-chart"}},[t._v("#")]),t._v(" Vertical Line Chart")]),t._v(" "),a("p",[t._v("A vertical line chart is a variation on the horizontal line chart.\nTo achieve this you will have to set the "),a("code",[t._v("indexAxis")]),t._v(" property in the options object to "),a("code",[t._v("'y'")]),t._v(".\nThe default for this property is "),a("code",[t._v("'x'")]),t._v(" and thus will show horizontal lines.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n axis: 'y',\n label: 'My First Dataset',\n data: [65, 59, 80, 81, 56, 55, 40],\n fill: false,\n backgroundColor: [\n 'rgba(255, 99, 132, 0.2)',\n 'rgba(255, 159, 64, 0.2)',\n 'rgba(255, 205, 86, 0.2)',\n 'rgba(75, 192, 192, 0.2)',\n 'rgba(54, 162, 235, 0.2)',\n 'rgba(153, 102, 255, 0.2)',\n 'rgba(201, 203, 207, 0.2)'\n ],\n borderColor: [\n 'rgb(255, 99, 132)',\n 'rgb(255, 159, 64)',\n 'rgb(255, 205, 86)',\n 'rgb(75, 192, 192)',\n 'rgb(54, 162, 235)',\n 'rgb(153, 102, 255)',\n 'rgb(201, 203, 207)'\n ],\n borderWidth: 1\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n indexAxis: 'y',\n scales: {\n x: {\n beginAtZero: true\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h3",{attrs:{id:"config-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#config-options"}},[t._v("#")]),t._v(" Config Options")]),t._v(" "),a("p",[t._v("The configuration options for the vertical line chart are the same as for the "),a("a",{attrs:{href:"#configuration-options"}},[t._v("line chart")]),t._v(". However, any options specified on the x-axis in a line chart, are applied to the y-axis in a vertical line chart.")]),t._v(" "),a("h2",{attrs:{id:"internal-data-format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),a("p",[a("code",[t._v("{x, y}")])])],1)}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[138],{461:function(t,e,a){"use strict";a.r(e);var n=a(7),o=Object(n.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"line-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#line-chart"}},[t._v("#")]),t._v(" Line Chart")]),t._v(" "),a("p",[t._v("A line chart is a way of plotting data points on a line. Often, it is used to show trend data, or the comparison of two data sets.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First Dataset',\n data: [65, 59, 80, 81, 56, 55, 40],\n fill: false,\n borderColor: 'rgb(75, 192, 192)',\n tension: 0.1\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.line")]),t._v(" - options for all line datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.line")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#line-configuration"}},[t._v("line elements")])],1),t._v(" "),a("li",[a("code",[t._v("options.elements.point")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[t._v("point elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The line chart allows a number of properties to be specified for each dataset. These are used to set display properties for a specific dataset. For example, the colour of a line is generally set this way.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderCapStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'butt'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderDash")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("[]")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderDashOffset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0.0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderJoinStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'miter'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("3")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#cubicinterpolationmode"}},[a("code",[t._v("cubicInterpolationMode")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'default'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("object")]),t._v("|"),a("code",[t._v("object[]")]),t._v("| "),a("code",[t._v("number[]")]),t._v("|"),a("code",[t._v("string[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("fill")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("false")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderCapStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderDash")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderDashOffset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderJoinStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("indexAxis")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'x'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("label")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("''")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("order")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBackgroundColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBorderColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointHitRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBackgroundColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBorderColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("4")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("3")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointRotation")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")]),t._v("|"),a("code",[t._v("Image")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'circle'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#segment"}},[a("code",[t._v("segment")])])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("showLine")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("true")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("spanGaps")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("stack")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'line'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#stepped"}},[a("code",[t._v("stepped")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("false")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("tension")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("xAxisID")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[t._v("first x axis")])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("yAxisID")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[t._v("first y axis")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("indexAxis")])]),t._v(" "),a("td",[t._v("The base axis of the dataset. "),a("code",[t._v("'x'")]),t._v(" for horizontal lines and "),a("code",[t._v("'y'")]),t._v(" for vertical lines.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("label")])]),t._v(" "),a("td",[t._v("The label for the dataset which appears in the legend and tooltips.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("order")])]),t._v(" "),a("td",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip, and legend.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("stack")])]),t._v(" "),a("td",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack). "),a("a",{attrs:{href:"#stacked-area-charts"}},[t._v("more")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("xAxisID")])]),t._v(" "),a("td",[t._v("The ID of the x-axis to plot this dataset on.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("yAxisID")])]),t._v(" "),a("td",[t._v("The ID of the y-axis to plot this dataset on.")])])])]),t._v(" "),a("h3",{attrs:{id:"point-styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#point-styling"}},[t._v("#")]),t._v(" Point Styling")]),t._v(" "),a("p",[t._v("The style of each point can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("pointBackgroundColor")])]),t._v(" "),a("td",[t._v("The fill color for points.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointBorderColor")])]),t._v(" "),a("td",[t._v("The border color for points.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointBorderWidth")])]),t._v(" "),a("td",[t._v("The width of the point border in pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHitRadius")])]),t._v(" "),a("td",[t._v("The pixel size of the non-displayed point that reacts to mouse events.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointRadius")])]),t._v(" "),a("td",[t._v("The radius of the point shape. If set to 0, the point is not rendered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointRotation")])]),t._v(" "),a("td",[t._v("The rotation of the point in degrees.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",[t._v("Style of the point. "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-styles"}},[t._v("more...")])],1)])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback first to the dataset options then to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[a("code",[t._v("elements.point.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"line-styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#line-styling"}},[t._v("#")]),t._v(" Line Styling")]),t._v(" "),a("p",[t._v("The style of the line can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("The line fill color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderCapStyle")])]),t._v(" "),a("td",[t._v("Cap style of the line. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("The line color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderDash")])]),t._v(" "),a("td",[t._v("Length and spacing of dashes. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderDashOffset")])]),t._v(" "),a("td",[t._v("Offset for line dashes. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderJoinStyle")])]),t._v(" "),a("td",[t._v("Line joint style. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderWidth")])]),t._v(" "),a("td",[t._v("The line width (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("fill")])]),t._v(" "),a("td",[t._v("How to fill the area under the line. See "),a("RouterLink",{attrs:{to:"/charts/area.html"}},[t._v("area charts")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("tension")])]),t._v(" "),a("td",[t._v("Bezier curve tension of the line. Set to 0 to draw straightlines. This option is ignored if monotone cubic interpolation is used.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("showLine")])]),t._v(" "),a("td",[t._v("If false, the line is not drawn for this dataset.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("spanGaps")])]),t._v(" "),a("td",[t._v("If true, lines will be drawn between points with no or null data. If false, points with "),a("code",[t._v("null")]),t._v(" data will create a break in the line. Can also be a number specifying the maximum gap length to span. The unit of the value depends on the scale used.")])])])]),t._v(" "),a("p",[t._v("If the value is "),a("code",[t._v("undefined")]),t._v(", "),a("code",[t._v("showLine")]),t._v(" and "),a("code",[t._v("spanGaps")]),t._v(" fallback to the associated "),a("a",{attrs:{href:"#configuration-options"}},[t._v("chart configuration options")]),t._v(". The rest of the values fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#line-configuration"}},[a("code",[t._v("elements.line.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each point can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("pointHoverBackgroundColor")])]),t._v(" "),a("td",[t._v("Point background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverBorderColor")])]),t._v(" "),a("td",[t._v("Point border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverBorderWidth")])]),t._v(" "),a("td",[t._v("Border width of point when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverRadius")])]),t._v(" "),a("td",[t._v("The radius of the point when hovered.")])])])]),t._v(" "),a("h3",{attrs:{id:"cubicinterpolationmode"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cubicinterpolationmode"}},[t._v("#")]),t._v(" cubicInterpolationMode")]),t._v(" "),a("p",[t._v("The following interpolation modes are supported.")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'default'")])]),t._v(" "),a("li",[a("code",[t._v("'monotone'")])])]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("'default'")]),t._v(" algorithm uses a custom weighted cubic interpolation, which produces pleasant curves for all types of datasets.")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("'monotone'")]),t._v(" algorithm is more suited to "),a("code",[t._v("y = f(x)")]),t._v(" datasets: it preserves monotonicity (or piecewise monotonicity) of the dataset being interpolated, and ensures local extremums (if any) stay at input data points.")]),t._v(" "),a("p",[t._v("If left untouched ("),a("code",[t._v("undefined")]),t._v("), the global "),a("code",[t._v("options.elements.line.cubicInterpolationMode")]),t._v(" property is used.")]),t._v(" "),a("h3",{attrs:{id:"segment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#segment"}},[t._v("#")]),t._v(" Segment")]),t._v(" "),a("p",[t._v("Line segment styles can be overridden by scriptable options in the "),a("code",[t._v("segment")]),t._v(" object. Currently all of the "),a("code",[t._v("border*")]),t._v(" and "),a("code",[t._v("backgroundColor")]),t._v(" options are supported. The segment styles are resolved for each section of the line between each point. "),a("code",[t._v("undefined")]),t._v(" fallbacks to main line styles.")]),t._v(" "),a("p",[t._v("Context for the scriptable segment contains the following properties:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'segment'")])]),t._v(" "),a("li",[a("code",[t._v("p0")]),t._v(": first point element")]),t._v(" "),a("li",[a("code",[t._v("p1")]),t._v(": second point element")])]),t._v(" "),a("p",[a("RouterLink",{attrs:{to:"/samples/line/segments.html"}},[t._v("Example usage")])],1),t._v(" "),a("h3",{attrs:{id:"stepped"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stepped"}},[t._v("#")]),t._v(" Stepped")]),t._v(" "),a("p",[t._v("The following values are supported for "),a("code",[t._v("stepped")]),t._v(".")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("false")]),t._v(": No Step Interpolation (default)")]),t._v(" "),a("li",[a("code",[t._v("true")]),t._v(": Step-before Interpolation (eq. "),a("code",[t._v("'before'")]),t._v(")")]),t._v(" "),a("li",[a("code",[t._v("'before'")]),t._v(": Step-before Interpolation")]),t._v(" "),a("li",[a("code",[t._v("'after'")]),t._v(": Step-after Interpolation")]),t._v(" "),a("li",[a("code",[t._v("'middle'")]),t._v(": Step-middle Interpolation")])]),t._v(" "),a("p",[t._v("If the "),a("code",[t._v("stepped")]),t._v(" value is set to anything other than false, "),a("code",[t._v("tension")]),t._v(" will be ignored.")]),t._v(" "),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("It is common to want to apply a configuration setting to all created line charts. The global line chart settings are stored in "),a("code",[t._v("Chart.overrides.line")]),t._v(". Changing the global options only affects charts created after the change. Existing charts are not changed.")]),t._v(" "),a("p",[t._v("For example, to configure all line charts with "),a("code",[t._v("spanGaps = true")]),t._v(" you would do:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("overrides"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("line"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("spanGaps "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("All of the supported "),a("RouterLink",{attrs:{to:"/general/data-structures.html"}},[t._v("data structures")]),t._v(" can be used with line charts.")],1),t._v(" "),a("h2",{attrs:{id:"stacked-area-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stacked-area-chart"}},[t._v("#")]),t._v(" Stacked Area Chart")]),t._v(" "),a("p",[t._v("Line charts can be configured into stacked area charts by changing the settings on the y-axis to enable stacking. Stacked area charts can be used to show how one data trend is made up of a number of smaller pieces.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" stackedLine "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n y"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n stacked"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"vertical-line-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#vertical-line-chart"}},[t._v("#")]),t._v(" Vertical Line Chart")]),t._v(" "),a("p",[t._v("A vertical line chart is a variation on the horizontal line chart.\nTo achieve this you will have to set the "),a("code",[t._v("indexAxis")]),t._v(" property in the options object to "),a("code",[t._v("'y'")]),t._v(".\nThe default for this property is "),a("code",[t._v("'x'")]),t._v(" and thus will show horizontal lines.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [{\n axis: 'y',\n label: 'My First Dataset',\n data: [65, 59, 80, 81, 56, 55, 40],\n fill: false,\n backgroundColor: [\n 'rgba(255, 99, 132, 0.2)',\n 'rgba(255, 159, 64, 0.2)',\n 'rgba(255, 205, 86, 0.2)',\n 'rgba(75, 192, 192, 0.2)',\n 'rgba(54, 162, 235, 0.2)',\n 'rgba(153, 102, 255, 0.2)',\n 'rgba(201, 203, 207, 0.2)'\n ],\n borderColor: [\n 'rgb(255, 99, 132)',\n 'rgb(255, 159, 64)',\n 'rgb(255, 205, 86)',\n 'rgb(75, 192, 192)',\n 'rgb(54, 162, 235)',\n 'rgb(153, 102, 255)',\n 'rgb(201, 203, 207)'\n ],\n borderWidth: 1\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n indexAxis: 'y',\n scales: {\n x: {\n beginAtZero: true\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h3",{attrs:{id:"config-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#config-options"}},[t._v("#")]),t._v(" Config Options")]),t._v(" "),a("p",[t._v("The configuration options for the vertical line chart are the same as for the "),a("a",{attrs:{href:"#configuration-options"}},[t._v("line chart")]),t._v(". However, any options specified on the x-axis in a line chart, are applied to the y-axis in a vertical line chart.")]),t._v(" "),a("h2",{attrs:{id:"internal-data-format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),a("p",[a("code",[t._v("{x, y}")])])],1)}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/139.bc71089e.js b/docs/3.1.0/assets/js/139.990fd19a.js similarity index 99% rename from docs/3.1.0/assets/js/139.bc71089e.js rename to docs/3.1.0/assets/js/139.990fd19a.js index 01936d9f12..56f5a1dd87 100644 --- a/docs/3.1.0/assets/js/139.bc71089e.js +++ b/docs/3.1.0/assets/js/139.990fd19a.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[139],{464:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"mixed-chart-types"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#mixed-chart-types"}},[t._v("#")]),t._v(" Mixed Chart Types")]),t._v(" "),s("p",[t._v("With Chart.js, it is possible to create mixed charts that are a combination of two or more different chart types. A common example is a bar chart that also includes a line dataset.")]),t._v(" "),s("p",[t._v("When creating a mixed chart, we specify the chart type on each dataset.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" mixedChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Bar Dataset'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("40")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Line Dataset'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'January'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'February'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'March'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'April'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" options\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("At this point, we have a chart rendering how we'd like. It's important to note that the default options for the charts are only considered at the dataset level and are not merged at the chart level in this case.")]),t._v(" "),s("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'January',\n 'February',\n 'March',\n 'April'\n ],\n datasets: [{\n type: 'bar',\n label: 'Bar Dataset',\n data: [10, 20, 30, 40],\n borderColor: 'rgb(255, 99, 132)',\n backgroundColor: 'rgba(255, 99, 132, 0.2)'\n }, {\n type: 'line',\n label: 'Line Dataset',\n data: [50, 50, 50, 50],\n fill: false,\n borderColor: 'rgb(54, 162, 235)'\n }]\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: {\n y: {\n beginAtZero: true\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),s("h2",{attrs:{id:"drawing-order"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#drawing-order"}},[t._v("#")]),t._v(" Drawing order")]),t._v(" "),s("p",[t._v("By default, datasets are drawn such that the first one is top-most. This can be altered by specifying "),s("code",[t._v("order")]),t._v(" option to datasets. "),s("code",[t._v("order")]),t._v(" defaults to "),s("code",[t._v("0")]),t._v(". Note that this also affects stacking, legend, and tooltip. So it's essentially the same as reordering the datasets.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" mixedChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Bar Dataset'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("40")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// this dataset is drawn below")]),t._v("\n order"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Line Dataset'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// this dataset is drawn on top")]),t._v("\n order"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'January'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'February'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'March'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'April'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" options\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])],1)}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[139],{463:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"mixed-chart-types"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#mixed-chart-types"}},[t._v("#")]),t._v(" Mixed Chart Types")]),t._v(" "),s("p",[t._v("With Chart.js, it is possible to create mixed charts that are a combination of two or more different chart types. A common example is a bar chart that also includes a line dataset.")]),t._v(" "),s("p",[t._v("When creating a mixed chart, we specify the chart type on each dataset.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" mixedChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Bar Dataset'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("40")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Line Dataset'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'January'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'February'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'March'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'April'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" options\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("At this point, we have a chart rendering how we'd like. It's important to note that the default options for the charts are only considered at the dataset level and are not merged at the chart level in this case.")]),t._v(" "),s("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'January',\n 'February',\n 'March',\n 'April'\n ],\n datasets: [{\n type: 'bar',\n label: 'Bar Dataset',\n data: [10, 20, 30, 40],\n borderColor: 'rgb(255, 99, 132)',\n backgroundColor: 'rgba(255, 99, 132, 0.2)'\n }, {\n type: 'line',\n label: 'Line Dataset',\n data: [50, 50, 50, 50],\n fill: false,\n borderColor: 'rgb(54, 162, 235)'\n }]\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n scales: {\n y: {\n beginAtZero: true\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),s("h2",{attrs:{id:"drawing-order"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#drawing-order"}},[t._v("#")]),t._v(" Drawing order")]),t._v(" "),s("p",[t._v("By default, datasets are drawn such that the first one is top-most. This can be altered by specifying "),s("code",[t._v("order")]),t._v(" option to datasets. "),s("code",[t._v("order")]),t._v(" defaults to "),s("code",[t._v("0")]),t._v(". Note that this also affects stacking, legend, and tooltip. So it's essentially the same as reordering the datasets.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" mixedChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Bar Dataset'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("40")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// this dataset is drawn below")]),t._v("\n order"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Line Dataset'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// this dataset is drawn on top")]),t._v("\n order"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'January'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'February'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'March'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'April'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" options\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])],1)}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/14.081adf03.js b/docs/3.1.0/assets/js/14.081adf03.js new file mode 100644 index 0000000000..de90bc2fdd --- /dev/null +++ b/docs/3.1.0/assets/js/14.081adf03.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{348:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-basicplatform"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-basicplatform"}},[t._v("#")]),t._v(" Class: BasicPlatform")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[a("em",[t._v("BasePlatform")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("BasicPlatform")])])])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new BasicPlatform")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/basicplatform.html"}},[a("em",[t._v("BasicPlatform")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/basicplatform.html"}},[a("em",[t._v("BasicPlatform")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"acquirecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#acquirecontext"}},[t._v("#")]),t._v(" acquireContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("acquireContext")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("options?")]),t._v(": CanvasRenderingContext2DSettings): CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Called at chart construction time, returns a context2d instance implementing\nthe "),a("a",{attrs:{href:"https://www.w3.org/TR/2dcontext/",target:"_blank",rel:"noopener noreferrer"}},[t._v("W3C Canvas 2D Context API standard"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas from which to acquire context (platform specific)")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2DSettings")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart options")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1907",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1907"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addeventlistener"}},[t._v("#")]),t._v(" addEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Registers the specified listener on the given chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to listen for event")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to listen for")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Receives a notification (an object that implements the "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(" interface) when an event of the specified type occurs.")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1925",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1925"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdevicepixelratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdevicepixelratio"}},[t._v("#")]),t._v(" getDevicePixelRatio")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDevicePixelRatio")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("the current devicePixelRatio of the device this platform is connected to.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1936",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1936"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaximumsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaximumsize"}},[t._v("#")]),t._v(" getMaximumSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMaximumSize")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("width?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("aspectRatio?")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas for which to calculate the maximum size")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("aspectRatio?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("the maximum size available.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1944",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1944"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isattached"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isattached"}},[t._v("#")]),t._v(" isAttached")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isAttached")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the canvas is attached to the platform, false if not.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1949",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1949"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"releasecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#releasecontext"}},[t._v("#")]),t._v(" releaseContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("releaseContext")]),t._v("("),a("code",[t._v("context")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Called at chart destruction time, releases any resources associated to the context\npreviously returned by the acquireContext() method.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("context")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The context2d instance")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the method succeeded, else false")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1917",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1917"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removeeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removeeventlistener"}},[t._v("#")]),t._v(" removeEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Removes the specified listener previously registered with addEventListener.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to remove the listener")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to remove")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The listener function to remove from the event target.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1932",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1932"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/14.54149dbf.js b/docs/3.1.0/assets/js/14.54149dbf.js deleted file mode 100644 index 30d8f7d211..0000000000 --- a/docs/3.1.0/assets/js/14.54149dbf.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{340:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-basicplatform"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-basicplatform"}},[t._v("#")]),t._v(" Class: BasicPlatform")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[a("em",[t._v("BasePlatform")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("BasicPlatform")])])])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new BasicPlatform")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/basicplatform.html"}},[a("em",[t._v("BasicPlatform")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/basicplatform.html"}},[a("em",[t._v("BasicPlatform")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"acquirecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#acquirecontext"}},[t._v("#")]),t._v(" acquireContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("acquireContext")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("options?")]),t._v(": CanvasRenderingContext2DSettings): CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Called at chart construction time, returns a context2d instance implementing\nthe "),a("a",{attrs:{href:"https://www.w3.org/TR/2dcontext/",target:"_blank",rel:"noopener noreferrer"}},[t._v("W3C Canvas 2D Context API standard"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas from which to acquire context (platform specific)")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2DSettings")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart options")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1907",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1907"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addeventlistener"}},[t._v("#")]),t._v(" addEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Registers the specified listener on the given chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to listen for event")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to listen for")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Receives a notification (an object that implements the "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(" interface) when an event of the specified type occurs.")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1925",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1925"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdevicepixelratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdevicepixelratio"}},[t._v("#")]),t._v(" getDevicePixelRatio")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDevicePixelRatio")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("the current devicePixelRatio of the device this platform is connected to.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1936",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1936"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaximumsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaximumsize"}},[t._v("#")]),t._v(" getMaximumSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMaximumSize")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("width?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("aspectRatio?")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas for which to calculate the maximum size")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("aspectRatio?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("the maximum size available.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1944",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1944"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isattached"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isattached"}},[t._v("#")]),t._v(" isAttached")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isAttached")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the canvas is attached to the platform, false if not.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1949",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1949"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"releasecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#releasecontext"}},[t._v("#")]),t._v(" releaseContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("releaseContext")]),t._v("("),a("code",[t._v("context")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Called at chart destruction time, releases any resources associated to the context\npreviously returned by the acquireContext() method.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("context")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The context2d instance")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the method succeeded, else false")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1917",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1917"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removeeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removeeventlistener"}},[t._v("#")]),t._v(" removeEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Removes the specified listener previously registered with addEventListener.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to remove the listener")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to remove")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The listener function to remove from the event target.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1932",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1932"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/140.7b997f6c.js b/docs/3.1.0/assets/js/140.6046865f.js similarity index 99% rename from docs/3.1.0/assets/js/140.7b997f6c.js rename to docs/3.1.0/assets/js/140.6046865f.js index 84c13d68df..f66f5371e8 100644 --- a/docs/3.1.0/assets/js/140.7b997f6c.js +++ b/docs/3.1.0/assets/js/140.6046865f.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[140],{465:function(t,e,a){"use strict";a.r(e);var r=a(7),o=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"polar-area-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#polar-area-chart"}},[t._v("#")]),t._v(" Polar Area Chart")]),t._v(" "),a("p",[t._v("Polar area charts are similar to pie charts, but each segment has the same angle - the radius of the segment differs depending on the value.")]),t._v(" "),a("p",[t._v("This type of chart is often useful when we want to show a comparison data similar to a pie chart, but also show a scale of values for context.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Red',\n 'Green',\n 'Yellow',\n 'Grey',\n 'Blue'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [11, 16, 7, 3, 14],\n backgroundColor: [\n 'rgb(255, 99, 132)',\n 'rgb(75, 192, 192)',\n 'rgb(255, 205, 86)',\n 'rgb(201, 203, 207)',\n 'rgb(54, 162, 235)'\n ]\n }]\n};\n// \n\n// \nconst config = {\n type: 'polarArea',\n data: data,\n options: {}\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.polarArea")]),t._v(" - options for all polarArea datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.arc")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[t._v("arc elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The following options can be included in a polar area chart dataset to configure options for that specific dataset.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#border-alignment"}},[a("code",[t._v("borderAlign")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'center'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'#fff'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("2")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interations"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])])])]),t._v(" "),a("h3",{attrs:{id:"styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#styling"}},[t._v("#")]),t._v(" Styling")]),t._v(" "),a("p",[t._v("The style of each arc can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("arc background color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("arc border color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderWidth")])]),t._v(" "),a("td",[t._v("arc border width (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[a("code",[t._v("elements.arc.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"border-alignment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#border-alignment"}},[t._v("#")]),t._v(" Border Alignment")]),t._v(" "),a("p",[t._v("The following values are supported for "),a("code",[t._v("borderAlign")]),t._v(".")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'center'")]),t._v(" (default)")]),t._v(" "),a("li",[a("code",[t._v("'inner'")])])]),t._v(" "),a("p",[t._v("When "),a("code",[t._v("'center'")]),t._v(" is set, the borders of arcs next to each other will overlap. When "),a("code",[t._v("'inner'")]),t._v(" is set, it is guaranteed that all the borders do not overlap.")]),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each arc can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("hoverBackgroundColor")])]),t._v(" "),a("td",[t._v("arc background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderColor")])]),t._v(" "),a("td",[t._v("arc border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderWidth")])]),t._v(" "),a("td",[t._v("arc border width when hovered (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[a("code",[t._v("elements.arc.*")])]),t._v(" options.")],1),t._v(" "),a("h2",{attrs:{id:"config-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#config-options"}},[t._v("#")]),t._v(" Config Options")]),t._v(" "),a("p",[t._v("These are the customisation options specific to Polar Area charts. These options are looked up on access, and form together with the "),a("a",{attrs:{href:"#default-options"}},[t._v("global chart default options")]),t._v(" the options of the chart.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("animation.animateRotate")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, the chart will animate in with a rotation animation. This property is in the "),a("code",[t._v("options.animation")]),t._v(" object.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("animation.animateScale")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, will animate scaling the chart from the center outwards.")])])])]),t._v(" "),a("p",[t._v("The polar area chart uses the "),a("RouterLink",{attrs:{to:"/axes/radial/linear.html"}},[t._v("radialLinear")]),t._v(" scale. Additional configuration is provided via the scale.")],1),t._v(" "),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("We can also change these default values for each PolarArea type that is created, this object is available at "),a("code",[t._v("Chart.overrides.polarArea")]),t._v(". Changing the global options only affects charts created after the change. Existing charts are not changed.")]),t._v(" "),a("p",[t._v("For example, to configure all new polar area charts with "),a("code",[t._v("animateScale = false")]),t._v(" you would do:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("overrides"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("polarArea"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("animation"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("animateScale "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("For a polar area chart, datasets need to contain an array of data points. The data points should be a number, Chart.js will total all of the numbers and calculate the relative proportion of each.")]),t._v(" "),a("p",[t._v("You also need to specify an array of labels so that tooltips appear correctly for each slice.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("data "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// These labels appear in the legend and in the tooltips when hovering different arcs")]),t._v("\n labels"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Red'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Yellow'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Blue'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])],1)}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[140],{464:function(t,e,a){"use strict";a.r(e);var r=a(7),o=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"polar-area-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#polar-area-chart"}},[t._v("#")]),t._v(" Polar Area Chart")]),t._v(" "),a("p",[t._v("Polar area charts are similar to pie charts, but each segment has the same angle - the radius of the segment differs depending on the value.")]),t._v(" "),a("p",[t._v("This type of chart is often useful when we want to show a comparison data similar to a pie chart, but also show a scale of values for context.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Red',\n 'Green',\n 'Yellow',\n 'Grey',\n 'Blue'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [11, 16, 7, 3, 14],\n backgroundColor: [\n 'rgb(255, 99, 132)',\n 'rgb(75, 192, 192)',\n 'rgb(255, 205, 86)',\n 'rgb(201, 203, 207)',\n 'rgb(54, 162, 235)'\n ]\n }]\n};\n// \n\n// \nconst config = {\n type: 'polarArea',\n data: data,\n options: {}\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.polarArea")]),t._v(" - options for all polarArea datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.arc")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[t._v("arc elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The following options can be included in a polar area chart dataset to configure options for that specific dataset.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#border-alignment"}},[a("code",[t._v("borderAlign")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'center'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'#fff'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#styling"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("2")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interations"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])])])]),t._v(" "),a("h3",{attrs:{id:"styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#styling"}},[t._v("#")]),t._v(" Styling")]),t._v(" "),a("p",[t._v("The style of each arc can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("arc background color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("arc border color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderWidth")])]),t._v(" "),a("td",[t._v("arc border width (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[a("code",[t._v("elements.arc.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"border-alignment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#border-alignment"}},[t._v("#")]),t._v(" Border Alignment")]),t._v(" "),a("p",[t._v("The following values are supported for "),a("code",[t._v("borderAlign")]),t._v(".")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'center'")]),t._v(" (default)")]),t._v(" "),a("li",[a("code",[t._v("'inner'")])])]),t._v(" "),a("p",[t._v("When "),a("code",[t._v("'center'")]),t._v(" is set, the borders of arcs next to each other will overlap. When "),a("code",[t._v("'inner'")]),t._v(" is set, it is guaranteed that all the borders do not overlap.")]),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each arc can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("hoverBackgroundColor")])]),t._v(" "),a("td",[t._v("arc background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderColor")])]),t._v(" "),a("td",[t._v("arc border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("hoverBorderWidth")])]),t._v(" "),a("td",[t._v("arc border width when hovered (in pixels).")])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#arc-configuration"}},[a("code",[t._v("elements.arc.*")])]),t._v(" options.")],1),t._v(" "),a("h2",{attrs:{id:"config-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#config-options"}},[t._v("#")]),t._v(" Config Options")]),t._v(" "),a("p",[t._v("These are the customisation options specific to Polar Area charts. These options are looked up on access, and form together with the "),a("a",{attrs:{href:"#default-options"}},[t._v("global chart default options")]),t._v(" the options of the chart.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("animation.animateRotate")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, the chart will animate in with a rotation animation. This property is in the "),a("code",[t._v("options.animation")]),t._v(" object.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("animation.animateScale")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("If true, will animate scaling the chart from the center outwards.")])])])]),t._v(" "),a("p",[t._v("The polar area chart uses the "),a("RouterLink",{attrs:{to:"/axes/radial/linear.html"}},[t._v("radialLinear")]),t._v(" scale. Additional configuration is provided via the scale.")],1),t._v(" "),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("We can also change these default values for each PolarArea type that is created, this object is available at "),a("code",[t._v("Chart.overrides.polarArea")]),t._v(". Changing the global options only affects charts created after the change. Existing charts are not changed.")]),t._v(" "),a("p",[t._v("For example, to configure all new polar area charts with "),a("code",[t._v("animateScale = false")]),t._v(" you would do:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("overrides"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("polarArea"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("animation"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("animateScale "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("For a polar area chart, datasets need to contain an array of data points. The data points should be a number, Chart.js will total all of the numbers and calculate the relative proportion of each.")]),t._v(" "),a("p",[t._v("You also need to specify an array of labels so that tooltips appear correctly for each slice.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("data "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// These labels appear in the legend and in the tooltips when hovering different arcs")]),t._v("\n labels"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Red'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Yellow'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Blue'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])],1)}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/141.2bcbc9a2.js b/docs/3.1.0/assets/js/141.eeadecc8.js similarity index 99% rename from docs/3.1.0/assets/js/141.2bcbc9a2.js rename to docs/3.1.0/assets/js/141.eeadecc8.js index 453f683e23..0b56a7a240 100644 --- a/docs/3.1.0/assets/js/141.2bcbc9a2.js +++ b/docs/3.1.0/assets/js/141.eeadecc8.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[141],{466:function(t,e,a){"use strict";a.r(e);var n=a(7),r=Object(n.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"radar-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radar-chart"}},[t._v("#")]),t._v(" Radar Chart")]),t._v(" "),a("p",[t._v("A radar chart is a way of showing multiple data points and the variation between them.")]),t._v(" "),a("p",[t._v("They are often useful for comparing the points of two or more different data sets.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Eating',\n 'Drinking',\n 'Sleeping',\n 'Designing',\n 'Coding',\n 'Cycling',\n 'Running'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [65, 59, 90, 81, 56, 55, 40],\n fill: true,\n backgroundColor: 'rgba(255, 99, 132, 0.2)',\n borderColor: 'rgb(255, 99, 132)',\n pointBackgroundColor: 'rgb(255, 99, 132)',\n pointBorderColor: '#fff',\n pointHoverBackgroundColor: '#fff',\n pointHoverBorderColor: 'rgb(255, 99, 132)'\n }, {\n label: 'My Second Dataset',\n data: [28, 48, 40, 19, 96, 27, 100],\n fill: true,\n backgroundColor: 'rgba(54, 162, 235, 0.2)',\n borderColor: 'rgb(54, 162, 235)',\n pointBackgroundColor: 'rgb(54, 162, 235)',\n pointBorderColor: '#fff',\n pointHoverBackgroundColor: '#fff',\n pointHoverBorderColor: 'rgb(54, 162, 235)'\n }]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data: data,\n options: {\n elements: {\n line: {\n borderWidth: 3\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.line")]),t._v(" - options for all line datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.line")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#line-configuration"}},[t._v("line elements")])],1),t._v(" "),a("li",[a("code",[t._v("options.elements.point")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[t._v("point elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The radar chart allows a number of properties to be specified for each dataset. These are used to set display properties for a specific dataset. For example, the colour of a line is generally set this way.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderCapStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'butt'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderDash")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("[]")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderDashOffset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0.0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderJoinStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'miter'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("3")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderCapStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderDash")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderDashOffset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderJoinStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("fill")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("false")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("label")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("''")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("order")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("tension")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBackgroundColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBorderColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointHitRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBackgroundColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBorderColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("4")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("3")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointRotation")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")]),t._v("|"),a("code",[t._v("Image")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'circle'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("spanGaps")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("label")])]),t._v(" "),a("td",[t._v("The label for the dataset which appears in the legend and tooltips.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("order")])]),t._v(" "),a("td",[t._v("The drawing order of dataset.")])])])]),t._v(" "),a("h3",{attrs:{id:"point-styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#point-styling"}},[t._v("#")]),t._v(" Point Styling")]),t._v(" "),a("p",[t._v("The style of each point can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("pointBackgroundColor")])]),t._v(" "),a("td",[t._v("The fill color for points.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointBorderColor")])]),t._v(" "),a("td",[t._v("The border color for points.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointBorderWidth")])]),t._v(" "),a("td",[t._v("The width of the point border in pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHitRadius")])]),t._v(" "),a("td",[t._v("The pixel size of the non-displayed point that reacts to mouse events.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointRadius")])]),t._v(" "),a("td",[t._v("The radius of the point shape. If set to 0, the point is not rendered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointRotation")])]),t._v(" "),a("td",[t._v("The rotation of the point in degrees.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",[t._v("Style of the point. "),a("a",{attrs:{href:"../configuration/elements#point-styles"}},[t._v("more...")])])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback first to the dataset options then to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[a("code",[t._v("elements.point.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"line-styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#line-styling"}},[t._v("#")]),t._v(" Line Styling")]),t._v(" "),a("p",[t._v("The style of the line can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("The line fill color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderCapStyle")])]),t._v(" "),a("td",[t._v("Cap style of the line. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("The line color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderDash")])]),t._v(" "),a("td",[t._v("Length and spacing of dashes. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderDashOffset")])]),t._v(" "),a("td",[t._v("Offset for line dashes. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderJoinStyle")])]),t._v(" "),a("td",[t._v("Line joint style. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderWidth")])]),t._v(" "),a("td",[t._v("The line width (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("fill")])]),t._v(" "),a("td",[t._v("How to fill the area under the line. See "),a("RouterLink",{attrs:{to:"/charts/area.html"}},[t._v("area charts")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("tension")])]),t._v(" "),a("td",[t._v("Bezier curve tension of the line. Set to 0 to draw straight lines.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("spanGaps")])]),t._v(" "),a("td",[t._v("If true, lines will be drawn between points with no or null data. If false, points with "),a("code",[t._v("null")]),t._v(" data will create a break in the line.")])])])]),t._v(" "),a("p",[t._v("If the value is "),a("code",[t._v("undefined")]),t._v(", "),a("code",[t._v("spanGaps")]),t._v(" fallback to the associated "),a("a",{attrs:{href:"#configuration-options"}},[t._v("chart configuration options")]),t._v(". The rest of the values fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#line-configuration"}},[a("code",[t._v("elements.line.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each point can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("pointHoverBackgroundColor")])]),t._v(" "),a("td",[t._v("Point background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverBorderColor")])]),t._v(" "),a("td",[t._v("Point border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverBorderWidth")])]),t._v(" "),a("td",[t._v("Border width of point when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverRadius")])]),t._v(" "),a("td",[t._v("The radius of the point when hovered.")])])])]),t._v(" "),a("h2",{attrs:{id:"scale-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scale-options"}},[t._v("#")]),t._v(" Scale Options")]),t._v(" "),a("p",[t._v("The radar chart supports only a single scale. The options for this scale are defined in the "),a("code",[t._v("scale")]),t._v(" property.\nThe options for this scale are defined in the "),a("code",[t._v("scale")]),t._v(" property, which can be referenced from the "),a("a",{attrs:{href:"../axes/radial/linear"}},[t._v("Linear Radial Axis page")]),t._v(".")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("options "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n r"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n angleLines"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n suggestedMin"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n suggestedMax"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("100")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("It is common to want to apply a configuration setting to all created radar charts. The global radar chart settings are stored in "),a("code",[t._v("Chart.overrides.radar")]),t._v(". Changing the global options only affects charts created after the change. Existing charts are not changed.")]),t._v(" "),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("data")]),t._v(" property of a dataset for a radar chart is specified as an array of numbers. Each point in the data array corresponds to the label at the same index.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),a("p",[t._v("For a radar chart, to provide context of what each point means, we include an array of strings that show around each point in the chart.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Running'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Swimming'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Eating'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Cycling'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("4")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("h2",{attrs:{id:"internal-data-format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),a("p",[a("code",[t._v("{x, y}")])])],1)}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[141],{465:function(t,e,a){"use strict";a.r(e);var n=a(7),r=Object(n.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"radar-chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radar-chart"}},[t._v("#")]),t._v(" Radar Chart")]),t._v(" "),a("p",[t._v("A radar chart is a way of showing multiple data points and the variation between them.")]),t._v(" "),a("p",[t._v("They are often useful for comparing the points of two or more different data sets.")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Eating',\n 'Drinking',\n 'Sleeping',\n 'Designing',\n 'Coding',\n 'Cycling',\n 'Running'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [65, 59, 90, 81, 56, 55, 40],\n fill: true,\n backgroundColor: 'rgba(255, 99, 132, 0.2)',\n borderColor: 'rgb(255, 99, 132)',\n pointBackgroundColor: 'rgb(255, 99, 132)',\n pointBorderColor: '#fff',\n pointHoverBackgroundColor: '#fff',\n pointHoverBorderColor: 'rgb(255, 99, 132)'\n }, {\n label: 'My Second Dataset',\n data: [28, 48, 40, 19, 96, 27, 100],\n fill: true,\n backgroundColor: 'rgba(54, 162, 235, 0.2)',\n borderColor: 'rgb(54, 162, 235)',\n pointBackgroundColor: 'rgb(54, 162, 235)',\n pointBorderColor: '#fff',\n pointHoverBackgroundColor: '#fff',\n pointHoverBorderColor: 'rgb(54, 162, 235)'\n }]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data: data,\n options: {\n elements: {\n line: {\n borderWidth: 3\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"dataset-properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-properties"}},[t._v("#")]),t._v(" Dataset Properties")]),t._v(" "),a("p",[t._v("Namespaces:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data.datasets[index]")]),t._v(" - options for this dataset only")]),t._v(" "),a("li",[a("code",[t._v("options.datasets.line")]),t._v(" - options for all line datasets")]),t._v(" "),a("li",[a("code",[t._v("options.elements.line")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#line-configuration"}},[t._v("line elements")])],1),t._v(" "),a("li",[a("code",[t._v("options.elements.point")]),t._v(" - options for all "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[t._v("point elements")])],1),t._v(" "),a("li",[a("code",[t._v("options")]),t._v(" - options for the whole chart")])]),t._v(" "),a("p",[t._v("The radar chart allows a number of properties to be specified for each dataset. These are used to set display properties for a specific dataset. For example, the colour of a line is generally set this way.")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#indexable-options"}},[t._v("Indexable")])],1),t._v(" "),a("th",[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("backgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderCapStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'butt'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderDash")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("[]")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderDashOffset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0.0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderJoinStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("'miter'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("borderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("3")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBackgroundColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderCapStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderColor")])])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderDash")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderDashOffset")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderJoinStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("hoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("clip")])])]),t._v(" "),a("td",[a("code",[t._v("number")]),t._v("|"),a("code",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#data-structure"}},[a("code",[t._v("data")])])]),t._v(" "),a("td",[a("code",[t._v("number[]")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("strong",[t._v("required")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("fill")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")]),t._v("|"),a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("false")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("label")])])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("''")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#general"}},[a("code",[t._v("order")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("tension")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBackgroundColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBorderColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'rgba(0, 0, 0, 0.1)'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointHitRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBackgroundColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBorderColor")])])]),t._v(" "),a("td",[a("code",[t._v("Color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverBorderWidth")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("1")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#interactions"}},[a("code",[t._v("pointHoverRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("4")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointRadius")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("3")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointRotation")])])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("0")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#point-styling"}},[a("code",[t._v("pointStyle")])])]),t._v(" "),a("td",[a("code",[t._v("string")]),t._v("|"),a("code",[t._v("Image")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[a("code",[t._v("'circle'")])])]),t._v(" "),a("tr",[a("td",[a("a",{attrs:{href:"#line-styling"}},[a("code",[t._v("spanGaps")])])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("-")]),t._v(" "),a("td",[a("code",[t._v("undefined")])])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback to the scopes described in "),a("a",{attrs:{href:"../general/options"}},[t._v("option resolution")])]),t._v(" "),a("h3",{attrs:{id:"general"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#general"}},[t._v("#")]),t._v(" General")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("clip")])]),t._v(" "),a("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. "),a("code",[t._v("0")]),t._v(" = clip at chartArea. Clipping can also be configured per side: "),a("code",[t._v("clip: {left: 5, top: false, right: -2, bottom: 0}")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("label")])]),t._v(" "),a("td",[t._v("The label for the dataset which appears in the legend and tooltips.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("order")])]),t._v(" "),a("td",[t._v("The drawing order of dataset.")])])])]),t._v(" "),a("h3",{attrs:{id:"point-styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#point-styling"}},[t._v("#")]),t._v(" Point Styling")]),t._v(" "),a("p",[t._v("The style of each point can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("pointBackgroundColor")])]),t._v(" "),a("td",[t._v("The fill color for points.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointBorderColor")])]),t._v(" "),a("td",[t._v("The border color for points.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointBorderWidth")])]),t._v(" "),a("td",[t._v("The width of the point border in pixels.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHitRadius")])]),t._v(" "),a("td",[t._v("The pixel size of the non-displayed point that reacts to mouse events.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointRadius")])]),t._v(" "),a("td",[t._v("The radius of the point shape. If set to 0, the point is not rendered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointRotation")])]),t._v(" "),a("td",[t._v("The rotation of the point in degrees.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",[t._v("Style of the point. "),a("a",{attrs:{href:"../configuration/elements#point-styles"}},[t._v("more...")])])])])]),t._v(" "),a("p",[t._v("All these values, if "),a("code",[t._v("undefined")]),t._v(", fallback first to the dataset options then to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#point-configuration"}},[a("code",[t._v("elements.point.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"line-styling"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#line-styling"}},[t._v("#")]),t._v(" Line Styling")]),t._v(" "),a("p",[t._v("The style of the line can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("backgroundColor")])]),t._v(" "),a("td",[t._v("The line fill color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderCapStyle")])]),t._v(" "),a("td",[t._v("Cap style of the line. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderColor")])]),t._v(" "),a("td",[t._v("The line color.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderDash")])]),t._v(" "),a("td",[t._v("Length and spacing of dashes. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderDashOffset")])]),t._v(" "),a("td",[t._v("Offset for line dashes. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderJoinStyle")])]),t._v(" "),a("td",[t._v("Line joint style. See "),a("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),a("OutboundLink")],1),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("borderWidth")])]),t._v(" "),a("td",[t._v("The line width (in pixels).")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("fill")])]),t._v(" "),a("td",[t._v("How to fill the area under the line. See "),a("RouterLink",{attrs:{to:"/charts/area.html"}},[t._v("area charts")]),t._v(".")],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("tension")])]),t._v(" "),a("td",[t._v("Bezier curve tension of the line. Set to 0 to draw straight lines.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("spanGaps")])]),t._v(" "),a("td",[t._v("If true, lines will be drawn between points with no or null data. If false, points with "),a("code",[t._v("null")]),t._v(" data will create a break in the line.")])])])]),t._v(" "),a("p",[t._v("If the value is "),a("code",[t._v("undefined")]),t._v(", "),a("code",[t._v("spanGaps")]),t._v(" fallback to the associated "),a("a",{attrs:{href:"#configuration-options"}},[t._v("chart configuration options")]),t._v(". The rest of the values fallback to the associated "),a("RouterLink",{attrs:{to:"/configuration/elements.html#line-configuration"}},[a("code",[t._v("elements.line.*")])]),t._v(" options.")],1),t._v(" "),a("h3",{attrs:{id:"interactions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),a("p",[t._v("The interaction with each point can be controlled with the following properties:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("pointHoverBackgroundColor")])]),t._v(" "),a("td",[t._v("Point background color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverBorderColor")])]),t._v(" "),a("td",[t._v("Point border color when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverBorderWidth")])]),t._v(" "),a("td",[t._v("Border width of point when hovered.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointHoverRadius")])]),t._v(" "),a("td",[t._v("The radius of the point when hovered.")])])])]),t._v(" "),a("h2",{attrs:{id:"scale-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scale-options"}},[t._v("#")]),t._v(" Scale Options")]),t._v(" "),a("p",[t._v("The radar chart supports only a single scale. The options for this scale are defined in the "),a("code",[t._v("scale")]),t._v(" property.\nThe options for this scale are defined in the "),a("code",[t._v("scale")]),t._v(" property, which can be referenced from the "),a("a",{attrs:{href:"../axes/radial/linear"}},[t._v("Linear Radial Axis page")]),t._v(".")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("options "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n r"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n angleLines"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n suggestedMin"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n suggestedMax"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("100")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"default-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#default-options"}},[t._v("#")]),t._v(" Default Options")]),t._v(" "),a("p",[t._v("It is common to want to apply a configuration setting to all created radar charts. The global radar chart settings are stored in "),a("code",[t._v("Chart.overrides.radar")]),t._v(". Changing the global options only affects charts created after the change. Existing charts are not changed.")]),t._v(" "),a("h2",{attrs:{id:"data-structure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-structure"}},[t._v("#")]),t._v(" Data Structure")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("data")]),t._v(" property of a dataset for a radar chart is specified as an array of numbers. Each point in the data array corresponds to the label at the same index.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),a("p",[t._v("For a radar chart, to provide context of what each point means, we include an array of strings that show around each point in the chart.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Running'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Swimming'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Eating'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Cycling'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n datasets"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("4")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("h2",{attrs:{id:"internal-data-format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#internal-data-format"}},[t._v("#")]),t._v(" Internal data format")]),t._v(" "),a("p",[a("code",[t._v("{x, y}")])])],1)}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/142.24dcc764.js b/docs/3.1.0/assets/js/142.85d7ca48.js similarity index 100% rename from docs/3.1.0/assets/js/142.24dcc764.js rename to docs/3.1.0/assets/js/142.85d7ca48.js diff --git a/docs/3.1.0/assets/js/143.db6b73c5.js b/docs/3.1.0/assets/js/143.a5488c00.js similarity index 100% rename from docs/3.1.0/assets/js/143.db6b73c5.js rename to docs/3.1.0/assets/js/143.a5488c00.js diff --git a/docs/3.1.0/assets/js/144.1b680447.js b/docs/3.1.0/assets/js/144.0aead3ec.js similarity index 98% rename from docs/3.1.0/assets/js/144.1b680447.js rename to docs/3.1.0/assets/js/144.0aead3ec.js index fc14c91266..d6f1da4282 100644 --- a/docs/3.1.0/assets/js/144.1b680447.js +++ b/docs/3.1.0/assets/js/144.0aead3ec.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[144],{468:function(n,t,a){"use strict";a.r(t);var e=a(7),o=Object(e.a)({},(function(){var n=this,t=n.$createElement,a=n._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":n.$parent.slotKey}},[a("h1",{attrs:{id:"canvas-background"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#canvas-background"}},[n._v("#")]),n._v(" Canvas background")]),n._v(" "),a("p",[n._v("In some use cases you would want a background image or color over the whole canvas. There is no built-in support for this, the way you can achieve this is by writing a custom plugin.")]),n._v(" "),a("p",[n._v("In the two example plugins underneath here you can see how you can draw a color or image to the canvas as background. This way of giving the chart a background is only necessary if you want to export the chart with that specific background.\nFor normal use you can set the background more easily with "),a("a",{attrs:{href:"https://www.w3schools.com/cssref/css3_pr_background.asp",target:"_blank",rel:"noopener noreferrer"}},[n._v("CSS"),a("OutboundLink")],1),n._v(".")]),n._v(" "),a("tabs",[a("tab",{attrs:{name:"Color"}},[a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Red',\n 'Blue',\n 'Yellow'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [300, 50, 100],\n backgroundColor: [\n 'rgb(255, 99, 132)',\n 'rgb(54, 162, 235)',\n 'rgb(255, 205, 86)'\n ],\n hoverOffset: 4\n }]\n};\n// \n\n// \n// Note: changes to the plugin code is not reflected to the chart, because the plugin is loaded at chart construction time and editor changes only trigger an chart.update().\nconst plugin = {\n id: 'custom_canvas_background_color',\n beforeDraw: (chart) => {\n const ctx = chart.canvas.getContext('2d');\n ctx.save();\n ctx.globalCompositeOperation = 'destination-over';\n ctx.fillStyle = 'lightGreen';\n ctx.fillRect(0, 0, chart.width, chart.height);\n ctx.restore();\n }\n};\n// \n\n// \nconst config = {\n type: 'doughnut',\n data: data,\n plugins: [plugin],\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1),n._v(" "),a("tab",{attrs:{name:"Image"}},[a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Red',\n 'Blue',\n 'Yellow'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [300, 50, 100],\n backgroundColor: [\n 'rgb(255, 99, 132)',\n 'rgb(54, 162, 235)',\n 'rgb(255, 205, 86)'\n ],\n hoverOffset: 4\n }]\n};\n// \n\n// \n// Note: changes to the plugin code is not reflected to the chart, because the plugin is loaded at chart construction time and editor changes only trigger an chart.update().\nconst image = new Image();\nimage.src = 'https://www.chartjs.org/img/chartjs-logo.svg';\n\nconst plugin = {\n id: 'custom_canvas_background_image',\n beforeDraw: (chart) => {\n if (image.complete) {\n const ctx = chart.ctx;\n const {top, left, width, height} = chart.chartArea;\n const x = left + width / 2 - image.width / 2;\n const y = top + height / 2 - image.height / 2;\n ctx.drawImage(image, x, y);\n } else {\n image.onload = () => chart.draw();\n }\n }\n};\n// \n\n// \nconst config = {\n type: 'doughnut',\n data: data,\n plugins: [plugin],\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)],1)],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[144],{470:function(n,t,a){"use strict";a.r(t);var e=a(7),o=Object(e.a)({},(function(){var n=this,t=n.$createElement,a=n._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":n.$parent.slotKey}},[a("h1",{attrs:{id:"canvas-background"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#canvas-background"}},[n._v("#")]),n._v(" Canvas background")]),n._v(" "),a("p",[n._v("In some use cases you would want a background image or color over the whole canvas. There is no built-in support for this, the way you can achieve this is by writing a custom plugin.")]),n._v(" "),a("p",[n._v("In the two example plugins underneath here you can see how you can draw a color or image to the canvas as background. This way of giving the chart a background is only necessary if you want to export the chart with that specific background.\nFor normal use you can set the background more easily with "),a("a",{attrs:{href:"https://www.w3schools.com/cssref/css3_pr_background.asp",target:"_blank",rel:"noopener noreferrer"}},[n._v("CSS"),a("OutboundLink")],1),n._v(".")]),n._v(" "),a("tabs",[a("tab",{attrs:{name:"Color"}},[a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Red',\n 'Blue',\n 'Yellow'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [300, 50, 100],\n backgroundColor: [\n 'rgb(255, 99, 132)',\n 'rgb(54, 162, 235)',\n 'rgb(255, 205, 86)'\n ],\n hoverOffset: 4\n }]\n};\n// \n\n// \n// Note: changes to the plugin code is not reflected to the chart, because the plugin is loaded at chart construction time and editor changes only trigger an chart.update().\nconst plugin = {\n id: 'custom_canvas_background_color',\n beforeDraw: (chart) => {\n const ctx = chart.canvas.getContext('2d');\n ctx.save();\n ctx.globalCompositeOperation = 'destination-over';\n ctx.fillStyle = 'lightGreen';\n ctx.fillRect(0, 0, chart.width, chart.height);\n ctx.restore();\n }\n};\n// \n\n// \nconst config = {\n type: 'doughnut',\n data: data,\n plugins: [plugin],\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1),n._v(" "),a("tab",{attrs:{name:"Image"}},[a("chart-editor",{attrs:{code:"// \nconst data = {\n labels: [\n 'Red',\n 'Blue',\n 'Yellow'\n ],\n datasets: [{\n label: 'My First Dataset',\n data: [300, 50, 100],\n backgroundColor: [\n 'rgb(255, 99, 132)',\n 'rgb(54, 162, 235)',\n 'rgb(255, 205, 86)'\n ],\n hoverOffset: 4\n }]\n};\n// \n\n// \n// Note: changes to the plugin code is not reflected to the chart, because the plugin is loaded at chart construction time and editor changes only trigger an chart.update().\nconst image = new Image();\nimage.src = 'https://www.chartjs.org/img/chartjs-logo.svg';\n\nconst plugin = {\n id: 'custom_canvas_background_image',\n beforeDraw: (chart) => {\n if (image.complete) {\n const ctx = chart.ctx;\n const {top, left, width, height} = chart.chartArea;\n const x = left + width / 2 - image.width / 2;\n const y = top + height / 2 - image.height / 2;\n ctx.drawImage(image, x, y);\n } else {\n image.onload = () => chart.draw();\n }\n }\n};\n// \n\n// \nconst config = {\n type: 'doughnut',\n data: data,\n plugins: [plugin],\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)],1)],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/145.5713ccac.js b/docs/3.1.0/assets/js/145.5a75acb9.js similarity index 98% rename from docs/3.1.0/assets/js/145.5713ccac.js rename to docs/3.1.0/assets/js/145.5a75acb9.js index 186d6ee0eb..2adf2ace7c 100644 --- a/docs/3.1.0/assets/js/145.5713ccac.js +++ b/docs/3.1.0/assets/js/145.5a75acb9.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[145],{470:function(t,e,a){"use strict";a.r(e);var i=a(7),r=Object(i.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"data-decimation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-decimation"}},[t._v("#")]),t._v(" Data Decimation")]),t._v(" "),a("p",[t._v("The decimation plugin can be used with line charts to automatically decimate data at the start of the chart lifecycle. Before enabling this plugin, review the "),a("a",{attrs:{href:"#requirements"}},[t._v("requirements")]),t._v(" to ensure that it will work with the chart you want to create.")]),t._v(" "),a("h2",{attrs:{id:"configuration-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configuration-options"}},[t._v("#")]),t._v(" Configuration Options")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.plugins.decimation")]),t._v(", the global options for the plugin are defined in "),a("code",[t._v("Chart.defaults.plugins.decimation")]),t._v(".")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("enabled")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Is decimation enabled?")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("algorithm")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'min-max'")])]),t._v(" "),a("td",[t._v("Decimation algorithm to use. See the "),a("a",{attrs:{href:"#decimation-algorithms"}},[t._v("more...")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("samples")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("If the "),a("code",[t._v("'lttb'")]),t._v(" algorithm is used, this is the number of samples in the output dataset. Defaults to the canvas width to pick 1 sample per pixel.")])])])]),t._v(" "),a("h2",{attrs:{id:"decimation-algorithms"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#decimation-algorithms"}},[t._v("#")]),t._v(" Decimation Algorithms")]),t._v(" "),a("p",[t._v("Decimation algorithm to use for data. Options are:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'lttb'")])]),t._v(" "),a("li",[a("code",[t._v("'min-max'")])])]),t._v(" "),a("h3",{attrs:{id:"largest-triangle-three-bucket-lttb-decimation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#largest-triangle-three-bucket-lttb-decimation"}},[t._v("#")]),t._v(" Largest Triangle Three Bucket (LTTB) Decimation")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/sveinn-steinarsson/flot-downsample",target:"_blank",rel:"noopener noreferrer"}},[t._v("LTTB"),a("OutboundLink")],1),t._v(" decimation reduces the number of data points significantly. This is most useful for showing trends in data using only a few data points.")]),t._v(" "),a("h3",{attrs:{id:"min-max-decimation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#min-max-decimation"}},[t._v("#")]),t._v(" Min/Max Decimation")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://digital.ni.com/public.nsf/allkb/F694FFEEA0ACF282862576020075F784",target:"_blank",rel:"noopener noreferrer"}},[t._v("Min/max"),a("OutboundLink")],1),t._v(" decimation will preserve peaks in your data but could require up to 4 points for each pixel. This type of decimation would work well for a very noisy signal where you need to see data peaks.")]),t._v(" "),a("h2",{attrs:{id:"requirements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#requirements"}},[t._v("#")]),t._v(" Requirements")]),t._v(" "),a("p",[t._v("To use the decimation plugin, the following requirements must be met:")]),t._v(" "),a("ol",[a("li",[t._v("The dataset must have an "),a("RouterLink",{attrs:{to:"/charts/line.html#general"}},[a("code",[t._v("indexAxis")])]),t._v(" of "),a("code",[t._v("'x'")])],1),t._v(" "),a("li",[t._v("The dataset must be a line")]),t._v(" "),a("li",[t._v("The X axis for the dataset must be either a "),a("RouterLink",{attrs:{to:"/axes/cartesian/linear.html"}},[a("code",[t._v("'linear'")])]),t._v(" or "),a("RouterLink",{attrs:{to:"/axes/cartesian/time.html"}},[a("code",[t._v("'time'")])]),t._v(" type axis")],1),t._v(" "),a("li",[t._v("Data must not need parsing, i.e. "),a("RouterLink",{attrs:{to:"/general/data-structures.html#dataset-configuration"}},[a("code",[t._v("parsing")])]),t._v(" must be "),a("code",[t._v("false")])],1),t._v(" "),a("li",[t._v("The dataset object must be mutable. The plugin stores the original data as "),a("code",[t._v("dataset._data")]),t._v(" and then defines a new "),a("code",[t._v("data")]),t._v(" property on the dataset.")])]),t._v(" "),a("h2",{attrs:{id:"related-samples"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#related-samples"}},[t._v("#")]),t._v(" Related Samples")]),t._v(" "),a("ul",[a("li",[a("a",{attrs:{href:"../samples/advanced/data-decimation"}},[t._v("Data Decimation Sample")])])])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[145],{466:function(t,e,a){"use strict";a.r(e);var i=a(7),r=Object(i.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"data-decimation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data-decimation"}},[t._v("#")]),t._v(" Data Decimation")]),t._v(" "),a("p",[t._v("The decimation plugin can be used with line charts to automatically decimate data at the start of the chart lifecycle. Before enabling this plugin, review the "),a("a",{attrs:{href:"#requirements"}},[t._v("requirements")]),t._v(" to ensure that it will work with the chart you want to create.")]),t._v(" "),a("h2",{attrs:{id:"configuration-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configuration-options"}},[t._v("#")]),t._v(" Configuration Options")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.plugins.decimation")]),t._v(", the global options for the plugin are defined in "),a("code",[t._v("Chart.defaults.plugins.decimation")]),t._v(".")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("enabled")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Is decimation enabled?")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("algorithm")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'min-max'")])]),t._v(" "),a("td",[t._v("Decimation algorithm to use. See the "),a("a",{attrs:{href:"#decimation-algorithms"}},[t._v("more...")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("samples")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("If the "),a("code",[t._v("'lttb'")]),t._v(" algorithm is used, this is the number of samples in the output dataset. Defaults to the canvas width to pick 1 sample per pixel.")])])])]),t._v(" "),a("h2",{attrs:{id:"decimation-algorithms"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#decimation-algorithms"}},[t._v("#")]),t._v(" Decimation Algorithms")]),t._v(" "),a("p",[t._v("Decimation algorithm to use for data. Options are:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'lttb'")])]),t._v(" "),a("li",[a("code",[t._v("'min-max'")])])]),t._v(" "),a("h3",{attrs:{id:"largest-triangle-three-bucket-lttb-decimation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#largest-triangle-three-bucket-lttb-decimation"}},[t._v("#")]),t._v(" Largest Triangle Three Bucket (LTTB) Decimation")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://github.com/sveinn-steinarsson/flot-downsample",target:"_blank",rel:"noopener noreferrer"}},[t._v("LTTB"),a("OutboundLink")],1),t._v(" decimation reduces the number of data points significantly. This is most useful for showing trends in data using only a few data points.")]),t._v(" "),a("h3",{attrs:{id:"min-max-decimation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#min-max-decimation"}},[t._v("#")]),t._v(" Min/Max Decimation")]),t._v(" "),a("p",[a("a",{attrs:{href:"https://digital.ni.com/public.nsf/allkb/F694FFEEA0ACF282862576020075F784",target:"_blank",rel:"noopener noreferrer"}},[t._v("Min/max"),a("OutboundLink")],1),t._v(" decimation will preserve peaks in your data but could require up to 4 points for each pixel. This type of decimation would work well for a very noisy signal where you need to see data peaks.")]),t._v(" "),a("h2",{attrs:{id:"requirements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#requirements"}},[t._v("#")]),t._v(" Requirements")]),t._v(" "),a("p",[t._v("To use the decimation plugin, the following requirements must be met:")]),t._v(" "),a("ol",[a("li",[t._v("The dataset must have an "),a("RouterLink",{attrs:{to:"/charts/line.html#general"}},[a("code",[t._v("indexAxis")])]),t._v(" of "),a("code",[t._v("'x'")])],1),t._v(" "),a("li",[t._v("The dataset must be a line")]),t._v(" "),a("li",[t._v("The X axis for the dataset must be either a "),a("RouterLink",{attrs:{to:"/axes/cartesian/linear.html"}},[a("code",[t._v("'linear'")])]),t._v(" or "),a("RouterLink",{attrs:{to:"/axes/cartesian/time.html"}},[a("code",[t._v("'time'")])]),t._v(" type axis")],1),t._v(" "),a("li",[t._v("Data must not need parsing, i.e. "),a("RouterLink",{attrs:{to:"/general/data-structures.html#dataset-configuration"}},[a("code",[t._v("parsing")])]),t._v(" must be "),a("code",[t._v("false")])],1),t._v(" "),a("li",[t._v("The dataset object must be mutable. The plugin stores the original data as "),a("code",[t._v("dataset._data")]),t._v(" and then defines a new "),a("code",[t._v("data")]),t._v(" property on the dataset.")])]),t._v(" "),a("h2",{attrs:{id:"related-samples"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#related-samples"}},[t._v("#")]),t._v(" Related Samples")]),t._v(" "),a("ul",[a("li",[a("a",{attrs:{href:"../samples/advanced/data-decimation"}},[t._v("Data Decimation Sample")])])])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/146.25c98087.js b/docs/3.1.0/assets/js/146.f3118c3f.js similarity index 96% rename from docs/3.1.0/assets/js/146.25c98087.js rename to docs/3.1.0/assets/js/146.f3118c3f.js index a9215fe84a..bc40fcf687 100644 --- a/docs/3.1.0/assets/js/146.25c98087.js +++ b/docs/3.1.0/assets/js/146.f3118c3f.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[146],{471:function(e,t,i){"use strict";i.r(t);var a=i(7),o=Object(a.a)({},(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[i("h1",{attrs:{id:"device-pixel-ratio"}},[i("a",{staticClass:"header-anchor",attrs:{href:"#device-pixel-ratio"}},[e._v("#")]),e._v(" Device Pixel Ratio")]),e._v(" "),i("p",[e._v("By default the chart's canvas will use a 1:1 pixel ratio, unless the physical display has a higher pixel ratio (e.g. Retina displays).")]),e._v(" "),i("p",[e._v("For applications where a chart will be converted to a bitmap, or printed to a higher DPI medium it can be desirable to render the chart at a higher resolution than the default.")]),e._v(" "),i("p",[e._v("Setting "),i("code",[e._v("devicePixelRatio")]),e._v(" to a value other than 1 will force the canvas size to be scaled by that amount, relative to the container size. There should be no visible difference on screen; the difference will only be visible when the image is zoomed or printed.")]),e._v(" "),i("h2",{attrs:{id:"configuration-options"}},[i("a",{staticClass:"header-anchor",attrs:{href:"#configuration-options"}},[e._v("#")]),e._v(" Configuration Options")]),e._v(" "),i("p",[e._v("Namespace: "),i("code",[e._v("options")])]),e._v(" "),i("table",[i("thead",[i("tr",[i("th",[e._v("Name")]),e._v(" "),i("th",[e._v("Type")]),e._v(" "),i("th",[e._v("Default")]),e._v(" "),i("th",[e._v("Description")])])]),e._v(" "),i("tbody",[i("tr",[i("td",[i("code",[e._v("devicePixelRatio")])]),e._v(" "),i("td",[i("code",[e._v("number")])]),e._v(" "),i("td",[i("code",[e._v("window.devicePixelRatio")])]),e._v(" "),i("td",[e._v("Override the window's default devicePixelRatio.")])])])])])}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[146],{468:function(e,t,i){"use strict";i.r(t);var a=i(7),o=Object(a.a)({},(function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[i("h1",{attrs:{id:"device-pixel-ratio"}},[i("a",{staticClass:"header-anchor",attrs:{href:"#device-pixel-ratio"}},[e._v("#")]),e._v(" Device Pixel Ratio")]),e._v(" "),i("p",[e._v("By default the chart's canvas will use a 1:1 pixel ratio, unless the physical display has a higher pixel ratio (e.g. Retina displays).")]),e._v(" "),i("p",[e._v("For applications where a chart will be converted to a bitmap, or printed to a higher DPI medium it can be desirable to render the chart at a higher resolution than the default.")]),e._v(" "),i("p",[e._v("Setting "),i("code",[e._v("devicePixelRatio")]),e._v(" to a value other than 1 will force the canvas size to be scaled by that amount, relative to the container size. There should be no visible difference on screen; the difference will only be visible when the image is zoomed or printed.")]),e._v(" "),i("h2",{attrs:{id:"configuration-options"}},[i("a",{staticClass:"header-anchor",attrs:{href:"#configuration-options"}},[e._v("#")]),e._v(" Configuration Options")]),e._v(" "),i("p",[e._v("Namespace: "),i("code",[e._v("options")])]),e._v(" "),i("table",[i("thead",[i("tr",[i("th",[e._v("Name")]),e._v(" "),i("th",[e._v("Type")]),e._v(" "),i("th",[e._v("Default")]),e._v(" "),i("th",[e._v("Description")])])]),e._v(" "),i("tbody",[i("tr",[i("td",[i("code",[e._v("devicePixelRatio")])]),e._v(" "),i("td",[i("code",[e._v("number")])]),e._v(" "),i("td",[i("code",[e._v("window.devicePixelRatio")])]),e._v(" "),i("td",[e._v("Override the window's default devicePixelRatio.")])])])])])}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/147.ba6767cf.js b/docs/3.1.0/assets/js/147.21dc728b.js similarity index 99% rename from docs/3.1.0/assets/js/147.ba6767cf.js rename to docs/3.1.0/assets/js/147.21dc728b.js index 7a58031975..b61080bd01 100644 --- a/docs/3.1.0/assets/js/147.ba6767cf.js +++ b/docs/3.1.0/assets/js/147.21dc728b.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[147],{472:function(t,e,o){"use strict";o.r(e);var r=o(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[o("h1",{attrs:{id:"elements"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#elements"}},[t._v("#")]),t._v(" Elements")]),t._v(" "),o("p",[t._v("While chart types provide settings to configure the styling of each dataset, you sometimes want to style "),o("strong",[t._v("all datasets the same way")]),t._v(". A common example would be to stroke all of the bars in a bar chart with the same colour but change the fill per dataset. Options can be configured for four different types of elements: "),o("strong",[o("a",{attrs:{href:"#arc-configuration"}},[t._v("arc")])]),t._v(", "),o("strong",[o("a",{attrs:{href:"#line-configuration"}},[t._v("lines")])]),t._v(", "),o("strong",[o("a",{attrs:{href:"#point-configuration"}},[t._v("points")])]),t._v(", and "),o("strong",[o("a",{attrs:{href:"#bar-configuration"}},[t._v("bars")])]),t._v(". When set, these options apply to all objects of that type unless specifically overridden by the configuration attached to a dataset.")]),t._v(" "),o("h2",{attrs:{id:"global-configuration"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#global-configuration"}},[t._v("#")]),t._v(" Global Configuration")]),t._v(" "),o("p",[t._v("The element options can be specified per chart or globally. The global options for elements are defined in "),o("code",[t._v("Chart.defaults.elements")]),t._v(". For example, to set the border width of all bar charts globally you would do:")]),t._v(" "),o("div",{staticClass:"language-javascript extra-class"},[o("pre",{pre:!0,attrs:{class:"language-javascript"}},[o("code",[t._v("Chart"),o("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),o("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("elements"),o("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("bar"),o("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("borderWidth "),o("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),o("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),o("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),o("h2",{attrs:{id:"point-configuration"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#point-configuration"}},[t._v("#")]),t._v(" Point Configuration")]),t._v(" "),o("p",[t._v("Point elements are used to represent the points in a line, radar or bubble chart.")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.elements.point")]),t._v(", global point options: "),o("code",[t._v("Chart.defaults.elements.point")]),t._v(".")]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("radius")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("3")])]),t._v(" "),o("td",[t._v("Point radius.")])]),t._v(" "),o("tr",[o("td",[o("a",{attrs:{href:"#point-styles"}},[o("code",[t._v("pointStyle")])])]),t._v(" "),o("td",[o("code",[t._v("string")]),t._v("|"),o("code",[t._v("Image")])]),t._v(" "),o("td",[o("code",[t._v("'circle'")])]),t._v(" "),o("td",[t._v("Point style.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("rotation")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("Point rotation (in degrees).")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("backgroundColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.backgroundColor")])]),t._v(" "),o("td",[t._v("Point fill color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("1")])]),t._v(" "),o("td",[t._v("Point stroke width.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("'Chart.defaults.borderColor")])]),t._v(" "),o("td",[t._v("Point stroke color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("hitRadius")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("1")])]),t._v(" "),o("td",[t._v("Extra radius added to point radius for hit detection.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("hoverRadius")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("4")])]),t._v(" "),o("td",[t._v("Point radius when hovered.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("hoverBorderWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("1")])]),t._v(" "),o("td",[t._v("Stroke width when hovered.")])])])]),t._v(" "),o("h3",{attrs:{id:"point-styles"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#point-styles"}},[t._v("#")]),t._v(" Point Styles")]),t._v(" "),o("p",[t._v("The following values are supported:")]),t._v(" "),o("ul",[o("li",[o("code",[t._v("'circle'")])]),t._v(" "),o("li",[o("code",[t._v("'cross'")])]),t._v(" "),o("li",[o("code",[t._v("'crossRot'")])]),t._v(" "),o("li",[o("code",[t._v("'dash'")])]),t._v(" "),o("li",[o("code",[t._v("'line'")])]),t._v(" "),o("li",[o("code",[t._v("'rect'")])]),t._v(" "),o("li",[o("code",[t._v("'rectRounded'")])]),t._v(" "),o("li",[o("code",[t._v("'rectRot'")])]),t._v(" "),o("li",[o("code",[t._v("'star'")])]),t._v(" "),o("li",[o("code",[t._v("'triangle'")])])]),t._v(" "),o("p",[t._v("If the value is an image, that image is drawn on the canvas using "),o("a",{attrs:{href:"https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/drawImage",target:"_blank",rel:"noopener noreferrer"}},[t._v("drawImage"),o("OutboundLink")],1),t._v(".")]),t._v(" "),o("h2",{attrs:{id:"line-configuration"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#line-configuration"}},[t._v("#")]),t._v(" Line Configuration")]),t._v(" "),o("p",[t._v("Line elements are used to represent the line in a line chart.")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.elements.line")]),t._v(", global line options: "),o("code",[t._v("Chart.defaults.elements.line")]),t._v(".")]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("tension")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("Bézier curve tension ("),o("code",[t._v("0")]),t._v(" for no Bézier curves).")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("backgroundColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.backgroundColor")])]),t._v(" "),o("td",[t._v("Line fill color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("3")])]),t._v(" "),o("td",[t._v("Line stroke width.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.borderColor")])]),t._v(" "),o("td",[t._v("Line stroke color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderCapStyle")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'butt'")])]),t._v(" "),o("td",[t._v("Line cap style. See "),o("a",{attrs:{href:"https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/lineCap",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),o("OutboundLink")],1),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderDash")])]),t._v(" "),o("td",[o("code",[t._v("number[]")])]),t._v(" "),o("td",[o("code",[t._v("[]")])]),t._v(" "),o("td",[t._v("Line dash. See "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),o("OutboundLink")],1),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderDashOffset")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0.0")])]),t._v(" "),o("td",[t._v("Line dash offset. See "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),o("OutboundLink")],1),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderJoinStyle")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'miter'")])]),t._v(" "),o("td",[t._v("Line join style. See "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),o("OutboundLink")],1),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("capBezierPoints")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[o("code",[t._v("true")]),t._v(" to keep Bézier control inside the chart, "),o("code",[t._v("false")]),t._v(" for no restriction.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("cubicInterpolationMode")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'default'")])]),t._v(" "),o("td",[t._v("Interpolation mode to apply. "),o("RouterLink",{attrs:{to:"/configuration/charts/line.md/#cubicinterpolationmode"}},[t._v("See more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("fill")])]),t._v(" "),o("td",[o("code",[t._v("boolean")]),t._v("|"),o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("How to fill the area under the line. See "),o("RouterLink",{attrs:{to:"/charts/area.html#filling-modes"}},[t._v("area charts")]),t._v(".")],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("stepped")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("code",[t._v("true")]),t._v(" to show the line as a stepped line ("),o("code",[t._v("tension")]),t._v(" will be ignored).")])])])]),t._v(" "),o("h2",{attrs:{id:"bar-configuration"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#bar-configuration"}},[t._v("#")]),t._v(" Bar Configuration")]),t._v(" "),o("p",[t._v("Bar elements are used to represent the bars in a bar chart.")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.elements.bar")]),t._v(", global bar options: "),o("code",[t._v("Chart.defaults.elements.bar")]),t._v(".")]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("backgroundColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.backgroundColor")])]),t._v(" "),o("td",[t._v("Bar fill color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("Bar stroke width.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.borderColor")])]),t._v(" "),o("td",[t._v("Bar stroke color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderSkipped")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'start'")])]),t._v(" "),o("td",[t._v("Skipped (excluded) border: "),o("code",[t._v("'start'")]),t._v(", "),o("code",[t._v("'end'")]),t._v(", "),o("code",[t._v("'bottom'")]),t._v(", "),o("code",[t._v("'left'")]),t._v(", "),o("code",[t._v("'top'")]),t._v(" or "),o("code",[t._v("'right'")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderRadius")])]),t._v(" "),o("td",[o("code",[t._v("number")]),t._v("|"),o("code",[t._v("object")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("The bar border radius (in pixels).")])]),t._v(" "),o("tr",[o("td",[o("a",{attrs:{href:"#point-styles"}},[o("code",[t._v("pointStyle")])])]),t._v(" "),o("td",[o("code",[t._v("string")]),t._v("|"),o("code",[t._v("Image")])]),t._v(" "),o("td",[o("code",[t._v("'circle'")])]),t._v(" "),o("td",[t._v("Style of the point for legend.")])])])]),t._v(" "),o("h2",{attrs:{id:"arc-configuration"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#arc-configuration"}},[t._v("#")]),t._v(" Arc Configuration")]),t._v(" "),o("p",[t._v("Arcs are used in the polar area, doughnut and pie charts.")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.elements.arc")]),t._v(", global arc options: "),o("code",[t._v("Chart.defaults.elements.arc")]),t._v(".")]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("angle")]),t._v(" - for polar only")]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("circumference / (arc count)")])]),t._v(" "),o("td",[t._v("Arc angle to cover.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("backgroundColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.backgroundColor")])]),t._v(" "),o("td",[t._v("Arc fill color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderAlign")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'center'")])]),t._v(" "),o("td",[t._v("Arc stroke alignment.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("'#fff'")])]),t._v(" "),o("td",[t._v("Arc stroke color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("2")])]),t._v(" "),o("td",[t._v("Arc stroke width.")])])])])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[147],{473:function(t,e,o){"use strict";o.r(e);var r=o(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[o("h1",{attrs:{id:"elements"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#elements"}},[t._v("#")]),t._v(" Elements")]),t._v(" "),o("p",[t._v("While chart types provide settings to configure the styling of each dataset, you sometimes want to style "),o("strong",[t._v("all datasets the same way")]),t._v(". A common example would be to stroke all of the bars in a bar chart with the same colour but change the fill per dataset. Options can be configured for four different types of elements: "),o("strong",[o("a",{attrs:{href:"#arc-configuration"}},[t._v("arc")])]),t._v(", "),o("strong",[o("a",{attrs:{href:"#line-configuration"}},[t._v("lines")])]),t._v(", "),o("strong",[o("a",{attrs:{href:"#point-configuration"}},[t._v("points")])]),t._v(", and "),o("strong",[o("a",{attrs:{href:"#bar-configuration"}},[t._v("bars")])]),t._v(". When set, these options apply to all objects of that type unless specifically overridden by the configuration attached to a dataset.")]),t._v(" "),o("h2",{attrs:{id:"global-configuration"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#global-configuration"}},[t._v("#")]),t._v(" Global Configuration")]),t._v(" "),o("p",[t._v("The element options can be specified per chart or globally. The global options for elements are defined in "),o("code",[t._v("Chart.defaults.elements")]),t._v(". For example, to set the border width of all bar charts globally you would do:")]),t._v(" "),o("div",{staticClass:"language-javascript extra-class"},[o("pre",{pre:!0,attrs:{class:"language-javascript"}},[o("code",[t._v("Chart"),o("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),o("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("elements"),o("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("bar"),o("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("borderWidth "),o("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),o("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),o("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),o("h2",{attrs:{id:"point-configuration"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#point-configuration"}},[t._v("#")]),t._v(" Point Configuration")]),t._v(" "),o("p",[t._v("Point elements are used to represent the points in a line, radar or bubble chart.")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.elements.point")]),t._v(", global point options: "),o("code",[t._v("Chart.defaults.elements.point")]),t._v(".")]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("radius")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("3")])]),t._v(" "),o("td",[t._v("Point radius.")])]),t._v(" "),o("tr",[o("td",[o("a",{attrs:{href:"#point-styles"}},[o("code",[t._v("pointStyle")])])]),t._v(" "),o("td",[o("code",[t._v("string")]),t._v("|"),o("code",[t._v("Image")])]),t._v(" "),o("td",[o("code",[t._v("'circle'")])]),t._v(" "),o("td",[t._v("Point style.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("rotation")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("Point rotation (in degrees).")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("backgroundColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.backgroundColor")])]),t._v(" "),o("td",[t._v("Point fill color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("1")])]),t._v(" "),o("td",[t._v("Point stroke width.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("'Chart.defaults.borderColor")])]),t._v(" "),o("td",[t._v("Point stroke color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("hitRadius")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("1")])]),t._v(" "),o("td",[t._v("Extra radius added to point radius for hit detection.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("hoverRadius")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("4")])]),t._v(" "),o("td",[t._v("Point radius when hovered.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("hoverBorderWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("1")])]),t._v(" "),o("td",[t._v("Stroke width when hovered.")])])])]),t._v(" "),o("h3",{attrs:{id:"point-styles"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#point-styles"}},[t._v("#")]),t._v(" Point Styles")]),t._v(" "),o("p",[t._v("The following values are supported:")]),t._v(" "),o("ul",[o("li",[o("code",[t._v("'circle'")])]),t._v(" "),o("li",[o("code",[t._v("'cross'")])]),t._v(" "),o("li",[o("code",[t._v("'crossRot'")])]),t._v(" "),o("li",[o("code",[t._v("'dash'")])]),t._v(" "),o("li",[o("code",[t._v("'line'")])]),t._v(" "),o("li",[o("code",[t._v("'rect'")])]),t._v(" "),o("li",[o("code",[t._v("'rectRounded'")])]),t._v(" "),o("li",[o("code",[t._v("'rectRot'")])]),t._v(" "),o("li",[o("code",[t._v("'star'")])]),t._v(" "),o("li",[o("code",[t._v("'triangle'")])])]),t._v(" "),o("p",[t._v("If the value is an image, that image is drawn on the canvas using "),o("a",{attrs:{href:"https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/drawImage",target:"_blank",rel:"noopener noreferrer"}},[t._v("drawImage"),o("OutboundLink")],1),t._v(".")]),t._v(" "),o("h2",{attrs:{id:"line-configuration"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#line-configuration"}},[t._v("#")]),t._v(" Line Configuration")]),t._v(" "),o("p",[t._v("Line elements are used to represent the line in a line chart.")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.elements.line")]),t._v(", global line options: "),o("code",[t._v("Chart.defaults.elements.line")]),t._v(".")]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("tension")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("Bézier curve tension ("),o("code",[t._v("0")]),t._v(" for no Bézier curves).")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("backgroundColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.backgroundColor")])]),t._v(" "),o("td",[t._v("Line fill color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("3")])]),t._v(" "),o("td",[t._v("Line stroke width.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.borderColor")])]),t._v(" "),o("td",[t._v("Line stroke color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderCapStyle")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'butt'")])]),t._v(" "),o("td",[t._v("Line cap style. See "),o("a",{attrs:{href:"https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/lineCap",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),o("OutboundLink")],1),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderDash")])]),t._v(" "),o("td",[o("code",[t._v("number[]")])]),t._v(" "),o("td",[o("code",[t._v("[]")])]),t._v(" "),o("td",[t._v("Line dash. See "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),o("OutboundLink")],1),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderDashOffset")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0.0")])]),t._v(" "),o("td",[t._v("Line dash offset. See "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),o("OutboundLink")],1),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderJoinStyle")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'miter'")])]),t._v(" "),o("td",[t._v("Line join style. See "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),o("OutboundLink")],1),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("capBezierPoints")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("true")])]),t._v(" "),o("td",[o("code",[t._v("true")]),t._v(" to keep Bézier control inside the chart, "),o("code",[t._v("false")]),t._v(" for no restriction.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("cubicInterpolationMode")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'default'")])]),t._v(" "),o("td",[t._v("Interpolation mode to apply. "),o("RouterLink",{attrs:{to:"/configuration/charts/line.md/#cubicinterpolationmode"}},[t._v("See more...")])],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("fill")])]),t._v(" "),o("td",[o("code",[t._v("boolean")]),t._v("|"),o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[t._v("How to fill the area under the line. See "),o("RouterLink",{attrs:{to:"/charts/area.html#filling-modes"}},[t._v("area charts")]),t._v(".")],1)]),t._v(" "),o("tr",[o("td",[o("code",[t._v("stepped")])]),t._v(" "),o("td",[o("code",[t._v("boolean")])]),t._v(" "),o("td",[o("code",[t._v("false")])]),t._v(" "),o("td",[o("code",[t._v("true")]),t._v(" to show the line as a stepped line ("),o("code",[t._v("tension")]),t._v(" will be ignored).")])])])]),t._v(" "),o("h2",{attrs:{id:"bar-configuration"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#bar-configuration"}},[t._v("#")]),t._v(" Bar Configuration")]),t._v(" "),o("p",[t._v("Bar elements are used to represent the bars in a bar chart.")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.elements.bar")]),t._v(", global bar options: "),o("code",[t._v("Chart.defaults.elements.bar")]),t._v(".")]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("backgroundColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.backgroundColor")])]),t._v(" "),o("td",[t._v("Bar fill color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("Bar stroke width.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.borderColor")])]),t._v(" "),o("td",[t._v("Bar stroke color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderSkipped")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'start'")])]),t._v(" "),o("td",[t._v("Skipped (excluded) border: "),o("code",[t._v("'start'")]),t._v(", "),o("code",[t._v("'end'")]),t._v(", "),o("code",[t._v("'bottom'")]),t._v(", "),o("code",[t._v("'left'")]),t._v(", "),o("code",[t._v("'top'")]),t._v(" or "),o("code",[t._v("'right'")]),t._v(".")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderRadius")])]),t._v(" "),o("td",[o("code",[t._v("number")]),t._v("|"),o("code",[t._v("object")])]),t._v(" "),o("td",[o("code",[t._v("0")])]),t._v(" "),o("td",[t._v("The bar border radius (in pixels).")])]),t._v(" "),o("tr",[o("td",[o("a",{attrs:{href:"#point-styles"}},[o("code",[t._v("pointStyle")])])]),t._v(" "),o("td",[o("code",[t._v("string")]),t._v("|"),o("code",[t._v("Image")])]),t._v(" "),o("td",[o("code",[t._v("'circle'")])]),t._v(" "),o("td",[t._v("Style of the point for legend.")])])])]),t._v(" "),o("h2",{attrs:{id:"arc-configuration"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#arc-configuration"}},[t._v("#")]),t._v(" Arc Configuration")]),t._v(" "),o("p",[t._v("Arcs are used in the polar area, doughnut and pie charts.")]),t._v(" "),o("p",[t._v("Namespace: "),o("code",[t._v("options.elements.arc")]),t._v(", global arc options: "),o("code",[t._v("Chart.defaults.elements.arc")]),t._v(".")]),t._v(" "),o("table",[o("thead",[o("tr",[o("th",[t._v("Name")]),t._v(" "),o("th",[t._v("Type")]),t._v(" "),o("th",[t._v("Default")]),t._v(" "),o("th",[t._v("Description")])])]),t._v(" "),o("tbody",[o("tr",[o("td",[o("code",[t._v("angle")]),t._v(" - for polar only")]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("circumference / (arc count)")])]),t._v(" "),o("td",[t._v("Arc angle to cover.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("backgroundColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("Chart.defaults.backgroundColor")])]),t._v(" "),o("td",[t._v("Arc fill color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderAlign")])]),t._v(" "),o("td",[o("code",[t._v("string")])]),t._v(" "),o("td",[o("code",[t._v("'center'")])]),t._v(" "),o("td",[t._v("Arc stroke alignment.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderColor")])]),t._v(" "),o("td",[o("RouterLink",{attrs:{to:"/general/colors.html"}},[o("code",[t._v("Color")])])],1),t._v(" "),o("td",[o("code",[t._v("'#fff'")])]),t._v(" "),o("td",[t._v("Arc stroke color.")])]),t._v(" "),o("tr",[o("td",[o("code",[t._v("borderWidth")])]),t._v(" "),o("td",[o("code",[t._v("number")])]),t._v(" "),o("td",[o("code",[t._v("2")])]),t._v(" "),o("td",[t._v("Arc stroke width.")])])])])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/148.d66dcd2c.js b/docs/3.1.0/assets/js/148.ce54af98.js similarity index 99% rename from docs/3.1.0/assets/js/148.d66dcd2c.js rename to docs/3.1.0/assets/js/148.ce54af98.js index 67735efcd5..614180a5e5 100644 --- a/docs/3.1.0/assets/js/148.d66dcd2c.js +++ b/docs/3.1.0/assets/js/148.ce54af98.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[148],{473:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"configuration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#configuration"}},[t._v("#")]),t._v(" Configuration")]),t._v(" "),s("p",[t._v("The configuration is used to change how the chart behaves. There are properties to control styling, fonts, the legend, etc.")]),t._v(" "),s("h2",{attrs:{id:"global-configuration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#global-configuration"}},[t._v("#")]),t._v(" Global Configuration")]),t._v(" "),s("p",[t._v("This concept was introduced in Chart.js 1.0 to keep configuration "),s("a",{attrs:{href:"https://en.wikipedia.org/wiki/Don%27t_repeat_yourself",target:"_blank",rel:"noopener noreferrer"}},[t._v("DRY"),s("OutboundLink")],1),t._v(", and allow for changing options globally across chart types, avoiding the need to specify options for each instance, or the default for a particular chart type.")]),t._v(" "),s("p",[t._v("Chart.js merges the options object passed to the chart with the global configuration using chart type defaults and scales defaults appropriately. This way you can be as specific as you would like in your individual chart configuration, while still changing the defaults for all chart types where applicable. The global general options are defined in "),s("code",[t._v("Chart.defaults")]),t._v(". The defaults for each chart type are discussed in the documentation for that chart type.")]),t._v(" "),s("p",[t._v("The following example would set the interaction mode to 'nearest' for all charts where this was not overridden by the chart type defaults or the options passed to the constructor on creation.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("interaction"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("mode "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'nearest'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Interaction mode is set to nearest because it was not overridden here")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chartInteractionModeNearest "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This chart would have the interaction mode that was passed in")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chartDifferentInteractionMode "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Overrides the global setting")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'index'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"dataset-configuration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#dataset-configuration"}},[t._v("#")]),t._v(" Dataset Configuration")]),t._v(" "),s("p",[t._v("Options may be configured directly on the dataset. The dataset options can be changed at multiple different levels. See "),s("RouterLink",{attrs:{to:"/general/options.html#dataset-level-options"}},[t._v("options")]),t._v(" for details on how the options are resolved.")],1),t._v(" "),s("p",[t._v("The following example would set the "),s("code",[t._v("showLine")]),t._v(" option to 'false' for all line datasets except for those overridden by options passed to the dataset on creation.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Do not show lines for all datasets by default")]),t._v("\nChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("line"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("showLine "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This chart would show a line only for the third dataset")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n showLine"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// overrides the `line` dataset default")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'scatter'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 'line' dataset default does not affect this dataset since it's a 'scatter'")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[148],{471:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"configuration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#configuration"}},[t._v("#")]),t._v(" Configuration")]),t._v(" "),s("p",[t._v("The configuration is used to change how the chart behaves. There are properties to control styling, fonts, the legend, etc.")]),t._v(" "),s("h2",{attrs:{id:"global-configuration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#global-configuration"}},[t._v("#")]),t._v(" Global Configuration")]),t._v(" "),s("p",[t._v("This concept was introduced in Chart.js 1.0 to keep configuration "),s("a",{attrs:{href:"https://en.wikipedia.org/wiki/Don%27t_repeat_yourself",target:"_blank",rel:"noopener noreferrer"}},[t._v("DRY"),s("OutboundLink")],1),t._v(", and allow for changing options globally across chart types, avoiding the need to specify options for each instance, or the default for a particular chart type.")]),t._v(" "),s("p",[t._v("Chart.js merges the options object passed to the chart with the global configuration using chart type defaults and scales defaults appropriately. This way you can be as specific as you would like in your individual chart configuration, while still changing the defaults for all chart types where applicable. The global general options are defined in "),s("code",[t._v("Chart.defaults")]),t._v(". The defaults for each chart type are discussed in the documentation for that chart type.")]),t._v(" "),s("p",[t._v("The following example would set the interaction mode to 'nearest' for all charts where this was not overridden by the chart type defaults or the options passed to the constructor on creation.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("interaction"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("mode "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'nearest'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Interaction mode is set to nearest because it was not overridden here")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chartInteractionModeNearest "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This chart would have the interaction mode that was passed in")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chartDifferentInteractionMode "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Overrides the global setting")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'index'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"dataset-configuration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#dataset-configuration"}},[t._v("#")]),t._v(" Dataset Configuration")]),t._v(" "),s("p",[t._v("Options may be configured directly on the dataset. The dataset options can be changed at multiple different levels. See "),s("RouterLink",{attrs:{to:"/general/options.html#dataset-level-options"}},[t._v("options")]),t._v(" for details on how the options are resolved.")],1),t._v(" "),s("p",[t._v("The following example would set the "),s("code",[t._v("showLine")]),t._v(" option to 'false' for all line datasets except for those overridden by options passed to the dataset on creation.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Do not show lines for all datasets by default")]),t._v("\nChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("line"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("showLine "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This chart would show a line only for the third dataset")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n showLine"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// overrides the `line` dataset default")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'scatter'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 'line' dataset default does not affect this dataset since it's a 'scatter'")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/149.106987ae.js b/docs/3.1.0/assets/js/149.bdcfdade.js similarity index 99% rename from docs/3.1.0/assets/js/149.106987ae.js rename to docs/3.1.0/assets/js/149.bdcfdade.js index 4fed27bb61..668e69ccfd 100644 --- a/docs/3.1.0/assets/js/149.106987ae.js +++ b/docs/3.1.0/assets/js/149.bdcfdade.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[149],{474:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"interactions"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),s("p",[t._v("Namespace: "),s("code",[t._v("options.interaction")]),t._v(", the global interaction configuration is at "),s("code",[t._v("Chart.defaults.interaction")]),t._v(". To configure which events trigger chart interactions, see "),s("a",{attrs:{href:"#events"}},[t._v("events")]),t._v(".")]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Default")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("mode")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'nearest'")])]),t._v(" "),s("td",[t._v("Sets which elements appear in the interaction. See "),s("a",{attrs:{href:"#modes"}},[t._v("Interaction Modes")]),t._v(" for details.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("intersect")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[s("code",[t._v("true")])]),t._v(" "),s("td",[t._v("if true, the interaction mode only applies when the mouse position intersects an item on the chart.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("axis")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'x'")])]),t._v(" "),s("td",[t._v("Can be set to "),s("code",[t._v("'x'")]),t._v(", "),s("code",[t._v("'y'")]),t._v(", or "),s("code",[t._v("'xy'")]),t._v(" to define which directions are used in calculating distances. Defaults to "),s("code",[t._v("'x'")]),t._v(" for "),s("code",[t._v("'index'")]),t._v(" mode and "),s("code",[t._v("'xy'")]),t._v(" in "),s("code",[t._v("dataset")]),t._v(" and "),s("code",[t._v("'nearest'")]),t._v(" modes.")])])])]),t._v(" "),s("p",[t._v("By default, these options apply to both the hover and tooltip interactions. The same options can be set in the "),s("code",[t._v("options.hover")]),t._v(" namespace, in which case they will only affect the hover interaction. Similarly, the options can be set in the "),s("code",[t._v("options.plugins.tooltip")]),t._v(" namespace to independently configure the tooltip interactions.")]),t._v(" "),s("h2",{attrs:{id:"events"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#events"}},[t._v("#")]),t._v(" Events")]),t._v(" "),s("p",[t._v("The following properties define how the chart interacts with events.\nNamespace: "),s("code",[t._v("options")])]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Default")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("events")])]),t._v(" "),s("td",[s("code",[t._v("string[]")])]),t._v(" "),s("td",[s("code",[t._v("['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove']")])]),t._v(" "),s("td",[t._v("The "),s("code",[t._v("events")]),t._v(" option defines the browser events that the chart should listen to for. Each of these events trigger hover and are passed to plugins. "),s("a",{attrs:{href:"#event-option"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("onHover")])]),t._v(" "),s("td",[s("code",[t._v("function")])]),t._v(" "),s("td",[s("code",[t._v("null")])]),t._v(" "),s("td",[t._v("Called when any of the events fire over chartArea. Passed the event, an array of active elements (bars, points, etc), and the chart.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("onClick")])]),t._v(" "),s("td",[s("code",[t._v("function")])]),t._v(" "),s("td",[s("code",[t._v("null")])]),t._v(" "),s("td",[t._v("Called if the event is of type "),s("code",[t._v("'mouseup'")]),t._v(", "),s("code",[t._v("'click'")]),t._v(" or '"),s("code",[t._v("'contextmenu'")]),t._v(" over chartArea. Passed the event, an array of active elements, and the chart.")])])])]),t._v(" "),s("h3",{attrs:{id:"event-option"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#event-option"}},[t._v("#")]),t._v(" Event Option")]),t._v(" "),s("p",[t._v("For example, to have the chart only respond to click events, you could do:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This chart will not respond to mousemove, etc")]),t._v("\n events"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'click'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("Events for each plugin can be further limited by defining (allowed) events array in plugin options:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// All of these (default) events trigger a hover and are passed to all plugins,")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// unless limited at plugin options")]),t._v("\n events"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'mousemove'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'mouseout'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'click'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'touchstart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'touchmove'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltip"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Tooltip will only receive click events")]),t._v("\n events"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'click'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"converting-events-to-data-values"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#converting-events-to-data-values"}},[t._v("#")]),t._v(" Converting Events to Data Values")]),t._v(" "),s("p",[t._v("A common occurrence is taking an event, such as a click, and finding the data coordinates on the chart where the event occurred. Chart.js provides helpers that make this a straightforward process.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("onClick")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("e")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" canvasPosition "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("helpers"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getRelativePosition")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("e"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Substitute the appropriate scale IDs")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" dataX "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getValueForPixel")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("canvasPosition"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" dataY "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getValueForPixel")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("canvasPosition"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"modes"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#modes"}},[t._v("#")]),t._v(" Modes")]),t._v(" "),s("p",[t._v("When configuring the interaction with the graph via "),s("code",[t._v("interaction")]),t._v(", "),s("code",[t._v("hover")]),t._v(" or "),s("code",[t._v("tooltips")]),t._v(", a number of different modes are available.")]),t._v(" "),s("p",[s("code",[t._v("options.hover")]),t._v(" and "),s("code",[t._v("options.plugins.tooltip")]),t._v(" extend from "),s("code",[t._v("options.interaction")]),t._v(". So if "),s("code",[t._v("mode")]),t._v(", "),s("code",[t._v("intersect")]),t._v(" or any other common settings are configured only in "),s("code",[t._v("options.interaction")]),t._v(", both hover and tooltips obey that.")]),t._v(" "),s("p",[t._v("The modes are detailed below and how they behave in conjunction with the "),s("code",[t._v("intersect")]),t._v(" setting.")]),t._v(" "),s("h3",{attrs:{id:"point"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#point"}},[t._v("#")]),t._v(" point")]),t._v(" "),s("p",[t._v("Finds all of the items that intersect the point.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'point'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"nearest"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#nearest"}},[t._v("#")]),t._v(" nearest")]),t._v(" "),s("p",[t._v("Gets the items that are at the nearest distance to the point. The nearest item is determined based on the distance to the center of the chart item (point, bar). You can use the "),s("code",[t._v("axis")]),t._v(" setting to define which directions are used in distance calculation. If "),s("code",[t._v("intersect")]),t._v(" is true, this is only triggered when the mouse position intersects an item in the graph. This is very useful for combo charts where points are hidden behind bars.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'nearest'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"index"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),s("p",[t._v("Finds item at the same index. If the "),s("code",[t._v("intersect")]),t._v(" setting is true, the first intersecting item is used to determine the index in the data. If "),s("code",[t._v("intersect")]),t._v(" false the nearest item, in the x direction, is used to determine the index.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'index'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("To use index mode in a chart like the horizontal bar chart, where we search along the y direction, you can use the "),s("code",[t._v("axis")]),t._v(" setting introduced in v2.7.0. By setting this value to "),s("code",[t._v("'y'")]),t._v(" on the y direction is used.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'index'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n axis"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'y'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"dataset"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[t._v("#")]),t._v(" dataset")]),t._v(" "),s("p",[t._v("Finds items in the same dataset. If the "),s("code",[t._v("intersect")]),t._v(" setting is true, the first intersecting item is used to determine the index in the data. If "),s("code",[t._v("intersect")]),t._v(" false the nearest item is used to determine the index.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'dataset'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"x"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),s("p",[t._v("Returns all items that would intersect based on the "),s("code",[t._v("X")]),t._v(" coordinate of the position only. Would be useful for a vertical cursor implementation. Note that this only applies to cartesian charts.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'x'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"y"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),s("p",[t._v("Returns all items that would intersect based on the "),s("code",[t._v("Y")]),t._v(" coordinate of the position. This would be useful for a horizontal cursor implementation. Note that this only applies to cartesian charts.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'y'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[149],{472:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"interactions"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#interactions"}},[t._v("#")]),t._v(" Interactions")]),t._v(" "),s("p",[t._v("Namespace: "),s("code",[t._v("options.interaction")]),t._v(", the global interaction configuration is at "),s("code",[t._v("Chart.defaults.interaction")]),t._v(". To configure which events trigger chart interactions, see "),s("a",{attrs:{href:"#events"}},[t._v("events")]),t._v(".")]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Default")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("mode")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'nearest'")])]),t._v(" "),s("td",[t._v("Sets which elements appear in the interaction. See "),s("a",{attrs:{href:"#modes"}},[t._v("Interaction Modes")]),t._v(" for details.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("intersect")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[s("code",[t._v("true")])]),t._v(" "),s("td",[t._v("if true, the interaction mode only applies when the mouse position intersects an item on the chart.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("axis")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'x'")])]),t._v(" "),s("td",[t._v("Can be set to "),s("code",[t._v("'x'")]),t._v(", "),s("code",[t._v("'y'")]),t._v(", or "),s("code",[t._v("'xy'")]),t._v(" to define which directions are used in calculating distances. Defaults to "),s("code",[t._v("'x'")]),t._v(" for "),s("code",[t._v("'index'")]),t._v(" mode and "),s("code",[t._v("'xy'")]),t._v(" in "),s("code",[t._v("dataset")]),t._v(" and "),s("code",[t._v("'nearest'")]),t._v(" modes.")])])])]),t._v(" "),s("p",[t._v("By default, these options apply to both the hover and tooltip interactions. The same options can be set in the "),s("code",[t._v("options.hover")]),t._v(" namespace, in which case they will only affect the hover interaction. Similarly, the options can be set in the "),s("code",[t._v("options.plugins.tooltip")]),t._v(" namespace to independently configure the tooltip interactions.")]),t._v(" "),s("h2",{attrs:{id:"events"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#events"}},[t._v("#")]),t._v(" Events")]),t._v(" "),s("p",[t._v("The following properties define how the chart interacts with events.\nNamespace: "),s("code",[t._v("options")])]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Default")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("events")])]),t._v(" "),s("td",[s("code",[t._v("string[]")])]),t._v(" "),s("td",[s("code",[t._v("['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove']")])]),t._v(" "),s("td",[t._v("The "),s("code",[t._v("events")]),t._v(" option defines the browser events that the chart should listen to for. Each of these events trigger hover and are passed to plugins. "),s("a",{attrs:{href:"#event-option"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("onHover")])]),t._v(" "),s("td",[s("code",[t._v("function")])]),t._v(" "),s("td",[s("code",[t._v("null")])]),t._v(" "),s("td",[t._v("Called when any of the events fire over chartArea. Passed the event, an array of active elements (bars, points, etc), and the chart.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("onClick")])]),t._v(" "),s("td",[s("code",[t._v("function")])]),t._v(" "),s("td",[s("code",[t._v("null")])]),t._v(" "),s("td",[t._v("Called if the event is of type "),s("code",[t._v("'mouseup'")]),t._v(", "),s("code",[t._v("'click'")]),t._v(" or '"),s("code",[t._v("'contextmenu'")]),t._v(" over chartArea. Passed the event, an array of active elements, and the chart.")])])])]),t._v(" "),s("h3",{attrs:{id:"event-option"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#event-option"}},[t._v("#")]),t._v(" Event Option")]),t._v(" "),s("p",[t._v("For example, to have the chart only respond to click events, you could do:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This chart will not respond to mousemove, etc")]),t._v("\n events"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'click'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("Events for each plugin can be further limited by defining (allowed) events array in plugin options:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// All of these (default) events trigger a hover and are passed to all plugins,")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// unless limited at plugin options")]),t._v("\n events"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'mousemove'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'mouseout'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'click'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'touchstart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'touchmove'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltip"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Tooltip will only receive click events")]),t._v("\n events"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'click'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"converting-events-to-data-values"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#converting-events-to-data-values"}},[t._v("#")]),t._v(" Converting Events to Data Values")]),t._v(" "),s("p",[t._v("A common occurrence is taking an event, such as a click, and finding the data coordinates on the chart where the event occurred. Chart.js provides helpers that make this a straightforward process.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("onClick")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("e")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" canvasPosition "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("helpers"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getRelativePosition")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("e"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Substitute the appropriate scale IDs")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" dataX "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getValueForPixel")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("canvasPosition"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" dataY "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getValueForPixel")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("canvasPosition"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"modes"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#modes"}},[t._v("#")]),t._v(" Modes")]),t._v(" "),s("p",[t._v("When configuring the interaction with the graph via "),s("code",[t._v("interaction")]),t._v(", "),s("code",[t._v("hover")]),t._v(" or "),s("code",[t._v("tooltips")]),t._v(", a number of different modes are available.")]),t._v(" "),s("p",[s("code",[t._v("options.hover")]),t._v(" and "),s("code",[t._v("options.plugins.tooltip")]),t._v(" extend from "),s("code",[t._v("options.interaction")]),t._v(". So if "),s("code",[t._v("mode")]),t._v(", "),s("code",[t._v("intersect")]),t._v(" or any other common settings are configured only in "),s("code",[t._v("options.interaction")]),t._v(", both hover and tooltips obey that.")]),t._v(" "),s("p",[t._v("The modes are detailed below and how they behave in conjunction with the "),s("code",[t._v("intersect")]),t._v(" setting.")]),t._v(" "),s("h3",{attrs:{id:"point"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#point"}},[t._v("#")]),t._v(" point")]),t._v(" "),s("p",[t._v("Finds all of the items that intersect the point.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'point'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"nearest"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#nearest"}},[t._v("#")]),t._v(" nearest")]),t._v(" "),s("p",[t._v("Gets the items that are at the nearest distance to the point. The nearest item is determined based on the distance to the center of the chart item (point, bar). You can use the "),s("code",[t._v("axis")]),t._v(" setting to define which directions are used in distance calculation. If "),s("code",[t._v("intersect")]),t._v(" is true, this is only triggered when the mouse position intersects an item in the graph. This is very useful for combo charts where points are hidden behind bars.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'nearest'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"index"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),s("p",[t._v("Finds item at the same index. If the "),s("code",[t._v("intersect")]),t._v(" setting is true, the first intersecting item is used to determine the index in the data. If "),s("code",[t._v("intersect")]),t._v(" false the nearest item, in the x direction, is used to determine the index.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'index'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("To use index mode in a chart like the horizontal bar chart, where we search along the y direction, you can use the "),s("code",[t._v("axis")]),t._v(" setting introduced in v2.7.0. By setting this value to "),s("code",[t._v("'y'")]),t._v(" on the y direction is used.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'index'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n axis"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'y'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"dataset"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[t._v("#")]),t._v(" dataset")]),t._v(" "),s("p",[t._v("Finds items in the same dataset. If the "),s("code",[t._v("intersect")]),t._v(" setting is true, the first intersecting item is used to determine the index in the data. If "),s("code",[t._v("intersect")]),t._v(" false the nearest item is used to determine the index.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'dataset'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"x"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),s("p",[t._v("Returns all items that would intersect based on the "),s("code",[t._v("X")]),t._v(" coordinate of the position only. Would be useful for a vertical cursor implementation. Note that this only applies to cartesian charts.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'x'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"y"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),s("p",[t._v("Returns all items that would intersect based on the "),s("code",[t._v("Y")]),t._v(" coordinate of the position. This would be useful for a horizontal cursor implementation. Note that this only applies to cartesian charts.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n interaction"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n mode"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'y'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/15.41c18415.js b/docs/3.1.0/assets/js/15.41c18415.js deleted file mode 100644 index fb22d34356..0000000000 --- a/docs/3.1.0/assets/js/15.41c18415.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{342:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-chart-ttype-tdata-tlabel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-chart-ttype-tdata-tlabel"}},[t._v("#")]),t._v(" Class: Chart")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TType[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TLabel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new Chart")]),t._v("("),a("code",[t._v("item")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartitem"}},[a("em",[t._v("ChartItem")])]),t._v(", "),a("code",[t._v("config")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartconfiguration.html"}},[a("em",[t._v("ChartConfiguration")])]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("defaultDataPoint")]),t._v("][]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TLabel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("item")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartitem"}},[a("em",[t._v("ChartItem")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("config")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartconfiguration.html"}},[a("em",[t._v("ChartConfiguration")])]),t._v("")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L455",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:455"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"aspectratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aspectratio"}},[t._v("#")]),t._v(" aspectRatio")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("aspectRatio")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L447",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:447"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"attached"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#attached"}},[t._v("#")]),t._v(" attached")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("attached")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L452",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:452"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"boxes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#boxes"}},[t._v("#")]),t._v(" boxes")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("boxes")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L448",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:448"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"canvas"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#canvas"}},[t._v("#")]),t._v(" canvas")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("canvas")]),t._v(": HTMLCanvasElement")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L442",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:442"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chartarea"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chartarea"}},[t._v("#")]),t._v(" chartArea")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L450",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:450"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"config"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#config"}},[t._v("#")]),t._v(" config")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("config")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartconfiguration.html"}},[a("em",[t._v("ChartConfiguration")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L444",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:444"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ctx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ctx"}},[t._v("#")]),t._v(" ctx")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("ctx")]),t._v(": CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L443",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:443"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"currentdevicepixelratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#currentdevicepixelratio"}},[t._v("#")]),t._v(" currentDevicePixelRatio")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("currentDevicePixelRatio")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L449",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:449"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"data"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[t._v("#")]),t._v(" data")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("data")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[a("em",[t._v("ChartData")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L454",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:454"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"height"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("height")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L446",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:446"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"id"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("id")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L441",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:441"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("options")]),t._v(": "),a("em",[t._v("DeepPartial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[a("em",[t._v("CoreChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[a("em",[t._v("ElementChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[a("em",[t._v("PluginChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#datasetchartoptions"}},[a("em",[t._v("DatasetChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#scalechartoptions"}},[a("em",[t._v("ScaleChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("chartOptions")]),t._v("]>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L455",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:455"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"platform"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#platform"}},[t._v("#")]),t._v(" platform")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("platform")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[a("em",[t._v("BasePlatform")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L440",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:440"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scales"}},[t._v("#")]),t._v(" scales")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("scales")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L451",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:451"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"width"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("width")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L445",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:445"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"defaults"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defaults"}},[t._v("#")]),t._v(" defaults")]),t._v(" "),a("p",[t._v("▪ "),a("code",[t._v("Static")]),t._v(" "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("defaults")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[a("em",[t._v("Defaults")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L494",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:494"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"instances"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#instances"}},[t._v("#")]),t._v(" instances")]),t._v(" "),a("p",[t._v("▪ "),a("code",[t._v("Static")]),t._v(" "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("instances")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L497",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:497"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"overrides"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#overrides"}},[t._v("#")]),t._v(" overrides")]),t._v(" "),a("p",[t._v("▪ "),a("code",[t._v("Static")]),t._v(" "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("overrides")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#overrides"}},[a("em",[t._v("Overrides")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L495",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:495"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"registry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#registry"}},[t._v("#")]),t._v(" registry")]),t._v(" "),a("p",[t._v("▪ "),a("code",[t._v("Static")]),t._v(" "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("registry")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/registry.html"}},[a("em",[t._v("Registry")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L498",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:498"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"version"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#version"}},[t._v("#")]),t._v(" version")]),t._v(" "),a("p",[t._v("▪ "),a("code",[t._v("Static")]),t._v(" "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("version")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L496",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:496"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"bindevents"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bindevents"}},[t._v("#")]),t._v(" bindEvents")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("bindEvents")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L488",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:488"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildorupdatecontrollers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildorupdatecontrollers"}},[t._v("#")]),t._v(" buildOrUpdateControllers")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildOrUpdateControllers")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L465",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:465"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildorupdatescales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildorupdatescales"}},[t._v("#")]),t._v(" buildOrUpdateScales")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildOrUpdateScales")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L464",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:464"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"clear"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#clear"}},[t._v("#")]),t._v(" clear")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("clear")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L459",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:459"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"destroy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#destroy"}},[t._v("#")]),t._v(" destroy")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("destroy")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L486",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:486"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L469",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:469"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ensurescaleshaveids"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ensurescaleshaveids"}},[t._v("#")]),t._v(" ensureScalesHaveIDs")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("ensureScalesHaveIDs")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L463",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:463"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getactiveelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getactiveelements"}},[t._v("#")]),t._v(" getActiveElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getActiveElements")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L483",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:483"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdatavisibility"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdatavisibility"}},[t._v("#")]),t._v(" getDataVisibility")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDataVisibility")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L479",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:479"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdatasetmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdatasetmeta"}},[t._v("#")]),t._v(" getDatasetMeta")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDatasetMeta")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L474",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:474"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getelementsateventformode"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getelementsateventformode"}},[t._v("#")]),t._v(" getElementsAtEventForMode")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getElementsAtEventForMode")]),t._v("("),a("code",[t._v("e")]),t._v(": Event, "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("options")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[a("em",[t._v("InteractionOptions")])]),t._v(", "),a("code",[t._v("useFinalPosition")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[a("em",[t._v("InteractionItem")])]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("e")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Event")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[a("em",[t._v("InteractionOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[a("em",[t._v("InteractionItem")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L471",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:471"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getsortedvisibledatasetmetas"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getsortedvisibledatasetmetas"}},[t._v("#")]),t._v(" getSortedVisibleDatasetMetas")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getSortedVisibleDatasetMetas")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L473",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:473"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getvisibledatasetcount"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getvisibledatasetcount"}},[t._v("#")]),t._v(" getVisibleDatasetCount")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getVisibleDatasetCount")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L475",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:475"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hide"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hide"}},[t._v("#")]),t._v(" hide")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hide")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L480",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:480"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isdatasetvisible"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isdatasetvisible"}},[t._v("#")]),t._v(" isDatasetVisible")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isDatasetVisible")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L476",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:476"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"notifyplugins"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#notifyplugins"}},[t._v("#")]),t._v(" notifyPlugins")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("notifyPlugins")]),t._v("("),a("code",[t._v("hook")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("args?")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("hook")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L492",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:492"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"render"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#render"}},[t._v("#")]),t._v(" render")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("render")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L468",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:468"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" reset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("reset")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L466",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:466"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resize"}},[t._v("#")]),t._v(" resize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("resize")]),t._v("("),a("code",[t._v("width?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height?")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L462",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:462"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setactiveelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setactiveelements"}},[t._v("#")]),t._v(" setActiveElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setActiveElements")]),t._v("("),a("code",[t._v("active")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[a("em",[t._v("ActiveDataPoint")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[a("em",[t._v("ActiveDataPoint")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L484",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:484"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setdatasetvisibility"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setdatasetvisibility"}},[t._v("#")]),t._v(" setDatasetVisibility")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setDatasetVisibility")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("visible")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("visible")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L477",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:477"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"show"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#show"}},[t._v("#")]),t._v(" show")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("show")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L481",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:481"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"stop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stop"}},[t._v("#")]),t._v(" stop")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("stop")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L460",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:460"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tobase64image"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tobase64image"}},[t._v("#")]),t._v(" toBase64Image")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("toBase64Image")]),t._v("("),a("code",[t._v("type?")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("quality?")]),t._v(": "),a("em",[t._v("unknown")]),t._v("): "),a("em",[t._v("string")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("quality?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L487",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:487"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"toggledatavisibility"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#toggledatavisibility"}},[t._v("#")]),t._v(" toggleDataVisibility")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("toggleDataVisibility")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L478",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:478"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"unbindevents"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#unbindevents"}},[t._v("#")]),t._v(" unbindEvents")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("unbindEvents")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L489",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:489"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("mode?")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L467",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:467"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatehoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatehoverstyle"}},[t._v("#")]),t._v(" updateHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateHoverStyle")]),t._v("("),a("code",[t._v("items")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("dataset")]),t._v(", "),a("code",[t._v("enabled")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("items")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("dataset")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("enabled")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L490",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:490"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getchart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getchart"}},[t._v("#")]),t._v(" getChart")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Static")]),a("strong",[t._v("getChart")]),t._v("("),a("code",[t._v("key")]),t._v(": "),a("em",[t._v("string")]),t._v(" | HTMLCanvasElement | CanvasRenderingContext2D): "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("key")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | HTMLCanvasElement | CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L499",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:499"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"register"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#register"}},[t._v("#")]),t._v(" register")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Static")]),a("strong",[t._v("register")]),t._v("(..."),a("code",[t._v("items")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...items")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L500",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:500"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"unregister"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#unregister"}},[t._v("#")]),t._v(" unregister")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Static")]),a("strong",[t._v("unregister")]),t._v("(..."),a("code",[t._v("items")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...items")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L501",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:501"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/15.aaf10464.js b/docs/3.1.0/assets/js/15.aaf10464.js new file mode 100644 index 0000000000..7d0d807e24 --- /dev/null +++ b/docs/3.1.0/assets/js/15.aaf10464.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{340:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-chart-ttype-tdata-tlabel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-chart-ttype-tdata-tlabel"}},[t._v("#")]),t._v(" Class: Chart")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TType[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TLabel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new Chart")]),t._v("("),a("code",[t._v("item")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartitem"}},[a("em",[t._v("ChartItem")])]),t._v(", "),a("code",[t._v("config")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartconfiguration.html"}},[a("em",[t._v("ChartConfiguration")])]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("defaultDataPoint")]),t._v("][]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TLabel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("item")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartitem"}},[a("em",[t._v("ChartItem")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("config")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartconfiguration.html"}},[a("em",[t._v("ChartConfiguration")])]),t._v("")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L455",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:455"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"aspectratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aspectratio"}},[t._v("#")]),t._v(" aspectRatio")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("aspectRatio")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L447",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:447"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"attached"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#attached"}},[t._v("#")]),t._v(" attached")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("attached")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L452",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:452"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"boxes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#boxes"}},[t._v("#")]),t._v(" boxes")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("boxes")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L448",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:448"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"canvas"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#canvas"}},[t._v("#")]),t._v(" canvas")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("canvas")]),t._v(": HTMLCanvasElement")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L442",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:442"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chartarea"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chartarea"}},[t._v("#")]),t._v(" chartArea")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L450",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:450"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"config"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#config"}},[t._v("#")]),t._v(" config")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("config")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartconfiguration.html"}},[a("em",[t._v("ChartConfiguration")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L444",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:444"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ctx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ctx"}},[t._v("#")]),t._v(" ctx")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("ctx")]),t._v(": CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L443",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:443"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"currentdevicepixelratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#currentdevicepixelratio"}},[t._v("#")]),t._v(" currentDevicePixelRatio")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("currentDevicePixelRatio")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L449",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:449"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"data"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[t._v("#")]),t._v(" data")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("data")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[a("em",[t._v("ChartData")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L454",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:454"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"height"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("height")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L446",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:446"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"id"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("id")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L441",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:441"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("options")]),t._v(": "),a("em",[t._v("DeepPartial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[a("em",[t._v("CoreChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[a("em",[t._v("ElementChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[a("em",[t._v("PluginChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#datasetchartoptions"}},[a("em",[t._v("DatasetChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#scalechartoptions"}},[a("em",[t._v("ScaleChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("chartOptions")]),t._v("]>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L455",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:455"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"platform"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#platform"}},[t._v("#")]),t._v(" platform")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("platform")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[a("em",[t._v("BasePlatform")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L440",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:440"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scales"}},[t._v("#")]),t._v(" scales")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("scales")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L451",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:451"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"width"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("width")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L445",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:445"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"defaults"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defaults"}},[t._v("#")]),t._v(" defaults")]),t._v(" "),a("p",[t._v("▪ "),a("code",[t._v("Static")]),t._v(" "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("defaults")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[a("em",[t._v("Defaults")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L494",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:494"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"instances"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#instances"}},[t._v("#")]),t._v(" instances")]),t._v(" "),a("p",[t._v("▪ "),a("code",[t._v("Static")]),t._v(" "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("instances")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L497",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:497"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"overrides"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#overrides"}},[t._v("#")]),t._v(" overrides")]),t._v(" "),a("p",[t._v("▪ "),a("code",[t._v("Static")]),t._v(" "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("overrides")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#overrides"}},[a("em",[t._v("Overrides")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L495",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:495"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"registry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#registry"}},[t._v("#")]),t._v(" registry")]),t._v(" "),a("p",[t._v("▪ "),a("code",[t._v("Static")]),t._v(" "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("registry")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/registry.html"}},[a("em",[t._v("Registry")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L498",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:498"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"version"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#version"}},[t._v("#")]),t._v(" version")]),t._v(" "),a("p",[t._v("▪ "),a("code",[t._v("Static")]),t._v(" "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("version")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L496",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:496"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"bindevents"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bindevents"}},[t._v("#")]),t._v(" bindEvents")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("bindEvents")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L488",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:488"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildorupdatecontrollers"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildorupdatecontrollers"}},[t._v("#")]),t._v(" buildOrUpdateControllers")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildOrUpdateControllers")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L465",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:465"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildorupdatescales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildorupdatescales"}},[t._v("#")]),t._v(" buildOrUpdateScales")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildOrUpdateScales")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L464",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:464"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"clear"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#clear"}},[t._v("#")]),t._v(" clear")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("clear")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L459",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:459"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"destroy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#destroy"}},[t._v("#")]),t._v(" destroy")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("destroy")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L486",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:486"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L469",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:469"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ensurescaleshaveids"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ensurescaleshaveids"}},[t._v("#")]),t._v(" ensureScalesHaveIDs")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("ensureScalesHaveIDs")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L463",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:463"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getactiveelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getactiveelements"}},[t._v("#")]),t._v(" getActiveElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getActiveElements")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L483",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:483"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdatavisibility"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdatavisibility"}},[t._v("#")]),t._v(" getDataVisibility")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDataVisibility")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L479",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:479"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdatasetmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdatasetmeta"}},[t._v("#")]),t._v(" getDatasetMeta")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDatasetMeta")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L474",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:474"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getelementsateventformode"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getelementsateventformode"}},[t._v("#")]),t._v(" getElementsAtEventForMode")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getElementsAtEventForMode")]),t._v("("),a("code",[t._v("e")]),t._v(": Event, "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("options")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[a("em",[t._v("InteractionOptions")])]),t._v(", "),a("code",[t._v("useFinalPosition")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[a("em",[t._v("InteractionItem")])]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("e")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Event")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[a("em",[t._v("InteractionOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[a("em",[t._v("InteractionItem")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L471",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:471"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getsortedvisibledatasetmetas"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getsortedvisibledatasetmetas"}},[t._v("#")]),t._v(" getSortedVisibleDatasetMetas")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getSortedVisibleDatasetMetas")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L473",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:473"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getvisibledatasetcount"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getvisibledatasetcount"}},[t._v("#")]),t._v(" getVisibleDatasetCount")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getVisibleDatasetCount")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L475",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:475"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hide"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hide"}},[t._v("#")]),t._v(" hide")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hide")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L480",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:480"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isdatasetvisible"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isdatasetvisible"}},[t._v("#")]),t._v(" isDatasetVisible")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isDatasetVisible")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L476",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:476"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"notifyplugins"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#notifyplugins"}},[t._v("#")]),t._v(" notifyPlugins")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("notifyPlugins")]),t._v("("),a("code",[t._v("hook")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("args?")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("hook")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L492",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:492"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"render"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#render"}},[t._v("#")]),t._v(" render")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("render")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L468",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:468"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" reset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("reset")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L466",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:466"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resize"}},[t._v("#")]),t._v(" resize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("resize")]),t._v("("),a("code",[t._v("width?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height?")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L462",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:462"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setactiveelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setactiveelements"}},[t._v("#")]),t._v(" setActiveElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setActiveElements")]),t._v("("),a("code",[t._v("active")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[a("em",[t._v("ActiveDataPoint")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[a("em",[t._v("ActiveDataPoint")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L484",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:484"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setdatasetvisibility"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setdatasetvisibility"}},[t._v("#")]),t._v(" setDatasetVisibility")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setDatasetVisibility")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("visible")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("visible")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L477",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:477"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"show"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#show"}},[t._v("#")]),t._v(" show")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("show")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L481",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:481"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"stop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stop"}},[t._v("#")]),t._v(" stop")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("stop")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L460",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:460"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tobase64image"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tobase64image"}},[t._v("#")]),t._v(" toBase64Image")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("toBase64Image")]),t._v("("),a("code",[t._v("type?")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("quality?")]),t._v(": "),a("em",[t._v("unknown")]),t._v("): "),a("em",[t._v("string")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("quality?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L487",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:487"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"toggledatavisibility"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#toggledatavisibility"}},[t._v("#")]),t._v(" toggleDataVisibility")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("toggleDataVisibility")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L478",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:478"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"unbindevents"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#unbindevents"}},[t._v("#")]),t._v(" unbindEvents")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("unbindEvents")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L489",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:489"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("mode?")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L467",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:467"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatehoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatehoverstyle"}},[t._v("#")]),t._v(" updateHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateHoverStyle")]),t._v("("),a("code",[t._v("items")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("dataset")]),t._v(", "),a("code",[t._v("enabled")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("items")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("dataset")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("enabled")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L490",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:490"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getchart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getchart"}},[t._v("#")]),t._v(" getChart")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Static")]),a("strong",[t._v("getChart")]),t._v("("),a("code",[t._v("key")]),t._v(": "),a("em",[t._v("string")]),t._v(" | HTMLCanvasElement | CanvasRenderingContext2D): "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("key")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | HTMLCanvasElement | CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L499",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:499"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"register"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#register"}},[t._v("#")]),t._v(" register")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Static")]),a("strong",[t._v("register")]),t._v("(..."),a("code",[t._v("items")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...items")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L500",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:500"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"unregister"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#unregister"}},[t._v("#")]),t._v(" unregister")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Static")]),a("strong",[t._v("unregister")]),t._v("(..."),a("code",[t._v("items")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("...items")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L501",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:501"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/150.98525ac3.js b/docs/3.1.0/assets/js/150.62d02d68.js similarity index 95% rename from docs/3.1.0/assets/js/150.98525ac3.js rename to docs/3.1.0/assets/js/150.62d02d68.js index 6f68dc29b4..ead17b7e34 100644 --- a/docs/3.1.0/assets/js/150.98525ac3.js +++ b/docs/3.1.0/assets/js/150.62d02d68.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[150],{475:function(t,e,a){"use strict";a.r(e);var o=a(7),n=Object(o.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"layout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#layout"}},[t._v("#")]),t._v(" Layout")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.layout")]),t._v(", the global options for the chart layout is defined in "),a("code",[t._v("Chart.defaults.layout")]),t._v(".")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/padding.html"}},[a("code",[t._v("Padding")])])],1),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[t._v("The padding to add inside the chart.")])])])])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[150],{568:function(t,e,a){"use strict";a.r(e);var o=a(7),n=Object(o.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"layout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#layout"}},[t._v("#")]),t._v(" Layout")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.layout")]),t._v(", the global options for the chart layout is defined in "),a("code",[t._v("Chart.defaults.layout")]),t._v(".")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",{staticStyle:{"text-align":"center"}},[a("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/padding.html"}},[a("code",[t._v("Padding")])])],1),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),a("td",[t._v("The padding to add inside the chart.")])])])])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/151.13850e04.js b/docs/3.1.0/assets/js/151.9548d02d.js similarity index 99% rename from docs/3.1.0/assets/js/151.13850e04.js rename to docs/3.1.0/assets/js/151.9548d02d.js index 321cc11962..9ac15bf8f2 100644 --- a/docs/3.1.0/assets/js/151.13850e04.js +++ b/docs/3.1.0/assets/js/151.9548d02d.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[151],{476:function(t,e,a){"use strict";a.r(e);var n=a(7),s=Object(n.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"legend"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#legend"}},[t._v("#")]),t._v(" Legend")]),t._v(" "),a("p",[t._v("The chart legend displays data about the datasets that are appearing on the chart.")]),t._v(" "),a("h2",{attrs:{id:"configuration-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configuration-options"}},[t._v("#")]),t._v(" Configuration options")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.plugins.legend")]),t._v(", the global options for the chart legend is defined in "),a("code",[t._v("Chart.defaults.plugins.legend")]),t._v(".")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("Is the legend shown?")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("position")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'top'")])]),t._v(" "),a("td",[t._v("Position of the legend. "),a("a",{attrs:{href:"#position"}},[t._v("more...")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("align")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'center'")])]),t._v(" "),a("td",[t._v("Alignment of the legend. "),a("a",{attrs:{href:"#align"}},[t._v("more...")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("maxHeight")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Maximum height of the legend, in pixels")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("maxWidth")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Maximum width of the legend, in pixels")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("fullSize")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("Marks that this box should take the full width/height of the canvas (moving other boxes). This is unlikely to need to be changed in day-to-day use.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onClick")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("A callback that is called when a click event is registered on a label item. Arguments: "),a("code",[t._v("[event, legendItem, legend]")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onHover")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("A callback that is called when a 'mousemove' event is registered on top of a label item. Arguments: "),a("code",[t._v("[event, legendItem, legend]")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onLeave")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("A callback that is called when a 'mousemove' event is registered outside of a previously hovered label item. Arguments: "),a("code",[t._v("[event, legendItem, legend]")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("reverse")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Legend will show datasets in reverse order.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("labels")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("See the "),a("a",{attrs:{href:"#legend-label-configuration"}},[t._v("Legend Label Configuration")]),t._v(" section below.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("rtl")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td"),t._v(" "),a("td",[a("code",[t._v("true")]),t._v(" for rendering the legends from right to left.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textDirection")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[t._v("canvas' default")]),t._v(" "),a("td",[t._v("This will force the text direction "),a("code",[t._v("'rtl'")]),t._v(" or "),a("code",[t._v("'ltr'")]),t._v(" on the canvas for rendering the legend, regardless of the css specified on the canvas")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("title")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("See the "),a("a",{attrs:{href:"#legend-title-configuration"}},[t._v("Legend Title Configuration")]),t._v(" section below.")])])])]),t._v(" "),a("h2",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" Position")]),t._v(" "),a("p",[t._v("Position of the legend. Options are:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'top'")])]),t._v(" "),a("li",[a("code",[t._v("'left'")])]),t._v(" "),a("li",[a("code",[t._v("'bottom'")])]),t._v(" "),a("li",[a("code",[t._v("'right'")])]),t._v(" "),a("li",[a("code",[t._v("'chartArea'")])])]),t._v(" "),a("p",[t._v("When using the "),a("code",[t._v("'chartArea'")]),t._v(" option the legend position is at the moment not configurable, it will always be on the left side of the chart in the middle.")]),t._v(" "),a("h2",{attrs:{id:"align"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#align"}},[t._v("#")]),t._v(" Align")]),t._v(" "),a("p",[t._v("Alignment of the legend. Options are:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'start'")])]),t._v(" "),a("li",[a("code",[t._v("'center'")])]),t._v(" "),a("li",[a("code",[t._v("'end'")])])]),t._v(" "),a("p",[t._v("Defaults to "),a("code",[t._v("'center'")]),t._v(" for unrecognized values.")]),t._v(" "),a("h2",{attrs:{id:"legend-label-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#legend-label-configuration"}},[t._v("#")]),t._v(" Legend Label Configuration")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.plugins.legend.labels")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("boxWidth")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("40")])]),t._v(" "),a("td",[t._v("Width of coloured box.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("boxHeight")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("font.size")])]),t._v(" "),a("td",[t._v("Height of the coloured box.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("color")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.color")])]),t._v(" "),a("td",[t._v("Color of label and the strikethrough.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("font")])]),t._v(" "),a("td",[a("code",[t._v("Font")])]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.font")])]),t._v(" "),a("td",[t._v("See "),a("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("10")])]),t._v(" "),a("td",[t._v("Padding between rows of colored boxes.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("generateLabels")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Generates legend items for each thing in the legend. Default implementation returns the text + styling for the color box. See "),a("a",{attrs:{href:"#legend-item-interface"}},[t._v("Legend Item")]),t._v(" for details.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("filter")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td",[a("code",[t._v("null")])]),t._v(" "),a("td",[t._v("Filters legend items out of the legend. Receives 2 parameters, a "),a("a",{attrs:{href:"#legend-item-interface"}},[t._v("Legend Item")]),t._v(" and the chart data.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("sort")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td",[a("code",[t._v("null")])]),t._v(" "),a("td",[t._v("Sorts legend items. Receives 3 parameters, two "),a("a",{attrs:{href:"#legend-item-interface"}},[t._v("Legend Items")]),t._v(" and the chart data.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointStyle")])]),t._v(" "),a("td"),t._v(" "),a("td"),t._v(" "),a("td",[t._v("If specified, this style of point is used for the legend. Only used if "),a("code",[t._v("usePointStyle")]),t._v(" is true.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textAlign")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'center'")])]),t._v(" "),a("td",[t._v("Horizontal alignment of the label text. Options are: "),a("code",[t._v("'left'")]),t._v(", "),a("code",[t._v("'right'")]),t._v(" or "),a("code",[t._v("'center'")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("usePointStyle")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Label style will match corresponding point style (size is based on the minimum value between boxWidth and font.size).")])])])]),t._v(" "),a("h2",{attrs:{id:"legend-title-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#legend-title-configuration"}},[t._v("#")]),t._v(" Legend Title Configuration")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.plugins.legend.title")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("color")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.color")])]),t._v(" "),a("td",[t._v("Color of text.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Is the legend title displayed.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("font")])]),t._v(" "),a("td",[a("code",[t._v("Font")])]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.font")])]),t._v(" "),a("td",[t._v("See "),a("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/padding.html"}},[a("code",[t._v("Padding")])])],1),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Padding around the title.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("text")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("The string title.")])])])]),t._v(" "),a("h2",{attrs:{id:"legend-item-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#legend-item-interface"}},[t._v("#")]),t._v(" Legend Item Interface")]),t._v(" "),a("p",[t._v("Items passed to the legend "),a("code",[t._v("onClick")]),t._v(" function are the ones returned from "),a("code",[t._v("labels.generateLabels")]),t._v(". These items must implement the following interface.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Label that will be displayed")]),t._v("\n text"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Border radius of the legend item.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Introduced in 3.1.0")]),t._v("\n borderRadius"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" BorderRadius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Index of the associated dataset")]),t._v("\n datasetIndex"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Fill style of the legend box")]),t._v("\n fillStyle"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Color"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Text color")]),t._v("\n fontColor"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Color"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// If true, this item represents a hidden dataset. Label will be rendered with a strike-through effect")]),t._v("\n hidden"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" boolean"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For box border. See https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/lineCap")]),t._v("\n lineCap"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For box border. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash")]),t._v("\n lineDash"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For box border. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset")]),t._v("\n lineDashOffset"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For box border. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin")]),t._v("\n lineJoin"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Width of box border")]),t._v("\n lineWidth"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Stroke style of the legend box")]),t._v("\n strokeStyle"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Color"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Point style of the legend box (only used if usePointStyle is true)")]),t._v("\n pointStyle"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" Image"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Rotation of the point in degrees (only used if usePointStyle is true)")]),t._v("\n rotation"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("h2",{attrs:{id:"example"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#example"}},[t._v("#")]),t._v(" Example")]),t._v(" "),a("p",[t._v("The following example will create a chart with the legend enabled and turn all of the text red in color.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n legend"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labels"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n color"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgb(255, 99, 132)'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"custom-on-click-actions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#custom-on-click-actions"}},[t._v("#")]),t._v(" Custom On Click Actions")]),t._v(" "),a("p",[t._v("It can be common to want to trigger different behaviour when clicking an item in the legend. This can be easily achieved using a callback in the config object.")]),t._v(" "),a("p",[t._v("The default legend click handler is:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("e"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" legend")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" index "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasetIndex"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" ci "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" legend"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("isDatasetVisible")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("hide")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("hidden "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("else")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("show")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("hidden "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("p",[t._v("Lets say we wanted instead to link the display of the first two datasets. We could change the click handler accordingly.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" defaultLegendClickHandler "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("plugins"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("legend"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("onClick"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("newLegendClickHandler")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("e"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" legend")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" index "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasetIndex"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("index "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Do the original logic")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("defaultLegendClickHandler")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("e"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("else")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" ci "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" legend"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getDatasetMeta")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getDatasetMeta")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("forEach")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("meta")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n meta"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("hidden "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" meta"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("hidden "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("===")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("!")]),t._v("ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("hidden "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n legend"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n onClick"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" newLegendClickHandler\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("p",[t._v("Now when you click the legend in this chart, the visibility of the first two datasets will be linked together.")])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[151],{474:function(t,e,a){"use strict";a.r(e);var n=a(7),s=Object(n.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"legend"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#legend"}},[t._v("#")]),t._v(" Legend")]),t._v(" "),a("p",[t._v("The chart legend displays data about the datasets that are appearing on the chart.")]),t._v(" "),a("h2",{attrs:{id:"configuration-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configuration-options"}},[t._v("#")]),t._v(" Configuration options")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.plugins.legend")]),t._v(", the global options for the chart legend is defined in "),a("code",[t._v("Chart.defaults.plugins.legend")]),t._v(".")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("Is the legend shown?")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("position")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'top'")])]),t._v(" "),a("td",[t._v("Position of the legend. "),a("a",{attrs:{href:"#position"}},[t._v("more...")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("align")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'center'")])]),t._v(" "),a("td",[t._v("Alignment of the legend. "),a("a",{attrs:{href:"#align"}},[t._v("more...")])])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("maxHeight")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Maximum height of the legend, in pixels")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("maxWidth")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Maximum width of the legend, in pixels")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("fullSize")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("true")])]),t._v(" "),a("td",[t._v("Marks that this box should take the full width/height of the canvas (moving other boxes). This is unlikely to need to be changed in day-to-day use.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onClick")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("A callback that is called when a click event is registered on a label item. Arguments: "),a("code",[t._v("[event, legendItem, legend]")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onHover")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("A callback that is called when a 'mousemove' event is registered on top of a label item. Arguments: "),a("code",[t._v("[event, legendItem, legend]")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("onLeave")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("A callback that is called when a 'mousemove' event is registered outside of a previously hovered label item. Arguments: "),a("code",[t._v("[event, legendItem, legend]")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("reverse")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Legend will show datasets in reverse order.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("labels")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("See the "),a("a",{attrs:{href:"#legend-label-configuration"}},[t._v("Legend Label Configuration")]),t._v(" section below.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("rtl")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td"),t._v(" "),a("td",[a("code",[t._v("true")]),t._v(" for rendering the legends from right to left.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textDirection")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[t._v("canvas' default")]),t._v(" "),a("td",[t._v("This will force the text direction "),a("code",[t._v("'rtl'")]),t._v(" or "),a("code",[t._v("'ltr'")]),t._v(" on the canvas for rendering the legend, regardless of the css specified on the canvas")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("title")])]),t._v(" "),a("td",[a("code",[t._v("object")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("See the "),a("a",{attrs:{href:"#legend-title-configuration"}},[t._v("Legend Title Configuration")]),t._v(" section below.")])])])]),t._v(" "),a("h2",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" Position")]),t._v(" "),a("p",[t._v("Position of the legend. Options are:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'top'")])]),t._v(" "),a("li",[a("code",[t._v("'left'")])]),t._v(" "),a("li",[a("code",[t._v("'bottom'")])]),t._v(" "),a("li",[a("code",[t._v("'right'")])]),t._v(" "),a("li",[a("code",[t._v("'chartArea'")])])]),t._v(" "),a("p",[t._v("When using the "),a("code",[t._v("'chartArea'")]),t._v(" option the legend position is at the moment not configurable, it will always be on the left side of the chart in the middle.")]),t._v(" "),a("h2",{attrs:{id:"align"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#align"}},[t._v("#")]),t._v(" Align")]),t._v(" "),a("p",[t._v("Alignment of the legend. Options are:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("'start'")])]),t._v(" "),a("li",[a("code",[t._v("'center'")])]),t._v(" "),a("li",[a("code",[t._v("'end'")])])]),t._v(" "),a("p",[t._v("Defaults to "),a("code",[t._v("'center'")]),t._v(" for unrecognized values.")]),t._v(" "),a("h2",{attrs:{id:"legend-label-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#legend-label-configuration"}},[t._v("#")]),t._v(" Legend Label Configuration")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.plugins.legend.labels")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("boxWidth")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("40")])]),t._v(" "),a("td",[t._v("Width of coloured box.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("boxHeight")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("font.size")])]),t._v(" "),a("td",[t._v("Height of the coloured box.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("color")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.color")])]),t._v(" "),a("td",[t._v("Color of label and the strikethrough.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("font")])]),t._v(" "),a("td",[a("code",[t._v("Font")])]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.font")])]),t._v(" "),a("td",[t._v("See "),a("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("code",[t._v("number")])]),t._v(" "),a("td",[a("code",[t._v("10")])]),t._v(" "),a("td",[t._v("Padding between rows of colored boxes.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("generateLabels")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("Generates legend items for each thing in the legend. Default implementation returns the text + styling for the color box. See "),a("a",{attrs:{href:"#legend-item-interface"}},[t._v("Legend Item")]),t._v(" for details.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("filter")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td",[a("code",[t._v("null")])]),t._v(" "),a("td",[t._v("Filters legend items out of the legend. Receives 2 parameters, a "),a("a",{attrs:{href:"#legend-item-interface"}},[t._v("Legend Item")]),t._v(" and the chart data.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("sort")])]),t._v(" "),a("td",[a("code",[t._v("function")])]),t._v(" "),a("td",[a("code",[t._v("null")])]),t._v(" "),a("td",[t._v("Sorts legend items. Receives 3 parameters, two "),a("a",{attrs:{href:"#legend-item-interface"}},[t._v("Legend Items")]),t._v(" and the chart data.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("pointStyle")])]),t._v(" "),a("td"),t._v(" "),a("td"),t._v(" "),a("td",[t._v("If specified, this style of point is used for the legend. Only used if "),a("code",[t._v("usePointStyle")]),t._v(" is true.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("textAlign")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td",[a("code",[t._v("'center'")])]),t._v(" "),a("td",[t._v("Horizontal alignment of the label text. Options are: "),a("code",[t._v("'left'")]),t._v(", "),a("code",[t._v("'right'")]),t._v(" or "),a("code",[t._v("'center'")]),t._v(".")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("usePointStyle")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Label style will match corresponding point style (size is based on the minimum value between boxWidth and font.size).")])])])]),t._v(" "),a("h2",{attrs:{id:"legend-title-configuration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#legend-title-configuration"}},[t._v("#")]),t._v(" Legend Title Configuration")]),t._v(" "),a("p",[t._v("Namespace: "),a("code",[t._v("options.plugins.legend.title")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",[t._v("Name")]),t._v(" "),a("th",[t._v("Type")]),t._v(" "),a("th",[t._v("Default")]),t._v(" "),a("th",[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[a("code",[t._v("color")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/colors.html"}},[a("code",[t._v("Color")])])],1),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.color")])]),t._v(" "),a("td",[t._v("Color of text.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("display")])]),t._v(" "),a("td",[a("code",[t._v("boolean")])]),t._v(" "),a("td",[a("code",[t._v("false")])]),t._v(" "),a("td",[t._v("Is the legend title displayed.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("font")])]),t._v(" "),a("td",[a("code",[t._v("Font")])]),t._v(" "),a("td",[a("code",[t._v("Chart.defaults.font")])]),t._v(" "),a("td",[t._v("See "),a("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),a("tr",[a("td",[a("code",[t._v("padding")])]),t._v(" "),a("td",[a("RouterLink",{attrs:{to:"/general/padding.html"}},[a("code",[t._v("Padding")])])],1),t._v(" "),a("td",[a("code",[t._v("0")])]),t._v(" "),a("td",[t._v("Padding around the title.")])]),t._v(" "),a("tr",[a("td",[a("code",[t._v("text")])]),t._v(" "),a("td",[a("code",[t._v("string")])]),t._v(" "),a("td"),t._v(" "),a("td",[t._v("The string title.")])])])]),t._v(" "),a("h2",{attrs:{id:"legend-item-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#legend-item-interface"}},[t._v("#")]),t._v(" Legend Item Interface")]),t._v(" "),a("p",[t._v("Items passed to the legend "),a("code",[t._v("onClick")]),t._v(" function are the ones returned from "),a("code",[t._v("labels.generateLabels")]),t._v(". These items must implement the following interface.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Label that will be displayed")]),t._v("\n text"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Border radius of the legend item.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Introduced in 3.1.0")]),t._v("\n borderRadius"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" BorderRadius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Index of the associated dataset")]),t._v("\n datasetIndex"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Fill style of the legend box")]),t._v("\n fillStyle"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Color"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Text color")]),t._v("\n fontColor"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Color"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// If true, this item represents a hidden dataset. Label will be rendered with a strike-through effect")]),t._v("\n hidden"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" boolean"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For box border. See https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/lineCap")]),t._v("\n lineCap"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For box border. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash")]),t._v("\n lineDash"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For box border. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset")]),t._v("\n lineDashOffset"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For box border. See https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin")]),t._v("\n lineJoin"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Width of box border")]),t._v("\n lineWidth"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Stroke style of the legend box")]),t._v("\n strokeStyle"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Color"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Point style of the legend box (only used if usePointStyle is true)")]),t._v("\n pointStyle"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" Image"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Rotation of the point in degrees (only used if usePointStyle is true)")]),t._v("\n rotation"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("h2",{attrs:{id:"example"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#example"}},[t._v("#")]),t._v(" Example")]),t._v(" "),a("p",[t._v("The following example will create a chart with the legend enabled and turn all of the text red in color.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n legend"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labels"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n color"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgb(255, 99, 132)'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"custom-on-click-actions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#custom-on-click-actions"}},[t._v("#")]),t._v(" Custom On Click Actions")]),t._v(" "),a("p",[t._v("It can be common to want to trigger different behaviour when clicking an item in the legend. This can be easily achieved using a callback in the config object.")]),t._v(" "),a("p",[t._v("The default legend click handler is:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("e"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" legend")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" index "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasetIndex"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" ci "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" legend"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("isDatasetVisible")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("hide")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("hidden "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("else")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("show")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("hidden "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("p",[t._v("Lets say we wanted instead to link the display of the first two datasets. We could change the click handler accordingly.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" defaultLegendClickHandler "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("plugins"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("legend"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("onClick"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("newLegendClickHandler")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("e"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" legend")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" index "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasetIndex"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("index "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Do the original logic")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("defaultLegendClickHandler")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("e"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" legendItem"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("else")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" ci "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" legend"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getDatasetMeta")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getDatasetMeta")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("forEach")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("meta")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n meta"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("hidden "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" meta"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("hidden "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("===")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("!")]),t._v("ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("hidden "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ci"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n legend"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n onClick"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" newLegendClickHandler\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("p",[t._v("Now when you click the legend in this chart, the visibility of the first two datasets will be linked together.")])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/152.b7fd58b2.js b/docs/3.1.0/assets/js/152.48f8570e.js similarity index 97% rename from docs/3.1.0/assets/js/152.b7fd58b2.js rename to docs/3.1.0/assets/js/152.48f8570e.js index f155281d6b..b37b777b2c 100644 --- a/docs/3.1.0/assets/js/152.b7fd58b2.js +++ b/docs/3.1.0/assets/js/152.48f8570e.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[152],{477:function(e,t,o){"use strict";o.r(t);var a=o(7),n=Object(a.a)({},(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[o("h1",{attrs:{id:"locale"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#locale"}},[e._v("#")]),e._v(" Locale")]),e._v(" "),o("p",[e._v("For applications where the numbers of ticks on scales must be formatted accordingly with a language sensitive number formatting, you can enable this kind of formatting by setting the "),o("code",[e._v("locale")]),e._v(" option.")]),e._v(" "),o("p",[e._v("The locale is a string that is a "),o("a",{attrs:{href:"https://www.unicode.org/reports/tr35/tr35.html#BCP_47_Conformance",target:"_blank",rel:"noopener noreferrer"}},[e._v("Unicode BCP 47 locale identifier"),o("OutboundLink")],1),e._v(".")]),e._v(" "),o("p",[e._v("A Unicode BCP 47 locale identifier consists of")]),e._v(" "),o("ol",[o("li",[e._v("a language code,")]),e._v(" "),o("li",[e._v("(optionally) a script code,")]),e._v(" "),o("li",[e._v("(optionally) a region (or country) code,")]),e._v(" "),o("li",[e._v("(optionally) one or more variant codes, and")]),e._v(" "),o("li",[e._v("(optionally) one or more extension sequences,")])]),e._v(" "),o("p",[e._v("with all present components separated by hyphens.")]),e._v(" "),o("p",[e._v("By default the chart is using the default locale of the platform which is running on.")]),e._v(" "),o("h2",{attrs:{id:"configuration-options"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#configuration-options"}},[e._v("#")]),e._v(" Configuration Options")]),e._v(" "),o("p",[e._v("Namespace: "),o("code",[e._v("options")])]),e._v(" "),o("table",[o("thead",[o("tr",[o("th",[e._v("Name")]),e._v(" "),o("th",[e._v("Type")]),e._v(" "),o("th",[e._v("Default")]),e._v(" "),o("th",[e._v("Description")])])]),e._v(" "),o("tbody",[o("tr",[o("td",[o("code",[e._v("locale")])]),e._v(" "),o("td",[o("code",[e._v("string")])]),e._v(" "),o("td",[o("code",[e._v("undefined")])]),e._v(" "),o("td",[e._v("a string with a BCP 47 language tag, leveraging on "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat",target:"_blank",rel:"noopener noreferrer"}},[e._v("INTL NumberFormat"),o("OutboundLink")],1),e._v(".")])])])])])}),[],!1,null,null,null);t.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[152],{476:function(e,t,o){"use strict";o.r(t);var a=o(7),n=Object(a.a)({},(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[o("h1",{attrs:{id:"locale"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#locale"}},[e._v("#")]),e._v(" Locale")]),e._v(" "),o("p",[e._v("For applications where the numbers of ticks on scales must be formatted accordingly with a language sensitive number formatting, you can enable this kind of formatting by setting the "),o("code",[e._v("locale")]),e._v(" option.")]),e._v(" "),o("p",[e._v("The locale is a string that is a "),o("a",{attrs:{href:"https://www.unicode.org/reports/tr35/tr35.html#BCP_47_Conformance",target:"_blank",rel:"noopener noreferrer"}},[e._v("Unicode BCP 47 locale identifier"),o("OutboundLink")],1),e._v(".")]),e._v(" "),o("p",[e._v("A Unicode BCP 47 locale identifier consists of")]),e._v(" "),o("ol",[o("li",[e._v("a language code,")]),e._v(" "),o("li",[e._v("(optionally) a script code,")]),e._v(" "),o("li",[e._v("(optionally) a region (or country) code,")]),e._v(" "),o("li",[e._v("(optionally) one or more variant codes, and")]),e._v(" "),o("li",[e._v("(optionally) one or more extension sequences,")])]),e._v(" "),o("p",[e._v("with all present components separated by hyphens.")]),e._v(" "),o("p",[e._v("By default the chart is using the default locale of the platform which is running on.")]),e._v(" "),o("h2",{attrs:{id:"configuration-options"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#configuration-options"}},[e._v("#")]),e._v(" Configuration Options")]),e._v(" "),o("p",[e._v("Namespace: "),o("code",[e._v("options")])]),e._v(" "),o("table",[o("thead",[o("tr",[o("th",[e._v("Name")]),e._v(" "),o("th",[e._v("Type")]),e._v(" "),o("th",[e._v("Default")]),e._v(" "),o("th",[e._v("Description")])])]),e._v(" "),o("tbody",[o("tr",[o("td",[o("code",[e._v("locale")])]),e._v(" "),o("td",[o("code",[e._v("string")])]),e._v(" "),o("td",[o("code",[e._v("undefined")])]),e._v(" "),o("td",[e._v("a string with a BCP 47 language tag, leveraging on "),o("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat",target:"_blank",rel:"noopener noreferrer"}},[e._v("INTL NumberFormat"),o("OutboundLink")],1),e._v(".")])])])])])}),[],!1,null,null,null);t.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/153.3133cb81.js b/docs/3.1.0/assets/js/153.c769f486.js similarity index 99% rename from docs/3.1.0/assets/js/153.3133cb81.js rename to docs/3.1.0/assets/js/153.c769f486.js index d612894412..2c049b5ad6 100644 --- a/docs/3.1.0/assets/js/153.3133cb81.js +++ b/docs/3.1.0/assets/js/153.c769f486.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[153],{478:function(t,a,e){"use strict";e.r(a);var s=e(7),n=Object(s.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"responsive-charts"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#responsive-charts"}},[t._v("#")]),t._v(" Responsive Charts")]),t._v(" "),e("p",[t._v("When it comes to changing the chart size based on the window size, a major limitation is that the canvas "),e("em",[t._v("render")]),t._v(" size ("),e("code",[t._v("canvas.width")]),t._v(" and "),e("code",[t._v(".height")]),t._v(") can "),e("strong",[t._v("not")]),t._v(" be expressed with relative values, contrary to the "),e("em",[t._v("display")]),t._v(" size ("),e("code",[t._v("canvas.style.width")]),t._v(" and "),e("code",[t._v(".height")]),t._v("). Furthermore, these sizes are independent from each other and thus the canvas "),e("em",[t._v("render")]),t._v(" size does not adjust automatically based on the "),e("em",[t._v("display")]),t._v(" size, making the rendering inaccurate.")]),t._v(" "),e("p",[t._v("The following examples "),e("strong",[t._v("do not work")]),t._v(":")]),t._v(" "),e("ul",[e("li",[e("code",[t._v('')]),t._v(": "),e("strong",[t._v("invalid")]),t._v(" values, the canvas doesn't resize ("),e("a",{attrs:{href:"https://codepen.io/chartjs/pen/oWLZaR",target:"_blank",rel:"noopener noreferrer"}},[t._v("example"),e("OutboundLink")],1),t._v(")")]),t._v(" "),e("li",[e("code",[t._v('')]),t._v(": "),e("strong",[t._v("invalid")]),t._v(" behavior, the canvas is resized but becomes blurry ("),e("a",{attrs:{href:"https://codepen.io/chartjs/pen/WjxpmO",target:"_blank",rel:"noopener noreferrer"}},[t._v("example"),e("OutboundLink")],1),t._v(")")])]),t._v(" "),e("p",[t._v("Chart.js provides a "),e("a",{attrs:{href:"#configuration-options"}},[t._v("few options")]),t._v(" to enable responsiveness and control the resize behavior of charts by detecting when the canvas "),e("em",[t._v("display")]),t._v(" size changes and update the "),e("em",[t._v("render")]),t._v(" size accordingly.")]),t._v(" "),e("h2",{attrs:{id:"configuration-options"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#configuration-options"}},[t._v("#")]),t._v(" Configuration Options")]),t._v(" "),e("p",[t._v("Namespace: "),e("code",[t._v("options")])]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Default")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[e("code",[t._v("responsive")])]),t._v(" "),e("td",[e("code",[t._v("boolean")])]),t._v(" "),e("td",[e("code",[t._v("true")])]),t._v(" "),e("td",[t._v("Resizes the chart canvas when its container does ("),e("a",{attrs:{href:"#important-note"}},[t._v("important note...")]),t._v(").")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("maintainAspectRatio")])]),t._v(" "),e("td",[e("code",[t._v("boolean")])]),t._v(" "),e("td",[e("code",[t._v("true")])]),t._v(" "),e("td",[t._v("Maintain the original canvas aspect ratio "),e("code",[t._v("(width / height)")]),t._v(" when resizing.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("aspectRatio")])]),t._v(" "),e("td",[e("code",[t._v("number")])]),t._v(" "),e("td",[e("code",[t._v("2")])]),t._v(" "),e("td",[t._v("Canvas aspect ratio (i.e. "),e("code",[t._v("width / height")]),t._v(", a value of 1 representing a square canvas). Note that this option is ignored if the height is explicitly defined either as attribute or via the style.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("onResize")])]),t._v(" "),e("td",[e("code",[t._v("function")])]),t._v(" "),e("td",[e("code",[t._v("null")])]),t._v(" "),e("td",[t._v("Called when a resize occurs. Gets passed two arguments: the chart instance and the new size.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("resizeDelay")])]),t._v(" "),e("td",[e("code",[t._v("number")])]),t._v(" "),e("td",[e("code",[t._v("0")])]),t._v(" "),e("td",[t._v("Delay the resize update by give amount of milliseconds. This can ease the resize process by debouncing update of the elements.")])])])]),t._v(" "),e("h2",{attrs:{id:"important-note"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#important-note"}},[t._v("#")]),t._v(" Important Note")]),t._v(" "),e("p",[t._v("Detecting when the canvas size changes can not be done directly from the "),e("code",[t._v("canvas")]),t._v(" element. Chart.js uses its parent container to update the canvas "),e("em",[t._v("render")]),t._v(" and "),e("em",[t._v("display")]),t._v(" sizes. However, this method requires the container to be "),e("strong",[t._v("relatively positioned")]),t._v(" and "),e("strong",[t._v("dedicated to the chart canvas only")]),t._v(". Responsiveness can then be achieved by setting relative values for the container size ("),e("a",{attrs:{href:"https://codepen.io/chartjs/pen/YVWZbz",target:"_blank",rel:"noopener noreferrer"}},[t._v("example"),e("OutboundLink")],1),t._v("):")]),t._v(" "),e("div",{staticClass:"language-html extra-class"},[e("pre",{pre:!0,attrs:{class:"language-html"}},[e("code",[e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("div")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("class")]),e("span",{pre:!0,attrs:{class:"token attr-value"}},[e("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("chart-container"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),e("span",{pre:!0,attrs:{class:"token style-attr"}},[e("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("style")]),e("span",{pre:!0,attrs:{class:"token attr-value"}},[e("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),e("span",{pre:!0,attrs:{class:"token style language-css"}},[e("span",{pre:!0,attrs:{class:"token property"}},[t._v("position")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v(" relative"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token property"}},[t._v("height")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("40vh"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token property"}},[t._v("width")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("80vw")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])])]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),e("span",{pre:!0,attrs:{class:"token attr-value"}},[e("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("chart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),e("p",[t._v("The chart can also be programmatically resized by modifying the container size:")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[t._v("chart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("canvas"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("parentNode"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("height "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'128px'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nchart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("canvas"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("parentNode"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("width "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'128px'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[t._v("Note that in order for the above code to correctly resize the chart height, the "),e("a",{attrs:{href:"#configuration-options"}},[e("code",[t._v("maintainAspectRatio")])]),t._v(" option must also be set to "),e("code",[t._v("false")]),t._v(".")]),t._v(" "),e("h2",{attrs:{id:"printing-resizable-charts"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#printing-resizable-charts"}},[t._v("#")]),t._v(" Printing Resizable Charts")]),t._v(" "),e("p",[t._v("CSS media queries allow changing styles when printing a page. The CSS applied from these media queries may cause charts to need to resize. However, the resize won't happen automatically. To support resizing charts when printing, you need to hook the "),e("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeprint",target:"_blank",rel:"noopener noreferrer"}},[t._v("onbeforeprint"),e("OutboundLink")],1),t._v(" event and manually trigger resizing of each chart.")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("beforePrintHandler")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("for")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" id "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("in")]),t._v(" Chart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("instances"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n Chart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("instances"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("id"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("resize")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),e("p",[t._v("You may also find that, due to complexities in when the browser lays out the document for printing and when resize events are fired, Chart.js is unable to properly resize for the print layout. To work around this, you can pass an explicit size to "),e("code",[t._v(".resize()")]),t._v(" then use an "),e("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onafterprint",target:"_blank",rel:"noopener noreferrer"}},[t._v("onafterprint"),e("OutboundLink")],1),t._v(" event to restore the automatic size when done.")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[t._v("window"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("addEventListener")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'beforeprint'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n myChart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("resize")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("600")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("600")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nwindow"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("addEventListener")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'afterprint'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n myChart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("resize")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[153],{477:function(t,a,e){"use strict";e.r(a);var s=e(7),n=Object(s.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"responsive-charts"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#responsive-charts"}},[t._v("#")]),t._v(" Responsive Charts")]),t._v(" "),e("p",[t._v("When it comes to changing the chart size based on the window size, a major limitation is that the canvas "),e("em",[t._v("render")]),t._v(" size ("),e("code",[t._v("canvas.width")]),t._v(" and "),e("code",[t._v(".height")]),t._v(") can "),e("strong",[t._v("not")]),t._v(" be expressed with relative values, contrary to the "),e("em",[t._v("display")]),t._v(" size ("),e("code",[t._v("canvas.style.width")]),t._v(" and "),e("code",[t._v(".height")]),t._v("). Furthermore, these sizes are independent from each other and thus the canvas "),e("em",[t._v("render")]),t._v(" size does not adjust automatically based on the "),e("em",[t._v("display")]),t._v(" size, making the rendering inaccurate.")]),t._v(" "),e("p",[t._v("The following examples "),e("strong",[t._v("do not work")]),t._v(":")]),t._v(" "),e("ul",[e("li",[e("code",[t._v('')]),t._v(": "),e("strong",[t._v("invalid")]),t._v(" values, the canvas doesn't resize ("),e("a",{attrs:{href:"https://codepen.io/chartjs/pen/oWLZaR",target:"_blank",rel:"noopener noreferrer"}},[t._v("example"),e("OutboundLink")],1),t._v(")")]),t._v(" "),e("li",[e("code",[t._v('')]),t._v(": "),e("strong",[t._v("invalid")]),t._v(" behavior, the canvas is resized but becomes blurry ("),e("a",{attrs:{href:"https://codepen.io/chartjs/pen/WjxpmO",target:"_blank",rel:"noopener noreferrer"}},[t._v("example"),e("OutboundLink")],1),t._v(")")])]),t._v(" "),e("p",[t._v("Chart.js provides a "),e("a",{attrs:{href:"#configuration-options"}},[t._v("few options")]),t._v(" to enable responsiveness and control the resize behavior of charts by detecting when the canvas "),e("em",[t._v("display")]),t._v(" size changes and update the "),e("em",[t._v("render")]),t._v(" size accordingly.")]),t._v(" "),e("h2",{attrs:{id:"configuration-options"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#configuration-options"}},[t._v("#")]),t._v(" Configuration Options")]),t._v(" "),e("p",[t._v("Namespace: "),e("code",[t._v("options")])]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Default")]),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[e("code",[t._v("responsive")])]),t._v(" "),e("td",[e("code",[t._v("boolean")])]),t._v(" "),e("td",[e("code",[t._v("true")])]),t._v(" "),e("td",[t._v("Resizes the chart canvas when its container does ("),e("a",{attrs:{href:"#important-note"}},[t._v("important note...")]),t._v(").")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("maintainAspectRatio")])]),t._v(" "),e("td",[e("code",[t._v("boolean")])]),t._v(" "),e("td",[e("code",[t._v("true")])]),t._v(" "),e("td",[t._v("Maintain the original canvas aspect ratio "),e("code",[t._v("(width / height)")]),t._v(" when resizing.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("aspectRatio")])]),t._v(" "),e("td",[e("code",[t._v("number")])]),t._v(" "),e("td",[e("code",[t._v("2")])]),t._v(" "),e("td",[t._v("Canvas aspect ratio (i.e. "),e("code",[t._v("width / height")]),t._v(", a value of 1 representing a square canvas). Note that this option is ignored if the height is explicitly defined either as attribute or via the style.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("onResize")])]),t._v(" "),e("td",[e("code",[t._v("function")])]),t._v(" "),e("td",[e("code",[t._v("null")])]),t._v(" "),e("td",[t._v("Called when a resize occurs. Gets passed two arguments: the chart instance and the new size.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("resizeDelay")])]),t._v(" "),e("td",[e("code",[t._v("number")])]),t._v(" "),e("td",[e("code",[t._v("0")])]),t._v(" "),e("td",[t._v("Delay the resize update by give amount of milliseconds. This can ease the resize process by debouncing update of the elements.")])])])]),t._v(" "),e("h2",{attrs:{id:"important-note"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#important-note"}},[t._v("#")]),t._v(" Important Note")]),t._v(" "),e("p",[t._v("Detecting when the canvas size changes can not be done directly from the "),e("code",[t._v("canvas")]),t._v(" element. Chart.js uses its parent container to update the canvas "),e("em",[t._v("render")]),t._v(" and "),e("em",[t._v("display")]),t._v(" sizes. However, this method requires the container to be "),e("strong",[t._v("relatively positioned")]),t._v(" and "),e("strong",[t._v("dedicated to the chart canvas only")]),t._v(". Responsiveness can then be achieved by setting relative values for the container size ("),e("a",{attrs:{href:"https://codepen.io/chartjs/pen/YVWZbz",target:"_blank",rel:"noopener noreferrer"}},[t._v("example"),e("OutboundLink")],1),t._v("):")]),t._v(" "),e("div",{staticClass:"language-html extra-class"},[e("pre",{pre:!0,attrs:{class:"language-html"}},[e("code",[e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("div")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("class")]),e("span",{pre:!0,attrs:{class:"token attr-value"}},[e("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("chart-container"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),e("span",{pre:!0,attrs:{class:"token style-attr"}},[e("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("style")]),e("span",{pre:!0,attrs:{class:"token attr-value"}},[e("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),e("span",{pre:!0,attrs:{class:"token style language-css"}},[e("span",{pre:!0,attrs:{class:"token property"}},[t._v("position")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v(" relative"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token property"}},[t._v("height")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("40vh"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token property"}},[t._v("width")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("80vw")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])])]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),e("span",{pre:!0,attrs:{class:"token attr-value"}},[e("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("chart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token tag"}},[e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),e("p",[t._v("The chart can also be programmatically resized by modifying the container size:")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[t._v("chart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("canvas"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("parentNode"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("height "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'128px'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nchart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("canvas"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("parentNode"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("width "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'128px'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[t._v("Note that in order for the above code to correctly resize the chart height, the "),e("a",{attrs:{href:"#configuration-options"}},[e("code",[t._v("maintainAspectRatio")])]),t._v(" option must also be set to "),e("code",[t._v("false")]),t._v(".")]),t._v(" "),e("h2",{attrs:{id:"printing-resizable-charts"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#printing-resizable-charts"}},[t._v("#")]),t._v(" Printing Resizable Charts")]),t._v(" "),e("p",[t._v("CSS media queries allow changing styles when printing a page. The CSS applied from these media queries may cause charts to need to resize. However, the resize won't happen automatically. To support resizing charts when printing, you need to hook the "),e("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeprint",target:"_blank",rel:"noopener noreferrer"}},[t._v("onbeforeprint"),e("OutboundLink")],1),t._v(" event and manually trigger resizing of each chart.")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("beforePrintHandler")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("for")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" id "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("in")]),t._v(" Chart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("instances"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n Chart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("instances"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("id"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("resize")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),e("p",[t._v("You may also find that, due to complexities in when the browser lays out the document for printing and when resize events are fired, Chart.js is unable to properly resize for the print layout. To work around this, you can pass an explicit size to "),e("code",[t._v(".resize()")]),t._v(" then use an "),e("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onafterprint",target:"_blank",rel:"noopener noreferrer"}},[t._v("onafterprint"),e("OutboundLink")],1),t._v(" event to restore the automatic size when done.")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[t._v("window"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("addEventListener")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'beforeprint'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n myChart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("resize")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("600")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("600")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nwindow"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("addEventListener")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'afterprint'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n myChart"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("resize")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/154.b18edd5e.js b/docs/3.1.0/assets/js/154.fcb3d380.js similarity index 99% rename from docs/3.1.0/assets/js/154.b18edd5e.js rename to docs/3.1.0/assets/js/154.fcb3d380.js index f23f6cd8b0..a499f49b02 100644 --- a/docs/3.1.0/assets/js/154.b18edd5e.js +++ b/docs/3.1.0/assets/js/154.fcb3d380.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[154],{479:function(t,a,e){"use strict";e.r(a);var s=e(7),n=Object(s.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"title"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" Title")]),t._v(" "),e("p",[t._v("The chart title defines text to draw at the top of the chart.")]),t._v(" "),e("h2",{attrs:{id:"title-configuration"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#title-configuration"}},[t._v("#")]),t._v(" Title Configuration")]),t._v(" "),e("p",[t._v("Namespace: "),e("code",[t._v("options.plugins.title")]),t._v(", the global options for the chart title is defined in "),e("code",[t._v("Chart.defaults.plugins.title")]),t._v(".")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Default")]),t._v(" "),e("th",{staticStyle:{"text-align":"center"}},[e("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[e("code",[t._v("align")])]),t._v(" "),e("td",[e("code",[t._v("string")])]),t._v(" "),e("td",[e("code",[t._v("'center'")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Alignment of the title. "),e("a",{attrs:{href:"#align"}},[t._v("more...")])])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("color")])]),t._v(" "),e("td",[e("RouterLink",{attrs:{to:"/general/colors.html"}},[e("code",[t._v("Color")])])],1),t._v(" "),e("td",[e("code",[t._v("Chart.defaults.color")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Color of text.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("display")])]),t._v(" "),e("td",[e("code",[t._v("boolean")])]),t._v(" "),e("td",[e("code",[t._v("false")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Is the title shown?")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("fullSize")])]),t._v(" "),e("td",[e("code",[t._v("boolean")])]),t._v(" "),e("td",[e("code",[t._v("true")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Marks that this box should take the full width/height of the canvas. If "),e("code",[t._v("false")]),t._v(", the box is sized and placed above/beside the chart area.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("position")])]),t._v(" "),e("td",[e("code",[t._v("string")])]),t._v(" "),e("td",[e("code",[t._v("'top'")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Position of title. "),e("a",{attrs:{href:"#position"}},[t._v("more...")])])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("font")])]),t._v(" "),e("td",[e("code",[t._v("Font")])]),t._v(" "),e("td",[e("code",[t._v("{weight: 'bold'}")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("See "),e("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),e("tr",[e("td",[e("code",[t._v("padding")])]),t._v(" "),e("td",[e("RouterLink",{attrs:{to:"/general/padding.html"}},[e("code",[t._v("Padding")])])],1),t._v(" "),e("td",[e("code",[t._v("10")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Padding to apply around the title. Only "),e("code",[t._v("top")]),t._v(" and "),e("code",[t._v("bottom")]),t._v(" are implemented.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("text")])]),t._v(" "),e("td",[e("code",[t._v("string")]),t._v("|"),e("code",[t._v("string[]")])]),t._v(" "),e("td",[e("code",[t._v("''")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Title text to display. If specified as an array, text is rendered on multiple lines.")])])])]),t._v(" "),e("h3",{attrs:{id:"position"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" Position")]),t._v(" "),e("p",[t._v("Possible title position values are:")]),t._v(" "),e("ul",[e("li",[e("code",[t._v("'top'")])]),t._v(" "),e("li",[e("code",[t._v("'left'")])]),t._v(" "),e("li",[e("code",[t._v("'bottom'")])]),t._v(" "),e("li",[e("code",[t._v("'right'")])])]),t._v(" "),e("h2",{attrs:{id:"align"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#align"}},[t._v("#")]),t._v(" Align")]),t._v(" "),e("p",[t._v("Alignment of the title. Options are:")]),t._v(" "),e("ul",[e("li",[e("code",[t._v("'start'")])]),t._v(" "),e("li",[e("code",[t._v("'center'")])]),t._v(" "),e("li",[e("code",[t._v("'end'")])])]),t._v(" "),e("h2",{attrs:{id:"example-usage"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#example-usage"}},[t._v("#")]),t._v(" Example Usage")]),t._v(" "),e("p",[t._v("The example below would enable a title of 'Custom Chart Title' on the chart that is created.")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n title"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n text"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Custom Chart Title'")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[t._v("This example shows how to specify separate top and bottom title text padding:")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n title"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n text"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Custom Chart Title'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n padding"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n top"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n bottom"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[154],{478:function(t,a,e){"use strict";e.r(a);var s=e(7),n=Object(s.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"title"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" Title")]),t._v(" "),e("p",[t._v("The chart title defines text to draw at the top of the chart.")]),t._v(" "),e("h2",{attrs:{id:"title-configuration"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#title-configuration"}},[t._v("#")]),t._v(" Title Configuration")]),t._v(" "),e("p",[t._v("Namespace: "),e("code",[t._v("options.plugins.title")]),t._v(", the global options for the chart title is defined in "),e("code",[t._v("Chart.defaults.plugins.title")]),t._v(".")]),t._v(" "),e("table",[e("thead",[e("tr",[e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Type")]),t._v(" "),e("th",[t._v("Default")]),t._v(" "),e("th",{staticStyle:{"text-align":"center"}},[e("RouterLink",{attrs:{to:"/general/options.html#scriptable-options"}},[t._v("Scriptable")])],1),t._v(" "),e("th",[t._v("Description")])])]),t._v(" "),e("tbody",[e("tr",[e("td",[e("code",[t._v("align")])]),t._v(" "),e("td",[e("code",[t._v("string")])]),t._v(" "),e("td",[e("code",[t._v("'center'")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Alignment of the title. "),e("a",{attrs:{href:"#align"}},[t._v("more...")])])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("color")])]),t._v(" "),e("td",[e("RouterLink",{attrs:{to:"/general/colors.html"}},[e("code",[t._v("Color")])])],1),t._v(" "),e("td",[e("code",[t._v("Chart.defaults.color")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Color of text.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("display")])]),t._v(" "),e("td",[e("code",[t._v("boolean")])]),t._v(" "),e("td",[e("code",[t._v("false")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Is the title shown?")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("fullSize")])]),t._v(" "),e("td",[e("code",[t._v("boolean")])]),t._v(" "),e("td",[e("code",[t._v("true")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Marks that this box should take the full width/height of the canvas. If "),e("code",[t._v("false")]),t._v(", the box is sized and placed above/beside the chart area.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("position")])]),t._v(" "),e("td",[e("code",[t._v("string")])]),t._v(" "),e("td",[e("code",[t._v("'top'")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Position of title. "),e("a",{attrs:{href:"#position"}},[t._v("more...")])])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("font")])]),t._v(" "),e("td",[e("code",[t._v("Font")])]),t._v(" "),e("td",[e("code",[t._v("{weight: 'bold'}")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("See "),e("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")])],1)]),t._v(" "),e("tr",[e("td",[e("code",[t._v("padding")])]),t._v(" "),e("td",[e("RouterLink",{attrs:{to:"/general/padding.html"}},[e("code",[t._v("Padding")])])],1),t._v(" "),e("td",[e("code",[t._v("10")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Padding to apply around the title. Only "),e("code",[t._v("top")]),t._v(" and "),e("code",[t._v("bottom")]),t._v(" are implemented.")])]),t._v(" "),e("tr",[e("td",[e("code",[t._v("text")])]),t._v(" "),e("td",[e("code",[t._v("string")]),t._v("|"),e("code",[t._v("string[]")])]),t._v(" "),e("td",[e("code",[t._v("''")])]),t._v(" "),e("td",{staticStyle:{"text-align":"center"}},[t._v("Yes")]),t._v(" "),e("td",[t._v("Title text to display. If specified as an array, text is rendered on multiple lines.")])])])]),t._v(" "),e("h3",{attrs:{id:"position"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" Position")]),t._v(" "),e("p",[t._v("Possible title position values are:")]),t._v(" "),e("ul",[e("li",[e("code",[t._v("'top'")])]),t._v(" "),e("li",[e("code",[t._v("'left'")])]),t._v(" "),e("li",[e("code",[t._v("'bottom'")])]),t._v(" "),e("li",[e("code",[t._v("'right'")])])]),t._v(" "),e("h2",{attrs:{id:"align"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#align"}},[t._v("#")]),t._v(" Align")]),t._v(" "),e("p",[t._v("Alignment of the title. Options are:")]),t._v(" "),e("ul",[e("li",[e("code",[t._v("'start'")])]),t._v(" "),e("li",[e("code",[t._v("'center'")])]),t._v(" "),e("li",[e("code",[t._v("'end'")])])]),t._v(" "),e("h2",{attrs:{id:"example-usage"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#example-usage"}},[t._v("#")]),t._v(" Example Usage")]),t._v(" "),e("p",[t._v("The example below would enable a title of 'Custom Chart Title' on the chart that is created.")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n title"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n text"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Custom Chart Title'")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),e("p",[t._v("This example shows how to specify separate top and bottom title text padding:")]),t._v(" "),e("div",{staticClass:"language-javascript extra-class"},[e("pre",{pre:!0,attrs:{class:"language-javascript"}},[e("code",[e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n title"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n text"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Custom Chart Title'")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n padding"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n top"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n bottom"),e("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/155.4c2ecdc0.js b/docs/3.1.0/assets/js/155.4b834ca6.js similarity index 99% rename from docs/3.1.0/assets/js/155.4c2ecdc0.js rename to docs/3.1.0/assets/js/155.4b834ca6.js index f38a936722..ab348c3e0b 100644 --- a/docs/3.1.0/assets/js/155.4c2ecdc0.js +++ b/docs/3.1.0/assets/js/155.4b834ca6.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[155],{480:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"tooltip"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tooltip"}},[t._v("#")]),t._v(" Tooltip")]),t._v(" "),s("h2",{attrs:{id:"tooltip-configuration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tooltip-configuration"}},[t._v("#")]),t._v(" Tooltip Configuration")]),t._v(" "),s("p",[t._v("Namespace: "),s("code",[t._v("options.plugins.tooltip")]),t._v(", the global options for the chart tooltips is defined in "),s("code",[t._v("Chart.defaults.plugins.tooltip")]),t._v(".")]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Default")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("enabled")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[s("code",[t._v("true")])]),t._v(" "),s("td",[t._v("Are on-canvas tooltips enabled?")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("external")])]),t._v(" "),s("td",[s("code",[t._v("function")])]),t._v(" "),s("td",[s("code",[t._v("null")])]),t._v(" "),s("td",[t._v("See "),s("a",{attrs:{href:"#external-custom-tooltips"}},[t._v("external tooltip")]),t._v(" section.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("mode")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("interaction.mode")])]),t._v(" "),s("td",[t._v("Sets which elements appear in the tooltip. "),s("RouterLink",{attrs:{to:"/configuration/interactions.html#modes"}},[t._v("more...")]),t._v(".")],1)]),t._v(" "),s("tr",[s("td",[s("code",[t._v("intersect")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[s("code",[t._v("interaction.intersect")])]),t._v(" "),s("td",[t._v("If true, the tooltip mode applies only when the mouse position intersects with an element. If false, the mode will be applied at all times.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("position")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'average'")])]),t._v(" "),s("td",[t._v("The mode for positioning the tooltip. "),s("a",{attrs:{href:"#position-modes"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("callbacks")])]),t._v(" "),s("td",[s("code",[t._v("object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("See the "),s("a",{attrs:{href:"#tooltip-callbacks"}},[t._v("callbacks section")]),t._v(".")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("itemSort")])]),t._v(" "),s("td",[s("code",[t._v("function")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Sort tooltip items. "),s("a",{attrs:{href:"#sort-callback"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("filter")])]),t._v(" "),s("td",[s("code",[t._v("function")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Filter tooltip items. "),s("a",{attrs:{href:"#filter-callback"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("backgroundColor")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'rgba(0, 0, 0, 0.8)'")])]),t._v(" "),s("td",[t._v("Background color of the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("titleColor")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'#fff'")])]),t._v(" "),s("td",[t._v("Color of title text.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("titleFont")])]),t._v(" "),s("td",[s("code",[t._v("Font")])]),t._v(" "),s("td",[s("code",[t._v("{weight: 'bold'}")])]),t._v(" "),s("td",[t._v("See "),s("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")]),t._v(".")],1)]),t._v(" "),s("tr",[s("td",[s("code",[t._v("titleAlign")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'left'")])]),t._v(" "),s("td",[t._v("Horizontal alignment of the title text lines. "),s("a",{attrs:{href:"#alignment"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("titleSpacing")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("2")])]),t._v(" "),s("td",[t._v("Spacing to add to top and bottom of each title line.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("titleMarginBottom")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("6")])]),t._v(" "),s("td",[t._v("Margin to add on bottom of title section.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("bodyColor")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'#fff'")])]),t._v(" "),s("td",[t._v("Color of body text.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("bodyFont")])]),t._v(" "),s("td",[s("code",[t._v("Font")])]),t._v(" "),s("td",[s("code",[t._v("{}")])]),t._v(" "),s("td",[t._v("See "),s("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")]),t._v(".")],1)]),t._v(" "),s("tr",[s("td",[s("code",[t._v("bodyAlign")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'left'")])]),t._v(" "),s("td",[t._v("Horizontal alignment of the body text lines. "),s("a",{attrs:{href:"#alignment"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("bodySpacing")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("2")])]),t._v(" "),s("td",[t._v("Spacing to add to top and bottom of each tooltip item.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footerColor")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'#fff'")])]),t._v(" "),s("td",[t._v("Color of footer text.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footerFont")])]),t._v(" "),s("td",[s("code",[t._v("Font")])]),t._v(" "),s("td",[s("code",[t._v("{weight: 'bold'}")])]),t._v(" "),s("td",[t._v("See "),s("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")]),t._v(".")],1)]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footerAlign")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'left'")])]),t._v(" "),s("td",[t._v("Horizontal alignment of the footer text lines. "),s("a",{attrs:{href:"#alignment"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footerSpacing")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("2")])]),t._v(" "),s("td",[t._v("Spacing to add to top and bottom of each footer line.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footerMarginTop")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("6")])]),t._v(" "),s("td",[t._v("Margin to add before drawing the footer.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("padding")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/padding.html"}},[s("code",[t._v("Padding")])])],1),t._v(" "),s("td",[s("code",[t._v("6")])]),t._v(" "),s("td",[t._v("Padding inside the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("caretPadding")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("2")])]),t._v(" "),s("td",[t._v("Extra distance to move the end of the tooltip arrow away from the tooltip point.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("caretSize")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("5")])]),t._v(" "),s("td",[t._v("Size, in px, of the tooltip arrow.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("cornerRadius")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("6")])]),t._v(" "),s("td",[t._v("Radius of tooltip corner curves.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("multiKeyBackground")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'#fff'")])]),t._v(" "),s("td",[t._v("Color to draw behind the colored boxes when multiple items are in the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("displayColors")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[s("code",[t._v("true")])]),t._v(" "),s("td",[t._v("If true, color boxes are shown in the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("boxWidth")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("bodyFont.size")])]),t._v(" "),s("td",[t._v("Width of the color box if displayColors is true.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("boxHeight")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("bodyFont.size")])]),t._v(" "),s("td",[t._v("Height of the color box if displayColors is true.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("usePointStyle")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[s("code",[t._v("false")])]),t._v(" "),s("td",[t._v("Use the corresponding point style (from dataset options) instead of color boxes, ex: star, triangle etc. (size is based on the minimum value between boxWidth and boxHeight).")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("borderColor")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'rgba(0, 0, 0, 0)'")])]),t._v(" "),s("td",[t._v("Color of the border.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("borderWidth")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("0")])]),t._v(" "),s("td",[t._v("Size of the border.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("rtl")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td"),t._v(" "),s("td",[s("code",[t._v("true")]),t._v(" for rendering the tooltip from right to left.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("textDirection")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[t._v("canvas' default")]),t._v(" "),s("td",[t._v("This will force the text direction "),s("code",[t._v("'rtl' or 'ltr")]),t._v(" on the canvas for rendering the tooltips, regardless of the css specified on the canvas")])])])]),t._v(" "),s("h3",{attrs:{id:"position-modes"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#position-modes"}},[t._v("#")]),t._v(" Position Modes")]),t._v(" "),s("p",[t._v("Possible modes are:")]),t._v(" "),s("ul",[s("li",[s("code",[t._v("'average'")])]),t._v(" "),s("li",[s("code",[t._v("'nearest'")])])]),t._v(" "),s("p",[s("code",[t._v("'average'")]),t._v(" mode will place the tooltip at the average position of the items displayed in the tooltip. "),s("code",[t._v("'nearest'")]),t._v(" will place the tooltip at the position of the element closest to the event position.")]),t._v(" "),s("p",[t._v("New modes can be defined by adding functions to the "),s("code",[t._v("Chart.Tooltip.positioners")]),t._v(" map.")]),t._v(" "),s("p",[t._v("Example:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("/**\n * Custom positioner\n * @function Tooltip.positioners.myCustomPositioner\n * @param elements {Chart.Element[]} the tooltip elements\n * @param eventPosition {Point} the position of the event in canvas coordinates\n * @returns {Point} the tooltip position\n */")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" tooltipPlugin "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("registry"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getPlugin")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'tooltip'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\ntooltipPlugin"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("positioners"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("myCustomPositioner")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("elements"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" eventPosition")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("/** @type {Tooltip} */")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" tooltip "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("/* ... */")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"alignment"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#alignment"}},[t._v("#")]),t._v(" Alignment")]),t._v(" "),s("p",[t._v("The "),s("code",[t._v("titleAlign")]),t._v(", "),s("code",[t._v("bodyAlign")]),t._v(" and "),s("code",[t._v("footerAlign")]),t._v(" options define the horizontal position of the text lines with respect to the tooltip box. The following values are supported.")]),t._v(" "),s("ul",[s("li",[s("code",[t._v("'left'")]),t._v(" (default)")]),t._v(" "),s("li",[s("code",[t._v("'right'")])]),t._v(" "),s("li",[s("code",[t._v("'center'")])])]),t._v(" "),s("p",[t._v("These options are only applied to text lines. Color boxes are always aligned to the left edge.")]),t._v(" "),s("h3",{attrs:{id:"sort-callback"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#sort-callback"}},[t._v("#")]),t._v(" Sort Callback")]),t._v(" "),s("p",[t._v("Allows sorting of "),s("a",{attrs:{href:"#tooltip-item-context"}},[t._v("tooltip items")]),t._v(". Must implement at minimum a function that can be passed to "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort",target:"_blank",rel:"noopener noreferrer"}},[t._v("Array.prototype.sort"),s("OutboundLink")],1),t._v(". This function can also accept a third parameter that is the data object passed to the chart.")]),t._v(" "),s("h3",{attrs:{id:"filter-callback"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#filter-callback"}},[t._v("#")]),t._v(" Filter Callback")]),t._v(" "),s("p",[t._v("Allows filtering of "),s("a",{attrs:{href:"#tooltip-item-context"}},[t._v("tooltip items")]),t._v(". Must implement at minimum a function that can be passed to "),s("a",{attrs:{href:"https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/filter",target:"_blank",rel:"noopener noreferrer"}},[t._v("Array.prototype.filter"),s("OutboundLink")],1),t._v(". This function can also accept a fourth parameter that is the data object passed to the chart.")]),t._v(" "),s("h2",{attrs:{id:"tooltip-callbacks"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tooltip-callbacks"}},[t._v("#")]),t._v(" Tooltip Callbacks")]),t._v(" "),s("p",[t._v("Namespace: "),s("code",[t._v("options.plugins.tooltip.callbacks")]),t._v(", the tooltip has the following callbacks for providing text. For all functions, "),s("code",[t._v("this")]),t._v(" will be the tooltip object created from the "),s("code",[t._v("Tooltip")]),t._v(" constructor.")]),t._v(" "),s("p",[t._v("Namespace: "),s("code",[t._v("data.datasets[].tooltip.callbacks")]),t._v(", items marked with "),s("code",[t._v("Yes")]),t._v(" in the column "),s("code",[t._v("Dataset override")]),t._v(" can be overridden per dataset.")]),t._v(" "),s("p",[t._v("All functions are called with the same arguments: a "),s("a",{attrs:{href:"#tooltip-item-context"}},[t._v("tooltip item context")]),t._v(". All functions must return either a string or an array of strings. Arrays of strings are treated as multiple lines of text.")]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Arguments")]),t._v(" "),s("th",[t._v("Dataset override")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("beforeTitle")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns the text to render before the title.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("title")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render as the title of the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("afterTitle")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render after the title.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("beforeBody")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render before the body section.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("beforeLabel")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, object")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns text to render before an individual label. This will be called for each item in the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("label")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, object")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns text to render for an individual item in the tooltip. "),s("a",{attrs:{href:"#label-callback"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("labelColor")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, Chart")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns the colors to render for the tooltip item. "),s("a",{attrs:{href:"#label-color-callback"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("labelTextColor")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, Chart")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns the colors for the text of the label for the tooltip item.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("labelPointStyle")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, Chart")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns the point style to use instead of color boxes if usePointStyle is true (object with values "),s("code",[t._v("pointStyle")]),t._v(" and "),s("code",[t._v("rotation")]),t._v("). Default implementation uses the point style from the dataset points. "),s("a",{attrs:{href:"#label-point-style-callback"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("afterLabel")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, object")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns text to render after an individual label.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("afterBody")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render after the body section.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("beforeFooter")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render before the footer section.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footer")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render as the footer of the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("afterFooter")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Text to render after the footer section.")])])])]),t._v(" "),s("h3",{attrs:{id:"label-callback"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#label-callback"}},[t._v("#")]),t._v(" Label Callback")]),t._v(" "),s("p",[t._v("The "),s("code",[t._v("label")]),t._v(" callback can change the text that displays for a given data point. A common example to show a unit. The example below puts a "),s("code",[t._v("'$'")]),t._v(" before every row.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltip"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n callbacks"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("label")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" label "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" context"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("dataset"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("label "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("||")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("label"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("': '")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("context"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("parsed"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("!==")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Intl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("NumberFormat")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'en-US'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" style"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'currency'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" currency"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'USD'")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("format")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("context"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("parsed"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" label"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"label-color-callback"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#label-color-callback"}},[t._v("#")]),t._v(" Label Color Callback")]),t._v(" "),s("p",[t._v("For example, to return a red box with a blue dashed border that has a border radius for each item in the tooltip you could do:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltip"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n callbacks"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("labelColor")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n borderColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgb(0, 0, 255)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n backgroundColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgb(255, 0, 0)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderWidth"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderDash"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderRadius"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("labelTextColor")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#543453'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"label-point-style-callback"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#label-point-style-callback"}},[t._v("#")]),t._v(" Label Point Style Callback")]),t._v(" "),s("p",[t._v("For example, to draw triangles instead of the regular color box for each item in the tooltip you could do:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltip"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n usePointStyle"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n callbacks"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("labelPointStyle")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n pointStyle"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'triangle'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n rotation"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"tooltip-item-context"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tooltip-item-context"}},[t._v("#")]),t._v(" Tooltip Item Context")]),t._v(" "),s("p",[t._v("The tooltip items passed to the tooltip callbacks implement the following interface.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The chart the tooltip is being shown on")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Chart\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Label for the tooltip")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Parsed data values for the given `dataIndex` and `datasetIndex`")]),t._v("\n parsed"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" object"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Raw data values for the given `dataIndex` and `datasetIndex`")]),t._v("\n raw"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" object"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Formatted value for the tooltip")]),t._v("\n formattedValue"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The dataset the item comes from")]),t._v("\n dataset"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" object\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Index of the dataset the item comes from")]),t._v("\n datasetIndex"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Index of this data item in the dataset")]),t._v("\n dataIndex"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The chart element (point, arc, bar, etc.) for this tooltip item")]),t._v("\n element"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Element"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("h2",{attrs:{id:"external-custom-tooltips"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#external-custom-tooltips"}},[t._v("#")]),t._v(" External (Custom) Tooltips")]),t._v(" "),s("p",[t._v("External tooltips allow you to hook into the tooltip rendering process so that you can render the tooltip in your own custom way. Generally this is used to create an HTML tooltip instead of an on-canvas tooltip. The "),s("code",[t._v("external")]),t._v(" option takes a function which is passed a context parameter containing the "),s("code",[t._v("chart")]),t._v(" and "),s("code",[t._v("tooltip")]),t._v(". You can enable external tooltips in the global or chart configuration like so:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myPieChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'pie'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltip"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Disable the on-canvas tooltip")]),t._v("\n enabled"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("external")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Tooltip Element")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" tooltipEl "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chartjs-tooltip'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Create element on first render")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("!")]),t._v("tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltipEl "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("createElement")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'div'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("id "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chartjs-tooltip'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("innerHTML "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'
'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("body"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("appendChild")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Hide if no tooltip")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" tooltipModel "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" context"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("tooltip"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("opacity "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("===")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("opacity "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Set caret Position")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("classList"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("remove")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'above'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'below'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'no-transform'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("yAlign"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("classList"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("add")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("yAlign"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("else")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("classList"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("add")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'no-transform'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getBody")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("bodyItem")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" bodyItem"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("lines"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Set Text")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("body"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" titleLines "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("title "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("||")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" bodyLines "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("body"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("map")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("getBody"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" innerHtml "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n titleLines"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("forEach")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("title")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n innerHtml "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" title "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n innerHtml "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n bodyLines"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("forEach")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("body"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" i")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" colors "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("labelColors"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("i"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" style "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'background:'")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" colors"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("backgroundColor"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n style "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'; border-color:'")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" colors"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("borderColor"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n style "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'; border-width: 2px'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" span "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n innerHtml "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" span "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" body "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n innerHtml "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" tableRoot "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("querySelector")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'table'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tableRoot"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("innerHTML "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" innerHtml"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" position "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" context"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getBoundingClientRect")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" bodyFont "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("helpers"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toFont")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("bodyFont"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Display, position, and set styles for font")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("opacity "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("position "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'absolute'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("left "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" position"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("left "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" window"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("pageXOffset "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("caretX "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'px'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("top "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" position"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("top "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" window"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("pageYOffset "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("caretY "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'px'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("font "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" bodyFont"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("padding "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("padding "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'px '")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("padding "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'px'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("pointerEvents "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'none'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("See "),s("a",{attrs:{href:"https://www.chartjs.org/samples/",target:"_blank",rel:"noopener noreferrer"}},[t._v("samples"),s("OutboundLink")],1),t._v(" for examples on how to get started with external tooltips.")]),t._v(" "),s("h2",{attrs:{id:"tooltip-model"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tooltip-model"}},[t._v("#")]),t._v(" Tooltip Model")]),t._v(" "),s("p",[t._v("The tooltip model contains parameters that can be used to render the tooltip.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The items that we are rendering in the tooltip. See Tooltip Item Interface section")]),t._v("\n dataPoints"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" TooltipItem"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Positioning")]),t._v("\n xAlign"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n yAlign"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// X and Y properties are the top left of the tooltip")]),t._v("\n x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n width"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n height"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Where the tooltip points to")]),t._v("\n caretX"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n caretY"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Body")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The body lines that need to be rendered")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Each object contains 3 parameters")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// before: string[] // lines of text before the line with the color square")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// lines: string[], // lines of text to render as the main item with color square")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// after: string[], // lines of text to render after the main lines")]),t._v("\n body"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" object"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// lines of text that appear after the title but before the body")]),t._v("\n beforeBody"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// line of text that appear after the body and before the footer")]),t._v("\n afterBody"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Title")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// lines of text that form the title")]),t._v("\n title"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Footer")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// lines of text that form the footer")]),t._v("\n footer"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// colors to render for each item in body[]. This is the color of the squares in the tooltip")]),t._v("\n labelColors"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Color"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labelTextColors"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Color"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 0 opacity is a hidden tooltip")]),t._v("\n opacity"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// tooltip options")]),t._v("\n options "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Object\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[155],{479:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"tooltip"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tooltip"}},[t._v("#")]),t._v(" Tooltip")]),t._v(" "),s("h2",{attrs:{id:"tooltip-configuration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tooltip-configuration"}},[t._v("#")]),t._v(" Tooltip Configuration")]),t._v(" "),s("p",[t._v("Namespace: "),s("code",[t._v("options.plugins.tooltip")]),t._v(", the global options for the chart tooltips is defined in "),s("code",[t._v("Chart.defaults.plugins.tooltip")]),t._v(".")]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Default")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("enabled")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[s("code",[t._v("true")])]),t._v(" "),s("td",[t._v("Are on-canvas tooltips enabled?")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("external")])]),t._v(" "),s("td",[s("code",[t._v("function")])]),t._v(" "),s("td",[s("code",[t._v("null")])]),t._v(" "),s("td",[t._v("See "),s("a",{attrs:{href:"#external-custom-tooltips"}},[t._v("external tooltip")]),t._v(" section.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("mode")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("interaction.mode")])]),t._v(" "),s("td",[t._v("Sets which elements appear in the tooltip. "),s("RouterLink",{attrs:{to:"/configuration/interactions.html#modes"}},[t._v("more...")]),t._v(".")],1)]),t._v(" "),s("tr",[s("td",[s("code",[t._v("intersect")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[s("code",[t._v("interaction.intersect")])]),t._v(" "),s("td",[t._v("If true, the tooltip mode applies only when the mouse position intersects with an element. If false, the mode will be applied at all times.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("position")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'average'")])]),t._v(" "),s("td",[t._v("The mode for positioning the tooltip. "),s("a",{attrs:{href:"#position-modes"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("callbacks")])]),t._v(" "),s("td",[s("code",[t._v("object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("See the "),s("a",{attrs:{href:"#tooltip-callbacks"}},[t._v("callbacks section")]),t._v(".")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("itemSort")])]),t._v(" "),s("td",[s("code",[t._v("function")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Sort tooltip items. "),s("a",{attrs:{href:"#sort-callback"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("filter")])]),t._v(" "),s("td",[s("code",[t._v("function")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Filter tooltip items. "),s("a",{attrs:{href:"#filter-callback"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("backgroundColor")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'rgba(0, 0, 0, 0.8)'")])]),t._v(" "),s("td",[t._v("Background color of the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("titleColor")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'#fff'")])]),t._v(" "),s("td",[t._v("Color of title text.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("titleFont")])]),t._v(" "),s("td",[s("code",[t._v("Font")])]),t._v(" "),s("td",[s("code",[t._v("{weight: 'bold'}")])]),t._v(" "),s("td",[t._v("See "),s("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")]),t._v(".")],1)]),t._v(" "),s("tr",[s("td",[s("code",[t._v("titleAlign")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'left'")])]),t._v(" "),s("td",[t._v("Horizontal alignment of the title text lines. "),s("a",{attrs:{href:"#alignment"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("titleSpacing")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("2")])]),t._v(" "),s("td",[t._v("Spacing to add to top and bottom of each title line.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("titleMarginBottom")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("6")])]),t._v(" "),s("td",[t._v("Margin to add on bottom of title section.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("bodyColor")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'#fff'")])]),t._v(" "),s("td",[t._v("Color of body text.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("bodyFont")])]),t._v(" "),s("td",[s("code",[t._v("Font")])]),t._v(" "),s("td",[s("code",[t._v("{}")])]),t._v(" "),s("td",[t._v("See "),s("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")]),t._v(".")],1)]),t._v(" "),s("tr",[s("td",[s("code",[t._v("bodyAlign")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'left'")])]),t._v(" "),s("td",[t._v("Horizontal alignment of the body text lines. "),s("a",{attrs:{href:"#alignment"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("bodySpacing")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("2")])]),t._v(" "),s("td",[t._v("Spacing to add to top and bottom of each tooltip item.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footerColor")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'#fff'")])]),t._v(" "),s("td",[t._v("Color of footer text.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footerFont")])]),t._v(" "),s("td",[s("code",[t._v("Font")])]),t._v(" "),s("td",[s("code",[t._v("{weight: 'bold'}")])]),t._v(" "),s("td",[t._v("See "),s("RouterLink",{attrs:{to:"/general/fonts.html"}},[t._v("Fonts")]),t._v(".")],1)]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footerAlign")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'left'")])]),t._v(" "),s("td",[t._v("Horizontal alignment of the footer text lines. "),s("a",{attrs:{href:"#alignment"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footerSpacing")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("2")])]),t._v(" "),s("td",[t._v("Spacing to add to top and bottom of each footer line.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footerMarginTop")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("6")])]),t._v(" "),s("td",[t._v("Margin to add before drawing the footer.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("padding")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/padding.html"}},[s("code",[t._v("Padding")])])],1),t._v(" "),s("td",[s("code",[t._v("6")])]),t._v(" "),s("td",[t._v("Padding inside the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("caretPadding")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("2")])]),t._v(" "),s("td",[t._v("Extra distance to move the end of the tooltip arrow away from the tooltip point.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("caretSize")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("5")])]),t._v(" "),s("td",[t._v("Size, in px, of the tooltip arrow.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("cornerRadius")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("6")])]),t._v(" "),s("td",[t._v("Radius of tooltip corner curves.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("multiKeyBackground")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'#fff'")])]),t._v(" "),s("td",[t._v("Color to draw behind the colored boxes when multiple items are in the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("displayColors")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[s("code",[t._v("true")])]),t._v(" "),s("td",[t._v("If true, color boxes are shown in the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("boxWidth")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("bodyFont.size")])]),t._v(" "),s("td",[t._v("Width of the color box if displayColors is true.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("boxHeight")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("bodyFont.size")])]),t._v(" "),s("td",[t._v("Height of the color box if displayColors is true.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("usePointStyle")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[s("code",[t._v("false")])]),t._v(" "),s("td",[t._v("Use the corresponding point style (from dataset options) instead of color boxes, ex: star, triangle etc. (size is based on the minimum value between boxWidth and boxHeight).")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("borderColor")])]),t._v(" "),s("td",[s("RouterLink",{attrs:{to:"/general/colors.html"}},[s("code",[t._v("Color")])])],1),t._v(" "),s("td",[s("code",[t._v("'rgba(0, 0, 0, 0)'")])]),t._v(" "),s("td",[t._v("Color of the border.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("borderWidth")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("0")])]),t._v(" "),s("td",[t._v("Size of the border.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("rtl")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td"),t._v(" "),s("td",[s("code",[t._v("true")]),t._v(" for rendering the tooltip from right to left.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("textDirection")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[t._v("canvas' default")]),t._v(" "),s("td",[t._v("This will force the text direction "),s("code",[t._v("'rtl' or 'ltr")]),t._v(" on the canvas for rendering the tooltips, regardless of the css specified on the canvas")])])])]),t._v(" "),s("h3",{attrs:{id:"position-modes"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#position-modes"}},[t._v("#")]),t._v(" Position Modes")]),t._v(" "),s("p",[t._v("Possible modes are:")]),t._v(" "),s("ul",[s("li",[s("code",[t._v("'average'")])]),t._v(" "),s("li",[s("code",[t._v("'nearest'")])])]),t._v(" "),s("p",[s("code",[t._v("'average'")]),t._v(" mode will place the tooltip at the average position of the items displayed in the tooltip. "),s("code",[t._v("'nearest'")]),t._v(" will place the tooltip at the position of the element closest to the event position.")]),t._v(" "),s("p",[t._v("New modes can be defined by adding functions to the "),s("code",[t._v("Chart.Tooltip.positioners")]),t._v(" map.")]),t._v(" "),s("p",[t._v("Example:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("/**\n * Custom positioner\n * @function Tooltip.positioners.myCustomPositioner\n * @param elements {Chart.Element[]} the tooltip elements\n * @param eventPosition {Point} the position of the event in canvas coordinates\n * @returns {Point} the tooltip position\n */")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" tooltipPlugin "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("registry"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getPlugin")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'tooltip'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\ntooltipPlugin"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("positioners"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("myCustomPositioner")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("elements"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" eventPosition")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("/** @type {Tooltip} */")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" tooltip "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("/* ... */")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"alignment"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#alignment"}},[t._v("#")]),t._v(" Alignment")]),t._v(" "),s("p",[t._v("The "),s("code",[t._v("titleAlign")]),t._v(", "),s("code",[t._v("bodyAlign")]),t._v(" and "),s("code",[t._v("footerAlign")]),t._v(" options define the horizontal position of the text lines with respect to the tooltip box. The following values are supported.")]),t._v(" "),s("ul",[s("li",[s("code",[t._v("'left'")]),t._v(" (default)")]),t._v(" "),s("li",[s("code",[t._v("'right'")])]),t._v(" "),s("li",[s("code",[t._v("'center'")])])]),t._v(" "),s("p",[t._v("These options are only applied to text lines. Color boxes are always aligned to the left edge.")]),t._v(" "),s("h3",{attrs:{id:"sort-callback"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#sort-callback"}},[t._v("#")]),t._v(" Sort Callback")]),t._v(" "),s("p",[t._v("Allows sorting of "),s("a",{attrs:{href:"#tooltip-item-context"}},[t._v("tooltip items")]),t._v(". Must implement at minimum a function that can be passed to "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort",target:"_blank",rel:"noopener noreferrer"}},[t._v("Array.prototype.sort"),s("OutboundLink")],1),t._v(". This function can also accept a third parameter that is the data object passed to the chart.")]),t._v(" "),s("h3",{attrs:{id:"filter-callback"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#filter-callback"}},[t._v("#")]),t._v(" Filter Callback")]),t._v(" "),s("p",[t._v("Allows filtering of "),s("a",{attrs:{href:"#tooltip-item-context"}},[t._v("tooltip items")]),t._v(". Must implement at minimum a function that can be passed to "),s("a",{attrs:{href:"https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/filter",target:"_blank",rel:"noopener noreferrer"}},[t._v("Array.prototype.filter"),s("OutboundLink")],1),t._v(". This function can also accept a fourth parameter that is the data object passed to the chart.")]),t._v(" "),s("h2",{attrs:{id:"tooltip-callbacks"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tooltip-callbacks"}},[t._v("#")]),t._v(" Tooltip Callbacks")]),t._v(" "),s("p",[t._v("Namespace: "),s("code",[t._v("options.plugins.tooltip.callbacks")]),t._v(", the tooltip has the following callbacks for providing text. For all functions, "),s("code",[t._v("this")]),t._v(" will be the tooltip object created from the "),s("code",[t._v("Tooltip")]),t._v(" constructor.")]),t._v(" "),s("p",[t._v("Namespace: "),s("code",[t._v("data.datasets[].tooltip.callbacks")]),t._v(", items marked with "),s("code",[t._v("Yes")]),t._v(" in the column "),s("code",[t._v("Dataset override")]),t._v(" can be overridden per dataset.")]),t._v(" "),s("p",[t._v("All functions are called with the same arguments: a "),s("a",{attrs:{href:"#tooltip-item-context"}},[t._v("tooltip item context")]),t._v(". All functions must return either a string or an array of strings. Arrays of strings are treated as multiple lines of text.")]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Arguments")]),t._v(" "),s("th",[t._v("Dataset override")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("beforeTitle")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns the text to render before the title.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("title")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render as the title of the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("afterTitle")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render after the title.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("beforeBody")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render before the body section.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("beforeLabel")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, object")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns text to render before an individual label. This will be called for each item in the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("label")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, object")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns text to render for an individual item in the tooltip. "),s("a",{attrs:{href:"#label-callback"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("labelColor")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, Chart")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns the colors to render for the tooltip item. "),s("a",{attrs:{href:"#label-color-callback"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("labelTextColor")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, Chart")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns the colors for the text of the label for the tooltip item.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("labelPointStyle")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, Chart")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns the point style to use instead of color boxes if usePointStyle is true (object with values "),s("code",[t._v("pointStyle")]),t._v(" and "),s("code",[t._v("rotation")]),t._v("). Default implementation uses the point style from the dataset points. "),s("a",{attrs:{href:"#label-point-style-callback"}},[t._v("more...")])])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("afterLabel")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem, object")])]),t._v(" "),s("td",[t._v("Yes")]),t._v(" "),s("td",[t._v("Returns text to render after an individual label.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("afterBody")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render after the body section.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("beforeFooter")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render before the footer section.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("footer")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Returns text to render as the footer of the tooltip.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("afterFooter")])]),t._v(" "),s("td",[s("code",[t._v("TooltipItem[], object")])]),t._v(" "),s("td"),t._v(" "),s("td",[t._v("Text to render after the footer section.")])])])]),t._v(" "),s("h3",{attrs:{id:"label-callback"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#label-callback"}},[t._v("#")]),t._v(" Label Callback")]),t._v(" "),s("p",[t._v("The "),s("code",[t._v("label")]),t._v(" callback can change the text that displays for a given data point. A common example to show a unit. The example below puts a "),s("code",[t._v("'$'")]),t._v(" before every row.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltip"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n callbacks"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("label")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" label "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" context"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("dataset"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("label "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("||")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("label"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("': '")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("context"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("parsed"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("!==")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Intl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("NumberFormat")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'en-US'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" style"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'currency'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" currency"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'USD'")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("format")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("context"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("parsed"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" label"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"label-color-callback"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#label-color-callback"}},[t._v("#")]),t._v(" Label Color Callback")]),t._v(" "),s("p",[t._v("For example, to return a red box with a blue dashed border that has a border radius for each item in the tooltip you could do:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltip"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n callbacks"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("labelColor")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n borderColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgb(0, 0, 255)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n backgroundColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgb(255, 0, 0)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderWidth"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderDash"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderRadius"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("labelTextColor")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#543453'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"label-point-style-callback"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#label-point-style-callback"}},[t._v("#")]),t._v(" Label Point Style Callback")]),t._v(" "),s("p",[t._v("For example, to draw triangles instead of the regular color box for each item in the tooltip you could do:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltip"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n usePointStyle"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n callbacks"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("labelPointStyle")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n pointStyle"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'triangle'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n rotation"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h3",{attrs:{id:"tooltip-item-context"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tooltip-item-context"}},[t._v("#")]),t._v(" Tooltip Item Context")]),t._v(" "),s("p",[t._v("The tooltip items passed to the tooltip callbacks implement the following interface.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The chart the tooltip is being shown on")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Chart\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Label for the tooltip")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Parsed data values for the given `dataIndex` and `datasetIndex`")]),t._v("\n parsed"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" object"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Raw data values for the given `dataIndex` and `datasetIndex`")]),t._v("\n raw"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" object"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Formatted value for the tooltip")]),t._v("\n formattedValue"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The dataset the item comes from")]),t._v("\n dataset"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" object\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Index of the dataset the item comes from")]),t._v("\n datasetIndex"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Index of this data item in the dataset")]),t._v("\n dataIndex"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The chart element (point, arc, bar, etc.) for this tooltip item")]),t._v("\n element"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Element"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("h2",{attrs:{id:"external-custom-tooltips"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#external-custom-tooltips"}},[t._v("#")]),t._v(" External (Custom) Tooltips")]),t._v(" "),s("p",[t._v("External tooltips allow you to hook into the tooltip rendering process so that you can render the tooltip in your own custom way. Generally this is used to create an HTML tooltip instead of an on-canvas tooltip. The "),s("code",[t._v("external")]),t._v(" option takes a function which is passed a context parameter containing the "),s("code",[t._v("chart")]),t._v(" and "),s("code",[t._v("tooltip")]),t._v(". You can enable external tooltips in the global or chart configuration like so:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myPieChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'pie'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltip"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Disable the on-canvas tooltip")]),t._v("\n enabled"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("external")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Tooltip Element")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" tooltipEl "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chartjs-tooltip'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Create element on first render")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("!")]),t._v("tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltipEl "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("createElement")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'div'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("id "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chartjs-tooltip'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("innerHTML "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'
'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("body"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("appendChild")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Hide if no tooltip")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" tooltipModel "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" context"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("tooltip"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("opacity "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("===")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("opacity "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Set caret Position")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("classList"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("remove")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'above'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'below'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'no-transform'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("yAlign"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("classList"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("add")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("yAlign"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("else")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("classList"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("add")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'no-transform'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getBody")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("bodyItem")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" bodyItem"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("lines"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Set Text")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("body"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" titleLines "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("title "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("||")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" bodyLines "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("body"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("map")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("getBody"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" innerHtml "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n titleLines"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("forEach")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("title")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n innerHtml "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" title "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n innerHtml "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n bodyLines"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("forEach")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("body"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" i")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" colors "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("labelColors"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("i"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" style "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'background:'")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" colors"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("backgroundColor"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n style "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'; border-color:'")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" colors"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("borderColor"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n style "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'; border-width: 2px'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" span "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n innerHtml "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" span "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" body "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n innerHtml "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("''")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" tableRoot "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("querySelector")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'table'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tableRoot"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("innerHTML "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" innerHtml"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" position "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" context"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getBoundingClientRect")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" bodyFont "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("helpers"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toFont")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("bodyFont"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Display, position, and set styles for font")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("opacity "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("position "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'absolute'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("left "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" position"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("left "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" window"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("pageXOffset "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("caretX "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'px'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("top "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" position"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("top "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" window"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("pageYOffset "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("caretY "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'px'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("font "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" bodyFont"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("padding "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("padding "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'px '")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" tooltipModel"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("padding "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'px'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n tooltipEl"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("style"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("pointerEvents "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'none'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("See "),s("a",{attrs:{href:"https://www.chartjs.org/samples/",target:"_blank",rel:"noopener noreferrer"}},[t._v("samples"),s("OutboundLink")],1),t._v(" for examples on how to get started with external tooltips.")]),t._v(" "),s("h2",{attrs:{id:"tooltip-model"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tooltip-model"}},[t._v("#")]),t._v(" Tooltip Model")]),t._v(" "),s("p",[t._v("The tooltip model contains parameters that can be used to render the tooltip.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The items that we are rendering in the tooltip. See Tooltip Item Interface section")]),t._v("\n dataPoints"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" TooltipItem"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Positioning")]),t._v("\n xAlign"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n yAlign"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// X and Y properties are the top left of the tooltip")]),t._v("\n x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n width"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n height"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Where the tooltip points to")]),t._v("\n caretX"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n caretY"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Body")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The body lines that need to be rendered")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Each object contains 3 parameters")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// before: string[] // lines of text before the line with the color square")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// lines: string[], // lines of text to render as the main item with color square")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// after: string[], // lines of text to render after the main lines")]),t._v("\n body"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" object"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// lines of text that appear after the title but before the body")]),t._v("\n beforeBody"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// line of text that appear after the body and before the footer")]),t._v("\n afterBody"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Title")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// lines of text that form the title")]),t._v("\n title"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Footer")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// lines of text that form the footer")]),t._v("\n footer"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// colors to render for each item in body[]. This is the color of the squares in the tooltip")]),t._v("\n labelColors"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Color"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labelTextColors"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Color"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// 0 opacity is a hidden tooltip")]),t._v("\n opacity"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" number"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// tooltip options")]),t._v("\n options "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Object\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/156.4f88415b.js b/docs/3.1.0/assets/js/156.88c22218.js similarity index 99% rename from docs/3.1.0/assets/js/156.4f88415b.js rename to docs/3.1.0/assets/js/156.88c22218.js index c746771868..faa51e3763 100644 --- a/docs/3.1.0/assets/js/156.4f88415b.js +++ b/docs/3.1.0/assets/js/156.88c22218.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[156],{481:function(t,a,s){"use strict";s.r(a);var e=s(7),n=Object(e.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"api"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#api"}},[t._v("#")]),t._v(" API")]),t._v(" "),s("p",[t._v("For each chart, there are a set of global prototype methods on the shared chart type which you may find useful. These are available on all charts created with Chart.js, but for the examples, let's use a line chart we've made.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For example:")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myLineChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" config"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"destroy"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#destroy"}},[t._v("#")]),t._v(" .destroy()")]),t._v(" "),s("p",[t._v("Use this to destroy any chart instances that are created. This will clean up any references stored to the chart object within Chart.js, along with any associated event listeners attached by Chart.js.\nThis must be called before the canvas is reused for a new chart.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Destroys a specific chart instance")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("destroy")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"update-mode"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#update-mode"}},[t._v("#")]),t._v(" .update(mode?)")]),t._v(" "),s("p",[t._v("Triggers an update of the chart. This can be safely called after updating the data object. This will update all scales, legends, and then re-render the chart.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("myLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Would update the first dataset's value of 'March' to be 50")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Calling update now animates the position of March from 90 to 50.")]),t._v("\n")])])]),s("p",[t._v("A "),s("code",[t._v("mode")]),t._v(" string can be provided to indicate transition configuration should be used. Core calls this method using any of "),s("code",[t._v("'active'")]),t._v(", "),s("code",[t._v("'hide'")]),t._v(", "),s("code",[t._v("'reset'")]),t._v(", "),s("code",[t._v("'resize'")]),t._v(", "),s("code",[t._v("'show'")]),t._v(" or "),s("code",[t._v("undefined")]),t._v(". "),s("code",[t._v("'none'")]),t._v(" is also a supported mode for skipping animations for single update. Please see "),s("RouterLink",{attrs:{to:"/configuration/animations.html"}},[t._v("animations")]),t._v(" docs for more details.")],1),t._v(" "),s("p",[t._v("Example:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'active'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("See "),s("RouterLink",{attrs:{to:"/developers/updates.html"}},[t._v("Updating Charts")]),t._v(" for more details.")],1),t._v(" "),s("h2",{attrs:{id:"reset"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" .reset()")]),t._v(" "),s("p",[t._v("Reset the chart to its state before the initial animation. A new animation can then be triggered using "),s("code",[t._v("update")]),t._v(".")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("myLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("reset")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"render"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#render"}},[t._v("#")]),t._v(" .render()")]),t._v(" "),s("p",[t._v("Triggers a redraw of all chart elements. Note, this does not update elements for new data. Use "),s("code",[t._v(".update()")]),t._v(" in that case.")]),t._v(" "),s("h2",{attrs:{id:"stop"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#stop"}},[t._v("#")]),t._v(" .stop()")]),t._v(" "),s("p",[t._v("Use this to stop any current animation. This will pause the chart during any current animation frame. Call "),s("code",[t._v(".render()")]),t._v(" to re-animate.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Stops the charts animation loop at its current frame")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("stop")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// => returns 'this' for chainability")]),t._v("\n")])])]),s("h2",{attrs:{id:"resize-width-height"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#resize-width-height"}},[t._v("#")]),t._v(" .resize(width?, height?)")]),t._v(" "),s("p",[t._v("Use this to manually resize the canvas element. This is run each time the canvas container is resized, but you can call this method manually if you change the size of the canvas nodes container element.")]),t._v(" "),s("p",[t._v("You can call "),s("code",[t._v(".resize()")]),t._v(" with no parameters to have the chart take the size of its container element, or you can pass explicit dimensions (e.g., for "),s("RouterLink",{attrs:{to:"/configuration/responsive.html#printing-resizable-charts"}},[t._v("printing")]),t._v(").")],1),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Resizes & redraws to fill its container element")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("resize")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// => returns 'this' for chainability")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// With an explicit size:")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("resize")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("width"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" height"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"clear"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#clear"}},[t._v("#")]),t._v(" .clear()")]),t._v(" "),s("p",[t._v("Will clear the chart canvas. Used extensively internally between animation frames, but you might find it useful.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Will clear the canvas that myLineChart is drawn on")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("clear")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// => returns 'this' for chainability")]),t._v("\n")])])]),s("h2",{attrs:{id:"tobase64image-type-quality"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tobase64image-type-quality"}},[t._v("#")]),t._v(" .toBase64Image(type?, quality?)")]),t._v(" "),s("p",[t._v("This returns a base 64 encoded string of the chart in its current state.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("myLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toBase64Image")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// => returns png data url of the image on the canvas")]),t._v("\n\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toBase64Image")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'image/jpeg'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// => returns a jpeg data url in the highest quality of the canvas")]),t._v("\n")])])]),s("h2",{attrs:{id:"getelementsateventformode-e-mode-options-usefinalposition"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#getelementsateventformode-e-mode-options-usefinalposition"}},[t._v("#")]),t._v(" .getElementsAtEventForMode(e, mode, options, useFinalPosition)")]),t._v(" "),s("p",[t._v("Calling "),s("code",[t._v("getElementsAtEventForMode(e, mode, options, useFinalPosition)")]),t._v(" on your Chart instance passing an event and a mode will return the elements that are found. The "),s("code",[t._v("options")]),t._v(" and "),s("code",[t._v("useFinalPosition")]),t._v(" arguments are passed through to the handlers.")]),t._v(" "),s("p",[t._v("To get an item that was clicked on, "),s("code",[t._v("getElementsAtEventForMode")]),t._v(" can be used.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("clickHandler")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("evt")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" points "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementAtEventForMode")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("evt"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'nearest'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" intersect"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("points"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("length"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" firstPoint "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" points"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" label "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("labels"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("firstPoint"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("index"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" value "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("firstPoint"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasetIndex"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("firstPoint"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("index"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("h2",{attrs:{id:"getdatasetmeta-index"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#getdatasetmeta-index"}},[t._v("#")]),t._v(" .getDatasetMeta(index)")]),t._v(" "),s("p",[t._v("Looks for the dataset that matches the current index and returns that metadata. This returned data has all of the metadata that is used to construct the chart.")]),t._v(" "),s("p",[t._v("The "),s("code",[t._v("data")]),t._v(" property of the metadata will contain information about each point, bar, etc. depending on the chart type.")]),t._v(" "),s("p",[t._v("Extensive examples of usage are available in the "),s("a",{attrs:{href:"https://github.com/chartjs/Chart.js/tree/master/test",target:"_blank",rel:"noopener noreferrer"}},[t._v("Chart.js tests"),s("OutboundLink")],1),t._v(".")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" meta "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getDatasetMeta")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" x "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" meta"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"setdatasetvisibility-datasetindex-visibility"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#setdatasetvisibility-datasetindex-visibility"}},[t._v("#")]),t._v(" setDatasetVisibility(datasetIndex, visibility)")]),t._v(" "),s("p",[t._v("Sets the visibility for a given dataset. This can be used to build a chart legend in HTML. During click on one of the HTML items, you can call "),s("code",[t._v("setDatasetVisibility")]),t._v(" to change the appropriate dataset.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("setDatasetVisibility")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// hides dataset at index 1")]),t._v("\nchart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// chart now renders with dataset hidden")]),t._v("\n")])])]),s("h2",{attrs:{id:"toggledatavisibility-index"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#toggledatavisibility-index"}},[t._v("#")]),t._v(" toggleDataVisibility(index)")]),t._v(" "),s("p",[t._v("Toggles the visibility of an item in all datasets. A dataset needs to explicitly support this feature for it to have an effect. From internal chart types, doughnut / pie, polar area, and bar use this.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toggleDataVisibility")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// toggles the item in all datasets, at index 2")]),t._v("\nchart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// chart now renders with item hidden")]),t._v("\n")])])]),s("h2",{attrs:{id:"getdatavisibility-index"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#getdatavisibility-index"}},[t._v("#")]),t._v(" getDataVisibility(index)")]),t._v(" "),s("p",[t._v("Returns the stored visibility state of an data index for all datasets. Set by "),s("a",{attrs:{href:"#toggleDataVisibility"}},[t._v("toggleDataVisibility")]),t._v(". A dataset controller should use this method to determine if an item should not be visible.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" visible "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getDataVisibility")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"hide-datasetindex"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#hide-datasetindex"}},[t._v("#")]),t._v(" hide(datasetIndex)")]),t._v(" "),s("p",[t._v("Sets the visibility for the given dataset to false. Updates the chart and animates the dataset with "),s("code",[t._v("'hide'")]),t._v(" mode. This animation can be configured under the "),s("code",[t._v("hide")]),t._v(" key in animation options. Please see "),s("RouterLink",{attrs:{to:"/configuration/animations.html"}},[t._v("animations")]),t._v(" docs for more details.")],1),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("hide")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// hides dataset at index 1 and does 'hide' animation.")]),t._v("\n")])])]),s("h2",{attrs:{id:"show-datasetindex"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#show-datasetindex"}},[t._v("#")]),t._v(" show(datasetIndex)")]),t._v(" "),s("p",[t._v("Sets the visibility for the given dataset to true. Updates the chart and animates the dataset with "),s("code",[t._v("'show'")]),t._v(" mode. This animation can be configured under the "),s("code",[t._v("show")]),t._v(" key in animation options. Please see "),s("RouterLink",{attrs:{to:"/configuration/animations.html"}},[t._v("animations")]),t._v(" docs for more details.")],1),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("show")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// shows dataset at index 1 and does 'show' animation.")]),t._v("\n")])])]),s("h2",{attrs:{id:"setactiveelements-activeelements"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#setactiveelements-activeelements"}},[t._v("#")]),t._v(" setActiveElements(activeElements)")]),t._v(" "),s("p",[t._v('Sets the active (hovered) elements for the chart. See the "Programmatic Events" sample file to see this in action.')]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("setActiveElements")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("datasetIndex"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" index"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"static-getchart-key"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#static-getchart-key"}},[t._v("#")]),t._v(" Static: getChart(key)")]),t._v(" "),s("p",[t._v("Finds the chart instance from the given key. If the key is a "),s("code",[t._v("string")]),t._v(", it is interpreted as the ID of the Canvas node for the Chart. The key can also be a "),s("code",[t._v("CanvasRenderingContext2D")]),t._v(" or an "),s("code",[t._v("HTMLDOMElement")]),t._v(". This will return "),s("code",[t._v("undefined")]),t._v(" if no Chart is found. To be found, the chart must have previously been created.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getChart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"canvas-id"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[156],{480:function(t,a,s){"use strict";s.r(a);var e=s(7),n=Object(e.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"api"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#api"}},[t._v("#")]),t._v(" API")]),t._v(" "),s("p",[t._v("For each chart, there are a set of global prototype methods on the shared chart type which you may find useful. These are available on all charts created with Chart.js, but for the examples, let's use a line chart we've made.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For example:")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myLineChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" config"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"destroy"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#destroy"}},[t._v("#")]),t._v(" .destroy()")]),t._v(" "),s("p",[t._v("Use this to destroy any chart instances that are created. This will clean up any references stored to the chart object within Chart.js, along with any associated event listeners attached by Chart.js.\nThis must be called before the canvas is reused for a new chart.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Destroys a specific chart instance")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("destroy")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"update-mode"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#update-mode"}},[t._v("#")]),t._v(" .update(mode?)")]),t._v(" "),s("p",[t._v("Triggers an update of the chart. This can be safely called after updating the data object. This will update all scales, legends, and then re-render the chart.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("myLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Would update the first dataset's value of 'March' to be 50")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Calling update now animates the position of March from 90 to 50.")]),t._v("\n")])])]),s("p",[t._v("A "),s("code",[t._v("mode")]),t._v(" string can be provided to indicate transition configuration should be used. Core calls this method using any of "),s("code",[t._v("'active'")]),t._v(", "),s("code",[t._v("'hide'")]),t._v(", "),s("code",[t._v("'reset'")]),t._v(", "),s("code",[t._v("'resize'")]),t._v(", "),s("code",[t._v("'show'")]),t._v(" or "),s("code",[t._v("undefined")]),t._v(". "),s("code",[t._v("'none'")]),t._v(" is also a supported mode for skipping animations for single update. Please see "),s("RouterLink",{attrs:{to:"/configuration/animations.html"}},[t._v("animations")]),t._v(" docs for more details.")],1),t._v(" "),s("p",[t._v("Example:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'active'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("See "),s("RouterLink",{attrs:{to:"/developers/updates.html"}},[t._v("Updating Charts")]),t._v(" for more details.")],1),t._v(" "),s("h2",{attrs:{id:"reset"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" .reset()")]),t._v(" "),s("p",[t._v("Reset the chart to its state before the initial animation. A new animation can then be triggered using "),s("code",[t._v("update")]),t._v(".")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("myLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("reset")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"render"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#render"}},[t._v("#")]),t._v(" .render()")]),t._v(" "),s("p",[t._v("Triggers a redraw of all chart elements. Note, this does not update elements for new data. Use "),s("code",[t._v(".update()")]),t._v(" in that case.")]),t._v(" "),s("h2",{attrs:{id:"stop"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#stop"}},[t._v("#")]),t._v(" .stop()")]),t._v(" "),s("p",[t._v("Use this to stop any current animation. This will pause the chart during any current animation frame. Call "),s("code",[t._v(".render()")]),t._v(" to re-animate.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Stops the charts animation loop at its current frame")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("stop")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// => returns 'this' for chainability")]),t._v("\n")])])]),s("h2",{attrs:{id:"resize-width-height"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#resize-width-height"}},[t._v("#")]),t._v(" .resize(width?, height?)")]),t._v(" "),s("p",[t._v("Use this to manually resize the canvas element. This is run each time the canvas container is resized, but you can call this method manually if you change the size of the canvas nodes container element.")]),t._v(" "),s("p",[t._v("You can call "),s("code",[t._v(".resize()")]),t._v(" with no parameters to have the chart take the size of its container element, or you can pass explicit dimensions (e.g., for "),s("RouterLink",{attrs:{to:"/configuration/responsive.html#printing-resizable-charts"}},[t._v("printing")]),t._v(").")],1),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Resizes & redraws to fill its container element")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("resize")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// => returns 'this' for chainability")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// With an explicit size:")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("resize")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("width"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" height"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"clear"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#clear"}},[t._v("#")]),t._v(" .clear()")]),t._v(" "),s("p",[t._v("Will clear the chart canvas. Used extensively internally between animation frames, but you might find it useful.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Will clear the canvas that myLineChart is drawn on")]),t._v("\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("clear")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// => returns 'this' for chainability")]),t._v("\n")])])]),s("h2",{attrs:{id:"tobase64image-type-quality"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tobase64image-type-quality"}},[t._v("#")]),t._v(" .toBase64Image(type?, quality?)")]),t._v(" "),s("p",[t._v("This returns a base 64 encoded string of the chart in its current state.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("myLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toBase64Image")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// => returns png data url of the image on the canvas")]),t._v("\n\nmyLineChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toBase64Image")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'image/jpeg'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// => returns a jpeg data url in the highest quality of the canvas")]),t._v("\n")])])]),s("h2",{attrs:{id:"getelementsateventformode-e-mode-options-usefinalposition"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#getelementsateventformode-e-mode-options-usefinalposition"}},[t._v("#")]),t._v(" .getElementsAtEventForMode(e, mode, options, useFinalPosition)")]),t._v(" "),s("p",[t._v("Calling "),s("code",[t._v("getElementsAtEventForMode(e, mode, options, useFinalPosition)")]),t._v(" on your Chart instance passing an event and a mode will return the elements that are found. The "),s("code",[t._v("options")]),t._v(" and "),s("code",[t._v("useFinalPosition")]),t._v(" arguments are passed through to the handlers.")]),t._v(" "),s("p",[t._v("To get an item that was clicked on, "),s("code",[t._v("getElementsAtEventForMode")]),t._v(" can be used.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("clickHandler")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("evt")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" points "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementAtEventForMode")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("evt"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'nearest'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" intersect"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("points"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("length"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" firstPoint "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" points"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" label "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("labels"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("firstPoint"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("index"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" value "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("firstPoint"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasetIndex"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("firstPoint"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("index"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("h2",{attrs:{id:"getdatasetmeta-index"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#getdatasetmeta-index"}},[t._v("#")]),t._v(" .getDatasetMeta(index)")]),t._v(" "),s("p",[t._v("Looks for the dataset that matches the current index and returns that metadata. This returned data has all of the metadata that is used to construct the chart.")]),t._v(" "),s("p",[t._v("The "),s("code",[t._v("data")]),t._v(" property of the metadata will contain information about each point, bar, etc. depending on the chart type.")]),t._v(" "),s("p",[t._v("Extensive examples of usage are available in the "),s("a",{attrs:{href:"https://github.com/chartjs/Chart.js/tree/master/test",target:"_blank",rel:"noopener noreferrer"}},[t._v("Chart.js tests"),s("OutboundLink")],1),t._v(".")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" meta "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getDatasetMeta")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" x "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" meta"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"setdatasetvisibility-datasetindex-visibility"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#setdatasetvisibility-datasetindex-visibility"}},[t._v("#")]),t._v(" setDatasetVisibility(datasetIndex, visibility)")]),t._v(" "),s("p",[t._v("Sets the visibility for a given dataset. This can be used to build a chart legend in HTML. During click on one of the HTML items, you can call "),s("code",[t._v("setDatasetVisibility")]),t._v(" to change the appropriate dataset.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("setDatasetVisibility")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// hides dataset at index 1")]),t._v("\nchart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// chart now renders with dataset hidden")]),t._v("\n")])])]),s("h2",{attrs:{id:"toggledatavisibility-index"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#toggledatavisibility-index"}},[t._v("#")]),t._v(" toggleDataVisibility(index)")]),t._v(" "),s("p",[t._v("Toggles the visibility of an item in all datasets. A dataset needs to explicitly support this feature for it to have an effect. From internal chart types, doughnut / pie, polar area, and bar use this.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("toggleDataVisibility")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// toggles the item in all datasets, at index 2")]),t._v("\nchart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// chart now renders with item hidden")]),t._v("\n")])])]),s("h2",{attrs:{id:"getdatavisibility-index"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#getdatavisibility-index"}},[t._v("#")]),t._v(" getDataVisibility(index)")]),t._v(" "),s("p",[t._v("Returns the stored visibility state of an data index for all datasets. Set by "),s("a",{attrs:{href:"#toggleDataVisibility"}},[t._v("toggleDataVisibility")]),t._v(". A dataset controller should use this method to determine if an item should not be visible.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" visible "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getDataVisibility")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"hide-datasetindex"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#hide-datasetindex"}},[t._v("#")]),t._v(" hide(datasetIndex)")]),t._v(" "),s("p",[t._v("Sets the visibility for the given dataset to false. Updates the chart and animates the dataset with "),s("code",[t._v("'hide'")]),t._v(" mode. This animation can be configured under the "),s("code",[t._v("hide")]),t._v(" key in animation options. Please see "),s("RouterLink",{attrs:{to:"/configuration/animations.html"}},[t._v("animations")]),t._v(" docs for more details.")],1),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("hide")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// hides dataset at index 1 and does 'hide' animation.")]),t._v("\n")])])]),s("h2",{attrs:{id:"show-datasetindex"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#show-datasetindex"}},[t._v("#")]),t._v(" show(datasetIndex)")]),t._v(" "),s("p",[t._v("Sets the visibility for the given dataset to true. Updates the chart and animates the dataset with "),s("code",[t._v("'show'")]),t._v(" mode. This animation can be configured under the "),s("code",[t._v("show")]),t._v(" key in animation options. Please see "),s("RouterLink",{attrs:{to:"/configuration/animations.html"}},[t._v("animations")]),t._v(" docs for more details.")],1),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("show")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// shows dataset at index 1 and does 'show' animation.")]),t._v("\n")])])]),s("h2",{attrs:{id:"setactiveelements-activeelements"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#setactiveelements-activeelements"}},[t._v("#")]),t._v(" setActiveElements(activeElements)")]),t._v(" "),s("p",[t._v('Sets the active (hovered) elements for the chart. See the "Programmatic Events" sample file to see this in action.')]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("setActiveElements")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("datasetIndex"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" index"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"static-getchart-key"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#static-getchart-key"}},[t._v("#")]),t._v(" Static: getChart(key)")]),t._v(" "),s("p",[t._v("Finds the chart instance from the given key. If the key is a "),s("code",[t._v("string")]),t._v(", it is interpreted as the ID of the Canvas node for the Chart. The key can also be a "),s("code",[t._v("CanvasRenderingContext2D")]),t._v(" or an "),s("code",[t._v("HTMLDOMElement")]),t._v(". This will return "),s("code",[t._v("undefined")]),t._v(" if no Chart is found. To be found, the chart must have previously been created.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getChart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v('"canvas-id"')]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/157.a88f44e3.js b/docs/3.1.0/assets/js/157.6b66074e.js similarity index 100% rename from docs/3.1.0/assets/js/157.a88f44e3.js rename to docs/3.1.0/assets/js/157.6b66074e.js diff --git a/docs/3.1.0/assets/js/158.b6bb0c6c.js b/docs/3.1.0/assets/js/158.bfde7069.js similarity index 99% rename from docs/3.1.0/assets/js/158.b6bb0c6c.js rename to docs/3.1.0/assets/js/158.bfde7069.js index bd9e222aae..430b219a4d 100644 --- a/docs/3.1.0/assets/js/158.b6bb0c6c.js +++ b/docs/3.1.0/assets/js/158.bfde7069.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[158],{483:function(t,s,a){"use strict";a.r(s);var n=a(7),e=Object(n.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"new-charts"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#new-charts"}},[t._v("#")]),t._v(" New Charts")]),t._v(" "),a("p",[t._v("Chart.js 2.0 introduced the concept of controllers for each dataset. Like scales, new controllers can be written as needed.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("class")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("MyType")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("extends")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("DatasetController")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\nChart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("register")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("MyType"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Now we can create a new instance of our chart, using the Chart.js API")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// this is the string the constructor was registered at, ie Chart.controllers.MyType")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'MyType'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" options\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"dataset-controller-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-controller-interface"}},[t._v("#")]),t._v(" Dataset Controller Interface")]),t._v(" "),a("p",[t._v("Dataset controllers must implement the following interface.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Defaults for charts of this type")]),t._v("\n defaults"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// If set to `false` or `null`, no dataset level element is created.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// If set to a string, this is the type of element to create for the dataset.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For example, a line create needs to create a line element so this is the string 'line'")]),t._v("\n datasetElementType"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// If set to `false` or `null`, no elements are created for each data value.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// If set to a string, this is the type of element to create for each data value.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For example, a line create needs to create a point element so this is the string 'point'")]),t._v("\n dataElementType"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// ID of the controller")]),t._v("\n id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Update the elements in response to new data")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// @param mode : update mode, core calls this method using any of `'active'`, `'hide'`, `'reset'`, `'resize'`, `'show'` or `undefined`")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("update")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("mode")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("p",[t._v("The following methods may optionally be overridden by derived dataset controllers.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Draw the representation of the dataset. The base implementation works in most cases, and an example of a derived version")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// can be found in the line controller")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("draw")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Initializes the controller")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("initialize")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Ensures that the dataset represented by this controller is linked to a scale. Overridden to helpers.noop in the polar area and doughnut controllers as these")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// chart types using a single scale")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("linkScales")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Parse the data into the controller meta data. The default implementation will work for cartesian parsing, but an example of an overridden")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// version can be found in the doughnut controller")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("parse")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("start"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" count")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("h2",{attrs:{id:"extending-existing-chart-types"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#extending-existing-chart-types"}},[t._v("#")]),t._v(" Extending Existing Chart Types")]),t._v(" "),a("p",[t._v("Extending or replacing an existing controller type is easy. Simply replace the constructor for one of the built in types with your own.")]),t._v(" "),a("p",[t._v("The built in controller types are:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("BarController")])]),t._v(" "),a("li",[a("code",[t._v("BubbleController")])]),t._v(" "),a("li",[a("code",[t._v("DoughnutController")])]),t._v(" "),a("li",[a("code",[t._v("LineController")])]),t._v(" "),a("li",[a("code",[t._v("PieController")])]),t._v(" "),a("li",[a("code",[t._v("PolarAreaController")])]),t._v(" "),a("li",[a("code",[t._v("RadarController")])]),t._v(" "),a("li",[a("code",[t._v("ScatterController")])])]),t._v(" "),a("p",[t._v("These controllers are also available in the UMD package, directly under "),a("code",[t._v("Chart")]),t._v(". Eg: "),a("code",[t._v("Chart.BarController")]),t._v(".")]),t._v(" "),a("p",[t._v("For example, to derive a new chart type that extends from a bubble chart, you would do the following.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("BubbleController"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("class")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Custom")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("extends")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("BubbleController")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Call bubble controller method to draw all the points")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("super")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("arguments"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Now we can do some custom drawing for this dataset. Here we'll draw a red box around the first point in each dataset")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" meta "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getMeta")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" pt0 "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" meta"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" pt0"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getProps")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'x'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'y'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" pt0"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" ctx "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("save")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("strokeStyle "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'red'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("lineWidth "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("strokeRect")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("x "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("*")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("*")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("restore")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nCustom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("id "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'derivedBubble'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nCustom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" BubbleController"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Stores the controller so that the chart initialization routine can look it up")]),t._v("\nChart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("register")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("Custom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Now we can create and use our new chart type")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'derivedBubble'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" options\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"typescript-typings"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#typescript-typings"}},[t._v("#")]),t._v(" TypeScript Typings")]),t._v(" "),a("p",[t._v("If you want your new chart type to be statically typed, you must provide a "),a("code",[t._v(".d.ts")]),t._v(' TypeScript declaration file. Chart.js provides a way to augment built-in types with user-defined ones, by using the concept of "declaration merging".')]),t._v(" "),a("p",[t._v("When adding a new chart type, "),a("code",[t._v("ChartTypeRegistry")]),t._v(" must contains the declarations for the new type, either by extending an existing entry in "),a("code",[t._v("ChartTypeRegistry")]),t._v(" or by creating a new one.")]),t._v(" "),a("p",[t._v("For example, to provide typings for a new chart type that extends from a bubble chart, you would add a "),a("code",[t._v(".d.ts")]),t._v(" containing:")]),t._v(" "),a("div",{staticClass:"language-ts extra-class"},[a("pre",{pre:!0,attrs:{class:"language-ts"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" ChartTypeRegistry "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("declare")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("module")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("interface")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("ChartTypeRegistry")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n derivedBubble"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" ChartTypeRegistry"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bubble'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])])])}),[],!1,null,null,null);s.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[158],{481:function(t,s,a){"use strict";a.r(s);var n=a(7),e=Object(n.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"new-charts"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#new-charts"}},[t._v("#")]),t._v(" New Charts")]),t._v(" "),a("p",[t._v("Chart.js 2.0 introduced the concept of controllers for each dataset. Like scales, new controllers can be written as needed.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("class")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("MyType")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("extends")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("DatasetController")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\nChart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("register")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("MyType"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Now we can create a new instance of our chart, using the Chart.js API")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// this is the string the constructor was registered at, ie Chart.controllers.MyType")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'MyType'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" options\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"dataset-controller-interface"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-controller-interface"}},[t._v("#")]),t._v(" Dataset Controller Interface")]),t._v(" "),a("p",[t._v("Dataset controllers must implement the following interface.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Defaults for charts of this type")]),t._v("\n defaults"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// If set to `false` or `null`, no dataset level element is created.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// If set to a string, this is the type of element to create for the dataset.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For example, a line create needs to create a line element so this is the string 'line'")]),t._v("\n datasetElementType"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// If set to `false` or `null`, no elements are created for each data value.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// If set to a string, this is the type of element to create for each data value.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// For example, a line create needs to create a point element so this is the string 'point'")]),t._v("\n dataElementType"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("|")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// ID of the controller")]),t._v("\n id"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" string"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Update the elements in response to new data")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// @param mode : update mode, core calls this method using any of `'active'`, `'hide'`, `'reset'`, `'resize'`, `'show'` or `undefined`")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("update")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("mode")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("p",[t._v("The following methods may optionally be overridden by derived dataset controllers.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Draw the representation of the dataset. The base implementation works in most cases, and an example of a derived version")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// can be found in the line controller")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("draw")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Initializes the controller")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("initialize")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Ensures that the dataset represented by this controller is linked to a scale. Overridden to helpers.noop in the polar area and doughnut controllers as these")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// chart types using a single scale")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("linkScales")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Parse the data into the controller meta data. The default implementation will work for cartesian parsing, but an example of an overridden")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// version can be found in the doughnut controller")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("parse")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("start"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" count")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("h2",{attrs:{id:"extending-existing-chart-types"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#extending-existing-chart-types"}},[t._v("#")]),t._v(" Extending Existing Chart Types")]),t._v(" "),a("p",[t._v("Extending or replacing an existing controller type is easy. Simply replace the constructor for one of the built in types with your own.")]),t._v(" "),a("p",[t._v("The built in controller types are:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("BarController")])]),t._v(" "),a("li",[a("code",[t._v("BubbleController")])]),t._v(" "),a("li",[a("code",[t._v("DoughnutController")])]),t._v(" "),a("li",[a("code",[t._v("LineController")])]),t._v(" "),a("li",[a("code",[t._v("PieController")])]),t._v(" "),a("li",[a("code",[t._v("PolarAreaController")])]),t._v(" "),a("li",[a("code",[t._v("RadarController")])]),t._v(" "),a("li",[a("code",[t._v("ScatterController")])])]),t._v(" "),a("p",[t._v("These controllers are also available in the UMD package, directly under "),a("code",[t._v("Chart")]),t._v(". Eg: "),a("code",[t._v("Chart.BarController")]),t._v(".")]),t._v(" "),a("p",[t._v("For example, to derive a new chart type that extends from a bubble chart, you would do the following.")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("BubbleController"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("class")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Custom")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("extends")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("BubbleController")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Call bubble controller method to draw all the points")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("super")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("arguments"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Now we can do some custom drawing for this dataset. Here we'll draw a red box around the first point in each dataset")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" meta "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getMeta")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" pt0 "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" meta"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" pt0"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getProps")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'x'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'y'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" pt0"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" ctx "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("save")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("strokeStyle "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'red'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("lineWidth "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("strokeRect")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("x "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("*")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("*")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("restore")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nCustom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("id "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'derivedBubble'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nCustom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" BubbleController"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Stores the controller so that the chart initialization routine can look it up")]),t._v("\nChart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("register")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("Custom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Now we can create and use our new chart type")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'derivedBubble'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" options\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),a("h2",{attrs:{id:"typescript-typings"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#typescript-typings"}},[t._v("#")]),t._v(" TypeScript Typings")]),t._v(" "),a("p",[t._v("If you want your new chart type to be statically typed, you must provide a "),a("code",[t._v(".d.ts")]),t._v(' TypeScript declaration file. Chart.js provides a way to augment built-in types with user-defined ones, by using the concept of "declaration merging".')]),t._v(" "),a("p",[t._v("When adding a new chart type, "),a("code",[t._v("ChartTypeRegistry")]),t._v(" must contains the declarations for the new type, either by extending an existing entry in "),a("code",[t._v("ChartTypeRegistry")]),t._v(" or by creating a new one.")]),t._v(" "),a("p",[t._v("For example, to provide typings for a new chart type that extends from a bubble chart, you would add a "),a("code",[t._v(".d.ts")]),t._v(" containing:")]),t._v(" "),a("div",{staticClass:"language-ts extra-class"},[a("pre",{pre:!0,attrs:{class:"language-ts"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" ChartTypeRegistry "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("declare")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("module")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("interface")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("ChartTypeRegistry")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n derivedBubble"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" ChartTypeRegistry"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bubble'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])])])}),[],!1,null,null,null);s.default=e.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/159.b953925d.js b/docs/3.1.0/assets/js/159.f33bb4c1.js similarity index 99% rename from docs/3.1.0/assets/js/159.b953925d.js rename to docs/3.1.0/assets/js/159.f33bb4c1.js index 707fd61f69..03fc2039a7 100644 --- a/docs/3.1.0/assets/js/159.b953925d.js +++ b/docs/3.1.0/assets/js/159.f33bb4c1.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[159],{484:function(e,t,a){"use strict";a.r(t);var s=a(7),n=Object(s.a)({},(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[a("h1",{attrs:{id:"contributing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#contributing"}},[e._v("#")]),e._v(" Contributing")]),e._v(" "),a("p",[e._v("New contributions to the library are welcome, but we ask that you please follow these guidelines:")]),e._v(" "),a("ul",[a("li",[e._v("Before opening a PR for major additions or changes, please discuss the expected API and/or implementation by "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/issues",target:"_blank",rel:"noopener noreferrer"}},[e._v("filing an issue"),a("OutboundLink")],1),e._v(" or asking about it in the "),a("a",{attrs:{href:"https://chartjs-slack.herokuapp.com/",target:"_blank",rel:"noopener noreferrer"}},[e._v("Chart.js Slack"),a("OutboundLink")],1),e._v(" #dev channel. This will save you development time by getting feedback upfront and make review faster by giving the maintainers more context and details.")]),e._v(" "),a("li",[e._v("Consider whether your changes are useful for all users, or if creating a Chart.js "),a("RouterLink",{attrs:{to:"/developers/plugins.html"}},[e._v("plugin")]),e._v(" would be more appropriate.")],1),e._v(" "),a("li",[e._v("Check that your code will pass tests and "),a("code",[e._v("eslint")]),e._v(" code standards. "),a("code",[e._v("npm test")]),e._v(" will run both the linter and tests for you.")]),e._v(" "),a("li",[e._v("Add unit tests and document new functionality (in the "),a("code",[e._v("test/")]),e._v(" and "),a("code",[e._v("docs/")]),e._v(" directories respectively).")]),e._v(" "),a("li",[e._v("Avoid breaking changes unless there is an upcoming major release, which are infrequent. We encourage people to write plugins for most new advanced features, and care a lot about backwards compatibility.")]),e._v(" "),a("li",[e._v("We strongly prefer new methods to be added as private whenever possible. A method can be made private either by making a top-level "),a("code",[e._v("function")]),e._v(" outside of a class or by prefixing it with "),a("code",[e._v("_")]),e._v(" and adding "),a("code",[e._v("@private")]),e._v(" JSDoc if inside a class. Public APIs take considerable time to review and become locked once implemented as we have limited ability to change them without breaking backwards compatibility. Private APIs allow the flexibility to address unforeseen cases.")])]),e._v(" "),a("h2",{attrs:{id:"joining-the-project"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#joining-the-project"}},[e._v("#")]),e._v(" Joining the project")]),e._v(" "),a("p",[e._v("Active committers and contributors are invited to introduce yourself and request commit access to this project. We have a very active Slack community that you can join "),a("a",{attrs:{href:"https://chartjs-slack.herokuapp.com/",target:"_blank",rel:"noopener noreferrer"}},[e._v("here"),a("OutboundLink")],1),e._v(". If you think you can help, we'd love to have you!")]),e._v(" "),a("h2",{attrs:{id:"building-and-testing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#building-and-testing"}},[e._v("#")]),e._v(" Building and Testing")]),e._v(" "),a("p",[e._v("Firstly, we need to ensure development dependencies are installed. With node and npm installed, after cloning the Chart.js repo to a local directory, and navigating to that directory in the command line, we can run the following:")]),e._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("install")]),e._v("\n")])])]),a("p",[e._v("This will install the local development dependencies for Chart.js.")]),e._v(" "),a("p",[e._v("The following commands are now available from the repository root:")]),e._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" run build // build dist files "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("in")]),e._v(" ./dist\n"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" run autobuild // build and "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("watch")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("for")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[e._v("source")]),e._v(" changes\n"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" run dev // run tests and "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("watch")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("for")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[e._v("source")]),e._v(" and "),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[e._v("test")]),e._v(" changes\n"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" run lint // perform code linting "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),e._v("ESLint, tsc"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),e._v("\n"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[e._v("test")]),e._v(" // perform code linting and run unit tests with coverage\n")])])]),a("p",[a("code",[e._v("npm run dev")]),e._v(" and "),a("code",[e._v("npm test")]),e._v(" can be appended with a string that is used to match the spec filenames. For example: "),a("code",[e._v("npm run dev plugins")]),e._v(" will start karma in watch mode for "),a("code",[e._v("test/specs/**/*plugin*.js")]),e._v(".")]),e._v(" "),a("h3",{attrs:{id:"documentation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#documentation"}},[e._v("#")]),e._v(" Documentation")]),e._v(" "),a("p",[e._v("We use "),a("a",{attrs:{href:"https://vuepress.vuejs.org/",target:"_blank",rel:"noopener noreferrer"}},[e._v("Vuepress"),a("OutboundLink")],1),e._v(" to manage the docs which are contained as Markdown files in the docs directory. You can run the doc server locally using these commands:")]),e._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" run docs:dev\n")])])]),a("h3",{attrs:{id:"image-based-tests"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#image-based-tests"}},[e._v("#")]),e._v(" Image-Based Tests")]),e._v(" "),a("p",[e._v("Some display-related functionality is difficult to test via typical Jasmine units. For this reason, we introduced image-based tests ("),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/pull/3988",target:"_blank",rel:"noopener noreferrer"}},[e._v("#3988"),a("OutboundLink")],1),e._v(" and "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/pull/5777",target:"_blank",rel:"noopener noreferrer"}},[e._v("#5777"),a("OutboundLink")],1),e._v(") to assert that a chart is drawn pixel-for-pixel matching an expected image.")]),e._v(" "),a("p",[e._v("Generated charts in image-based tests should be "),a("strong",[e._v("as minimal as possible")]),e._v(" and focus only on the tested feature to prevent failure if another feature breaks (e.g. disable the title and legend when testing scales).")]),e._v(" "),a("p",[e._v("You can create a new image-based test by following the steps below:")]),e._v(" "),a("ul",[a("li",[e._v("Create a JS file ("),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/f7b671006a86201808402c3b6fe2054fe834fd4a/test/fixtures/controller.bubble/radius-scriptable.js",target:"_blank",rel:"noopener noreferrer"}},[e._v("example"),a("OutboundLink")],1),e._v(") or JSON file ("),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/4b421a50bfa17f73ac7aa8db7d077e674dbc148d/test/fixtures/plugin.filler/fill-line-dataset.json",target:"_blank",rel:"noopener noreferrer"}},[e._v("example"),a("OutboundLink")],1),e._v(") that defines chart config and generation options.")]),e._v(" "),a("li",[e._v("Add this file in "),a("code",[e._v("test/fixtures/{spec.name}/{feature-name}.json")]),e._v(".")]),e._v(" "),a("li",[e._v("Add a "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/4b421a50bfa17f73ac7aa8db7d077e674dbc148d/test/specs/plugin.filler.tests.js#L10",target:"_blank",rel:"noopener noreferrer"}},[e._v("describe line"),a("OutboundLink")],1),e._v(" to the beginning of "),a("code",[e._v("test/specs/{spec.name}.tests.js")]),e._v(" if it doesn't exist yet.")]),e._v(" "),a("li",[e._v("Run "),a("code",[e._v("npm run dev")]),e._v(".")]),e._v(" "),a("li",[e._v("Click the "),a("em",[e._v('"Debug"')]),e._v(" button (top/right): a test should fail with the associated canvas visible.")]),e._v(" "),a("li",[e._v("Right click on the chart and "),a("em",[e._v('"Save image as..."')]),e._v(" "),a("code",[e._v("test/fixtures/{spec.name}/{feature-name}.png")]),e._v(" making sure not to activate the tooltip or any hover functionality")]),e._v(" "),a("li",[e._v("Refresh the browser page ("),a("code",[e._v("CTRL+R")]),e._v("): test should now pass")]),e._v(" "),a("li",[e._v("Verify test relevancy by changing the feature values "),a("em",[e._v("slightly")]),e._v(" in the JSON file.")])]),e._v(" "),a("p",[e._v("Tests should pass in both browsers. In general, we've hidden all text in image tests since it's quite difficult to get them passing between different browsers. As a result, it is recommended to hide all scales in image-based tests. It is also recommended to disable animations. If tests still do not pass, adjust "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/1ca0ffb5d5b6c2072176fd36fa85a58c483aa434/test/jasmine.matchers.js",target:"_blank",rel:"noopener noreferrer"}},[a("code",[e._v("tolerance")]),e._v(" and/or "),a("code",[e._v("threshold")]),a("OutboundLink")],1),e._v(" at the beginning of the JSON file keeping them "),a("strong",[e._v("as low as possible")]),e._v(".")]),e._v(" "),a("p",[e._v("When a test fails, the expected and actual images are shown. If you'd like to see the images even when the tests pass, set "),a("code",[e._v('"debug": true')]),e._v(" in the JSON file.")]),e._v(" "),a("h2",{attrs:{id:"bugs-and-issues"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bugs-and-issues"}},[e._v("#")]),e._v(" Bugs and Issues")]),e._v(" "),a("p",[e._v("Please report these on the GitHub page - at "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js",target:"_blank"}},[e._v("github.com/chartjs/Chart.js")]),e._v(". Please do not use issues for support requests. For help using Chart.js, please take a look at the "),a("a",{attrs:{href:"https://stackoverflow.com/questions/tagged/chartjs",target:"_blank",rel:"noopener noreferrer"}},[a("code",[e._v("chartjs")]),a("OutboundLink")],1),e._v(" tag on Stack Overflow.")]),e._v(" "),a("p",[e._v("Well structured, detailed bug reports are hugely valuable for the project.")]),e._v(" "),a("p",[e._v("Guidelines for reporting bugs:")]),e._v(" "),a("ul",[a("li",[e._v("Check the issue search to see if it has already been reported")]),e._v(" "),a("li",[e._v("Isolate the problem to a simple test case")]),e._v(" "),a("li",[e._v("Please include a demonstration of the bug on a website such as "),a("a",{attrs:{href:"https://jsbin.com/",target:"_blank",rel:"noopener noreferrer"}},[e._v("JS Bin"),a("OutboundLink")],1),e._v(", "),a("a",{attrs:{href:"https://jsfiddle.net/",target:"_blank",rel:"noopener noreferrer"}},[e._v("JS Fiddle"),a("OutboundLink")],1),e._v(", or "),a("a",{attrs:{href:"https://codepen.io/pen/",target:"_blank",rel:"noopener noreferrer"}},[e._v("Codepen"),a("OutboundLink")],1),e._v(". ("),a("a",{attrs:{href:"https://codepen.io/pen?template=JXVYzq",target:"_blank",rel:"noopener noreferrer"}},[e._v("Template"),a("OutboundLink")],1),e._v("). If filing a bug against "),a("code",[e._v("master")]),e._v(", you may reference the latest code via "),a("a",{attrs:{href:"https://www.chartjs.org/dist/master/chart.min.js",target:"_blank",rel:"noopener noreferrer"}},[e._v("https://www.chartjs.org/dist/master/chart.min.js"),a("OutboundLink")],1),e._v(" (changing the filename to point at the file you need as appropriate). Do not rely on these files for production purposes as they may be removed at any time.")])]),e._v(" "),a("p",[e._v("Please provide any additional details associated with the bug, if it's browser or screen density specific, or only happens with a certain configuration or data.")])])}),[],!1,null,null,null);t.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[159],{483:function(e,t,a){"use strict";a.r(t);var s=a(7),n=Object(s.a)({},(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[a("h1",{attrs:{id:"contributing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#contributing"}},[e._v("#")]),e._v(" Contributing")]),e._v(" "),a("p",[e._v("New contributions to the library are welcome, but we ask that you please follow these guidelines:")]),e._v(" "),a("ul",[a("li",[e._v("Before opening a PR for major additions or changes, please discuss the expected API and/or implementation by "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/issues",target:"_blank",rel:"noopener noreferrer"}},[e._v("filing an issue"),a("OutboundLink")],1),e._v(" or asking about it in the "),a("a",{attrs:{href:"https://chartjs-slack.herokuapp.com/",target:"_blank",rel:"noopener noreferrer"}},[e._v("Chart.js Slack"),a("OutboundLink")],1),e._v(" #dev channel. This will save you development time by getting feedback upfront and make review faster by giving the maintainers more context and details.")]),e._v(" "),a("li",[e._v("Consider whether your changes are useful for all users, or if creating a Chart.js "),a("RouterLink",{attrs:{to:"/developers/plugins.html"}},[e._v("plugin")]),e._v(" would be more appropriate.")],1),e._v(" "),a("li",[e._v("Check that your code will pass tests and "),a("code",[e._v("eslint")]),e._v(" code standards. "),a("code",[e._v("npm test")]),e._v(" will run both the linter and tests for you.")]),e._v(" "),a("li",[e._v("Add unit tests and document new functionality (in the "),a("code",[e._v("test/")]),e._v(" and "),a("code",[e._v("docs/")]),e._v(" directories respectively).")]),e._v(" "),a("li",[e._v("Avoid breaking changes unless there is an upcoming major release, which are infrequent. We encourage people to write plugins for most new advanced features, and care a lot about backwards compatibility.")]),e._v(" "),a("li",[e._v("We strongly prefer new methods to be added as private whenever possible. A method can be made private either by making a top-level "),a("code",[e._v("function")]),e._v(" outside of a class or by prefixing it with "),a("code",[e._v("_")]),e._v(" and adding "),a("code",[e._v("@private")]),e._v(" JSDoc if inside a class. Public APIs take considerable time to review and become locked once implemented as we have limited ability to change them without breaking backwards compatibility. Private APIs allow the flexibility to address unforeseen cases.")])]),e._v(" "),a("h2",{attrs:{id:"joining-the-project"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#joining-the-project"}},[e._v("#")]),e._v(" Joining the project")]),e._v(" "),a("p",[e._v("Active committers and contributors are invited to introduce yourself and request commit access to this project. We have a very active Slack community that you can join "),a("a",{attrs:{href:"https://chartjs-slack.herokuapp.com/",target:"_blank",rel:"noopener noreferrer"}},[e._v("here"),a("OutboundLink")],1),e._v(". If you think you can help, we'd love to have you!")]),e._v(" "),a("h2",{attrs:{id:"building-and-testing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#building-and-testing"}},[e._v("#")]),e._v(" Building and Testing")]),e._v(" "),a("p",[e._v("Firstly, we need to ensure development dependencies are installed. With node and npm installed, after cloning the Chart.js repo to a local directory, and navigating to that directory in the command line, we can run the following:")]),e._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("install")]),e._v("\n")])])]),a("p",[e._v("This will install the local development dependencies for Chart.js.")]),e._v(" "),a("p",[e._v("The following commands are now available from the repository root:")]),e._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" run build // build dist files "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("in")]),e._v(" ./dist\n"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" run autobuild // build and "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("watch")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("for")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[e._v("source")]),e._v(" changes\n"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" run dev // run tests and "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("watch")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[e._v("for")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[e._v("source")]),e._v(" and "),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[e._v("test")]),e._v(" changes\n"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" run lint // perform code linting "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v("(")]),e._v("ESLint, tsc"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[e._v(")")]),e._v("\n"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token builtin class-name"}},[e._v("test")]),e._v(" // perform code linting and run unit tests with coverage\n")])])]),a("p",[a("code",[e._v("npm run dev")]),e._v(" and "),a("code",[e._v("npm test")]),e._v(" can be appended with a string that is used to match the spec filenames. For example: "),a("code",[e._v("npm run dev plugins")]),e._v(" will start karma in watch mode for "),a("code",[e._v("test/specs/**/*plugin*.js")]),e._v(".")]),e._v(" "),a("h3",{attrs:{id:"documentation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#documentation"}},[e._v("#")]),e._v(" Documentation")]),e._v(" "),a("p",[e._v("We use "),a("a",{attrs:{href:"https://vuepress.vuejs.org/",target:"_blank",rel:"noopener noreferrer"}},[e._v("Vuepress"),a("OutboundLink")],1),e._v(" to manage the docs which are contained as Markdown files in the docs directory. You can run the doc server locally using these commands:")]),e._v(" "),a("div",{staticClass:"language-bash extra-class"},[a("pre",{pre:!0,attrs:{class:"language-bash"}},[a("code",[a("span",{pre:!0,attrs:{class:"token operator"}},[e._v(">")]),e._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" run docs:dev\n")])])]),a("h3",{attrs:{id:"image-based-tests"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#image-based-tests"}},[e._v("#")]),e._v(" Image-Based Tests")]),e._v(" "),a("p",[e._v("Some display-related functionality is difficult to test via typical Jasmine units. For this reason, we introduced image-based tests ("),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/pull/3988",target:"_blank",rel:"noopener noreferrer"}},[e._v("#3988"),a("OutboundLink")],1),e._v(" and "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/pull/5777",target:"_blank",rel:"noopener noreferrer"}},[e._v("#5777"),a("OutboundLink")],1),e._v(") to assert that a chart is drawn pixel-for-pixel matching an expected image.")]),e._v(" "),a("p",[e._v("Generated charts in image-based tests should be "),a("strong",[e._v("as minimal as possible")]),e._v(" and focus only on the tested feature to prevent failure if another feature breaks (e.g. disable the title and legend when testing scales).")]),e._v(" "),a("p",[e._v("You can create a new image-based test by following the steps below:")]),e._v(" "),a("ul",[a("li",[e._v("Create a JS file ("),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/f7b671006a86201808402c3b6fe2054fe834fd4a/test/fixtures/controller.bubble/radius-scriptable.js",target:"_blank",rel:"noopener noreferrer"}},[e._v("example"),a("OutboundLink")],1),e._v(") or JSON file ("),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/4b421a50bfa17f73ac7aa8db7d077e674dbc148d/test/fixtures/plugin.filler/fill-line-dataset.json",target:"_blank",rel:"noopener noreferrer"}},[e._v("example"),a("OutboundLink")],1),e._v(") that defines chart config and generation options.")]),e._v(" "),a("li",[e._v("Add this file in "),a("code",[e._v("test/fixtures/{spec.name}/{feature-name}.json")]),e._v(".")]),e._v(" "),a("li",[e._v("Add a "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/4b421a50bfa17f73ac7aa8db7d077e674dbc148d/test/specs/plugin.filler.tests.js#L10",target:"_blank",rel:"noopener noreferrer"}},[e._v("describe line"),a("OutboundLink")],1),e._v(" to the beginning of "),a("code",[e._v("test/specs/{spec.name}.tests.js")]),e._v(" if it doesn't exist yet.")]),e._v(" "),a("li",[e._v("Run "),a("code",[e._v("npm run dev")]),e._v(".")]),e._v(" "),a("li",[e._v("Click the "),a("em",[e._v('"Debug"')]),e._v(" button (top/right): a test should fail with the associated canvas visible.")]),e._v(" "),a("li",[e._v("Right click on the chart and "),a("em",[e._v('"Save image as..."')]),e._v(" "),a("code",[e._v("test/fixtures/{spec.name}/{feature-name}.png")]),e._v(" making sure not to activate the tooltip or any hover functionality")]),e._v(" "),a("li",[e._v("Refresh the browser page ("),a("code",[e._v("CTRL+R")]),e._v("): test should now pass")]),e._v(" "),a("li",[e._v("Verify test relevancy by changing the feature values "),a("em",[e._v("slightly")]),e._v(" in the JSON file.")])]),e._v(" "),a("p",[e._v("Tests should pass in both browsers. In general, we've hidden all text in image tests since it's quite difficult to get them passing between different browsers. As a result, it is recommended to hide all scales in image-based tests. It is also recommended to disable animations. If tests still do not pass, adjust "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/1ca0ffb5d5b6c2072176fd36fa85a58c483aa434/test/jasmine.matchers.js",target:"_blank",rel:"noopener noreferrer"}},[a("code",[e._v("tolerance")]),e._v(" and/or "),a("code",[e._v("threshold")]),a("OutboundLink")],1),e._v(" at the beginning of the JSON file keeping them "),a("strong",[e._v("as low as possible")]),e._v(".")]),e._v(" "),a("p",[e._v("When a test fails, the expected and actual images are shown. If you'd like to see the images even when the tests pass, set "),a("code",[e._v('"debug": true')]),e._v(" in the JSON file.")]),e._v(" "),a("h2",{attrs:{id:"bugs-and-issues"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bugs-and-issues"}},[e._v("#")]),e._v(" Bugs and Issues")]),e._v(" "),a("p",[e._v("Please report these on the GitHub page - at "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js",target:"_blank"}},[e._v("github.com/chartjs/Chart.js")]),e._v(". Please do not use issues for support requests. For help using Chart.js, please take a look at the "),a("a",{attrs:{href:"https://stackoverflow.com/questions/tagged/chartjs",target:"_blank",rel:"noopener noreferrer"}},[a("code",[e._v("chartjs")]),a("OutboundLink")],1),e._v(" tag on Stack Overflow.")]),e._v(" "),a("p",[e._v("Well structured, detailed bug reports are hugely valuable for the project.")]),e._v(" "),a("p",[e._v("Guidelines for reporting bugs:")]),e._v(" "),a("ul",[a("li",[e._v("Check the issue search to see if it has already been reported")]),e._v(" "),a("li",[e._v("Isolate the problem to a simple test case")]),e._v(" "),a("li",[e._v("Please include a demonstration of the bug on a website such as "),a("a",{attrs:{href:"https://jsbin.com/",target:"_blank",rel:"noopener noreferrer"}},[e._v("JS Bin"),a("OutboundLink")],1),e._v(", "),a("a",{attrs:{href:"https://jsfiddle.net/",target:"_blank",rel:"noopener noreferrer"}},[e._v("JS Fiddle"),a("OutboundLink")],1),e._v(", or "),a("a",{attrs:{href:"https://codepen.io/pen/",target:"_blank",rel:"noopener noreferrer"}},[e._v("Codepen"),a("OutboundLink")],1),e._v(". ("),a("a",{attrs:{href:"https://codepen.io/pen?template=JXVYzq",target:"_blank",rel:"noopener noreferrer"}},[e._v("Template"),a("OutboundLink")],1),e._v("). If filing a bug against "),a("code",[e._v("master")]),e._v(", you may reference the latest code via "),a("a",{attrs:{href:"https://www.chartjs.org/dist/master/chart.min.js",target:"_blank",rel:"noopener noreferrer"}},[e._v("https://www.chartjs.org/dist/master/chart.min.js"),a("OutboundLink")],1),e._v(" (changing the filename to point at the file you need as appropriate). Do not rely on these files for production purposes as they may be removed at any time.")])]),e._v(" "),a("p",[e._v("Please provide any additional details associated with the bug, if it's browser or screen density specific, or only happens with a certain configuration or data.")])])}),[],!1,null,null,null);t.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/16.18a619ff.js b/docs/3.1.0/assets/js/16.18a619ff.js deleted file mode 100644 index 00f170f45f..0000000000 --- a/docs/3.1.0/assets/js/16.18a619ff.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{343:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-datasetcontroller-ttype-telement-tdatasetelement-tparseddata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-datasetcontroller-ttype-telement-tdatasetelement-tparseddata"}},[t._v("#")]),t._v(" Class: DatasetController")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TElement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TDatasetElement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TParsedData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#parseddatatype"}},[a("em",[t._v("ParsedDataType")])]),t._v("")],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("DatasetController")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontroller.html"}},[a("em",[t._v("DoughnutController")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new DatasetController")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TElement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}, TElement>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TDatasetElement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}, TDatasetElement>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TParsedData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#parseddatatype"}},[a("em",[t._v("ParsedDataType")])]),t._v("")],1)])])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L532",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:532"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"cachedmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cachedmeta"}},[t._v("#")]),t._v(" _cachedMeta")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("_cachedMeta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L537",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:537"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L535",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:535"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"enableoptionsharing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enableoptionsharing"}},[t._v("#")]),t._v(" enableOptionSharing")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("enableOptionSharing")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L538",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:538"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"index"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("index")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L536",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:536"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"addelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addelements"}},[t._v("#")]),t._v(" addElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addElements")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L554",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:554"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"applystack"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#applystack"}},[t._v("#")]),t._v(" applyStack")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("applyStack")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[]): "),a("em",[t._v("number")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L590",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:590"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildorupdateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildorupdateelements"}},[t._v("#")]),t._v(" buildOrUpdateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildOrUpdateElements")]),t._v("("),a("code",[t._v("resetNewElements?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("resetNewElements?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L555",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:555"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L552",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:552"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L547",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:547"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getallparsedvalues"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getallparsedvalues"}},[t._v("#")]),t._v(" getAllParsedValues")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getAllParsedValues")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("number")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L541",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:541"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdataset"}},[t._v("#")]),t._v(" getDataset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDataset")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L549",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:549"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelandvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelandvalue"}},[t._v("#")]),t._v(" getLabelAndValue")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getLabelAndValue")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("label")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L542",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:542"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaxoverflow"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaxoverflow"}},[t._v("#")]),t._v(" getMaxOverflow")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMaxOverflow")]),t._v("(): "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L546",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:546"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmeta"}},[t._v("#")]),t._v(" getMeta")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMeta")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L550",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:550"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("canStack?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L597",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:597"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getparsed"}},[t._v("#")]),t._v(" getParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getParsed")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): TParsedData")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" TParsedData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L589",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:589"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getscaleforid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getscaleforid"}},[t._v("#")]),t._v(" getScaleForId")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getScaleForId")]),t._v("("),a("code",[t._v("scaleID")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scaleID")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L551",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:551"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getsharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getsharedoptions"}},[t._v("#")]),t._v(" getSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getSharedOptions")]),t._v("("),a("code",[t._v("options")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Utility for checking if the options are shared and should be animated separately.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L564",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:564"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getstyle"}},[t._v("#")]),t._v(" getStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getStyle")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L557",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:557"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"includeoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#includeoptions"}},[t._v("#")]),t._v(" includeOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("includeOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Utility for determining if "),a("code",[t._v("options")]),t._v(" should be included in the updated properties")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L569",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:569"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"initialize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#initialize"}},[t._v("#")]),t._v(" initialize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("initialize")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L553",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:553"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linkscales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linkscales"}},[t._v("#")]),t._v(" linkScales")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("linkScales")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L540",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:540"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L585",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:585"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsearraydata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsearraydata"}},[t._v("#")]),t._v(" parseArrayData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseArrayData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v(", "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:587"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseobjectdata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseobjectdata"}},[t._v("#")]),t._v(" parseObjectData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseObjectData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v(", "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:588"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseprimitivedata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseprimitivedata"}},[t._v("#")]),t._v(" parsePrimitiveData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parsePrimitiveData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v(", "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:586"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removehoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removehoverstyle"}},[t._v("#")]),t._v(" removeHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": TElement, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TElement")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" reset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("reset")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L548",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:548"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedataelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedataelementoptions"}},[t._v("#")]),t._v(" resolveDataElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDataElementOptions")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L559",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:559"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedatasetelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedatasetelementoptions"}},[t._v("#")]),t._v(" resolveDatasetElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDatasetElementOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L558",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:558"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"sethoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#sethoverstyle"}},[t._v("#")]),t._v(" setHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": TElement, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TElement")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L583",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:583"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:544"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelement"}},[t._v("#")]),t._v(" updateElement")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateElement")]),t._v("("),a("code",[t._v("element")]),t._v(": TElement | TDatasetElement, "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("properties")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Utility for updating an element with new properties, using animations when appropriate.")]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TElement | TDatasetElement")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("properties")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L575",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:575"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelements"}},[t._v("#")]),t._v(" updateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateElements")]),t._v("("),a("code",[t._v("elements")]),t._v(": TElement[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TElement[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:543"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateindex"}},[t._v("#")]),t._v(" updateIndex")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateIndex")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L545",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:545"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updaterangefromparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updaterangefromparsed"}},[t._v("#")]),t._v(" updateRangeFromParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateRangeFromParsed")]),t._v("("),a("code",[t._v("range")]),t._v(": { "),a("code",[t._v("max")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("min")]),t._v(": "),a("em",[t._v("number")]),t._v(" }, "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[], "),a("code",[t._v("stack")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("stack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L591",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:591"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatesharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatesharedoptions"}},[t._v("#")]),t._v(" updateSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateSharedOptions")]),t._v("("),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("newOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Utility to animate the shared options, that are potentially affecting multiple elements.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("newOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:581"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/16.f65d25ae.js b/docs/3.1.0/assets/js/16.f65d25ae.js new file mode 100644 index 0000000000..ef601fd681 --- /dev/null +++ b/docs/3.1.0/assets/js/16.f65d25ae.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{339:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-datasetcontroller-ttype-telement-tdatasetelement-tparseddata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-datasetcontroller-ttype-telement-tdatasetelement-tparseddata"}},[t._v("#")]),t._v(" Class: DatasetController")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TElement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TDatasetElement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TParsedData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#parseddatatype"}},[a("em",[t._v("ParsedDataType")])]),t._v("")],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("DatasetController")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontroller.html"}},[a("em",[t._v("DoughnutController")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new DatasetController")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TElement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}, TElement>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TDatasetElement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}, TDatasetElement>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TParsedData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#parseddatatype"}},[a("em",[t._v("ParsedDataType")])]),t._v("")],1)])])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L532",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:532"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"cachedmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cachedmeta"}},[t._v("#")]),t._v(" _cachedMeta")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("_cachedMeta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L537",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:537"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L535",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:535"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"enableoptionsharing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enableoptionsharing"}},[t._v("#")]),t._v(" enableOptionSharing")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("enableOptionSharing")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L538",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:538"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"index"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("index")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L536",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:536"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"addelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addelements"}},[t._v("#")]),t._v(" addElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addElements")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L554",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:554"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"applystack"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#applystack"}},[t._v("#")]),t._v(" applyStack")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("applyStack")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[]): "),a("em",[t._v("number")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L590",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:590"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildorupdateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildorupdateelements"}},[t._v("#")]),t._v(" buildOrUpdateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildOrUpdateElements")]),t._v("("),a("code",[t._v("resetNewElements?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("resetNewElements?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L555",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:555"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L552",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:552"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L547",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:547"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getallparsedvalues"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getallparsedvalues"}},[t._v("#")]),t._v(" getAllParsedValues")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getAllParsedValues")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("number")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L541",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:541"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdataset"}},[t._v("#")]),t._v(" getDataset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDataset")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L549",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:549"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelandvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelandvalue"}},[t._v("#")]),t._v(" getLabelAndValue")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getLabelAndValue")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("label")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L542",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:542"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaxoverflow"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaxoverflow"}},[t._v("#")]),t._v(" getMaxOverflow")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMaxOverflow")]),t._v("(): "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L546",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:546"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmeta"}},[t._v("#")]),t._v(" getMeta")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMeta")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L550",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:550"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("canStack?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L597",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:597"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getparsed"}},[t._v("#")]),t._v(" getParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getParsed")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): TParsedData")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" TParsedData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L589",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:589"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getscaleforid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getscaleforid"}},[t._v("#")]),t._v(" getScaleForId")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getScaleForId")]),t._v("("),a("code",[t._v("scaleID")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scaleID")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L551",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:551"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getsharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getsharedoptions"}},[t._v("#")]),t._v(" getSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getSharedOptions")]),t._v("("),a("code",[t._v("options")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Utility for checking if the options are shared and should be animated separately.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L564",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:564"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getstyle"}},[t._v("#")]),t._v(" getStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getStyle")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L557",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:557"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"includeoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#includeoptions"}},[t._v("#")]),t._v(" includeOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("includeOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Utility for determining if "),a("code",[t._v("options")]),t._v(" should be included in the updated properties")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L569",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:569"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"initialize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#initialize"}},[t._v("#")]),t._v(" initialize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("initialize")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L553",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:553"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linkscales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linkscales"}},[t._v("#")]),t._v(" linkScales")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("linkScales")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L540",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:540"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L585",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:585"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsearraydata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsearraydata"}},[t._v("#")]),t._v(" parseArrayData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseArrayData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v(", "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:587"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseobjectdata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseobjectdata"}},[t._v("#")]),t._v(" parseObjectData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseObjectData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v(", "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:588"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseprimitivedata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseprimitivedata"}},[t._v("#")]),t._v(" parsePrimitiveData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parsePrimitiveData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v(", "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:586"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removehoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removehoverstyle"}},[t._v("#")]),t._v(" removeHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": TElement, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TElement")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" reset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("reset")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L548",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:548"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedataelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedataelementoptions"}},[t._v("#")]),t._v(" resolveDataElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDataElementOptions")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L559",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:559"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedatasetelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedatasetelementoptions"}},[t._v("#")]),t._v(" resolveDatasetElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDatasetElementOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L558",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:558"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"sethoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#sethoverstyle"}},[t._v("#")]),t._v(" setHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": TElement, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TElement")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L583",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:583"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:544"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelement"}},[t._v("#")]),t._v(" updateElement")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateElement")]),t._v("("),a("code",[t._v("element")]),t._v(": TElement | TDatasetElement, "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("properties")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Utility for updating an element with new properties, using animations when appropriate.")]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TElement | TDatasetElement")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("properties")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L575",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:575"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelements"}},[t._v("#")]),t._v(" updateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateElements")]),t._v("("),a("code",[t._v("elements")]),t._v(": TElement[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TElement[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:543"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateindex"}},[t._v("#")]),t._v(" updateIndex")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateIndex")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L545",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:545"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updaterangefromparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updaterangefromparsed"}},[t._v("#")]),t._v(" updateRangeFromParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateRangeFromParsed")]),t._v("("),a("code",[t._v("range")]),t._v(": { "),a("code",[t._v("max")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("min")]),t._v(": "),a("em",[t._v("number")]),t._v(" }, "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[], "),a("code",[t._v("stack")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("stack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L591",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:591"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatesharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatesharedoptions"}},[t._v("#")]),t._v(" updateSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateSharedOptions")]),t._v("("),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("newOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Utility to animate the shared options, that are potentially affecting multiple elements.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("newOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:581"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/160.6889a41c.js b/docs/3.1.0/assets/js/160.e9680c69.js similarity index 98% rename from docs/3.1.0/assets/js/160.6889a41c.js rename to docs/3.1.0/assets/js/160.e9680c69.js index 5ec63dd878..e34739c9c7 100644 --- a/docs/3.1.0/assets/js/160.6889a41c.js +++ b/docs/3.1.0/assets/js/160.e9680c69.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[160],{485:function(e,r,t){"use strict";t.r(r);var s=t(7),a=Object(s.a)({},(function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"developers"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#developers"}},[e._v("#")]),e._v(" Developers")]),e._v(" "),t("p",[e._v("Developer features allow extending and enhancing Chart.js in many different ways.")]),e._v(" "),t("h2",{attrs:{id:"latest-resources"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#latest-resources"}},[e._v("#")]),e._v(" Latest resources")]),e._v(" "),t("p",[e._v("Latest documentation and samples, including unreleased features, are available at:")]),e._v(" "),t("ul",[t("li",[t("a",{attrs:{href:"https://www.chartjs.org/docs/master/",target:"_blank",rel:"noopener noreferrer"}},[e._v("https://www.chartjs.org/docs/master/"),t("OutboundLink")],1)]),e._v(" "),t("li",[t("a",{attrs:{href:"https://www.chartjs.org/samples/master/",target:"_blank",rel:"noopener noreferrer"}},[e._v("https://www.chartjs.org/samples/master/"),t("OutboundLink")],1)])]),e._v(" "),t("h2",{attrs:{id:"development-releases"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#development-releases"}},[e._v("#")]),e._v(" Development releases")]),e._v(" "),t("p",[e._v("Latest builds are available for testing at:")]),e._v(" "),t("ul",[t("li",[t("a",{attrs:{href:"https://www.chartjs.org/dist/master/chart.js",target:"_blank",rel:"noopener noreferrer"}},[e._v("https://www.chartjs.org/dist/master/chart.js"),t("OutboundLink")],1)]),e._v(" "),t("li",[t("a",{attrs:{href:"https://www.chartjs.org/dist/master/chart.min.js",target:"_blank",rel:"noopener noreferrer"}},[e._v("https://www.chartjs.org/dist/master/chart.min.js"),t("OutboundLink")],1)])]),e._v(" "),t("p",[t("strong",[e._v("WARNING: Development builds MUST not be used for production purposes or as replacement for CDN.")])]),e._v(" "),t("h2",{attrs:{id:"browser-support"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#browser-support"}},[e._v("#")]),e._v(" Browser support")]),e._v(" "),t("p",[e._v("All modern and up-to-date browsers are supported, including, but not limited to:")]),e._v(" "),t("p",[e._v("Chrome\nEdge\nFirefox\nSafari")]),e._v(" "),t("p",[e._v("As of version 3, we have dropped Internet Explorer 11 support.")]),e._v(" "),t("p",[e._v("Browser support for the canvas element is available in all modern & major mobile browsers. "),t("a",{attrs:{href:"https://caniuse.com/#feat=canvas",target:"_blank",rel:"noopener noreferrer"}},[e._v("CanIUse"),t("OutboundLink")],1)]),e._v(" "),t("p",[e._v("Run "),t("code",[e._v("npx browserslist")]),e._v(" at the root of the "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js",target:"_blank",rel:"noopener noreferrer"}},[e._v("codebase"),t("OutboundLink")],1),e._v(" to get a list of supported browsers.")]),e._v(" "),t("p",[e._v("Thanks to "),t("a",{attrs:{href:"https://browserstack.com",target:"_blank",rel:"noopener noreferrer"}},[e._v("BrowserStack"),t("OutboundLink")],1),e._v(" for allowing our team to test on thousands of browsers.")]),e._v(" "),t("h2",{attrs:{id:"previous-versions"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#previous-versions"}},[e._v("#")]),e._v(" Previous versions")]),e._v(" "),t("p",[e._v("To migrate from version 2 to version 3, please see "),t("a",{attrs:{href:"../getting-started/v3-migration"}},[e._v("the v3 migration guide")]),e._v(".")]),e._v(" "),t("p",[e._v("Version 3 has a largely different API than earlier versions.")]),e._v(" "),t("p",[e._v("Most earlier version options have current equivalents or are the same.")]),e._v(" "),t("p",[e._v("Please note - documentation for previous versions are available online or in the GitHub repo.")]),e._v(" "),t("ul",[t("li",[t("a",{attrs:{href:"https://www.chartjs.org/docs/2.9.4/",target:"_blank",rel:"noopener noreferrer"}},[e._v("2.9.4 Documentation"),t("OutboundLink")],1)]),e._v(" "),t("li",[t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/tree/v1.1.1/docs",target:"_blank",rel:"noopener noreferrer"}},[e._v("1.x Documentation"),t("OutboundLink")],1)])])])}),[],!1,null,null,null);r.default=a.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[160],{484:function(e,r,t){"use strict";t.r(r);var s=t(7),a=Object(s.a)({},(function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"developers"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#developers"}},[e._v("#")]),e._v(" Developers")]),e._v(" "),t("p",[e._v("Developer features allow extending and enhancing Chart.js in many different ways.")]),e._v(" "),t("h2",{attrs:{id:"latest-resources"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#latest-resources"}},[e._v("#")]),e._v(" Latest resources")]),e._v(" "),t("p",[e._v("Latest documentation and samples, including unreleased features, are available at:")]),e._v(" "),t("ul",[t("li",[t("a",{attrs:{href:"https://www.chartjs.org/docs/master/",target:"_blank",rel:"noopener noreferrer"}},[e._v("https://www.chartjs.org/docs/master/"),t("OutboundLink")],1)]),e._v(" "),t("li",[t("a",{attrs:{href:"https://www.chartjs.org/samples/master/",target:"_blank",rel:"noopener noreferrer"}},[e._v("https://www.chartjs.org/samples/master/"),t("OutboundLink")],1)])]),e._v(" "),t("h2",{attrs:{id:"development-releases"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#development-releases"}},[e._v("#")]),e._v(" Development releases")]),e._v(" "),t("p",[e._v("Latest builds are available for testing at:")]),e._v(" "),t("ul",[t("li",[t("a",{attrs:{href:"https://www.chartjs.org/dist/master/chart.js",target:"_blank",rel:"noopener noreferrer"}},[e._v("https://www.chartjs.org/dist/master/chart.js"),t("OutboundLink")],1)]),e._v(" "),t("li",[t("a",{attrs:{href:"https://www.chartjs.org/dist/master/chart.min.js",target:"_blank",rel:"noopener noreferrer"}},[e._v("https://www.chartjs.org/dist/master/chart.min.js"),t("OutboundLink")],1)])]),e._v(" "),t("p",[t("strong",[e._v("WARNING: Development builds MUST not be used for production purposes or as replacement for CDN.")])]),e._v(" "),t("h2",{attrs:{id:"browser-support"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#browser-support"}},[e._v("#")]),e._v(" Browser support")]),e._v(" "),t("p",[e._v("All modern and up-to-date browsers are supported, including, but not limited to:")]),e._v(" "),t("p",[e._v("Chrome\nEdge\nFirefox\nSafari")]),e._v(" "),t("p",[e._v("As of version 3, we have dropped Internet Explorer 11 support.")]),e._v(" "),t("p",[e._v("Browser support for the canvas element is available in all modern & major mobile browsers. "),t("a",{attrs:{href:"https://caniuse.com/#feat=canvas",target:"_blank",rel:"noopener noreferrer"}},[e._v("CanIUse"),t("OutboundLink")],1)]),e._v(" "),t("p",[e._v("Run "),t("code",[e._v("npx browserslist")]),e._v(" at the root of the "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js",target:"_blank",rel:"noopener noreferrer"}},[e._v("codebase"),t("OutboundLink")],1),e._v(" to get a list of supported browsers.")]),e._v(" "),t("p",[e._v("Thanks to "),t("a",{attrs:{href:"https://browserstack.com",target:"_blank",rel:"noopener noreferrer"}},[e._v("BrowserStack"),t("OutboundLink")],1),e._v(" for allowing our team to test on thousands of browsers.")]),e._v(" "),t("h2",{attrs:{id:"previous-versions"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#previous-versions"}},[e._v("#")]),e._v(" Previous versions")]),e._v(" "),t("p",[e._v("To migrate from version 2 to version 3, please see "),t("a",{attrs:{href:"../getting-started/v3-migration"}},[e._v("the v3 migration guide")]),e._v(".")]),e._v(" "),t("p",[e._v("Version 3 has a largely different API than earlier versions.")]),e._v(" "),t("p",[e._v("Most earlier version options have current equivalents or are the same.")]),e._v(" "),t("p",[e._v("Please note - documentation for previous versions are available online or in the GitHub repo.")]),e._v(" "),t("ul",[t("li",[t("a",{attrs:{href:"https://www.chartjs.org/docs/2.9.4/",target:"_blank",rel:"noopener noreferrer"}},[e._v("2.9.4 Documentation"),t("OutboundLink")],1)]),e._v(" "),t("li",[t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/tree/v1.1.1/docs",target:"_blank",rel:"noopener noreferrer"}},[e._v("1.x Documentation"),t("OutboundLink")],1)])])])}),[],!1,null,null,null);r.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/161.0ba5575d.js b/docs/3.1.0/assets/js/161.9f1e28ab.js similarity index 98% rename from docs/3.1.0/assets/js/161.0ba5575d.js rename to docs/3.1.0/assets/js/161.9f1e28ab.js index d67495625e..59b0d73f90 100644 --- a/docs/3.1.0/assets/js/161.0ba5575d.js +++ b/docs/3.1.0/assets/js/161.9f1e28ab.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[161],{487:function(t,e,a){"use strict";a.r(e);var s=a(7),r=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"publishing-an-extension"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#publishing-an-extension"}},[t._v("#")]),t._v(" Publishing an extension")]),t._v(" "),a("p",[t._v("If you are planning on publishing an extension for Chart.js, here are a some pointers.")]),t._v(" "),a("h2",{attrs:{id:"awesome"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#awesome"}},[t._v("#")]),t._v(" Awesome")]),t._v(" "),a("p",[t._v("You'd probably want your extension to be listed in the "),a("a",{attrs:{href:"https://github.com/chartjs/awesome",target:"_blank",rel:"noopener noreferrer"}},[t._v("awesome"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("p",[t._v("Note the minimum extension age requirement of 30 days.")]),t._v(" "),a("h2",{attrs:{id:"esm"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#esm"}},[t._v("#")]),t._v(" ESM")]),t._v(" "),a("p",[t._v("If you are utilizing ESM, you probably still want to publish an UMD bundle of your extension. Because Chart.js v3 is tree shakeable, the interface is a bit different.\nUMD package's global "),a("code",[t._v("Chart")]),t._v(" includes everything, while ESM package exports all the things separately.\nFortunately, most of the exports can be mapped automatically by the bundlers.")]),t._v(" "),a("p",[t._v("But not the helpers.")]),t._v(" "),a("p",[t._v("In UMD, helpers are available through "),a("code",[t._v("Chart.helpers")]),t._v(". In ESM, they are imported from "),a("code",[t._v("chart.js/helpers")]),t._v(".")]),t._v(" "),a("p",[t._v("For example "),a("code",[t._v("import {isNullOrUndef} from 'chart.js/helpers'")]),t._v(" is available at "),a("code",[t._v("Chart.helpers.isNullOrUndef")]),t._v(" for UMD.")]),t._v(" "),a("h3",{attrs:{id:"rollup"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#rollup"}},[t._v("#")]),t._v(" Rollup")]),t._v(" "),a("p",[a("code",[t._v("output.globals")]),t._v(" can be used to convert the helpers.")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[t._v("module"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("exports "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// ...")]),t._v("\n output"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n globals"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Chart'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js/helpers'")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Chart.helpers'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[161],{485:function(t,e,a){"use strict";a.r(e);var s=a(7),r=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"publishing-an-extension"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#publishing-an-extension"}},[t._v("#")]),t._v(" Publishing an extension")]),t._v(" "),a("p",[t._v("If you are planning on publishing an extension for Chart.js, here are a some pointers.")]),t._v(" "),a("h2",{attrs:{id:"awesome"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#awesome"}},[t._v("#")]),t._v(" Awesome")]),t._v(" "),a("p",[t._v("You'd probably want your extension to be listed in the "),a("a",{attrs:{href:"https://github.com/chartjs/awesome",target:"_blank",rel:"noopener noreferrer"}},[t._v("awesome"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("p",[t._v("Note the minimum extension age requirement of 30 days.")]),t._v(" "),a("h2",{attrs:{id:"esm"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#esm"}},[t._v("#")]),t._v(" ESM")]),t._v(" "),a("p",[t._v("If you are utilizing ESM, you probably still want to publish an UMD bundle of your extension. Because Chart.js v3 is tree shakeable, the interface is a bit different.\nUMD package's global "),a("code",[t._v("Chart")]),t._v(" includes everything, while ESM package exports all the things separately.\nFortunately, most of the exports can be mapped automatically by the bundlers.")]),t._v(" "),a("p",[t._v("But not the helpers.")]),t._v(" "),a("p",[t._v("In UMD, helpers are available through "),a("code",[t._v("Chart.helpers")]),t._v(". In ESM, they are imported from "),a("code",[t._v("chart.js/helpers")]),t._v(".")]),t._v(" "),a("p",[t._v("For example "),a("code",[t._v("import {isNullOrUndef} from 'chart.js/helpers'")]),t._v(" is available at "),a("code",[t._v("Chart.helpers.isNullOrUndef")]),t._v(" for UMD.")]),t._v(" "),a("h3",{attrs:{id:"rollup"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#rollup"}},[t._v("#")]),t._v(" Rollup")]),t._v(" "),a("p",[a("code",[t._v("output.globals")]),t._v(" can be used to convert the helpers.")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[t._v("module"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("exports "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// ...")]),t._v("\n output"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n globals"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Chart'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js/helpers'")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Chart.helpers'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/162.f58b06cd.js b/docs/3.1.0/assets/js/162.fc3983a6.js similarity index 99% rename from docs/3.1.0/assets/js/162.f58b06cd.js rename to docs/3.1.0/assets/js/162.fc3983a6.js index 40346c9736..ef41e9c5ad 100644 --- a/docs/3.1.0/assets/js/162.f58b06cd.js +++ b/docs/3.1.0/assets/js/162.fc3983a6.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[162],{488:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"updating-charts"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#updating-charts"}},[t._v("#")]),t._v(" Updating Charts")]),t._v(" "),s("p",[t._v("It's pretty common to want to update charts after they've been created. When the chart data or options are changed, Chart.js will animate to the new data values and options.")]),t._v(" "),s("h2",{attrs:{id:"adding-or-removing-data"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#adding-or-removing-data"}},[t._v("#")]),t._v(" Adding or Removing Data")]),t._v(" "),s("p",[t._v("Adding and removing data is supported by changing the data array. To add data, just add data into the data array as seen in this example.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("addData")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" label"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" data")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("labels"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("push")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("label"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("forEach")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("dataset")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n dataset"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("push")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("removeData")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("labels"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("pop")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("forEach")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("dataset")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n dataset"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("pop")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("h2",{attrs:{id:"updating-options"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#updating-options"}},[t._v("#")]),t._v(" Updating Options")]),t._v(" "),s("p",[t._v("To update the options, mutating the options property in place or passing in a new options object are supported.")]),t._v(" "),s("ul",[s("li",[t._v("If the options are mutated in place, other option properties would be preserved, including those calculated by Chart.js.")]),t._v(" "),s("li",[t._v("If created as a new object, it would be like creating a new chart with the options - old options would be discarded.")])]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("updateConfigByMutating")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("plugins"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("title"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("text "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'new title'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("updateConfigAsNewObject")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n responsive"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n title"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n text"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Chart.js'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n scales"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("Scales can be updated separately without changing other options.\nTo update the scales, pass in an object containing all the customization including those unchanged ones.")]),t._v(" "),s("p",[t._v("Variables referencing any one from "),s("code",[t._v("chart.scales")]),t._v(" would be lost after updating scales with a new "),s("code",[t._v("id")]),t._v(" or the changed "),s("code",[t._v("type")]),t._v(".")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("updateScales")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" xScale "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" yScale "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n newId"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'logarithmic'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// need to update the reference")]),t._v("\n xScale "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("newId"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n yScale "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("You can also update a specific scale either by its id.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("updateScale")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'logarithmic'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("Code sample for updating options can be found in "),s("a",{attrs:{href:"https://www.chartjs.org/samples/latest/scales/toggle-scale-type.html",target:"_blank",rel:"noopener noreferrer"}},[t._v("toggle-scale-type.html"),s("OutboundLink")],1),t._v(".")]),t._v(" "),s("h2",{attrs:{id:"preventing-animations"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#preventing-animations"}},[t._v("#")]),t._v(" Preventing Animations")]),t._v(" "),s("p",[t._v("Sometimes when a chart updates, you may not want an animation. To achieve this you can call "),s("code",[t._v("update")]),t._v(" with "),s("code",[t._v("'none'")]),t._v(" as mode.")])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[162],{487:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"updating-charts"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#updating-charts"}},[t._v("#")]),t._v(" Updating Charts")]),t._v(" "),s("p",[t._v("It's pretty common to want to update charts after they've been created. When the chart data or options are changed, Chart.js will animate to the new data values and options.")]),t._v(" "),s("h2",{attrs:{id:"adding-or-removing-data"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#adding-or-removing-data"}},[t._v("#")]),t._v(" Adding or Removing Data")]),t._v(" "),s("p",[t._v("Adding and removing data is supported by changing the data array. To add data, just add data into the data array as seen in this example.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("addData")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" label"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" data")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("labels"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("push")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("label"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("forEach")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("dataset")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n dataset"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("push")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("removeData")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("labels"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("pop")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("datasets"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("forEach")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("dataset")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=>")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n dataset"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("pop")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("h2",{attrs:{id:"updating-options"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#updating-options"}},[t._v("#")]),t._v(" Updating Options")]),t._v(" "),s("p",[t._v("To update the options, mutating the options property in place or passing in a new options object are supported.")]),t._v(" "),s("ul",[s("li",[t._v("If the options are mutated in place, other option properties would be preserved, including those calculated by Chart.js.")]),t._v(" "),s("li",[t._v("If created as a new object, it would be like creating a new chart with the options - old options would be discarded.")])]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("updateConfigByMutating")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("plugins"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("title"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("text "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'new title'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("updateConfigAsNewObject")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n responsive"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n title"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n text"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Chart.js'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n scales"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("Scales can be updated separately without changing other options.\nTo update the scales, pass in an object containing all the customization including those unchanged ones.")]),t._v(" "),s("p",[t._v("Variables referencing any one from "),s("code",[t._v("chart.scales")]),t._v(" would be lost after updating scales with a new "),s("code",[t._v("id")]),t._v(" or the changed "),s("code",[t._v("type")]),t._v(".")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("updateScales")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" xScale "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" yScale "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n newId"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n display"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'logarithmic'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// need to update the reference")]),t._v("\n xScale "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("newId"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n yScale "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("You can also update a specific scale either by its id.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("updateScale")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("scales"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("y "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'logarithmic'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("update")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("Code sample for updating options can be found in "),s("a",{attrs:{href:"https://www.chartjs.org/samples/latest/scales/toggle-scale-type.html",target:"_blank",rel:"noopener noreferrer"}},[t._v("toggle-scale-type.html"),s("OutboundLink")],1),t._v(".")]),t._v(" "),s("h2",{attrs:{id:"preventing-animations"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#preventing-animations"}},[t._v("#")]),t._v(" Preventing Animations")]),t._v(" "),s("p",[t._v("Sometimes when a chart updates, you may not want an animation. To achieve this you can call "),s("code",[t._v("update")]),t._v(" with "),s("code",[t._v("'none'")]),t._v(" as mode.")])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/163.82598716.js b/docs/3.1.0/assets/js/163.9e832dc0.js similarity index 99% rename from docs/3.1.0/assets/js/163.82598716.js rename to docs/3.1.0/assets/js/163.9e832dc0.js index aed4120cb4..2217519f16 100644 --- a/docs/3.1.0/assets/js/163.82598716.js +++ b/docs/3.1.0/assets/js/163.9e832dc0.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[163],{489:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"accessibility"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#accessibility"}},[t._v("#")]),t._v(" Accessibility")]),t._v(" "),s("p",[t._v("Chart.js charts are rendered on user provided "),s("code",[t._v("canvas")]),t._v(" elements. Thus, it is up to the user to create the "),s("code",[t._v("canvas")]),t._v(" element in a way that is accessible. The "),s("code",[t._v("canvas")]),t._v(" element has support in all browsers and will render on screen but the "),s("code",[t._v("canvas")]),t._v(" content will not be accessible to screen readers.")]),t._v(" "),s("p",[t._v("With "),s("code",[t._v("canvas")]),t._v(", the accessibility has to be added with ARIA attributes on the "),s("code",[t._v("canvas")]),t._v(" element or added using internal fallback content placed within the opening and closing canvas tags.")]),t._v(" "),s("p",[t._v("This "),s("a",{attrs:{href:"http://pauljadam.com/demos/canvas.html",target:"_blank",rel:"noopener noreferrer"}},[t._v("website"),s("OutboundLink")],1),t._v(" has a more detailed explanation of "),s("code",[t._v("canvas")]),t._v(" accessibility as well as in depth examples.")]),t._v(" "),s("h2",{attrs:{id:"examples"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#examples"}},[t._v("#")]),t._v(" Examples")]),t._v(" "),s("p",[t._v("These are some examples of "),s("strong",[t._v("accessible")]),t._v(" "),s("code",[t._v("canvas")]),t._v(" elements.")]),t._v(" "),s("p",[t._v("By setting the "),s("code",[t._v("role")]),t._v(" and "),s("code",[t._v("aria-label")]),t._v(", this "),s("code",[t._v("canvas")]),t._v(" now has an accessible name.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("goodCanvas1"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("100"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("aria-label")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("Hello ARIA World"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("role")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("img"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("This "),s("code",[t._v("canvas")]),t._v(" element has a text alternative via fallback content.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("okCanvas2"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("100"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("p")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),t._v("Hello Fallback World"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("These are some bad examples of "),s("strong",[t._v("inaccessible")]),t._v(" "),s("code",[t._v("canvas")]),t._v(" elements.")]),t._v(" "),s("p",[t._v("This "),s("code",[t._v("canvas")]),t._v(" element does not have an accessible name or role.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("badCanvas1"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("100"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("This "),s("code",[t._v("canvas")]),t._v(" element has inaccessible fallback content.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("badCanvas2"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("100"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),t._v("Your browser does not support the canvas element."),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[163],{488:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"accessibility"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#accessibility"}},[t._v("#")]),t._v(" Accessibility")]),t._v(" "),s("p",[t._v("Chart.js charts are rendered on user provided "),s("code",[t._v("canvas")]),t._v(" elements. Thus, it is up to the user to create the "),s("code",[t._v("canvas")]),t._v(" element in a way that is accessible. The "),s("code",[t._v("canvas")]),t._v(" element has support in all browsers and will render on screen but the "),s("code",[t._v("canvas")]),t._v(" content will not be accessible to screen readers.")]),t._v(" "),s("p",[t._v("With "),s("code",[t._v("canvas")]),t._v(", the accessibility has to be added with ARIA attributes on the "),s("code",[t._v("canvas")]),t._v(" element or added using internal fallback content placed within the opening and closing canvas tags.")]),t._v(" "),s("p",[t._v("This "),s("a",{attrs:{href:"http://pauljadam.com/demos/canvas.html",target:"_blank",rel:"noopener noreferrer"}},[t._v("website"),s("OutboundLink")],1),t._v(" has a more detailed explanation of "),s("code",[t._v("canvas")]),t._v(" accessibility as well as in depth examples.")]),t._v(" "),s("h2",{attrs:{id:"examples"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#examples"}},[t._v("#")]),t._v(" Examples")]),t._v(" "),s("p",[t._v("These are some examples of "),s("strong",[t._v("accessible")]),t._v(" "),s("code",[t._v("canvas")]),t._v(" elements.")]),t._v(" "),s("p",[t._v("By setting the "),s("code",[t._v("role")]),t._v(" and "),s("code",[t._v("aria-label")]),t._v(", this "),s("code",[t._v("canvas")]),t._v(" now has an accessible name.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("goodCanvas1"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("100"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("aria-label")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("Hello ARIA World"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("role")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("img"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("This "),s("code",[t._v("canvas")]),t._v(" element has a text alternative via fallback content.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("okCanvas2"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("100"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("p")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),t._v("Hello Fallback World"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("These are some bad examples of "),s("strong",[t._v("inaccessible")]),t._v(" "),s("code",[t._v("canvas")]),t._v(" elements.")]),t._v(" "),s("p",[t._v("This "),s("code",[t._v("canvas")]),t._v(" element does not have an accessible name or role.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("badCanvas1"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("100"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("This "),s("code",[t._v("canvas")]),t._v(" element has inaccessible fallback content.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("badCanvas2"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("100"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),t._v("Your browser does not support the canvas element."),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/164.0f3dc1ec.js b/docs/3.1.0/assets/js/164.3cc163f4.js similarity index 99% rename from docs/3.1.0/assets/js/164.0f3dc1ec.js rename to docs/3.1.0/assets/js/164.3cc163f4.js index 3586b880a1..f82956f5c6 100644 --- a/docs/3.1.0/assets/js/164.0f3dc1ec.js +++ b/docs/3.1.0/assets/js/164.3cc163f4.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[164],{490:function(t,a,s){"use strict";s.r(a);var n=s(7),r=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"colors"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#colors"}},[t._v("#")]),t._v(" Colors")]),t._v(" "),s("p",[t._v("When supplying colors to Chart options, you can use a number of formats. You can specify the color as a string in hexadecimal, RGB, or HSL notations. If a color is needed, but not specified, Chart.js will use the global default color. There are 3 color options, stored at "),s("code",[t._v("Chart.defaults")]),t._v(", to set:")]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Default")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("backgroundColor")])]),t._v(" "),s("td",[s("code",[t._v("Color")])]),t._v(" "),s("td",[s("code",[t._v("rgba(0, 0, 0, 0.1)")])]),t._v(" "),s("td",[t._v("Background color.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("borderColor")])]),t._v(" "),s("td",[s("code",[t._v("Color")])]),t._v(" "),s("td",[s("code",[t._v("rgba(0, 0, 0, 0.1)")])]),t._v(" "),s("td",[t._v("Border color.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("color")])]),t._v(" "),s("td",[s("code",[t._v("Color")])]),t._v(" "),s("td",[s("code",[t._v("#666")])]),t._v(" "),s("td",[t._v("Font color.")])])])]),t._v(" "),s("p",[t._v("You can also pass a "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasGradient",target:"_blank",rel:"noopener noreferrer"}},[t._v("CanvasGradient"),s("OutboundLink")],1),t._v(" object. You will need to create this before passing to the chart, but using it you can achieve some interesting effects.")]),t._v(" "),s("h2",{attrs:{id:"patterns-and-gradients"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#patterns-and-gradients"}},[t._v("#")]),t._v(" Patterns and Gradients")]),t._v(" "),s("p",[t._v("An alternative option is to pass a "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasPattern",target:"_blank",rel:"noopener noreferrer"}},[t._v("CanvasPattern"),s("OutboundLink")],1),t._v(" or "),s("a",{attrs:{href:"https://developer.mozilla.org/en/docs/Web/API/CanvasGradient",target:"_blank",rel:"noopener noreferrer"}},[t._v("CanvasGradient"),s("OutboundLink")],1),t._v(" object instead of a string colour.")]),t._v(" "),s("p",[t._v("For example, if you wanted to fill a dataset with a pattern from an image you could do the following.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" img "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Image")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nimg"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("src "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'https://example.com/my_image.png'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nimg"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("onload")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'canvas'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getContext")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'2d'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" fillPattern "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("createPattern")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("img"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'repeat'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Item 1'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Item 2'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Item 3'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n backgroundColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" fillPattern\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("Using pattern fills for data graphics can help viewers with vision deficiencies (e.g. color-blindness or partial sight) to "),s("a",{attrs:{href:"http://betweentwobrackets.com/data-graphics-and-colour-vision/",target:"_blank",rel:"noopener noreferrer"}},[t._v("more easily understand your data"),s("OutboundLink")],1),t._v(".")]),t._v(" "),s("p",[t._v("Using the "),s("a",{attrs:{href:"https://github.com/ashiguruma/patternomaly",target:"_blank",rel:"noopener noreferrer"}},[t._v("Patternomaly"),s("OutboundLink")],1),t._v(" library you can generate patterns to fill datasets.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chartData "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("45")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("25")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n backgroundColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n pattern"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'square'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#ff6384'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n pattern"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'circle'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#36a2eb'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n pattern"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'diamond'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#cc65fe'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n pattern"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'triangle'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#ffce56'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Red'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Blue'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Purple'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Yellow'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[164],{489:function(t,a,s){"use strict";s.r(a);var n=s(7),r=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"colors"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#colors"}},[t._v("#")]),t._v(" Colors")]),t._v(" "),s("p",[t._v("When supplying colors to Chart options, you can use a number of formats. You can specify the color as a string in hexadecimal, RGB, or HSL notations. If a color is needed, but not specified, Chart.js will use the global default color. There are 3 color options, stored at "),s("code",[t._v("Chart.defaults")]),t._v(", to set:")]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Default")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("backgroundColor")])]),t._v(" "),s("td",[s("code",[t._v("Color")])]),t._v(" "),s("td",[s("code",[t._v("rgba(0, 0, 0, 0.1)")])]),t._v(" "),s("td",[t._v("Background color.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("borderColor")])]),t._v(" "),s("td",[s("code",[t._v("Color")])]),t._v(" "),s("td",[s("code",[t._v("rgba(0, 0, 0, 0.1)")])]),t._v(" "),s("td",[t._v("Border color.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("color")])]),t._v(" "),s("td",[s("code",[t._v("Color")])]),t._v(" "),s("td",[s("code",[t._v("#666")])]),t._v(" "),s("td",[t._v("Font color.")])])])]),t._v(" "),s("p",[t._v("You can also pass a "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasGradient",target:"_blank",rel:"noopener noreferrer"}},[t._v("CanvasGradient"),s("OutboundLink")],1),t._v(" object. You will need to create this before passing to the chart, but using it you can achieve some interesting effects.")]),t._v(" "),s("h2",{attrs:{id:"patterns-and-gradients"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#patterns-and-gradients"}},[t._v("#")]),t._v(" Patterns and Gradients")]),t._v(" "),s("p",[t._v("An alternative option is to pass a "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CanvasPattern",target:"_blank",rel:"noopener noreferrer"}},[t._v("CanvasPattern"),s("OutboundLink")],1),t._v(" or "),s("a",{attrs:{href:"https://developer.mozilla.org/en/docs/Web/API/CanvasGradient",target:"_blank",rel:"noopener noreferrer"}},[t._v("CanvasGradient"),s("OutboundLink")],1),t._v(" object instead of a string colour.")]),t._v(" "),s("p",[t._v("For example, if you wanted to fill a dataset with a pattern from an image you could do the following.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" img "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Image")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nimg"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("src "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'https://example.com/my_image.png'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nimg"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("onload")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'canvas'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getContext")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'2d'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" fillPattern "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("createPattern")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("img"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'repeat'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Item 1'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Item 2'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Item 3'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("30")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n backgroundColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" fillPattern\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("Using pattern fills for data graphics can help viewers with vision deficiencies (e.g. color-blindness or partial sight) to "),s("a",{attrs:{href:"http://betweentwobrackets.com/data-graphics-and-colour-vision/",target:"_blank",rel:"noopener noreferrer"}},[t._v("more easily understand your data"),s("OutboundLink")],1),t._v(".")]),t._v(" "),s("p",[t._v("Using the "),s("a",{attrs:{href:"https://github.com/ashiguruma/patternomaly",target:"_blank",rel:"noopener noreferrer"}},[t._v("Patternomaly"),s("OutboundLink")],1),t._v(" library you can generate patterns to fill datasets.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" chartData "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("45")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("25")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n backgroundColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n pattern"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'square'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#ff6384'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n pattern"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'circle'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#36a2eb'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n pattern"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'diamond'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#cc65fe'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n pattern"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'triangle'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#ffce56'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Red'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Blue'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Purple'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Yellow'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/165.abbfc048.js b/docs/3.1.0/assets/js/165.bfde4011.js similarity index 99% rename from docs/3.1.0/assets/js/165.abbfc048.js rename to docs/3.1.0/assets/js/165.bfde4011.js index 17d8450c5e..d8cf770c67 100644 --- a/docs/3.1.0/assets/js/165.abbfc048.js +++ b/docs/3.1.0/assets/js/165.bfde4011.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[165],{491:function(t,a,s){"use strict";s.r(a);var e=s(7),n=Object(e.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"data-structures"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#data-structures"}},[t._v("#")]),t._v(" Data structures")]),t._v(" "),s("p",[t._v("The "),s("code",[t._v("data")]),t._v(" property of a dataset can be passed in various formats. By default, that "),s("code",[t._v("data")]),t._v(" is parsed using the associated chart type and scales.")]),t._v(" "),s("p",[t._v("If the "),s("code",[t._v("labels")]),t._v(" property of the main "),s("code",[t._v("data")]),t._v(" property is used, it has to contain the same amount of elements as the dataset with the most values. These labels are used to label the index axis (default x axes). The values for the labels have to be provided in an array.\nThe provides labels can be of the type string or number to be rendered correctly. In case you want multiline labels you can provide an array with each line as one entry in the array.")]),t._v(" "),s("h2",{attrs:{id:"primitive"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#primitive"}},[t._v("#")]),t._v(" Primitive[]")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\nlabels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'a'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'b'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),s("p",[t._v("When the "),s("code",[t._v("data")]),t._v(" is an array of numbers, values from "),s("code",[t._v("labels")]),t._v(" array at the same index are used for the index axis ("),s("code",[t._v("x")]),t._v(" for vertical, "),s("code",[t._v("y")]),t._v(" for horizontal charts).")]),t._v(" "),s("h2",{attrs:{id:"object"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#object"}},[t._v("#")]),t._v(" Object[]")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("15")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'2016-12-25'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'2016-12-26'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Sales'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Revenue'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),s("p",[t._v("This is also the internal format used for parsed data. In this mode, parsing can be disabled by specifying "),s("code",[t._v("parsing: false")]),t._v(" at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),s("p",[t._v("The values provided must be parsable by the associated scales or in the internal format of the associated scales. A common mistake would be to provide integers for the "),s("code",[t._v("category")]),t._v(" scale, which uses integers as an internal format, where each integer represents an index in the labels array. "),s("code",[t._v("null")]),t._v(" can be used for skipped values.")]),t._v(" "),s("h2",{attrs:{id:"object-using-custom-properties"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#object-using-custom-properties"}},[t._v("#")]),t._v(" Object[] using custom properties")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\ndata"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("id"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Sales'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" nested"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("value"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1500")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("id"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Purchases'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" nested"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("value"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("500")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\noptions"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n parsing"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n xAxisKey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'id'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n yAxisKey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'nested.value'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("h2",{attrs:{id:"object-2"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#object-2"}},[t._v("#")]),t._v(" Object")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n January"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n February"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("In this mode, property name is used for "),s("code",[t._v("index")]),t._v(" scale and value for "),s("code",[t._v("value")]),t._v(" scale. For vertical charts, index scale is "),s("code",[t._v("x")]),t._v(" and value scale is "),s("code",[t._v("y")]),t._v(".")]),t._v(" "),s("h2",{attrs:{id:"dataset-configuration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#dataset-configuration"}},[t._v("#")]),t._v(" Dataset Configuration")]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("label")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[t._v("The label for the dataset which appears in the legend and tooltips.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("clip")])]),t._v(" "),s("td",[s("code",[t._v("number")]),t._v("|"),s("code",[t._v("object")])]),t._v(" "),s("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("order")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("stack")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack). Defaults to dataset "),s("code",[t._v("type")]),t._v(".")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("parsing")])]),t._v(" "),s("td",[s("code",[t._v("boolean")]),t._v("|"),s("code",[t._v("object")])]),t._v(" "),s("td",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("hidden")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[t._v("Configure the visibility of the dataset. Using "),s("code",[t._v("hidden: true")]),t._v(" will hide the dataset from being rendered in the Chart.")])])])]),t._v(" "),s("h3",{attrs:{id:"parsing"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" data "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Jan'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" net"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("100")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" cogs"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" gm"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Feb'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" net"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("120")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" cogs"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("55")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" gm"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("75")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" cfg "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Jan'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Feb'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Net sales'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n parsing"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n yAxisKey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'net'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Cost of goods sold'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n parsing"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n yAxisKey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'cogs'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Gross margin'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n parsing"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n yAxisKey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'gm'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[165],{490:function(t,a,s){"use strict";s.r(a);var e=s(7),n=Object(e.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"data-structures"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#data-structures"}},[t._v("#")]),t._v(" Data structures")]),t._v(" "),s("p",[t._v("The "),s("code",[t._v("data")]),t._v(" property of a dataset can be passed in various formats. By default, that "),s("code",[t._v("data")]),t._v(" is parsed using the associated chart type and scales.")]),t._v(" "),s("p",[t._v("If the "),s("code",[t._v("labels")]),t._v(" property of the main "),s("code",[t._v("data")]),t._v(" property is used, it has to contain the same amount of elements as the dataset with the most values. These labels are used to label the index axis (default x axes). The values for the labels have to be provided in an array.\nThe provides labels can be of the type string or number to be rendered correctly. In case you want multiline labels you can provide an array with each line as one entry in the array.")]),t._v(" "),s("h2",{attrs:{id:"primitive"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#primitive"}},[t._v("#")]),t._v(" Primitive[]")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\nlabels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'a'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'b'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),s("p",[t._v("When the "),s("code",[t._v("data")]),t._v(" is an array of numbers, values from "),s("code",[t._v("labels")]),t._v(" array at the same index are used for the index axis ("),s("code",[t._v("x")]),t._v(" for vertical, "),s("code",[t._v("y")]),t._v(" for horizontal charts).")]),t._v(" "),s("h2",{attrs:{id:"object"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#object"}},[t._v("#")]),t._v(" Object[]")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("15")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'2016-12-25'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'2016-12-26'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Sales'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Revenue'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),s("p",[t._v("This is also the internal format used for parsed data. In this mode, parsing can be disabled by specifying "),s("code",[t._v("parsing: false")]),t._v(" at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),s("p",[t._v("The values provided must be parsable by the associated scales or in the internal format of the associated scales. A common mistake would be to provide integers for the "),s("code",[t._v("category")]),t._v(" scale, which uses integers as an internal format, where each integer represents an index in the labels array. "),s("code",[t._v("null")]),t._v(" can be used for skipped values.")]),t._v(" "),s("h2",{attrs:{id:"object-using-custom-properties"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#object-using-custom-properties"}},[t._v("#")]),t._v(" Object[] using custom properties")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\ndata"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("id"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Sales'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" nested"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("value"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1500")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("id"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Purchases'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" nested"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("value"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("500")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\noptions"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n parsing"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n xAxisKey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'id'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n yAxisKey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'nested.value'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("h2",{attrs:{id:"object-2"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#object-2"}},[t._v("#")]),t._v(" Object")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n January"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n February"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),s("p",[t._v("In this mode, property name is used for "),s("code",[t._v("index")]),t._v(" scale and value for "),s("code",[t._v("value")]),t._v(" scale. For vertical charts, index scale is "),s("code",[t._v("x")]),t._v(" and value scale is "),s("code",[t._v("y")]),t._v(".")]),t._v(" "),s("h2",{attrs:{id:"dataset-configuration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#dataset-configuration"}},[t._v("#")]),t._v(" Dataset Configuration")]),t._v(" "),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("label")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[t._v("The label for the dataset which appears in the legend and tooltips.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("clip")])]),t._v(" "),s("td",[s("code",[t._v("number")]),t._v("|"),s("code",[t._v("object")])]),t._v(" "),s("td",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("order")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("stack")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack). Defaults to dataset "),s("code",[t._v("type")]),t._v(".")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("parsing")])]),t._v(" "),s("td",[s("code",[t._v("boolean")]),t._v("|"),s("code",[t._v("object")])]),t._v(" "),s("td",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("hidden")])]),t._v(" "),s("td",[s("code",[t._v("boolean")])]),t._v(" "),s("td",[t._v("Configure the visibility of the dataset. Using "),s("code",[t._v("hidden: true")]),t._v(" will hide the dataset from being rendered in the Chart.")])])])]),t._v(" "),s("h3",{attrs:{id:"parsing"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" data "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Jan'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" net"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("100")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" cogs"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" gm"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Feb'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" net"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("120")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" cogs"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("55")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" gm"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("75")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" cfg "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Jan'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Feb'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Net sales'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n parsing"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n yAxisKey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'net'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Cost of goods sold'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n parsing"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n yAxisKey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'cogs'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Gross margin'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n parsing"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n yAxisKey"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'gm'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/166.af31a4fc.js b/docs/3.1.0/assets/js/166.e764b73e.js similarity index 99% rename from docs/3.1.0/assets/js/166.af31a4fc.js rename to docs/3.1.0/assets/js/166.e764b73e.js index 32654982b6..a5bce701a5 100644 --- a/docs/3.1.0/assets/js/166.af31a4fc.js +++ b/docs/3.1.0/assets/js/166.e764b73e.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[166],{492:function(t,e,s){"use strict";s.r(e);var a=s(7),n=Object(a.a)({},(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"fonts"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#fonts"}},[t._v("#")]),t._v(" Fonts")]),t._v(" "),s("p",[t._v("There are special global settings that can change all of the fonts on the chart. These options are in "),s("code",[t._v("Chart.defaults.font")]),t._v(". The global font settings only apply when more specific options are not included in the config.")]),t._v(" "),s("p",[t._v("For example, in this chart the text will all be red except for the labels in the legend.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("font"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("size "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("16")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n legend"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This more specific font property overrides the global property")]),t._v("\n font"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n size"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("14")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Default")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("family")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("\"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\"")])]),t._v(" "),s("td",[t._v("Default font family for all text, follows CSS font-family options.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("size")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("12")])]),t._v(" "),s("td",[t._v("Default font size (in px) for text. Does not apply to radialLinear scale point labels.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("style")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'normal'")])]),t._v(" "),s("td",[t._v("Default font style. Does not apply to tooltip title or footer. Does not apply to chart title. Follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("weight")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("undefined")])]),t._v(" "),s("td",[t._v("Default font weight (boldness). (see "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),s("OutboundLink")],1),t._v(").")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("lineHeight")])]),t._v(" "),s("td",[s("code",[t._v("number")]),t._v("|"),s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("1.2")])]),t._v(" "),s("td",[t._v("Height of an individual line of text (see "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/CSS/line-height",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),s("OutboundLink")],1),t._v(").")])])])]),t._v(" "),s("h2",{attrs:{id:"missing-fonts"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#missing-fonts"}},[t._v("#")]),t._v(" Missing Fonts")]),t._v(" "),s("p",[t._v("If a font is specified for a chart that does exist on the system, the browser will not apply the font when it is set. If you notice odd fonts appearing in your charts, check that the font you are applying exists on your system. See "),s("a",{attrs:{href:"https://github.com/chartjs/Chart.js/issues/3318",target:"_blank",rel:"noopener noreferrer"}},[t._v("issue 3318"),s("OutboundLink")],1),t._v(" for more details.")]),t._v(" "),s("h2",{attrs:{id:"loading-fonts"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#loading-fonts"}},[t._v("#")]),t._v(" Loading Fonts")]),t._v(" "),s("p",[t._v("If a font is not cached and needs to be loaded, charts that use the font will need to be updated once the font is loaded. This can be accomplished using the "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CSS_Font_Loading_API",target:"_blank",rel:"noopener noreferrer"}},[t._v("Font Loading APIs"),s("OutboundLink")],1),t._v(". See "),s("a",{attrs:{href:"https://github.com/chartjs/Chart.js/issues/8020",target:"_blank",rel:"noopener noreferrer"}},[t._v("issue 8020"),s("OutboundLink")],1),t._v(" for more details.")])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[166],{491:function(t,e,s){"use strict";s.r(e);var a=s(7),n=Object(a.a)({},(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"fonts"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#fonts"}},[t._v("#")]),t._v(" Fonts")]),t._v(" "),s("p",[t._v("There are special global settings that can change all of the fonts on the chart. These options are in "),s("code",[t._v("Chart.defaults.font")]),t._v(". The global font settings only apply when more specific options are not included in the config.")]),t._v(" "),s("p",[t._v("For example, in this chart the text will all be red except for the labels in the legend.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[t._v("Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("font"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("size "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("16")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n plugins"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n legend"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// This more specific font property overrides the global property")]),t._v("\n font"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n size"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("14")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("table",[s("thead",[s("tr",[s("th",[t._v("Name")]),t._v(" "),s("th",[t._v("Type")]),t._v(" "),s("th",[t._v("Default")]),t._v(" "),s("th",[t._v("Description")])])]),t._v(" "),s("tbody",[s("tr",[s("td",[s("code",[t._v("family")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("\"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\"")])]),t._v(" "),s("td",[t._v("Default font family for all text, follows CSS font-family options.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("size")])]),t._v(" "),s("td",[s("code",[t._v("number")])]),t._v(" "),s("td",[s("code",[t._v("12")])]),t._v(" "),s("td",[t._v("Default font size (in px) for text. Does not apply to radialLinear scale point labels.")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("style")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("'normal'")])]),t._v(" "),s("td",[t._v("Default font style. Does not apply to tooltip title or footer. Does not apply to chart title. Follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("weight")])]),t._v(" "),s("td",[s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("undefined")])]),t._v(" "),s("td",[t._v("Default font weight (boldness). (see "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),s("OutboundLink")],1),t._v(").")])]),t._v(" "),s("tr",[s("td",[s("code",[t._v("lineHeight")])]),t._v(" "),s("td",[s("code",[t._v("number")]),t._v("|"),s("code",[t._v("string")])]),t._v(" "),s("td",[s("code",[t._v("1.2")])]),t._v(" "),s("td",[t._v("Height of an individual line of text (see "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/CSS/line-height",target:"_blank",rel:"noopener noreferrer"}},[t._v("MDN"),s("OutboundLink")],1),t._v(").")])])])]),t._v(" "),s("h2",{attrs:{id:"missing-fonts"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#missing-fonts"}},[t._v("#")]),t._v(" Missing Fonts")]),t._v(" "),s("p",[t._v("If a font is specified for a chart that does exist on the system, the browser will not apply the font when it is set. If you notice odd fonts appearing in your charts, check that the font you are applying exists on your system. See "),s("a",{attrs:{href:"https://github.com/chartjs/Chart.js/issues/3318",target:"_blank",rel:"noopener noreferrer"}},[t._v("issue 3318"),s("OutboundLink")],1),t._v(" for more details.")]),t._v(" "),s("h2",{attrs:{id:"loading-fonts"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#loading-fonts"}},[t._v("#")]),t._v(" Loading Fonts")]),t._v(" "),s("p",[t._v("If a font is not cached and needs to be loaded, charts that use the font will need to be updated once the font is loaded. This can be accomplished using the "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/CSS_Font_Loading_API",target:"_blank",rel:"noopener noreferrer"}},[t._v("Font Loading APIs"),s("OutboundLink")],1),t._v(". See "),s("a",{attrs:{href:"https://github.com/chartjs/Chart.js/issues/8020",target:"_blank",rel:"noopener noreferrer"}},[t._v("issue 8020"),s("OutboundLink")],1),t._v(" for more details.")])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/167.f484bf05.js b/docs/3.1.0/assets/js/167.eff2831d.js similarity index 99% rename from docs/3.1.0/assets/js/167.f484bf05.js rename to docs/3.1.0/assets/js/167.eff2831d.js index 9aa2602055..e70235eb2d 100644 --- a/docs/3.1.0/assets/js/167.f484bf05.js +++ b/docs/3.1.0/assets/js/167.eff2831d.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[167],{493:function(t,e,a){"use strict";a.r(e);var s=a(7),o=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" Options")]),t._v(" "),a("h2",{attrs:{id:"option-resolution"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#option-resolution"}},[t._v("#")]),t._v(" Option resolution")]),t._v(" "),a("p",[t._v("Options are resolved from top to bottom, using a context dependent route.")]),t._v(" "),a("h3",{attrs:{id:"chart-level-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-level-options"}},[t._v("#")]),t._v(" Chart level options")]),t._v(" "),a("ul",[a("li",[t._v("options")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults")])]),t._v(" "),a("h3",{attrs:{id:"dataset-level-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-level-options"}},[t._v("#")]),t._v(" Dataset level options")]),t._v(" "),a("p",[a("code",[t._v("dataset.type")]),t._v(" defaults to "),a("code",[t._v("config.type")]),t._v(", if not specified.")]),t._v(" "),a("ul",[a("li",[t._v("dataset")]),t._v(" "),a("li",[t._v("options.datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("options")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults.datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults")])]),t._v(" "),a("h3",{attrs:{id:"dataset-animation-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-animation-options"}},[t._v("#")]),t._v(" Dataset animation options")]),t._v(" "),a("ul",[a("li",[t._v("dataset.animation")]),t._v(" "),a("li",[t._v("options.datasets["),a("code",[t._v("dataset.type")]),t._v("].animation")]),t._v(" "),a("li",[t._v("options.animation")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].datasets["),a("code",[t._v("dataset.type")]),t._v("].animation")]),t._v(" "),a("li",[t._v("defaults.datasets["),a("code",[t._v("dataset.type")]),t._v("].animation")]),t._v(" "),a("li",[t._v("defaults.animation")])]),t._v(" "),a("h3",{attrs:{id:"dataset-element-level-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-element-level-options"}},[t._v("#")]),t._v(" Dataset element level options")]),t._v(" "),a("p",[t._v("Each scope is looked up with "),a("code",[t._v("elementType")]),t._v(" prefix in the option name first, then wihtout the prefix. For example, "),a("code",[t._v("radius")]),t._v(" for "),a("code",[t._v("point")]),t._v(" element is looked up using "),a("code",[t._v("pointRadius")]),t._v(" and if that does not hit, then "),a("code",[t._v("radius")]),t._v(".")]),t._v(" "),a("ul",[a("li",[t._v("dataset")]),t._v(" "),a("li",[t._v("options.datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("options.datasets["),a("code",[t._v("dataset.type")]),t._v("].elements["),a("code",[t._v("elementType")]),t._v("]")]),t._v(" "),a("li",[t._v("options.elements["),a("code",[t._v("elementType")]),t._v("]")]),t._v(" "),a("li",[t._v("options")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].datasets["),a("code",[t._v("dataset.type")]),t._v("].elements["),a("code",[t._v("elementType")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults.datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults.datasets["),a("code",[t._v("dataset.type")]),t._v("].elements["),a("code",[t._v("elementType")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults.elements["),a("code",[t._v("elementType")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults")])]),t._v(" "),a("h3",{attrs:{id:"scale-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scale-options"}},[t._v("#")]),t._v(" Scale options")]),t._v(" "),a("ul",[a("li",[t._v("options.scales")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].scales")]),t._v(" "),a("li",[t._v("defaults.scales")]),t._v(" "),a("li",[t._v("defaults.scale")])]),t._v(" "),a("h3",{attrs:{id:"plugin-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#plugin-options"}},[t._v("#")]),t._v(" Plugin options")]),t._v(" "),a("p",[t._v("A plugin can provide "),a("code",[t._v("additionalOptionScopes")]),t._v(" array of paths to additionally look for its options in. For root scope, use empty string: "),a("code",[t._v("''")]),t._v(". Most core plugins also take options from root scope.")]),t._v(" "),a("ul",[a("li",[t._v("options.plugins["),a("code",[t._v("plugin.id")]),t._v("]")]),t._v(" "),a("li",[t._v("(options.["),a("code",[t._v("...plugin.additionalOptionScopes")]),t._v("])")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].plugins["),a("code",[t._v("plugin.id")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults.plugins["),a("code",[t._v("plugin.id")]),t._v("]")]),t._v(" "),a("li",[t._v("(defaults.["),a("code",[t._v("...plugin.additionalOptionScopes")]),t._v("])")])]),t._v(" "),a("h2",{attrs:{id:"scriptable-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scriptable-options"}},[t._v("#")]),t._v(" Scriptable Options")]),t._v(" "),a("p",[t._v("Scriptable options also accept a function which is called for each of the underlying data values and that takes the unique argument "),a("code",[t._v("context")]),t._v(" representing contextual information (see "),a("RouterLink",{attrs:{to:"/general/options.html#option-context"}},[t._v("option context")]),t._v(").\nA resolver is passed as second parameter, that can be used to access other options in the same context.")],1),t._v(" "),a("div",{staticClass:"custom-block tip"},[a("p",{staticClass:"custom-block-title"},[t._v("Note")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("context")]),t._v(" argument should be validated in the scriptable function, because the function can be invoked in different contexts. The "),a("code",[t._v("type")]),t._v(" field is a good candidate for this validation.")])]),t._v(" "),a("p",[t._v("Example:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("color")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" index "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("dataIndex"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("dataset"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'red'")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// draw negative values in red")]),t._v("\n index "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("%")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'blue'")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// else, alternate values in blue and green")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'green'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("borderColor")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" options")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" color "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("color"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// resolve the value of another scriptable option: 'red', 'blue' or 'green'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("helpers"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("color")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("color"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("lighten")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0.2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("h2",{attrs:{id:"indexable-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#indexable-options"}},[t._v("#")]),t._v(" Indexable Options")]),t._v(" "),a("p",[t._v("Indexable options also accept an array in which each item corresponds to the element at the same index. Note that if there are less items than data, the items are looped over. In many cases, using a "),a("a",{attrs:{href:"#scriptable-options"}},[t._v("function")]),t._v(" is more appropriate if supported.")]),t._v(" "),a("p",[t._v("Example:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("color"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'red'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// color for data at index 0")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'blue'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// color for data at index 1")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'green'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// color for data at index 2")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'black'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// color for data at index 3")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("//...")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),a("h2",{attrs:{id:"option-context"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#option-context"}},[t._v("#")]),t._v(" Option Context")]),t._v(" "),a("p",[t._v("The option context is used to give contextual information when resolving options and currently only applies to "),a("a",{attrs:{href:"#scriptable-options"}},[t._v("scriptable options")]),t._v(".\nThe object is preserved, so it can be used to store and pass information between calls.")]),t._v(" "),a("p",[t._v("There are multiple levels of context objects:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("chart")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("dataset")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data")])])])]),t._v(" "),a("li",[a("code",[t._v("scale")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("tick")])])])]),t._v(" "),a("li",[a("code",[t._v("tooltip")])])])])]),t._v(" "),a("p",[t._v("Each level inherits its parent(s) and any contextual information stored in the parent is available through the child.")]),t._v(" "),a("p",[t._v("The context object contains the following properties:")]),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("chart")]),t._v(": the associated chart")]),t._v(" "),a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'chart'")])])]),t._v(" "),a("h3",{attrs:{id:"dataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[t._v("#")]),t._v(" dataset")]),t._v(" "),a("p",[t._v("In addition to "),a("a",{attrs:{href:"#chart"}},[t._v("chart")])]),t._v(" "),a("ul",[a("li",[a("code",[t._v("active")]),t._v(": true if element is active (hovered)")]),t._v(" "),a("li",[a("code",[t._v("dataset")]),t._v(": dataset at index "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("li",[a("code",[t._v("datasetIndex")]),t._v(": index of the current dataset")]),t._v(" "),a("li",[a("code",[t._v("index")]),t._v(": same as "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("li",[a("code",[t._v("mode")]),t._v(": the update mode")]),t._v(" "),a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'dataset'")])])]),t._v(" "),a("h3",{attrs:{id:"data"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[t._v("#")]),t._v(" data")]),t._v(" "),a("p",[t._v("In addition to "),a("a",{attrs:{href:"#dataset"}},[t._v("dataset")])]),t._v(" "),a("ul",[a("li",[a("code",[t._v("active")]),t._v(": true if element is active (hovered)")]),t._v(" "),a("li",[a("code",[t._v("dataIndex")]),t._v(": index of the current data")]),t._v(" "),a("li",[a("code",[t._v("parsed")]),t._v(": the parsed data values for the given "),a("code",[t._v("dataIndex")]),t._v(" and "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("li",[a("code",[t._v("raw")]),t._v(": the raw data values for the given "),a("code",[t._v("dataIndex")]),t._v(" and "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("li",[a("code",[t._v("element")]),t._v(": the element (point, arc, bar, etc.) for this data")]),t._v(" "),a("li",[a("code",[t._v("index")]),t._v(": same as "),a("code",[t._v("dataIndex")])]),t._v(" "),a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'data'")])])]),t._v(" "),a("h3",{attrs:{id:"scale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scale"}},[t._v("#")]),t._v(" scale")]),t._v(" "),a("p",[t._v("In addition to "),a("a",{attrs:{href:"#chart"}},[t._v("chart")])]),t._v(" "),a("ul",[a("li",[a("code",[t._v("scale")]),t._v(": the associated scale")]),t._v(" "),a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'scale'")])])]),t._v(" "),a("h3",{attrs:{id:"tick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tick"}},[t._v("#")]),t._v(" tick")]),t._v(" "),a("p",[t._v("In addition to "),a("a",{attrs:{href:"#scale"}},[t._v("scale")])]),t._v(" "),a("ul",[a("li",[a("code",[t._v("tick")]),t._v(": the associated tick object")]),t._v(" "),a("li",[a("code",[t._v("index")]),t._v(": tick index")]),t._v(" "),a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'tick'")])])]),t._v(" "),a("h3",{attrs:{id:"tooltip"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltip"}},[t._v("#")]),t._v(" tooltip")]),t._v(" "),a("p",[t._v("In addition to "),a("a",{attrs:{href:"#chart"}},[t._v("chart")])]),t._v(" "),a("ul",[a("li",[a("code",[t._v("tooltip")]),t._v(": the tooltip object")]),t._v(" "),a("li",[a("code",[t._v("tooltipItems")]),t._v(": the items the tooltip is displaying")])])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[167],{492:function(t,e,a){"use strict";a.r(e);var s=a(7),o=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" Options")]),t._v(" "),a("h2",{attrs:{id:"option-resolution"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#option-resolution"}},[t._v("#")]),t._v(" Option resolution")]),t._v(" "),a("p",[t._v("Options are resolved from top to bottom, using a context dependent route.")]),t._v(" "),a("h3",{attrs:{id:"chart-level-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-level-options"}},[t._v("#")]),t._v(" Chart level options")]),t._v(" "),a("ul",[a("li",[t._v("options")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults")])]),t._v(" "),a("h3",{attrs:{id:"dataset-level-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-level-options"}},[t._v("#")]),t._v(" Dataset level options")]),t._v(" "),a("p",[a("code",[t._v("dataset.type")]),t._v(" defaults to "),a("code",[t._v("config.type")]),t._v(", if not specified.")]),t._v(" "),a("ul",[a("li",[t._v("dataset")]),t._v(" "),a("li",[t._v("options.datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("options")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults.datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults")])]),t._v(" "),a("h3",{attrs:{id:"dataset-animation-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-animation-options"}},[t._v("#")]),t._v(" Dataset animation options")]),t._v(" "),a("ul",[a("li",[t._v("dataset.animation")]),t._v(" "),a("li",[t._v("options.datasets["),a("code",[t._v("dataset.type")]),t._v("].animation")]),t._v(" "),a("li",[t._v("options.animation")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].datasets["),a("code",[t._v("dataset.type")]),t._v("].animation")]),t._v(" "),a("li",[t._v("defaults.datasets["),a("code",[t._v("dataset.type")]),t._v("].animation")]),t._v(" "),a("li",[t._v("defaults.animation")])]),t._v(" "),a("h3",{attrs:{id:"dataset-element-level-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset-element-level-options"}},[t._v("#")]),t._v(" Dataset element level options")]),t._v(" "),a("p",[t._v("Each scope is looked up with "),a("code",[t._v("elementType")]),t._v(" prefix in the option name first, then wihtout the prefix. For example, "),a("code",[t._v("radius")]),t._v(" for "),a("code",[t._v("point")]),t._v(" element is looked up using "),a("code",[t._v("pointRadius")]),t._v(" and if that does not hit, then "),a("code",[t._v("radius")]),t._v(".")]),t._v(" "),a("ul",[a("li",[t._v("dataset")]),t._v(" "),a("li",[t._v("options.datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("options.datasets["),a("code",[t._v("dataset.type")]),t._v("].elements["),a("code",[t._v("elementType")]),t._v("]")]),t._v(" "),a("li",[t._v("options.elements["),a("code",[t._v("elementType")]),t._v("]")]),t._v(" "),a("li",[t._v("options")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].datasets["),a("code",[t._v("dataset.type")]),t._v("].elements["),a("code",[t._v("elementType")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults.datasets["),a("code",[t._v("dataset.type")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults.datasets["),a("code",[t._v("dataset.type")]),t._v("].elements["),a("code",[t._v("elementType")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults.elements["),a("code",[t._v("elementType")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults")])]),t._v(" "),a("h3",{attrs:{id:"scale-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scale-options"}},[t._v("#")]),t._v(" Scale options")]),t._v(" "),a("ul",[a("li",[t._v("options.scales")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].scales")]),t._v(" "),a("li",[t._v("defaults.scales")]),t._v(" "),a("li",[t._v("defaults.scale")])]),t._v(" "),a("h3",{attrs:{id:"plugin-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#plugin-options"}},[t._v("#")]),t._v(" Plugin options")]),t._v(" "),a("p",[t._v("A plugin can provide "),a("code",[t._v("additionalOptionScopes")]),t._v(" array of paths to additionally look for its options in. For root scope, use empty string: "),a("code",[t._v("''")]),t._v(". Most core plugins also take options from root scope.")]),t._v(" "),a("ul",[a("li",[t._v("options.plugins["),a("code",[t._v("plugin.id")]),t._v("]")]),t._v(" "),a("li",[t._v("(options.["),a("code",[t._v("...plugin.additionalOptionScopes")]),t._v("])")]),t._v(" "),a("li",[t._v("overrides["),a("code",[t._v("config.type")]),t._v("].plugins["),a("code",[t._v("plugin.id")]),t._v("]")]),t._v(" "),a("li",[t._v("defaults.plugins["),a("code",[t._v("plugin.id")]),t._v("]")]),t._v(" "),a("li",[t._v("(defaults.["),a("code",[t._v("...plugin.additionalOptionScopes")]),t._v("])")])]),t._v(" "),a("h2",{attrs:{id:"scriptable-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scriptable-options"}},[t._v("#")]),t._v(" Scriptable Options")]),t._v(" "),a("p",[t._v("Scriptable options also accept a function which is called for each of the underlying data values and that takes the unique argument "),a("code",[t._v("context")]),t._v(" representing contextual information (see "),a("RouterLink",{attrs:{to:"/general/options.html#option-context"}},[t._v("option context")]),t._v(").\nA resolver is passed as second parameter, that can be used to access other options in the same context.")],1),t._v(" "),a("div",{staticClass:"custom-block tip"},[a("p",{staticClass:"custom-block-title"},[t._v("Note")]),t._v(" "),a("p",[t._v("The "),a("code",[t._v("context")]),t._v(" argument should be validated in the scriptable function, because the function can be invoked in different contexts. The "),a("code",[t._v("type")]),t._v(" field is a good candidate for this validation.")])]),t._v(" "),a("p",[t._v("Example:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("color")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" index "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("dataIndex"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("dataset"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'red'")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// draw negative values in red")]),t._v("\n index "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("%")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'blue'")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// else, alternate values in blue and green")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'green'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token function-variable function"}},[t._v("borderColor")]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("context"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" options")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" color "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("color"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// resolve the value of another scriptable option: 'red', 'blue' or 'green'")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("helpers"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("color")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("color"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("lighten")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0.2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),a("h2",{attrs:{id:"indexable-options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#indexable-options"}},[t._v("#")]),t._v(" Indexable Options")]),t._v(" "),a("p",[t._v("Indexable options also accept an array in which each item corresponds to the element at the same index. Note that if there are less items than data, the items are looped over. In many cases, using a "),a("a",{attrs:{href:"#scriptable-options"}},[t._v("function")]),t._v(" is more appropriate if supported.")]),t._v(" "),a("p",[t._v("Example:")]),t._v(" "),a("div",{staticClass:"language-javascript extra-class"},[a("pre",{pre:!0,attrs:{class:"language-javascript"}},[a("code",[t._v("color"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'red'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// color for data at index 0")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'blue'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// color for data at index 1")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'green'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// color for data at index 2")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'black'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// color for data at index 3")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("//...")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),a("h2",{attrs:{id:"option-context"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#option-context"}},[t._v("#")]),t._v(" Option Context")]),t._v(" "),a("p",[t._v("The option context is used to give contextual information when resolving options and currently only applies to "),a("a",{attrs:{href:"#scriptable-options"}},[t._v("scriptable options")]),t._v(".\nThe object is preserved, so it can be used to store and pass information between calls.")]),t._v(" "),a("p",[t._v("There are multiple levels of context objects:")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("chart")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("dataset")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("data")])])])]),t._v(" "),a("li",[a("code",[t._v("scale")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("tick")])])])]),t._v(" "),a("li",[a("code",[t._v("tooltip")])])])])]),t._v(" "),a("p",[t._v("Each level inherits its parent(s) and any contextual information stored in the parent is available through the child.")]),t._v(" "),a("p",[t._v("The context object contains the following properties:")]),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("ul",[a("li",[a("code",[t._v("chart")]),t._v(": the associated chart")]),t._v(" "),a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'chart'")])])]),t._v(" "),a("h3",{attrs:{id:"dataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[t._v("#")]),t._v(" dataset")]),t._v(" "),a("p",[t._v("In addition to "),a("a",{attrs:{href:"#chart"}},[t._v("chart")])]),t._v(" "),a("ul",[a("li",[a("code",[t._v("active")]),t._v(": true if element is active (hovered)")]),t._v(" "),a("li",[a("code",[t._v("dataset")]),t._v(": dataset at index "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("li",[a("code",[t._v("datasetIndex")]),t._v(": index of the current dataset")]),t._v(" "),a("li",[a("code",[t._v("index")]),t._v(": same as "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("li",[a("code",[t._v("mode")]),t._v(": the update mode")]),t._v(" "),a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'dataset'")])])]),t._v(" "),a("h3",{attrs:{id:"data"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[t._v("#")]),t._v(" data")]),t._v(" "),a("p",[t._v("In addition to "),a("a",{attrs:{href:"#dataset"}},[t._v("dataset")])]),t._v(" "),a("ul",[a("li",[a("code",[t._v("active")]),t._v(": true if element is active (hovered)")]),t._v(" "),a("li",[a("code",[t._v("dataIndex")]),t._v(": index of the current data")]),t._v(" "),a("li",[a("code",[t._v("parsed")]),t._v(": the parsed data values for the given "),a("code",[t._v("dataIndex")]),t._v(" and "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("li",[a("code",[t._v("raw")]),t._v(": the raw data values for the given "),a("code",[t._v("dataIndex")]),t._v(" and "),a("code",[t._v("datasetIndex")])]),t._v(" "),a("li",[a("code",[t._v("element")]),t._v(": the element (point, arc, bar, etc.) for this data")]),t._v(" "),a("li",[a("code",[t._v("index")]),t._v(": same as "),a("code",[t._v("dataIndex")])]),t._v(" "),a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'data'")])])]),t._v(" "),a("h3",{attrs:{id:"scale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scale"}},[t._v("#")]),t._v(" scale")]),t._v(" "),a("p",[t._v("In addition to "),a("a",{attrs:{href:"#chart"}},[t._v("chart")])]),t._v(" "),a("ul",[a("li",[a("code",[t._v("scale")]),t._v(": the associated scale")]),t._v(" "),a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'scale'")])])]),t._v(" "),a("h3",{attrs:{id:"tick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tick"}},[t._v("#")]),t._v(" tick")]),t._v(" "),a("p",[t._v("In addition to "),a("a",{attrs:{href:"#scale"}},[t._v("scale")])]),t._v(" "),a("ul",[a("li",[a("code",[t._v("tick")]),t._v(": the associated tick object")]),t._v(" "),a("li",[a("code",[t._v("index")]),t._v(": tick index")]),t._v(" "),a("li",[a("code",[t._v("type")]),t._v(": "),a("code",[t._v("'tick'")])])]),t._v(" "),a("h3",{attrs:{id:"tooltip"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltip"}},[t._v("#")]),t._v(" tooltip")]),t._v(" "),a("p",[t._v("In addition to "),a("a",{attrs:{href:"#chart"}},[t._v("chart")])]),t._v(" "),a("ul",[a("li",[a("code",[t._v("tooltip")]),t._v(": the tooltip object")]),t._v(" "),a("li",[a("code",[t._v("tooltipItems")]),t._v(": the items the tooltip is displaying")])])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/168.6df0a3a9.js b/docs/3.1.0/assets/js/168.e618654e.js similarity index 99% rename from docs/3.1.0/assets/js/168.6df0a3a9.js rename to docs/3.1.0/assets/js/168.e618654e.js index be94607856..698785066d 100644 --- a/docs/3.1.0/assets/js/168.6df0a3a9.js +++ b/docs/3.1.0/assets/js/168.e618654e.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[168],{494:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"padding"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#padding"}},[t._v("#")]),t._v(" Padding")]),t._v(" "),s("p",[t._v("Padding values in Chart options can be supplied in couple of different formats.")]),t._v(" "),s("h2",{attrs:{id:"number"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#number"}},[t._v("#")]),t._v(" Number")]),t._v(" "),s("p",[t._v("If this value is a number, it is applied to all sides (left, top, right, bottom).")]),t._v(" "),s("p",[t._v("For example, defining a 20px padding to all sides of chart:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n layout"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v("\n padding"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"top-left-bottom-right-object"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#top-left-bottom-right-object"}},[t._v("#")]),t._v(" {top, left, bottom, right} object")]),t._v(" "),s("p",[t._v("If this value is an object, the "),s("code",[t._v("left")]),t._v(" property defines the left padding. Similarly the "),s("code",[t._v("right")]),t._v(", "),s("code",[t._v("top")]),t._v(" and "),s("code",[t._v("bottom")]),t._v(" properties can also be specified.\nOmitted properties default to "),s("code",[t._v("0")]),t._v(".")]),t._v(" "),s("p",[t._v("Lets say you wanted to add 50px of padding to the left side of the chart canvas, you would do:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n layout"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n padding"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n left"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"x-y-object"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#x-y-object"}},[t._v("#")]),t._v(" {x, y} object")]),t._v(" "),s("p",[t._v("This is a shorthand for defining left/right and top/bottom to same values.")]),t._v(" "),s("p",[t._v("For example, 10px left / right and 4px top / bottom padding on a Radial Linear Axis "),s("a",{attrs:{href:"../axes/radial/linear#tick-configuration"}},[t._v("tick backdropPadding")]),t._v(":")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'radar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n r"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n ticks"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n backdropPadding"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("4")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[168],{493:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"padding"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#padding"}},[t._v("#")]),t._v(" Padding")]),t._v(" "),s("p",[t._v("Padding values in Chart options can be supplied in couple of different formats.")]),t._v(" "),s("h2",{attrs:{id:"number"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#number"}},[t._v("#")]),t._v(" Number")]),t._v(" "),s("p",[t._v("If this value is a number, it is applied to all sides (left, top, right, bottom).")]),t._v(" "),s("p",[t._v("For example, defining a 20px padding to all sides of chart:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n layout"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v("\n padding"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("20")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"top-left-bottom-right-object"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#top-left-bottom-right-object"}},[t._v("#")]),t._v(" {top, left, bottom, right} object")]),t._v(" "),s("p",[t._v("If this value is an object, the "),s("code",[t._v("left")]),t._v(" property defines the left padding. Similarly the "),s("code",[t._v("right")]),t._v(", "),s("code",[t._v("top")]),t._v(" and "),s("code",[t._v("bottom")]),t._v(" properties can also be specified.\nOmitted properties default to "),s("code",[t._v("0")]),t._v(".")]),t._v(" "),s("p",[t._v("Lets say you wanted to add 50px of padding to the left side of the chart canvas, you would do:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n layout"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n padding"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n left"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("50")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"x-y-object"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#x-y-object"}},[t._v("#")]),t._v(" {x, y} object")]),t._v(" "),s("p",[t._v("This is a shorthand for defining left/right and top/bottom to same values.")]),t._v(" "),s("p",[t._v("For example, 10px left / right and 4px top / bottom padding on a Radial Linear Axis "),s("a",{attrs:{href:"../axes/radial/linear#tick-configuration"}},[t._v("tick backdropPadding")]),t._v(":")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'radar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n r"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n ticks"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n backdropPadding"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n x"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("10")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("4")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/169.6988ad9e.js b/docs/3.1.0/assets/js/169.9e5b7a91.js similarity index 99% rename from docs/3.1.0/assets/js/169.6988ad9e.js rename to docs/3.1.0/assets/js/169.9e5b7a91.js index 5720dc2bc4..1e5848364c 100644 --- a/docs/3.1.0/assets/js/169.6988ad9e.js +++ b/docs/3.1.0/assets/js/169.9e5b7a91.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[169],{495:function(a,t,s){"use strict";s.r(t);var n=s(7),e=Object(n.a)({},(function(){var a=this,t=a.$createElement,s=a._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[s("h1",{attrs:{id:"performance"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#performance"}},[a._v("#")]),a._v(" Performance")]),a._v(" "),s("p",[a._v("Chart.js charts are rendered on "),s("code",[a._v("canvas")]),a._v(" elements, which makes rendering quite fast. For large datasets or performance sensitive applications, you may wish to consider the tips below.")]),a._v(" "),s("h2",{attrs:{id:"data-structure-and-format"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#data-structure-and-format"}},[a._v("#")]),a._v(" Data structure and format")]),a._v(" "),s("h3",{attrs:{id:"parsing"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[a._v("#")]),a._v(" Parsing")]),a._v(" "),s("p",[a._v("Provide prepared data in the internal format accepted by the dataset and scales, and set "),s("code",[a._v("parsing: false")]),a._v(". See "),s("RouterLink",{attrs:{to:"/general/data-structures.html"}},[a._v("Data structures")]),a._v(" for more information.")],1),a._v(" "),s("h3",{attrs:{id:"data-normalization"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#data-normalization"}},[a._v("#")]),a._v(" Data normalization")]),a._v(" "),s("p",[a._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the "),s("code",[a._v("normalized: true")]),a._v(" option to let Chart.js know that you have done so. Even without this option, it can sometimes still be faster to provide sorted data.")]),a._v(" "),s("h3",{attrs:{id:"decimation"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#decimation"}},[a._v("#")]),a._v(" Decimation")]),a._v(" "),s("p",[a._v("Decimating your data will achieve the best results. When there is a lot of data to display on the graph, it doesn't make sense to show tens of thousands of data points on a graph that is only a few hundred pixels wide.")]),a._v(" "),s("p",[a._v("The "),s("RouterLink",{attrs:{to:"/general/configuration/decimation.html"}},[a._v("decimation plugin")]),a._v(" can be used with line charts to decimate data before the chart is rendered. This will provide the best performance since it will reduce the memory needed to render the chart.")],1),a._v(" "),s("p",[a._v("Line charts are able to do "),s("a",{attrs:{href:"#automatic-data-decimation-during-draw"}},[a._v("automatic data decimation during draw")]),a._v(", when certain conditions are met. You should still consider decimating data yourself before passing it in for maximum performance since the automatic decimation occurs late in the chart life cycle.")]),a._v(" "),s("h2",{attrs:{id:"tick-calculation"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tick-calculation"}},[a._v("#")]),a._v(" Tick Calculation")]),a._v(" "),s("h3",{attrs:{id:"rotation"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[a._v("#")]),a._v(" Rotation")]),a._v(" "),s("p",[s("RouterLink",{attrs:{to:"/general/axes/cartesian/#tick-configuration"}},[a._v("Specify a rotation value")]),a._v(" by setting "),s("code",[a._v("minRotation")]),a._v(" and "),s("code",[a._v("maxRotation")]),a._v(" to the same value, which avoids the chart from having to automatically determine a value to use.")],1),a._v(" "),s("h3",{attrs:{id:"sampling"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#sampling"}},[a._v("#")]),a._v(" Sampling")]),a._v(" "),s("p",[a._v("Set the "),s("RouterLink",{attrs:{to:"/general/axes/cartesian/#tick-configuration"}},[s("code",[a._v("ticks.sampleSize")])]),a._v(" option. This will determine how large your labels are by looking at only a subset of them in order to render axes more quickly. This works best if there is not a large variance in the size of your labels.")],1),a._v(" "),s("h2",{attrs:{id:"disable-animations"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#disable-animations"}},[a._v("#")]),a._v(" Disable Animations")]),a._v(" "),s("p",[a._v("If your charts have long render times, it is a good idea to disable animations. Doing so will mean that the chart needs to only be rendered once during an update instead of multiple times. This will have the effect of reducing CPU usage and improving general page performance.\nLine charts use Path2D caching when animations are disabled and Path2D is available.")]),a._v(" "),s("p",[a._v("To disable animations")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n animation"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("false")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h2",{attrs:{id:"specify-min-and-max-for-scales"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#specify-min-and-max-for-scales"}},[a._v("#")]),a._v(" Specify "),s("code",[a._v("min")]),a._v(" and "),s("code",[a._v("max")]),a._v(" for scales")]),a._v(" "),s("p",[a._v("If you specify the "),s("code",[a._v("min")]),a._v(" and "),s("code",[a._v("max")]),a._v(", the scale does not have to compute the range from the data.")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n scales"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n x"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'time'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n min"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Date")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'2019-01-01'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[a._v("valueOf")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n max"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Date")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'2019-12-31'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[a._v("valueOf")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'linear'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n min"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n max"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("100")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h2",{attrs:{id:"parallel-rendering-with-web-workers-chromium-only"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#parallel-rendering-with-web-workers-chromium-only"}},[a._v("#")]),a._v(" Parallel rendering with web workers (Chromium only)")]),a._v(" "),s("p",[a._v("Chromium (Chrome: version 69, Edge: 79, Opera: 56) added the ability to "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen",target:"_blank",rel:"noopener noreferrer"}},[a._v("transfer rendering control of a canvas"),s("OutboundLink")],1),a._v(" to a web worker. Web workers can use the "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas",target:"_blank",rel:"noopener noreferrer"}},[a._v("OffscreenCanvas API"),s("OutboundLink")],1),a._v(" to render from a web worker onto canvases in the DOM. Chart.js is a canvas-based library and supports rendering in a web worker - just pass an OffscreenCanvas into the Chart constructor instead of a Canvas element. Note that as of today, this API is only supported in Chromium based browsers.")]),a._v(" "),s("p",[a._v("By moving all Chart.js calculations onto a separate thread, the main thread can be freed up for other uses. Some tips and tricks when using Chart.js in a web worker:")]),a._v(" "),s("ul",[s("li",[a._v("Transferring data between threads can be expensive, so ensure that your config and data objects are as small as possible. Try generating them on the worker side if you can (workers can make HTTP requests!) or passing them to your worker as ArrayBuffers, which can be transferred quickly from one thread to another.")]),a._v(" "),s("li",[a._v("You can't transfer functions between threads, so if your config object includes functions you'll have to strip them out before transferring and then add them back later.")]),a._v(" "),s("li",[a._v("You can't access the DOM from worker threads, so Chart.js plugins that use the DOM (including any mouse interactions) will likely not work.")]),a._v(" "),s("li",[a._v("Ensure that you have a fallback if you support browsers other than the most modern Chromium browsers.")]),a._v(" "),s("li",[a._v("Resizing the chart must be done manually. See an example in the worker code below.")])]),a._v(" "),s("p",[a._v("Example main thread code:")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" config "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" canvas "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("HTMLCanvasElement")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" offscreenCanvas "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[a._v("transferControlToOffscreen")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" worker "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Worker")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'worker.js'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\nworker"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[a._v("postMessage")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("canvas"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" offscreenCanvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" config"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("[")]),a._v("offscreenCanvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("p",[a._v("Example worker code, in "),s("code",[a._v("worker.js")]),a._v(":")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token function-variable function"}},[a._v("onmessage")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[a._v("event")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" config"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" event"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),a._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" config"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// Resizing the chart must be done manually, since OffscreenCanvas does not include event listeners.")]),a._v("\n canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),a._v("width "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("100")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),a._v("height "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("100")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[a._v("resize")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h2",{attrs:{id:"line-charts"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#line-charts"}},[a._v("#")]),a._v(" Line Charts")]),a._v(" "),s("h3",{attrs:{id:"leave-bezier-curves-disabled"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#leave-bezier-curves-disabled"}},[a._v("#")]),a._v(" Leave Bézier curves disabled")]),a._v(" "),s("p",[a._v("If you are drawing lines on your chart, disabling Bézier curves will improve render times since drawing a straight line is more performant than a Bézier curve. Bézier curves are disabled by default.")]),a._v(" "),s("h3",{attrs:{id:"automatic-data-decimation-during-draw"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#automatic-data-decimation-during-draw"}},[a._v("#")]),a._v(" Automatic data decimation during draw")]),a._v(" "),s("p",[a._v("Line element will automatically decimate data, when "),s("code",[a._v("tension")]),a._v(", "),s("code",[a._v("stepped")]),a._v(", and "),s("code",[a._v("borderDash")]),a._v(" are left set to their default values ("),s("code",[a._v("false")]),a._v(", "),s("code",[a._v("0")]),a._v(", and "),s("code",[a._v("[]")]),a._v(" respectively). This improves rendering speed by skipping drawing of invisible line segments.")]),a._v(" "),s("h3",{attrs:{id:"enable-spangaps"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#enable-spangaps"}},[a._v("#")]),a._v(" Enable spanGaps")]),a._v(" "),s("p",[a._v("If you have a lot of data points, it can be more performant to enable "),s("code",[a._v("spanGaps")]),a._v(". This disables segmentation of the line, which can be an unneeded step.")]),a._v(" "),s("p",[a._v("To enable "),s("code",[a._v("spanGaps")]),a._v(":")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n spanGaps"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("true")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// enable for a single dataset")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("]")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n spanGaps"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("true")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// enable for all datasets")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h3",{attrs:{id:"disable-line-drawing"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#disable-line-drawing"}},[a._v("#")]),a._v(" Disable Line Drawing")]),a._v(" "),s("p",[a._v("If you have a lot of data points, it can be more performant to disable rendering of the line for a dataset and only draw points. Doing this means that there is less to draw on the canvas which will improve render performance.")]),a._v(" "),s("p",[a._v("To disable lines:")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n showLine"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("false")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// disable for a single dataset")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("]")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n showLine"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("false")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// disable for all datasets")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h3",{attrs:{id:"disable-point-drawing"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#disable-point-drawing"}},[a._v("#")]),a._v(" Disable Point Drawing")]),a._v(" "),s("p",[a._v("If you have a lot of data points, it can be more performant to disable rendering of the points for a dataset and only draw line. Doing this means that there is less to draw on the canvas which will improve render performance.")]),a._v(" "),s("p",[a._v("To disable point drawing:")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n pointRadius"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("0")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// disable for a single dataset")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("]")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n line"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n pointRadius"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("0")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// disable for all `'line'` datasets")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n elements"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n point"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n radius"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("0")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// default to disabled in all datasets")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h2",{attrs:{id:"when-transpiling-with-babel-consider-using-loose-mode"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#when-transpiling-with-babel-consider-using-loose-mode"}},[a._v("#")]),a._v(" When transpiling with Babel, consider using "),s("code",[a._v("loose")]),a._v(" mode")]),a._v(" "),s("p",[a._v("Babel 7.9 changed the way classes are constructed. It is slow, unless used with "),s("code",[a._v("loose")]),a._v(" mode.\n"),s("a",{attrs:{href:"https://github.com/babel/babel/issues/11356",target:"_blank",rel:"noopener noreferrer"}},[a._v("More information"),s("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[169],{494:function(a,t,s){"use strict";s.r(t);var n=s(7),e=Object(n.a)({},(function(){var a=this,t=a.$createElement,s=a._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[s("h1",{attrs:{id:"performance"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#performance"}},[a._v("#")]),a._v(" Performance")]),a._v(" "),s("p",[a._v("Chart.js charts are rendered on "),s("code",[a._v("canvas")]),a._v(" elements, which makes rendering quite fast. For large datasets or performance sensitive applications, you may wish to consider the tips below.")]),a._v(" "),s("h2",{attrs:{id:"data-structure-and-format"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#data-structure-and-format"}},[a._v("#")]),a._v(" Data structure and format")]),a._v(" "),s("h3",{attrs:{id:"parsing"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[a._v("#")]),a._v(" Parsing")]),a._v(" "),s("p",[a._v("Provide prepared data in the internal format accepted by the dataset and scales, and set "),s("code",[a._v("parsing: false")]),a._v(". See "),s("RouterLink",{attrs:{to:"/general/data-structures.html"}},[a._v("Data structures")]),a._v(" for more information.")],1),a._v(" "),s("h3",{attrs:{id:"data-normalization"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#data-normalization"}},[a._v("#")]),a._v(" Data normalization")]),a._v(" "),s("p",[a._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the "),s("code",[a._v("normalized: true")]),a._v(" option to let Chart.js know that you have done so. Even without this option, it can sometimes still be faster to provide sorted data.")]),a._v(" "),s("h3",{attrs:{id:"decimation"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#decimation"}},[a._v("#")]),a._v(" Decimation")]),a._v(" "),s("p",[a._v("Decimating your data will achieve the best results. When there is a lot of data to display on the graph, it doesn't make sense to show tens of thousands of data points on a graph that is only a few hundred pixels wide.")]),a._v(" "),s("p",[a._v("The "),s("RouterLink",{attrs:{to:"/general/configuration/decimation.html"}},[a._v("decimation plugin")]),a._v(" can be used with line charts to decimate data before the chart is rendered. This will provide the best performance since it will reduce the memory needed to render the chart.")],1),a._v(" "),s("p",[a._v("Line charts are able to do "),s("a",{attrs:{href:"#automatic-data-decimation-during-draw"}},[a._v("automatic data decimation during draw")]),a._v(", when certain conditions are met. You should still consider decimating data yourself before passing it in for maximum performance since the automatic decimation occurs late in the chart life cycle.")]),a._v(" "),s("h2",{attrs:{id:"tick-calculation"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#tick-calculation"}},[a._v("#")]),a._v(" Tick Calculation")]),a._v(" "),s("h3",{attrs:{id:"rotation"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[a._v("#")]),a._v(" Rotation")]),a._v(" "),s("p",[s("RouterLink",{attrs:{to:"/general/axes/cartesian/#tick-configuration"}},[a._v("Specify a rotation value")]),a._v(" by setting "),s("code",[a._v("minRotation")]),a._v(" and "),s("code",[a._v("maxRotation")]),a._v(" to the same value, which avoids the chart from having to automatically determine a value to use.")],1),a._v(" "),s("h3",{attrs:{id:"sampling"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#sampling"}},[a._v("#")]),a._v(" Sampling")]),a._v(" "),s("p",[a._v("Set the "),s("RouterLink",{attrs:{to:"/general/axes/cartesian/#tick-configuration"}},[s("code",[a._v("ticks.sampleSize")])]),a._v(" option. This will determine how large your labels are by looking at only a subset of them in order to render axes more quickly. This works best if there is not a large variance in the size of your labels.")],1),a._v(" "),s("h2",{attrs:{id:"disable-animations"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#disable-animations"}},[a._v("#")]),a._v(" Disable Animations")]),a._v(" "),s("p",[a._v("If your charts have long render times, it is a good idea to disable animations. Doing so will mean that the chart needs to only be rendered once during an update instead of multiple times. This will have the effect of reducing CPU usage and improving general page performance.\nLine charts use Path2D caching when animations are disabled and Path2D is available.")]),a._v(" "),s("p",[a._v("To disable animations")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n animation"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("false")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h2",{attrs:{id:"specify-min-and-max-for-scales"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#specify-min-and-max-for-scales"}},[a._v("#")]),a._v(" Specify "),s("code",[a._v("min")]),a._v(" and "),s("code",[a._v("max")]),a._v(" for scales")]),a._v(" "),s("p",[a._v("If you specify the "),s("code",[a._v("min")]),a._v(" and "),s("code",[a._v("max")]),a._v(", the scale does not have to compute the range from the data.")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n scales"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n x"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'time'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n min"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Date")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'2019-01-01'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[a._v("valueOf")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n max"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Date")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'2019-12-31'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[a._v("valueOf")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'linear'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n min"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("0")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n max"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("100")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h2",{attrs:{id:"parallel-rendering-with-web-workers-chromium-only"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#parallel-rendering-with-web-workers-chromium-only"}},[a._v("#")]),a._v(" Parallel rendering with web workers (Chromium only)")]),a._v(" "),s("p",[a._v("Chromium (Chrome: version 69, Edge: 79, Opera: 56) added the ability to "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen",target:"_blank",rel:"noopener noreferrer"}},[a._v("transfer rendering control of a canvas"),s("OutboundLink")],1),a._v(" to a web worker. Web workers can use the "),s("a",{attrs:{href:"https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas",target:"_blank",rel:"noopener noreferrer"}},[a._v("OffscreenCanvas API"),s("OutboundLink")],1),a._v(" to render from a web worker onto canvases in the DOM. Chart.js is a canvas-based library and supports rendering in a web worker - just pass an OffscreenCanvas into the Chart constructor instead of a Canvas element. Note that as of today, this API is only supported in Chromium based browsers.")]),a._v(" "),s("p",[a._v("By moving all Chart.js calculations onto a separate thread, the main thread can be freed up for other uses. Some tips and tricks when using Chart.js in a web worker:")]),a._v(" "),s("ul",[s("li",[a._v("Transferring data between threads can be expensive, so ensure that your config and data objects are as small as possible. Try generating them on the worker side if you can (workers can make HTTP requests!) or passing them to your worker as ArrayBuffers, which can be transferred quickly from one thread to another.")]),a._v(" "),s("li",[a._v("You can't transfer functions between threads, so if your config object includes functions you'll have to strip them out before transferring and then add them back later.")]),a._v(" "),s("li",[a._v("You can't access the DOM from worker threads, so Chart.js plugins that use the DOM (including any mouse interactions) will likely not work.")]),a._v(" "),s("li",[a._v("Ensure that you have a fallback if you support browsers other than the most modern Chromium browsers.")]),a._v(" "),s("li",[a._v("Resizing the chart must be done manually. See an example in the worker code below.")])]),a._v(" "),s("p",[a._v("Example main thread code:")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" config "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" canvas "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("HTMLCanvasElement")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" offscreenCanvas "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[a._v("transferControlToOffscreen")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" worker "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Worker")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'worker.js'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\nworker"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[a._v("postMessage")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("canvas"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" offscreenCanvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" config"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("[")]),a._v("offscreenCanvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("p",[a._v("Example worker code, in "),s("code",[a._v("worker.js")]),a._v(":")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token function-variable function"}},[a._v("onmessage")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[a._v("event")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" config"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" event"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),a._v("data"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("const")]),a._v(" chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" config"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// Resizing the chart must be done manually, since OffscreenCanvas does not include event listeners.")]),a._v("\n canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),a._v("width "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("100")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n canvas"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),a._v("height "),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v("=")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("100")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[a._v("resize")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h2",{attrs:{id:"line-charts"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#line-charts"}},[a._v("#")]),a._v(" Line Charts")]),a._v(" "),s("h3",{attrs:{id:"leave-bezier-curves-disabled"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#leave-bezier-curves-disabled"}},[a._v("#")]),a._v(" Leave Bézier curves disabled")]),a._v(" "),s("p",[a._v("If you are drawing lines on your chart, disabling Bézier curves will improve render times since drawing a straight line is more performant than a Bézier curve. Bézier curves are disabled by default.")]),a._v(" "),s("h3",{attrs:{id:"automatic-data-decimation-during-draw"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#automatic-data-decimation-during-draw"}},[a._v("#")]),a._v(" Automatic data decimation during draw")]),a._v(" "),s("p",[a._v("Line element will automatically decimate data, when "),s("code",[a._v("tension")]),a._v(", "),s("code",[a._v("stepped")]),a._v(", and "),s("code",[a._v("borderDash")]),a._v(" are left set to their default values ("),s("code",[a._v("false")]),a._v(", "),s("code",[a._v("0")]),a._v(", and "),s("code",[a._v("[]")]),a._v(" respectively). This improves rendering speed by skipping drawing of invisible line segments.")]),a._v(" "),s("h3",{attrs:{id:"enable-spangaps"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#enable-spangaps"}},[a._v("#")]),a._v(" Enable spanGaps")]),a._v(" "),s("p",[a._v("If you have a lot of data points, it can be more performant to enable "),s("code",[a._v("spanGaps")]),a._v(". This disables segmentation of the line, which can be an unneeded step.")]),a._v(" "),s("p",[a._v("To enable "),s("code",[a._v("spanGaps")]),a._v(":")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n spanGaps"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("true")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// enable for a single dataset")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("]")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n spanGaps"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("true")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// enable for all datasets")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h3",{attrs:{id:"disable-line-drawing"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#disable-line-drawing"}},[a._v("#")]),a._v(" Disable Line Drawing")]),a._v(" "),s("p",[a._v("If you have a lot of data points, it can be more performant to disable rendering of the line for a dataset and only draw points. Doing this means that there is less to draw on the canvas which will improve render performance.")]),a._v(" "),s("p",[a._v("To disable lines:")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n showLine"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("false")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// disable for a single dataset")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("]")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n showLine"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[a._v("false")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// disable for all datasets")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h3",{attrs:{id:"disable-point-drawing"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#disable-point-drawing"}},[a._v("#")]),a._v(" Disable Point Drawing")]),a._v(" "),s("p",[a._v("If you have a lot of data points, it can be more performant to disable rendering of the points for a dataset and only draw line. Doing this means that there is less to draw on the canvas which will improve render performance.")]),a._v(" "),s("p",[a._v("To disable point drawing:")]),a._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[a._v("new")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[a._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("(")]),a._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[a._v("'line'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n pointRadius"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("0")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// disable for a single dataset")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("]")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n line"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n pointRadius"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("0")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// disable for all `'line'` datasets")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(",")]),a._v("\n elements"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n point"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("{")]),a._v("\n radius"),s("span",{pre:!0,attrs:{class:"token operator"}},[a._v(":")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[a._v("0")]),a._v(" "),s("span",{pre:!0,attrs:{class:"token comment"}},[a._v("// default to disabled in all datasets")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),a._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[a._v(";")]),a._v("\n")])])]),s("h2",{attrs:{id:"when-transpiling-with-babel-consider-using-loose-mode"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#when-transpiling-with-babel-consider-using-loose-mode"}},[a._v("#")]),a._v(" When transpiling with Babel, consider using "),s("code",[a._v("loose")]),a._v(" mode")]),a._v(" "),s("p",[a._v("Babel 7.9 changed the way classes are constructed. It is slow, unless used with "),s("code",[a._v("loose")]),a._v(" mode.\n"),s("a",{attrs:{href:"https://github.com/babel/babel/issues/11356",target:"_blank",rel:"noopener noreferrer"}},[a._v("More information"),s("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/17.9899e86e.js b/docs/3.1.0/assets/js/17.9899e86e.js new file mode 100644 index 0000000000..739c3fc169 --- /dev/null +++ b/docs/3.1.0/assets/js/17.9899e86e.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{341:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-domplatform"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-domplatform"}},[t._v("#")]),t._v(" Class: DomPlatform")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[a("em",[t._v("BasePlatform")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("DomPlatform")])])])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new DomPlatform")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/domplatform.html"}},[a("em",[t._v("DomPlatform")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/domplatform.html"}},[a("em",[t._v("DomPlatform")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"acquirecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#acquirecontext"}},[t._v("#")]),t._v(" acquireContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("acquireContext")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("options?")]),t._v(": CanvasRenderingContext2DSettings): CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Called at chart construction time, returns a context2d instance implementing\nthe "),a("a",{attrs:{href:"https://www.w3.org/TR/2dcontext/",target:"_blank",rel:"noopener noreferrer"}},[t._v("W3C Canvas 2D Context API standard"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas from which to acquire context (platform specific)")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2DSettings")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart options")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1907",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1907"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addeventlistener"}},[t._v("#")]),t._v(" addEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Registers the specified listener on the given chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to listen for event")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to listen for")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Receives a notification (an object that implements the "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(" interface) when an event of the specified type occurs.")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1925",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1925"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdevicepixelratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdevicepixelratio"}},[t._v("#")]),t._v(" getDevicePixelRatio")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDevicePixelRatio")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("the current devicePixelRatio of the device this platform is connected to.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1936",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1936"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaximumsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaximumsize"}},[t._v("#")]),t._v(" getMaximumSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMaximumSize")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("width?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("aspectRatio?")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas for which to calculate the maximum size")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("aspectRatio?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("the maximum size available.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1944",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1944"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isattached"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isattached"}},[t._v("#")]),t._v(" isAttached")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isAttached")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the canvas is attached to the platform, false if not.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1949",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1949"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"releasecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#releasecontext"}},[t._v("#")]),t._v(" releaseContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("releaseContext")]),t._v("("),a("code",[t._v("context")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Called at chart destruction time, releases any resources associated to the context\npreviously returned by the acquireContext() method.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("context")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The context2d instance")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the method succeeded, else false")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1917",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1917"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removeeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removeeventlistener"}},[t._v("#")]),t._v(" removeEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Removes the specified listener previously registered with addEventListener.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to remove the listener")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to remove")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The listener function to remove from the event target.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1932",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1932"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/17.a7672df0.js b/docs/3.1.0/assets/js/17.a7672df0.js deleted file mode 100644 index fe18c82492..0000000000 --- a/docs/3.1.0/assets/js/17.a7672df0.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{344:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-domplatform"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-domplatform"}},[t._v("#")]),t._v(" Class: DomPlatform")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[a("em",[t._v("BasePlatform")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("DomPlatform")])])])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new DomPlatform")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/classes/domplatform.html"}},[a("em",[t._v("DomPlatform")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/domplatform.html"}},[a("em",[t._v("DomPlatform")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"acquirecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#acquirecontext"}},[t._v("#")]),t._v(" acquireContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("acquireContext")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("options?")]),t._v(": CanvasRenderingContext2DSettings): CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Called at chart construction time, returns a context2d instance implementing\nthe "),a("a",{attrs:{href:"https://www.w3.org/TR/2dcontext/",target:"_blank",rel:"noopener noreferrer"}},[t._v("W3C Canvas 2D Context API standard"),a("OutboundLink")],1),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas from which to acquire context (platform specific)")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2DSettings")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart options")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1907",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1907"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"addeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addeventlistener"}},[t._v("#")]),t._v(" addEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Registers the specified listener on the given chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to listen for event")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to listen for")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Receives a notification (an object that implements the "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(" interface) when an event of the specified type occurs.")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1925",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1925"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdevicepixelratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdevicepixelratio"}},[t._v("#")]),t._v(" getDevicePixelRatio")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDevicePixelRatio")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("the current devicePixelRatio of the device this platform is connected to.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1936",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1936"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaximumsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaximumsize"}},[t._v("#")]),t._v(" getMaximumSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMaximumSize")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement, "),a("code",[t._v("width?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height?")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("aspectRatio?")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The canvas for which to calculate the maximum size")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("aspectRatio?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("the maximum size available.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1944",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1944"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isattached"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isattached"}},[t._v("#")]),t._v(" isAttached")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isAttached")]),t._v("("),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canvas")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("HTMLCanvasElement")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the canvas is attached to the platform, false if not.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1949",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1949"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"releasecontext"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#releasecontext"}},[t._v("#")]),t._v(" releaseContext")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("releaseContext")]),t._v("("),a("code",[t._v("context")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Called at chart destruction time, releases any resources associated to the context\npreviously returned by the acquireContext() method.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("context")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The context2d instance")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("true if the method succeeded, else false")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1917",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1917"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removeeventlistener"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removeeventlistener"}},[t._v("#")]),t._v(" removeEventListener")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeEventListener")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("listener")]),t._v(": ("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Removes the specified listener previously registered with addEventListener.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Chart from which to remove the listener")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The ("),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")]),t._v(") type to remove")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("listener")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(") => "),a("em",[t._v("void")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The listener function to remove from the event target.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1932",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1932"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/170.bba58735.js b/docs/3.1.0/assets/js/170.ac0288f3.js similarity index 99% rename from docs/3.1.0/assets/js/170.bba58735.js rename to docs/3.1.0/assets/js/170.ac0288f3.js index d9c0f66cdf..8e5fc45c49 100644 --- a/docs/3.1.0/assets/js/170.bba58735.js +++ b/docs/3.1.0/assets/js/170.ac0288f3.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[170],{496:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"getting-started"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#getting-started"}},[t._v("#")]),t._v(" Getting Started")]),t._v(" "),s("p",[t._v("Let's get started using Chart.js!")]),t._v(" "),s("p",[t._v("First, we need to have a canvas in our page. It's recommended to give the chart its own container for "),s("RouterLink",{attrs:{to:"/configuration/responsive.html"}},[t._v("responsiveness")]),t._v(".")],1),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("div")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("Now that we have a canvas we can use, we need to include Chart.js in our page.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("src")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("https://cdn.jsdelivr.net/npm/chart.js"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}}),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("Now, we can create a chart. We add a script to our page:")]),t._v(" "),s("chart-editor",{attrs:{code:"// \nconst labels = [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n];\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgb(255, 99, 132)',\n borderColor: 'rgb(255, 99, 132)',\n data: [0, 10, 5, 2, 20, 30, 45],\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data,\n options: {}\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),s("p",[t._v("Finally, render the chart using our configuration:")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}},[s("span",{pre:!0,attrs:{class:"token language-javascript"}},[t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// === include 'setup' then 'config' above ===")]),t._v("\n \n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("\n document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n config\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("It's that easy to get started using Chart.js! From here you can explore the many options that can help you customise your charts with scales, tooltips, labels, colors, custom actions, and much more.")]),t._v(" "),s("p",[t._v("All our examples are "),s("a",{attrs:{href:"https://www.chartjs.org/samples/latest/",target:"_blank",rel:"noopener noreferrer"}},[t._v("available online"),s("OutboundLink")],1),t._v(" but you can also download the "),s("code",[t._v("Chart.js.zip")]),t._v(" archive attached to every "),s("a",{attrs:{href:"https://github.com/chartjs/Chart.js/releases",target:"_blank",rel:"noopener noreferrer"}},[t._v("release"),s("OutboundLink")],1),t._v(" to experiment with our samples locally from the "),s("code",[t._v("/samples")]),t._v(" folder.")])],1)}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[170],{498:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"getting-started"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#getting-started"}},[t._v("#")]),t._v(" Getting Started")]),t._v(" "),s("p",[t._v("Let's get started using Chart.js!")]),t._v(" "),s("p",[t._v("First, we need to have a canvas in our page. It's recommended to give the chart its own container for "),s("RouterLink",{attrs:{to:"/configuration/responsive.html"}},[t._v("responsiveness")]),t._v(".")],1),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("div")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("Now that we have a canvas we can use, we need to include Chart.js in our page.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("src")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("https://cdn.jsdelivr.net/npm/chart.js"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}}),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("Now, we can create a chart. We add a script to our page:")]),t._v(" "),s("chart-editor",{attrs:{code:"// \nconst labels = [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n];\nconst data = {\n labels: labels,\n datasets: [{\n label: 'My First dataset',\n backgroundColor: 'rgb(255, 99, 132)',\n borderColor: 'rgb(255, 99, 132)',\n data: [0, 10, 5, 2, 20, 30, 45],\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data,\n options: {}\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),s("p",[t._v("Finally, render the chart using our configuration:")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}},[s("span",{pre:!0,attrs:{class:"token language-javascript"}},[t._v("\n "),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// === include 'setup' then 'config' above ===")]),t._v("\n \n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("\n document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n config\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("p",[t._v("It's that easy to get started using Chart.js! From here you can explore the many options that can help you customise your charts with scales, tooltips, labels, colors, custom actions, and much more.")]),t._v(" "),s("p",[t._v("All our examples are "),s("a",{attrs:{href:"https://www.chartjs.org/samples/latest/",target:"_blank",rel:"noopener noreferrer"}},[t._v("available online"),s("OutboundLink")],1),t._v(" but you can also download the "),s("code",[t._v("Chart.js.zip")]),t._v(" archive attached to every "),s("a",{attrs:{href:"https://github.com/chartjs/Chart.js/releases",target:"_blank",rel:"noopener noreferrer"}},[t._v("release"),s("OutboundLink")],1),t._v(" to experiment with our samples locally from the "),s("code",[t._v("/samples")]),t._v(" folder.")])],1)}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/171.4d62757a.js b/docs/3.1.0/assets/js/171.6b973c39.js similarity index 98% rename from docs/3.1.0/assets/js/171.4d62757a.js rename to docs/3.1.0/assets/js/171.6b973c39.js index 69c5a7058b..801dc728e5 100644 --- a/docs/3.1.0/assets/js/171.4d62757a.js +++ b/docs/3.1.0/assets/js/171.6b973c39.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[171],{497:function(t,r,e){"use strict";e.r(r);var s=e(7),a=Object(s.a)({},(function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h2",{attrs:{id:"npm"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#npm"}},[t._v("#")]),t._v(" npm")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://npmjs.com/package/chart.js",target:"_blank",rel:"noopener noreferrer"}},[e("img",{attrs:{src:"https://img.shields.io/npm/v/chart.js.svg?style=flat-square&maxAge=600",alt:"npm"}}),e("OutboundLink")],1),t._v(" "),e("a",{attrs:{href:"https://npmjs.com/package/chart.js",target:"_blank",rel:"noopener noreferrer"}},[e("img",{attrs:{src:"https://img.shields.io/npm/dm/chart.js.svg?style=flat-square&maxAge=600",alt:"npm"}}),e("OutboundLink")],1)]),t._v(" "),e("div",{staticClass:"language-sh extra-class"},[e("pre",{pre:!0,attrs:{class:"language-sh"}},[e("code",[e("span",{pre:!0,attrs:{class:"token function"}},[t._v("npm")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("install")]),t._v(" chart.js\n")])])]),e("h2",{attrs:{id:"cdn"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#cdn"}},[t._v("#")]),t._v(" CDN")]),t._v(" "),e("h3",{attrs:{id:"cdnjs"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#cdnjs"}},[t._v("#")]),t._v(" CDNJS")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://cdnjs.com/libraries/Chart.js",target:"_blank",rel:"noopener noreferrer"}},[e("img",{attrs:{src:"https://img.shields.io/cdnjs/v/Chart.js.svg?style=flat-square&maxAge=600",alt:"cdnjs"}}),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("Chart.js built files are available on "),e("a",{attrs:{href:"https://cdnjs.com/",target:"_blank",rel:"noopener noreferrer"}},[t._v("CDNJS"),e("OutboundLink")],1),t._v(":")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://cdnjs.com/libraries/Chart.js",target:"_blank",rel:"noopener noreferrer"}},[t._v("https://cdnjs.com/libraries/Chart.js"),e("OutboundLink")],1)]),t._v(" "),e("h3",{attrs:{id:"jsdelivr"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#jsdelivr"}},[t._v("#")]),t._v(" jsDelivr")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://cdn.jsdelivr.net/npm/chart.js@latest/dist/",target:"_blank",rel:"noopener noreferrer"}},[e("img",{attrs:{src:"https://img.shields.io/npm/v/chart.js.svg?label=jsdelivr&style=flat-square&maxAge=600",alt:"jsdelivr"}}),e("OutboundLink")],1),t._v(" "),e("a",{attrs:{href:"https://www.jsdelivr.com/package/npm/chart.js",target:"_blank",rel:"noopener noreferrer"}},[e("img",{attrs:{src:"https://data.jsdelivr.com/v1/package/npm/chart.js/badge",alt:"jsdelivr hits"}}),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("Chart.js built files are also available through "),e("a",{attrs:{href:"https://www.jsdelivr.com/",target:"_blank",rel:"noopener noreferrer"}},[t._v("jsDelivr"),e("OutboundLink")],1),t._v(":")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://www.jsdelivr.com/package/npm/chart.js?path=dist",target:"_blank",rel:"noopener noreferrer"}},[t._v("https://www.jsdelivr.com/package/npm/chart.js?path=dist"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"github"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#github"}},[t._v("#")]),t._v(" Github")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/releases/latest",target:"_blank",rel:"noopener noreferrer"}},[e("img",{attrs:{src:"https://img.shields.io/github/release/chartjs/Chart.js.svg?style=flat-square&maxAge=600",alt:"github"}}),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("You can download the latest version of "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/releases/latest",target:"_blank",rel:"noopener noreferrer"}},[t._v("Chart.js on GitHub"),e("OutboundLink")],1),t._v(".")]),t._v(" "),e("p",[t._v("If you download or clone the repository, you must "),e("RouterLink",{attrs:{to:"/developers/contributing.html#building-and-testing"}},[t._v("build")]),t._v(" Chart.js to generate the dist files. Chart.js no longer comes with prebuilt release versions, so an alternative option to downloading the repo is "),e("strong",[t._v("strongly")]),t._v(" advised.")],1)])}),[],!1,null,null,null);r.default=a.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[171],{495:function(t,r,e){"use strict";e.r(r);var s=e(7),a=Object(s.a)({},(function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h2",{attrs:{id:"npm"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#npm"}},[t._v("#")]),t._v(" npm")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://npmjs.com/package/chart.js",target:"_blank",rel:"noopener noreferrer"}},[e("img",{attrs:{src:"https://img.shields.io/npm/v/chart.js.svg?style=flat-square&maxAge=600",alt:"npm"}}),e("OutboundLink")],1),t._v(" "),e("a",{attrs:{href:"https://npmjs.com/package/chart.js",target:"_blank",rel:"noopener noreferrer"}},[e("img",{attrs:{src:"https://img.shields.io/npm/dm/chart.js.svg?style=flat-square&maxAge=600",alt:"npm"}}),e("OutboundLink")],1)]),t._v(" "),e("div",{staticClass:"language-sh extra-class"},[e("pre",{pre:!0,attrs:{class:"language-sh"}},[e("code",[e("span",{pre:!0,attrs:{class:"token function"}},[t._v("npm")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("install")]),t._v(" chart.js\n")])])]),e("h2",{attrs:{id:"cdn"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#cdn"}},[t._v("#")]),t._v(" CDN")]),t._v(" "),e("h3",{attrs:{id:"cdnjs"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#cdnjs"}},[t._v("#")]),t._v(" CDNJS")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://cdnjs.com/libraries/Chart.js",target:"_blank",rel:"noopener noreferrer"}},[e("img",{attrs:{src:"https://img.shields.io/cdnjs/v/Chart.js.svg?style=flat-square&maxAge=600",alt:"cdnjs"}}),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("Chart.js built files are available on "),e("a",{attrs:{href:"https://cdnjs.com/",target:"_blank",rel:"noopener noreferrer"}},[t._v("CDNJS"),e("OutboundLink")],1),t._v(":")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://cdnjs.com/libraries/Chart.js",target:"_blank",rel:"noopener noreferrer"}},[t._v("https://cdnjs.com/libraries/Chart.js"),e("OutboundLink")],1)]),t._v(" "),e("h3",{attrs:{id:"jsdelivr"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#jsdelivr"}},[t._v("#")]),t._v(" jsDelivr")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://cdn.jsdelivr.net/npm/chart.js@latest/dist/",target:"_blank",rel:"noopener noreferrer"}},[e("img",{attrs:{src:"https://img.shields.io/npm/v/chart.js.svg?label=jsdelivr&style=flat-square&maxAge=600",alt:"jsdelivr"}}),e("OutboundLink")],1),t._v(" "),e("a",{attrs:{href:"https://www.jsdelivr.com/package/npm/chart.js",target:"_blank",rel:"noopener noreferrer"}},[e("img",{attrs:{src:"https://data.jsdelivr.com/v1/package/npm/chart.js/badge",alt:"jsdelivr hits"}}),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("Chart.js built files are also available through "),e("a",{attrs:{href:"https://www.jsdelivr.com/",target:"_blank",rel:"noopener noreferrer"}},[t._v("jsDelivr"),e("OutboundLink")],1),t._v(":")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://www.jsdelivr.com/package/npm/chart.js?path=dist",target:"_blank",rel:"noopener noreferrer"}},[t._v("https://www.jsdelivr.com/package/npm/chart.js?path=dist"),e("OutboundLink")],1)]),t._v(" "),e("h2",{attrs:{id:"github"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#github"}},[t._v("#")]),t._v(" Github")]),t._v(" "),e("p",[e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/releases/latest",target:"_blank",rel:"noopener noreferrer"}},[e("img",{attrs:{src:"https://img.shields.io/github/release/chartjs/Chart.js.svg?style=flat-square&maxAge=600",alt:"github"}}),e("OutboundLink")],1)]),t._v(" "),e("p",[t._v("You can download the latest version of "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/releases/latest",target:"_blank",rel:"noopener noreferrer"}},[t._v("Chart.js on GitHub"),e("OutboundLink")],1),t._v(".")]),t._v(" "),e("p",[t._v("If you download or clone the repository, you must "),e("RouterLink",{attrs:{to:"/developers/contributing.html#building-and-testing"}},[t._v("build")]),t._v(" Chart.js to generate the dist files. Chart.js no longer comes with prebuilt release versions, so an alternative option to downloading the repo is "),e("strong",[t._v("strongly")]),t._v(" advised.")],1)])}),[],!1,null,null,null);r.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/172.991b5a96.js b/docs/3.1.0/assets/js/172.856e7c8a.js similarity index 99% rename from docs/3.1.0/assets/js/172.991b5a96.js rename to docs/3.1.0/assets/js/172.856e7c8a.js index 8fdecf8682..21e248d0ac 100644 --- a/docs/3.1.0/assets/js/172.991b5a96.js +++ b/docs/3.1.0/assets/js/172.856e7c8a.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[172],{498:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"integration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#integration"}},[t._v("#")]),t._v(" Integration")]),t._v(" "),s("p",[t._v("Chart.js can be integrated with plain JavaScript or with different module loaders. The examples below show how to load Chart.js in different systems.")]),t._v(" "),s("h2",{attrs:{id:"script-tag"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#script-tag"}},[t._v("#")]),t._v(" Script Tag")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("src")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("path/to/chartjs/dist/chart.js"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}}),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}},[s("span",{pre:!0,attrs:{class:"token language-javascript"}},[t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("h2",{attrs:{id:"common-js"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#common-js"}},[t._v("#")]),t._v(" Common JS")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" Chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("require")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"bundlers-webpack-rollup-etc"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#bundlers-webpack-rollup-etc"}},[t._v("#")]),t._v(" Bundlers (Webpack, Rollup, etc.)")]),t._v(" "),s("p",[t._v("Chart.js 3 is tree-shakeable, so it is necessary to import and register the controllers, elements, scales and plugins you are going to use.")]),t._v(" "),s("p",[t._v("For all available imports see the example below.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n ArcElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LineElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BarElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PointElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BarController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BubbleController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n DoughnutController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LineController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PieController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PolarAreaController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n RadarController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n ScatterController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n CategoryScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LinearScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LogarithmicScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n RadialLinearScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n TimeScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n TimeSeriesScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Decimation"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Filler"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Legend"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Title"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Tooltip\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\nChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("register")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("\n ArcElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LineElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BarElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PointElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BarController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BubbleController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n DoughnutController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LineController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PieController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PolarAreaController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n RadarController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n ScatterController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n CategoryScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LinearScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LogarithmicScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n RadialLinearScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n TimeScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n TimeSeriesScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Decimation"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Filler"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Legend"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Title"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Tooltip\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("A short registration format is also available to quickly register everything.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" registerables "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("register")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),t._v("registerables"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("And finally there is an separate path to do just the above for you, in one line:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" Chart "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js/auto'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"require-js"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#require-js"}},[t._v("#")]),t._v(" Require JS")]),t._v(" "),s("p",[s("strong",[t._v("Important:")]),t._v(" RequireJS "),s("a",{attrs:{href:"https://requirejs.org/docs/commonjs.html#intro",target:"_blank",rel:"noopener noreferrer"}},[t._v("can "),s("strong",[t._v("not")]),t._v(" load CommonJS module as is"),s("OutboundLink")],1),t._v(", so be sure to require one of the UMD builds instead (i.e. "),s("code",[t._v("dist/chart.js")]),t._v(", "),s("code",[t._v("dist/chart.min.js")]),t._v(", etc.).")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token function"}},[t._v("require")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'path/to/chartjs/dist/chart.min.js'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[s("strong",[t._v("Note:")]),t._v(" in order to use the time scale, you need to make sure "),s("a",{attrs:{href:"https://github.com/chartjs/awesome#adapters",target:"_blank",rel:"noopener noreferrer"}},[t._v("one of the available date adapters"),s("OutboundLink")],1),t._v(" and corresponding date library are fully loaded "),s("strong",[t._v("after")]),t._v(" requiring Chart.js. For this you can use nested requires:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token function"}},[t._v("require")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chartjs'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("require")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'moment'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("require")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chartjs-adapter-moment'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[172],{497:function(t,a,s){"use strict";s.r(a);var n=s(7),e=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"integration"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#integration"}},[t._v("#")]),t._v(" Integration")]),t._v(" "),s("p",[t._v("Chart.js can be integrated with plain JavaScript or with different module loaders. The examples below show how to load Chart.js in different systems.")]),t._v(" "),s("h2",{attrs:{id:"script-tag"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#script-tag"}},[t._v("#")]),t._v(" Script Tag")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("src")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("path/to/chartjs/dist/chart.js"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}}),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}},[s("span",{pre:!0,attrs:{class:"token language-javascript"}},[t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("h2",{attrs:{id:"common-js"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#common-js"}},[t._v("#")]),t._v(" Common JS")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" Chart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("require")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"bundlers-webpack-rollup-etc"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#bundlers-webpack-rollup-etc"}},[t._v("#")]),t._v(" Bundlers (Webpack, Rollup, etc.)")]),t._v(" "),s("p",[t._v("Chart.js 3 is tree-shakeable, so it is necessary to import and register the controllers, elements, scales and plugins you are going to use.")]),t._v(" "),s("p",[t._v("For all available imports see the example below.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n ArcElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LineElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BarElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PointElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BarController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BubbleController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n DoughnutController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LineController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PieController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PolarAreaController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n RadarController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n ScatterController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n CategoryScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LinearScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LogarithmicScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n RadialLinearScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n TimeScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n TimeSeriesScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Decimation"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Filler"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Legend"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Title"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Tooltip\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\nChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("register")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("\n ArcElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LineElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BarElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PointElement"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BarController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n BubbleController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n DoughnutController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LineController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PieController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n PolarAreaController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n RadarController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n ScatterController"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n CategoryScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LinearScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n LogarithmicScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n RadialLinearScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n TimeScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n TimeSeriesScale"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Decimation"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Filler"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Legend"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Title"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n Tooltip\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("A short registration format is also available to quickly register everything.")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v(" Chart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" registerables "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("register")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),t._v("registerables"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("And finally there is an separate path to do just the above for you, in one line:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" Chart "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js/auto'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("h2",{attrs:{id:"require-js"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#require-js"}},[t._v("#")]),t._v(" Require JS")]),t._v(" "),s("p",[s("strong",[t._v("Important:")]),t._v(" RequireJS "),s("a",{attrs:{href:"https://requirejs.org/docs/commonjs.html#intro",target:"_blank",rel:"noopener noreferrer"}},[t._v("can "),s("strong",[t._v("not")]),t._v(" load CommonJS module as is"),s("OutboundLink")],1),t._v(", so be sure to require one of the UMD builds instead (i.e. "),s("code",[t._v("dist/chart.js")]),t._v(", "),s("code",[t._v("dist/chart.min.js")]),t._v(", etc.).")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token function"}},[t._v("require")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'path/to/chartjs/dist/chart.min.js'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[s("strong",[t._v("Note:")]),t._v(" in order to use the time scale, you need to make sure "),s("a",{attrs:{href:"https://github.com/chartjs/awesome#adapters",target:"_blank",rel:"noopener noreferrer"}},[t._v("one of the available date adapters"),s("OutboundLink")],1),t._v(" and corresponding date library are fully loaded "),s("strong",[t._v("after")]),t._v(" requiring Chart.js. For this you can use nested requires:")]),t._v(" "),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token function"}},[t._v("require")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chartjs'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("require")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'moment'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("require")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chartjs-adapter-moment'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("function")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("...")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=e.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/173.f1af4af7.js b/docs/3.1.0/assets/js/173.d8445d26.js similarity index 99% rename from docs/3.1.0/assets/js/173.f1af4af7.js rename to docs/3.1.0/assets/js/173.d8445d26.js index 5d6a641491..d80b511c19 100644 --- a/docs/3.1.0/assets/js/173.f1af4af7.js +++ b/docs/3.1.0/assets/js/173.d8445d26.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[173],{499:function(t,a,s){"use strict";s.r(a);var n=s(7),r=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"usage"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#usage"}},[t._v("#")]),t._v(" Usage")]),t._v(" "),s("p",[t._v("Chart.js can be used with ES6 modules, plain JavaScript, and module loaders.")]),t._v(" "),s("h2",{attrs:{id:"creating-a-chart"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#creating-a-chart"}},[t._v("#")]),t._v(" Creating a Chart")]),t._v(" "),s("p",[t._v("To create a chart, we need to instantiate the "),s("code",[t._v("Chart")]),t._v(" class. To do this, we need to pass in the node, jQuery instance, or 2d context of the canvas of where we want to draw the chart. Here's an example.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Any of the following formats may be used")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getContext")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'2d'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("$")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("Once you have the element or context, you're ready to instantiate a pre-defined chart-type or create your own!")]),t._v(" "),s("p",[t._v("The following example instantiates a bar chart showing the number of votes for different colors and the y-axis starting at 0.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}},[s("span",{pre:!0,attrs:{class:"token language-javascript"}},[t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Red'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Blue'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Yellow'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Green'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Purple'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Orange'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'# of Votes'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("12")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("19")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("3")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("5")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("3")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n backgroundColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 99, 132, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(54, 162, 235, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 206, 86, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(75, 192, 192, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(153, 102, 255, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 159, 64, 0.2)'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 99, 132, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(54, 162, 235, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 206, 86, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(75, 192, 192, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(153, 102, 255, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 159, 64, 1)'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderWidth"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n beginAtZero"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[173],{496:function(t,a,s){"use strict";s.r(a);var n=s(7),r=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"usage"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#usage"}},[t._v("#")]),t._v(" Usage")]),t._v(" "),s("p",[t._v("Chart.js can be used with ES6 modules, plain JavaScript, and module loaders.")]),t._v(" "),s("h2",{attrs:{id:"creating-a-chart"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#creating-a-chart"}},[t._v("#")]),t._v(" Creating a Chart")]),t._v(" "),s("p",[t._v("To create a chart, we need to instantiate the "),s("code",[t._v("Chart")]),t._v(" class. To do this, we need to pass in the node, jQuery instance, or 2d context of the canvas of where we want to draw the chart. Here's an example.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("div",{staticClass:"language-javascript extra-class"},[s("pre",{pre:!0,attrs:{class:"language-javascript"}},[s("code",[s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Any of the following formats may be used")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getContext")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'2d'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("$")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'#myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])]),s("p",[t._v("Once you have the element or context, you're ready to instantiate a pre-defined chart-type or create your own!")]),t._v(" "),s("p",[t._v("The following example instantiates a bar chart showing the number of votes for different colors and the y-axis starting at 0.")]),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}},[s("span",{pre:!0,attrs:{class:"token language-javascript"}},[t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Red'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Blue'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Yellow'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Green'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Purple'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Orange'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'# of Votes'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("12")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("19")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("3")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("5")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("3")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n backgroundColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 99, 132, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(54, 162, 235, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 206, 86, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(75, 192, 192, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(153, 102, 255, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 159, 64, 0.2)'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 99, 132, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(54, 162, 235, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 206, 86, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(75, 192, 192, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(153, 102, 255, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 159, 64, 1)'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderWidth"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n beginAtZero"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/174.a560ad71.js b/docs/3.1.0/assets/js/174.ade5be43.js similarity index 100% rename from docs/3.1.0/assets/js/174.a560ad71.js rename to docs/3.1.0/assets/js/174.ade5be43.js diff --git a/docs/3.1.0/assets/js/175.3af24d58.js b/docs/3.1.0/assets/js/175.ba3b8841.js similarity index 99% rename from docs/3.1.0/assets/js/175.3af24d58.js rename to docs/3.1.0/assets/js/175.ba3b8841.js index 9b298aba42..4cc1d974a8 100644 --- a/docs/3.1.0/assets/js/175.3af24d58.js +++ b/docs/3.1.0/assets/js/175.ba3b8841.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[175],{501:function(t,a,s){"use strict";s.r(a);var n=s(7),r=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"chart-js"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#chart-js"}},[t._v("#")]),t._v(" Chart.js")]),t._v(" "),s("p",[s("a",{attrs:{href:"https://chartjs-slack.herokuapp.com/",target:"_blank",rel:"noopener noreferrer"}},[s("img",{attrs:{src:"https://img.shields.io/badge/slack-chartjs-blue.svg?style=flat-square&maxAge=3600",alt:"slack"}}),s("OutboundLink")],1)]),t._v(" "),s("h2",{attrs:{id:"installation"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#installation"}},[t._v("#")]),t._v(" Installation")]),t._v(" "),s("p",[t._v("You can get the latest version of Chart.js from "),s("a",{attrs:{href:"https://npmjs.com/package/chart.js",target:"_blank",rel:"noopener noreferrer"}},[t._v("npm"),s("OutboundLink")],1),t._v(", the "),s("a",{attrs:{href:"https://github.com/chartjs/Chart.js/releases/latest",target:"_blank",rel:"noopener noreferrer"}},[t._v("GitHub releases"),s("OutboundLink")],1),t._v(", or use a "),s("a",{attrs:{href:"https://www.jsdelivr.com/package/npm/chart.js",target:"_blank",rel:"noopener noreferrer"}},[t._v("Chart.js CDN"),s("OutboundLink")],1),t._v(". Detailed installation instructions can be found on the "),s("RouterLink",{attrs:{to:"/getting-started/installation.html"}},[t._v("installation")]),t._v(" page.")],1),t._v(" "),s("h2",{attrs:{id:"creating-a-chart"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#creating-a-chart"}},[t._v("#")]),t._v(" Creating a Chart")]),t._v(" "),s("p",[t._v("It's easy to get started with Chart.js. All that's required is the script included in your page along with a single "),s("code",[t._v("")]),t._v(" node to render the chart.")]),t._v(" "),s("p",[t._v("In this example, we create a bar chart for a single dataset and render that in our page. You can see all the ways to use Chart.js in the "),s("RouterLink",{attrs:{to:"/getting-started/usage.html"}},[t._v("usage documentation")]),t._v(".")],1),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}},[s("span",{pre:!0,attrs:{class:"token language-javascript"}},[t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getContext")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'2d'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Red'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Blue'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Yellow'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Green'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Purple'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Orange'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'# of Votes'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("12")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("19")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("3")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("5")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("3")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n backgroundColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 99, 132, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(54, 162, 235, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 206, 86, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(75, 192, 192, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(153, 102, 255, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 159, 64, 0.2)'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 99, 132, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(54, 162, 235, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 206, 86, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(75, 192, 192, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(153, 102, 255, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 159, 64, 1)'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderWidth"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n beginAtZero"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("h2",{attrs:{id:"contributing"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#contributing"}},[t._v("#")]),t._v(" Contributing")]),t._v(" "),s("p",[t._v("Before submitting an issue or a pull request to the project, please take a moment to look over the "),s("RouterLink",{attrs:{to:"/developers/contributing.html"}},[t._v("contributing guidelines")]),t._v(" first.")],1),t._v(" "),s("p",[t._v("For support using Chart.js, please post questions with the "),s("a",{attrs:{href:"https://stackoverflow.com/questions/tagged/chartjs",target:"_blank",rel:"noopener noreferrer"}},[s("code",[t._v("chartjs")]),t._v(" tag on Stack Overflow"),s("OutboundLink")],1),t._v(".")]),t._v(" "),s("h2",{attrs:{id:"license"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#license"}},[t._v("#")]),t._v(" License")]),t._v(" "),s("p",[t._v("Chart.js is available under the "),s("a",{attrs:{href:"https://opensource.org/licenses/MIT",target:"_blank",rel:"noopener noreferrer"}},[t._v("MIT license"),s("OutboundLink")],1),t._v(".")]),t._v(" "),s("p",[t._v("Documentation is copyright © 2014-2021 Chart.js contributors.")])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[175],{499:function(t,a,s){"use strict";s.r(a);var n=s(7),r=Object(n.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"chart-js"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#chart-js"}},[t._v("#")]),t._v(" Chart.js")]),t._v(" "),s("p",[s("a",{attrs:{href:"https://chartjs-slack.herokuapp.com/",target:"_blank",rel:"noopener noreferrer"}},[s("img",{attrs:{src:"https://img.shields.io/badge/slack-chartjs-blue.svg?style=flat-square&maxAge=3600",alt:"slack"}}),s("OutboundLink")],1)]),t._v(" "),s("h2",{attrs:{id:"installation"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#installation"}},[t._v("#")]),t._v(" Installation")]),t._v(" "),s("p",[t._v("You can get the latest version of Chart.js from "),s("a",{attrs:{href:"https://npmjs.com/package/chart.js",target:"_blank",rel:"noopener noreferrer"}},[t._v("npm"),s("OutboundLink")],1),t._v(", the "),s("a",{attrs:{href:"https://github.com/chartjs/Chart.js/releases/latest",target:"_blank",rel:"noopener noreferrer"}},[t._v("GitHub releases"),s("OutboundLink")],1),t._v(", or use a "),s("a",{attrs:{href:"https://www.jsdelivr.com/package/npm/chart.js",target:"_blank",rel:"noopener noreferrer"}},[t._v("Chart.js CDN"),s("OutboundLink")],1),t._v(". Detailed installation instructions can be found on the "),s("RouterLink",{attrs:{to:"/getting-started/installation.html"}},[t._v("installation")]),t._v(" page.")],1),t._v(" "),s("h2",{attrs:{id:"creating-a-chart"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#creating-a-chart"}},[t._v("#")]),t._v(" Creating a Chart")]),t._v(" "),s("p",[t._v("It's easy to get started with Chart.js. All that's required is the script included in your page along with a single "),s("code",[t._v("")]),t._v(" node to render the chart.")]),t._v(" "),s("p",[t._v("In this example, we create a bar chart for a single dataset and render that in our page. You can see all the ways to use Chart.js in the "),s("RouterLink",{attrs:{to:"/getting-started/usage.html"}},[t._v("usage documentation")]),t._v(".")],1),t._v(" "),s("div",{staticClass:"language-html extra-class"},[s("pre",{pre:!0,attrs:{class:"language-html"}},[s("code",[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("canvas")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("id")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("myChart"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("width")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),t._v(" "),s("span",{pre:!0,attrs:{class:"token attr-name"}},[t._v("height")]),s("span",{pre:!0,attrs:{class:"token attr-value"}},[s("span",{pre:!0,attrs:{class:"token punctuation attr-equals"}},[t._v("=")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')]),t._v("400"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v('"')])]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("<")]),t._v("script")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(">")])]),s("span",{pre:!0,attrs:{class:"token script"}},[s("span",{pre:!0,attrs:{class:"token language-javascript"}},[t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" document"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getElementById")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'myChart'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("getContext")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'2d'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" myChart "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("new")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Chart")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("ctx"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n type"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'bar'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n labels"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Red'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Blue'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Yellow'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Green'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Purple'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'Orange'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n datasets"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n label"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'# of Votes'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n data"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("12")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("19")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("3")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("5")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("3")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n backgroundColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 99, 132, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(54, 162, 235, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 206, 86, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(75, 192, 192, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(153, 102, 255, 0.2)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 159, 64, 0.2)'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderColor"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 99, 132, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(54, 162, 235, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 206, 86, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(75, 192, 192, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(153, 102, 255, 1)'")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token string"}},[t._v("'rgba(255, 159, 64, 1)'")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n borderWidth"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n options"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n scales"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n y"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n beginAtZero"),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])]),s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token tag"}},[s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("")])]),t._v("\n")])])]),s("h2",{attrs:{id:"contributing"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#contributing"}},[t._v("#")]),t._v(" Contributing")]),t._v(" "),s("p",[t._v("Before submitting an issue or a pull request to the project, please take a moment to look over the "),s("RouterLink",{attrs:{to:"/developers/contributing.html"}},[t._v("contributing guidelines")]),t._v(" first.")],1),t._v(" "),s("p",[t._v("For support using Chart.js, please post questions with the "),s("a",{attrs:{href:"https://stackoverflow.com/questions/tagged/chartjs",target:"_blank",rel:"noopener noreferrer"}},[s("code",[t._v("chartjs")]),t._v(" tag on Stack Overflow"),s("OutboundLink")],1),t._v(".")]),t._v(" "),s("h2",{attrs:{id:"license"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#license"}},[t._v("#")]),t._v(" License")]),t._v(" "),s("p",[t._v("Chart.js is available under the "),s("a",{attrs:{href:"https://opensource.org/licenses/MIT",target:"_blank",rel:"noopener noreferrer"}},[t._v("MIT license"),s("OutboundLink")],1),t._v(".")]),t._v(" "),s("p",[t._v("Documentation is copyright © 2014-2021 Chart.js contributors.")])])}),[],!1,null,null,null);a.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/176.af576a74.js b/docs/3.1.0/assets/js/176.10bb64a2.js similarity index 98% rename from docs/3.1.0/assets/js/176.af576a74.js rename to docs/3.1.0/assets/js/176.10bb64a2.js index cf6ae53178..5c9eab245d 100644 --- a/docs/3.1.0/assets/js/176.af576a74.js +++ b/docs/3.1.0/assets/js/176.10bb64a2.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[176],{502:function(n,t,a){"use strict";a.r(t);var i=a(7),e=Object(i.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"data-decimation"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#data-decimation"}},[this._v("#")]),this._v(" Data Decimation")]),this._v(" "),t("p",[this._v("This example shows how to use the built-in data decimation to reduce the number of points drawn on the graph for improved performance.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'No decimation (default)',\n handler(chart) {\n chart.options.plugins.decimation.enabled = false;\n chart.update();\n }\n },\n {\n name: 'min-max decimation',\n handler(chart) {\n chart.options.plugins.decimation.algorithm = 'min-max';\n chart.options.plugins.decimation.enabled = true;\n chart.update();\n },\n },\n {\n name: 'LTTB decimation (50 samples)',\n handler(chart) {\n chart.options.plugins.decimation.algorithm = 'lttb';\n chart.options.plugins.decimation.enabled = true;\n chart.options.plugins.decimation.samples = 50;\n chart.update();\n }\n },\n {\n name: 'LTTB decimation (500 samples)',\n handler(chart) {\n chart.options.plugins.decimation.algorithm = 'lttb';\n chart.options.plugins.decimation.enabled = true;\n chart.options.plugins.decimation.samples = 500;\n chart.update();\n }\n }\n];\n// \n\n// \nconst NUM_POINTS = 100000;\nUtils.srand(10);\n\n// parseISODate returns a luxon date object to work with in the samples\n// We will create points every 30s starting from this point in time\nconst start = Utils.parseISODate('2021-04-01T00:00:00Z').toMillis();\nconst pointData = [];\n\nfor (let i = 0; i < NUM_POINTS; ++i) {\n // Most data will be in the range [0, 20) but some rare data will be in the range [0, 100)\n const max = Math.random() < 0.001 ? 100 : 20;\n pointData.push({x: start + (i * 30000), y: Utils.rand(0, max)});\n}\n\nconst data = {\n datasets: [{\n borderColor: Utils.CHART_COLORS.red,\n borderWidth: 1,\n data: pointData,\n label: 'Large Dataset',\n radius: 0,\n }]\n};\n// \n\n// \nconst decimation = {\n enabled: false,\n algorithm: 'min-max',\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n // Turn off animations and data parsing for performance\n animation: false,\n parsing: false,\n\n interaction: {\n mode: 'nearest',\n axis: 'x',\n intersect: false\n },\n plugins: {\n decimation: decimation,\n },\n scales: {\n x: {\n type: 'time',\n ticks: {\n source: 'auto',\n // Disabled rotation for performance\n maxRotation: 0,\n autoSkip: true,\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[176],{501:function(n,t,a){"use strict";a.r(t);var i=a(7),e=Object(i.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"data-decimation"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#data-decimation"}},[this._v("#")]),this._v(" Data Decimation")]),this._v(" "),t("p",[this._v("This example shows how to use the built-in data decimation to reduce the number of points drawn on the graph for improved performance.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'No decimation (default)',\n handler(chart) {\n chart.options.plugins.decimation.enabled = false;\n chart.update();\n }\n },\n {\n name: 'min-max decimation',\n handler(chart) {\n chart.options.plugins.decimation.algorithm = 'min-max';\n chart.options.plugins.decimation.enabled = true;\n chart.update();\n },\n },\n {\n name: 'LTTB decimation (50 samples)',\n handler(chart) {\n chart.options.plugins.decimation.algorithm = 'lttb';\n chart.options.plugins.decimation.enabled = true;\n chart.options.plugins.decimation.samples = 50;\n chart.update();\n }\n },\n {\n name: 'LTTB decimation (500 samples)',\n handler(chart) {\n chart.options.plugins.decimation.algorithm = 'lttb';\n chart.options.plugins.decimation.enabled = true;\n chart.options.plugins.decimation.samples = 500;\n chart.update();\n }\n }\n];\n// \n\n// \nconst NUM_POINTS = 100000;\nUtils.srand(10);\n\n// parseISODate returns a luxon date object to work with in the samples\n// We will create points every 30s starting from this point in time\nconst start = Utils.parseISODate('2021-04-01T00:00:00Z').toMillis();\nconst pointData = [];\n\nfor (let i = 0; i < NUM_POINTS; ++i) {\n // Most data will be in the range [0, 20) but some rare data will be in the range [0, 100)\n const max = Math.random() < 0.001 ? 100 : 20;\n pointData.push({x: start + (i * 30000), y: Utils.rand(0, max)});\n}\n\nconst data = {\n datasets: [{\n borderColor: Utils.CHART_COLORS.red,\n borderWidth: 1,\n data: pointData,\n label: 'Large Dataset',\n radius: 0,\n }]\n};\n// \n\n// \nconst decimation = {\n enabled: false,\n algorithm: 'min-max',\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n // Turn off animations and data parsing for performance\n animation: false,\n parsing: false,\n\n interaction: {\n mode: 'nearest',\n axis: 'x',\n intersect: false\n },\n plugins: {\n decimation: decimation,\n },\n scales: {\n x: {\n type: 'time',\n ticks: {\n source: 'auto',\n // Disabled rotation for performance\n maxRotation: 0,\n autoSkip: true,\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/177.8d2fbf83.js b/docs/3.1.0/assets/js/177.39202147.js similarity index 99% rename from docs/3.1.0/assets/js/177.8d2fbf83.js rename to docs/3.1.0/assets/js/177.39202147.js index b4c8097262..4bae6838a1 100644 --- a/docs/3.1.0/assets/js/177.8d2fbf83.js +++ b/docs/3.1.0/assets/js/177.39202147.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[177],{503:function(t,s,a){"use strict";a.r(s);var n=a(7),e=Object(n.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"derived-axis-type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#derived-axis-type"}},[t._v("#")]),t._v(" Derived Axis Type")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 12;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 1000};\nconst labels = Utils.months({count: DATA_COUNT});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'My First dataset',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n fill: false,\n }\n ],\n};\n// \n\n// \nconst config = {\n type: 'line',\n data,\n options: {\n responsive: true,\n scales: {\n x: {\n display: true,\n },\n y: {\n display: true,\n type: 'log2',\n }\n }\n }\n};\n\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"log2-axis-implementation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#log2-axis-implementation"}},[t._v("#")]),t._v(" Log2 axis implementation")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("Scale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" LinearScale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("export")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("default")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("class")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Log2Axis")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("extends")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Scale")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("constructor")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("cfg")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("super")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("cfg"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_startValue "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("undefined")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_valueRange "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("parse")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("raw"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" index")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("LinearScale")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("prototype"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("parse")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("apply")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("raw"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("isFinite")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("value"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("&&")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("determineDataLimits")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" max"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getMinMax")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("isFinite")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("max")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("max "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("isFinite")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("max"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("max")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" max"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("buildTicks")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" ticks "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" power "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("floor")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" maxPower "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("ceil")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("max"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("while")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("power "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<=")]),t._v(" maxPower"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n ticks"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("push")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("value"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("pow")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" power"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n power "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" ticks"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("value"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("max "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" ticks"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("ticks"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("length "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("value"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" ticks"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("/**\n * @protected\n */")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("configure")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" start "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("super")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("configure")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_startValue "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("start"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_valueRange "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("max"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("start"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getPixelForValue")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("value")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("===")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("undefined")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("||")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("===")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getPixelForDecimal")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("===")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("value"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_startValue"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("/")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_valueRange"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getValueForPixel")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("pixel")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" decimal "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getDecimalForPixel")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("pixel"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("pow")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_startValue "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" decimal "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("*")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_valueRange"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\nLog2Axis"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("id "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'log2'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nLog2Axis"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The derived axis is registered like this:")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Chart.register(Log2Axis);")]),t._v("\n")])])])],1)}),[],!1,null,null,null);s.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[177],{502:function(t,s,a){"use strict";a.r(s);var n=a(7),e=Object(n.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"derived-axis-type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#derived-axis-type"}},[t._v("#")]),t._v(" Derived Axis Type")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 12;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 1000};\nconst labels = Utils.months({count: DATA_COUNT});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'My First dataset',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n fill: false,\n }\n ],\n};\n// \n\n// \nconst config = {\n type: 'line',\n data,\n options: {\n responsive: true,\n scales: {\n x: {\n display: true,\n },\n y: {\n display: true,\n type: 'log2',\n }\n }\n }\n};\n\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"log2-axis-implementation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#log2-axis-implementation"}},[t._v("#")]),t._v(" Log2 axis implementation")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("Scale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" LinearScale"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("export")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("default")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("class")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Log2Axis")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("extends")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Scale")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("constructor")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("cfg")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("super")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("cfg"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_startValue "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("undefined")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_valueRange "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("parse")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("raw"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" index")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("LinearScale")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("prototype"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("parse")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("apply")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("raw"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" index"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("isFinite")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("value"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("&&")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(">")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("determineDataLimits")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" max"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getMinMax")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("true")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("isFinite")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("max")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("max "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("isFinite")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("max"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("max")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" max"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("null")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("buildTicks")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" ticks "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" power "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("floor")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("let")]),t._v(" maxPower "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("ceil")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("max"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("while")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("power "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("<=")]),t._v(" maxPower"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n ticks"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("push")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("value"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("pow")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" power"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n power "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" ticks"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("value"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("max "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" ticks"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("ticks"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("length "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("value"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" ticks"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("/**\n * @protected\n */")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("configure")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" start "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("super")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("configure")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_startValue "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("start"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_valueRange "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("max"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("start"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getPixelForValue")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("value")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("if")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("===")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("undefined")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("||")]),t._v(" value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("===")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getPixelForDecimal")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("value "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("===")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("min "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("?")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("log2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("value"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_startValue"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("/")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_valueRange"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getValueForPixel")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token parameter"}},[t._v("pixel")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" decimal "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getDecimalForPixel")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("pixel"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" Math"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("pow")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_startValue "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("+")]),t._v(" decimal "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("*")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("_valueRange"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n\nLog2Axis"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("id "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'log2'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nLog2Axis"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// The derived axis is registered like this:")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Chart.register(Log2Axis);")]),t._v("\n")])])])],1)}),[],!1,null,null,null);s.default=e.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/178.8f0f5f24.js b/docs/3.1.0/assets/js/178.55369968.js similarity index 99% rename from docs/3.1.0/assets/js/178.8f0f5f24.js rename to docs/3.1.0/assets/js/178.55369968.js index e2bc54c3f9..d15a166a08 100644 --- a/docs/3.1.0/assets/js/178.8f0f5f24.js +++ b/docs/3.1.0/assets/js/178.55369968.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[178],{504:function(t,s,a){"use strict";a.r(s);var n=a(7),e=Object(n.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"derived-chart-type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#derived-chart-type"}},[t._v("#")]),t._v(" Derived Chart Type")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100, rmin: 1, rmax: 20};\nconst data = {\n datasets: [\n {\n label: 'My First dataset',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n borderColor: Utils.CHART_COLORS.blue,\n borderWidth: 1,\n boxStrokeStyle: 'red',\n data: Utils.bubbles(NUMBER_CFG)\n }\n ],\n};\n// \n\n// \nconst config = {\n type: 'derivedBubble',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Derived Chart Type'\n },\n }\n }\n};\n\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"derivedbubble-implementation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#derivedbubble-implementation"}},[t._v("#")]),t._v(" DerivedBubble Implementation")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" BubbleController"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("class")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Custom")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("extends")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("BubbleController")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Call bubble controller method to draw all the points")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("super")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("arguments"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Now we can do some custom drawing for this dataset.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Here we'll draw a box around the first point in each dataset,")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// using `boxStrokeStyle` dataset option for color")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" meta "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getMeta")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" pt0 "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" meta"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" pt0"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getProps")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'x'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'y'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" pt0"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("save")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("strokeStyle "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("boxStrokeStyle"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("lineWidth "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("strokeRect")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("x "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("*")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("*")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("restore")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\nCustom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("id "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'derivedBubble'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nCustom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Custom defaults. Bubble defaults are inherited.")]),t._v("\n boxStrokeStyle"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'red'")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Overrides are only inherited, but not merged if defined")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Custom.overrides = Chart.overrides.bubble;")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Stores the controller so that the chart initialization routine can look it up")]),t._v("\nChart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("register")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("Custom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])],1)}),[],!1,null,null,null);s.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[178],{503:function(t,s,a){"use strict";a.r(s);var n=a(7),e=Object(n.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"derived-chart-type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#derived-chart-type"}},[t._v("#")]),t._v(" Derived Chart Type")]),t._v(" "),a("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100, rmin: 1, rmax: 20};\nconst data = {\n datasets: [\n {\n label: 'My First dataset',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n borderColor: Utils.CHART_COLORS.blue,\n borderWidth: 1,\n boxStrokeStyle: 'red',\n data: Utils.bubbles(NUMBER_CFG)\n }\n ],\n};\n// \n\n// \nconst config = {\n type: 'derivedBubble',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Derived Chart Type'\n },\n }\n }\n};\n\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}}),a("h2",{attrs:{id:"derivedbubble-implementation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#derivedbubble-implementation"}},[t._v("#")]),t._v(" DerivedBubble Implementation")]),t._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("import")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("Chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" BubbleController"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("from")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'chart.js'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("class")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("Custom")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("extends")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token class-name"}},[t._v("BubbleController")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Call bubble controller method to draw all the points")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("super")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("draw")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("arguments"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Now we can do some custom drawing for this dataset.")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Here we'll draw a box around the first point in each dataset,")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// using `boxStrokeStyle` dataset option for color")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" meta "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getMeta")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" pt0 "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" meta"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("data"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("0")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("x"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" pt0"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("getProps")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'x'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'y'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" pt0"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n\n "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("var")]),t._v(" ctx "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("chart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("save")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("strokeStyle "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("this")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("options"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("boxStrokeStyle"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("lineWidth "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("1")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("strokeRect")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("x "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" y "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("-")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("*")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token number"}},[t._v("2")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("*")]),t._v(" radius"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n ctx"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("restore")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\nCustom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("id "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'derivedBubble'")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\nCustom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),t._v("defaults "),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Custom defaults. Bubble defaults are inherited.")]),t._v("\n boxStrokeStyle"),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v("'red'")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Overrides are only inherited, but not merged if defined")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Custom.overrides = Chart.overrides.bubble;")]),t._v("\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("// Stores the controller so that the chart initialization routine can look it up")]),t._v("\nChart"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(".")]),a("span",{pre:!0,attrs:{class:"token function"}},[t._v("register")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),t._v("Custom"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(";")]),t._v("\n")])])])],1)}),[],!1,null,null,null);s.default=e.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/179.8678e43d.js b/docs/3.1.0/assets/js/179.801e181f.js similarity index 97% rename from docs/3.1.0/assets/js/179.8678e43d.js rename to docs/3.1.0/assets/js/179.801e181f.js index bc6088d2f0..b8db3ecf04 100644 --- a/docs/3.1.0/assets/js/179.8678e43d.js +++ b/docs/3.1.0/assets/js/179.801e181f.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[179],{505:function(t,n,a){"use strict";a.r(n);var e=a(7),r=Object(e.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"linear-gradient"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#linear-gradient"}},[this._v("#")]),this._v(" Linear Gradient")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nlet width, height, gradient;\nfunction getGradient(ctx, chartArea) {\n const chartWidth = chartArea.right - chartArea.left;\n const chartHeight = chartArea.bottom - chartArea.top;\n if (gradient === null || width !== chartWidth || height !== chartHeight) {\n // Create the gradient because this is either the first render\n // or the size of the chart has changed\n width = chartWidth;\n height = chartHeight;\n gradient = ctx.createLinearGradient(0, chartArea.bottom, 0, chartArea.top);\n gradient.addColorStop(0, Utils.CHART_COLORS.blue);\n gradient.addColorStop(0.5, Utils.CHART_COLORS.yellow);\n gradient.addColorStop(1, Utils.CHART_COLORS.red);\n }\n\n return gradient;\n}\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst labels = Utils.months({count: 7});\n\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: function(context) {\n const chart = context.chart;\n const {ctx, chartArea} = chart;\n\n if (!chartArea) {\n // This case happens on initial chart load\n return null;\n }\n return getGradient(ctx, chartArea);\n },\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[179],{504:function(t,n,a){"use strict";a.r(n);var e=a(7),r=Object(e.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"linear-gradient"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#linear-gradient"}},[this._v("#")]),this._v(" Linear Gradient")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nlet width, height, gradient;\nfunction getGradient(ctx, chartArea) {\n const chartWidth = chartArea.right - chartArea.left;\n const chartHeight = chartArea.bottom - chartArea.top;\n if (gradient === null || width !== chartWidth || height !== chartHeight) {\n // Create the gradient because this is either the first render\n // or the size of the chart has changed\n width = chartWidth;\n height = chartHeight;\n gradient = ctx.createLinearGradient(0, chartArea.bottom, 0, chartArea.top);\n gradient.addColorStop(0, Utils.CHART_COLORS.blue);\n gradient.addColorStop(0.5, Utils.CHART_COLORS.yellow);\n gradient.addColorStop(1, Utils.CHART_COLORS.red);\n }\n\n return gradient;\n}\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst labels = Utils.months({count: 7});\n\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: function(context) {\n const chart = context.chart;\n const {ctx, chartArea} = chart;\n\n if (!chartArea) {\n // This case happens on initial chart load\n return null;\n }\n return getGradient(ctx, chartArea);\n },\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/18.8259392d.js b/docs/3.1.0/assets/js/18.8259392d.js new file mode 100644 index 0000000000..47fa7cb59c --- /dev/null +++ b/docs/3.1.0/assets/js/18.8259392d.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{342:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-scale-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-scale-o"}},[t._v("#")]),t._v(" Class: Scale")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, O>")],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("Scale")])]),t._v(" "),a("p",[t._v("↳↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/timescale.html"}},[a("em",[t._v("TimeScale")])])],1),t._v(" "),a("p",[t._v("↳↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/radiallinearscale.html"}},[a("em",[t._v("RadialLinearScale")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new Scale")]),t._v("("),a("code",[t._v("cfg")]),t._v(": { "),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown> ; "),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D ; "),a("code",[t._v("id")]),t._v(": "),a("em",[t._v("string")]),t._v(" ; "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(" }): "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg.chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg.ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg.id")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg.type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("p",[t._v("Inherited from: Element<{}, O>.constructor")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1257",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1257"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"axis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("axis")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1160",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1160"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Bottom edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#bottom"}},[t._v("bottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L41",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:41"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1150",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1150"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ctx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ctx"}},[t._v("#")]),t._v(" ctx")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("ctx")]),t._v(": CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1149",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1149"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("fullSize")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("if true, and the item is horizontal, then push vertical boxes down")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#fullsize"}},[t._v("fullSize")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"height"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("height")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Height of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#height"}},[t._v("height")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"id"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("id")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1147",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1147"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labelrotation"}},[t._v("#")]),t._v(" labelRotation")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("labelRotation")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1161",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1161"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"left"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("left")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Left edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#left"}},[t._v("left")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:29"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"max"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#max"}},[t._v("#")]),t._v(" max")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("max")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1163",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1163"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxheight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxheight"}},[t._v("#")]),t._v(" maxHeight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxHeight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1153",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1153"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxwidth"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxwidth"}},[t._v("#")]),t._v(" maxWidth")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxWidth")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1152",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1152"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"min"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#min"}},[t._v("#")]),t._v(" min")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("min")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1162",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1162"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingbottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingbottom"}},[t._v("#")]),t._v(" paddingBottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingBottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1156",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1156"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingleft"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingleft"}},[t._v("#")]),t._v(" paddingLeft")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingLeft")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1157",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1157"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingright"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingright"}},[t._v("#")]),t._v(" paddingRight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingRight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1158",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1158"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingtop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingtop"}},[t._v("#")]),t._v(" paddingTop")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingTop")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1155",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1155"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])])],1),t._v(" "),a("p",[t._v("The position of the item in the chart layout. Possible values are")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#position"}},[t._v("position")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"right"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("right")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Right edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#right"}},[t._v("right")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:37"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[t._v("#")]),t._v(" ticks")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1164",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1164"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"top"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("top")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Top edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#top"}},[t._v("top")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:33"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("type")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1148",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1148"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the item. Higher weights are further away from the chart area")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#weight"}},[t._v("weight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"width"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("width")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Width of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#width"}},[t._v("width")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1244",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1244"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftercalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftercalculatelabelrotation"}},[t._v("#")]),t._v(" afterCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1250",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1250"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1241",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1241"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfit"}},[t._v("#")]),t._v(" afterFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1253",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1253"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftersetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftersetdimensions"}},[t._v("#")]),t._v(" afterSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1238",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1238"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterticktolabelconversion"}},[t._v("#")]),t._v(" afterTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1247",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1247"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1235",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1235"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1242",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1242"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforecalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforecalculatelabelrotation"}},[t._v("#")]),t._v(" beforeCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1248",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1248"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1239",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1239"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefit"}},[t._v("#")]),t._v(" beforeFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1251",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1251"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforelayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeLayout")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Called before the layout process starts")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L46",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:46"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforesetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforesetdimensions"}},[t._v("#")]),t._v(" beforeSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1236",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1236"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeticktolabelconversion"}},[t._v("#")]),t._v(" beforeTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1245",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1245"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1233",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1233"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildticks"}},[t._v("#")]),t._v(" buildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1243",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1243"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatelabelrotation"}},[t._v("#")]),t._v(" calculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1249",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1249"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1234",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1234"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"determinedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#determinedatalimits"}},[t._v("#")]),t._v(" determineDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("determineDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1240",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1240"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Draws the element")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L50",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:50"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawgrid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawgrid"}},[t._v("#")]),t._v(" drawGrid")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawGrid")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1169",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1169"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawlabels"}},[t._v("#")]),t._v(" drawLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawLabels")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1168",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1168"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawtitle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawtitle"}},[t._v("#")]),t._v(" drawTitle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawTitle")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1167",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1167"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fit"}},[t._v("#")]),t._v(" fit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("fit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1252",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1252"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"generateticklabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#generateticklabels"}},[t._v("#")]),t._v(" generateTickLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("generateTickLabels")]),t._v("("),a("code",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ticks")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1246",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1246"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasepixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasepixel"}},[t._v("#")]),t._v(" getBasePixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBasePixel")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the pixel for the minimum chart value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1225",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1225"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasevalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasevalue"}},[t._v("#")]),t._v(" getBaseValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBaseValue")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1219",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1219"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdecimalforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdecimalforpixel"}},[t._v("#")]),t._v(" getDecimalForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDecimalForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1175",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1175"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelforvalue"}},[t._v("#")]),t._v(" getLabelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Used to get the label to display in the tooltip for the given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1195",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1195"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabels"}},[t._v("#")]),t._v(" getLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabels")]),t._v("(): "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1232",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1232"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlinewidthforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlinewidthforvalue"}},[t._v("#")]),t._v(" getLineWidthForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLineWidthForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the grid line width at given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1200",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1200"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmatchingvisiblemetas"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmatchingvisiblemetas"}},[t._v("#")]),t._v(" getMatchingVisibleMetas")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMatchingVisibleMetas")]),t._v("("),a("code",[t._v("type?")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1165",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1165"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("canStack")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1230",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1230"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpadding"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpadding"}},[t._v("#")]),t._v(" getPadding")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getPadding")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Returns an object with padding on the edges")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L54",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:54"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfordecimal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfordecimal"}},[t._v("#")]),t._v(" getPixelForDecimal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForDecimal")]),t._v("("),a("code",[t._v("decimal")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Utility for getting the pixel location of a percentage of scale\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("decimal")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1182",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1182"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfortick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfortick"}},[t._v("#")]),t._v(" getPixelForTick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForTick")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the tick at the given index\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1189",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1189"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelforvalue"}},[t._v("#")]),t._v(" getPixelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the given data point. Value can either be an index or a numerical value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1209",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1209"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-7"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": "),a("em",[t._v("never")]),t._v("[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getticks"}},[t._v("#")]),t._v(" getTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1231",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1231"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getuserbounds"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getuserbounds"}},[t._v("#")]),t._v(" getUserBounds")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getUserBounds")]),t._v("(): "),a("em",[t._v("object")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("maxDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("minDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1229",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1229"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getvalueforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getvalueforpixel"}},[t._v("#")]),t._v(" getValueForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getValueForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Used to get the data value from a given pixel. This is the inverse of getPixelForValue\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1217",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1217"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"init"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#init"}},[t._v("#")]),t._v(" init")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("init")]),t._v("("),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1227",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1227"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isfullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isfullsize"}},[t._v("#")]),t._v(" isFullSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isFullSize")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1255",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1255"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ishorizontal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ishorizontal"}},[t._v("#")]),t._v(" isHorizontal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isHorizontal")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("returns true if the layout item is horizontal (ie. top or bottom)")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("raw")]),t._v(": "),a("em",[t._v("unknown")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("unknown")])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("raw")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("unknown")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1228",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1228"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setdimensions"}},[t._v("#")]),t._v(" setDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1237",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1237"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("margins?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Takes two parameters: width and height.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("margins?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:64"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/18.d99a8955.js b/docs/3.1.0/assets/js/18.d99a8955.js deleted file mode 100644 index ab700470db..0000000000 --- a/docs/3.1.0/assets/js/18.d99a8955.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{345:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"class-scale-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#class-scale-o"}},[t._v("#")]),t._v(" Class: Scale")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, O>")],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("Scale")])]),t._v(" "),a("p",[t._v("↳↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/timescale.html"}},[a("em",[t._v("TimeScale")])])],1),t._v(" "),a("p",[t._v("↳↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/radiallinearscale.html"}},[a("em",[t._v("RadialLinearScale")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"constructors"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructors"}},[t._v("#")]),t._v(" Constructors")]),t._v(" "),a("h3",{attrs:{id:"constructor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#constructor"}},[t._v("#")]),t._v(" constructor")]),t._v(" "),a("p",[t._v("+ "),a("strong",[t._v("new Scale")]),t._v("("),a("code",[t._v("cfg")]),t._v(": { "),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown> ; "),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D ; "),a("code",[t._v("id")]),t._v(": "),a("em",[t._v("string")]),t._v(" ; "),a("code",[t._v("type")]),t._v(": "),a("em",[t._v("string")]),t._v(" }): "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg.chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg.ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg.id")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cfg.type")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("p",[t._v("Inherited from: Element<{}, O>.constructor")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1257",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1257"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"axis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("axis")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1160",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1160"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Bottom edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#bottom"}},[t._v("bottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L41",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:41"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1150",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1150"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ctx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ctx"}},[t._v("#")]),t._v(" ctx")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("ctx")]),t._v(": CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1149",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1149"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("fullSize")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("if true, and the item is horizontal, then push vertical boxes down")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#fullsize"}},[t._v("fullSize")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"height"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("height")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Height of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#height"}},[t._v("height")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"id"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("id")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1147",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1147"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labelrotation"}},[t._v("#")]),t._v(" labelRotation")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("labelRotation")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1161",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1161"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"left"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("left")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Left edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#left"}},[t._v("left")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:29"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"max"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#max"}},[t._v("#")]),t._v(" max")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("max")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1163",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1163"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxheight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxheight"}},[t._v("#")]),t._v(" maxHeight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxHeight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1153",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1153"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxwidth"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxwidth"}},[t._v("#")]),t._v(" maxWidth")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxWidth")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1152",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1152"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"min"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#min"}},[t._v("#")]),t._v(" min")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("min")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1162",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1162"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingbottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingbottom"}},[t._v("#")]),t._v(" paddingBottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingBottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1156",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1156"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingleft"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingleft"}},[t._v("#")]),t._v(" paddingLeft")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingLeft")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1157",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1157"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingright"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingright"}},[t._v("#")]),t._v(" paddingRight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingRight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1158",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1158"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingtop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingtop"}},[t._v("#")]),t._v(" paddingTop")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingTop")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1155",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1155"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])])],1),t._v(" "),a("p",[t._v("The position of the item in the chart layout. Possible values are")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#position"}},[t._v("position")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"right"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("right")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Right edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#right"}},[t._v("right")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:37"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[t._v("#")]),t._v(" ticks")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1164",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1164"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"top"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("top")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Top edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#top"}},[t._v("top")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:33"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("type")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1148",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1148"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the item. Higher weights are further away from the chart area")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#weight"}},[t._v("weight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"width"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("width")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Width of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#width"}},[t._v("width")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1244",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1244"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftercalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftercalculatelabelrotation"}},[t._v("#")]),t._v(" afterCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1250",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1250"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1241",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1241"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfit"}},[t._v("#")]),t._v(" afterFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1253",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1253"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftersetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftersetdimensions"}},[t._v("#")]),t._v(" afterSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1238",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1238"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterticktolabelconversion"}},[t._v("#")]),t._v(" afterTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1247",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1247"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1235",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1235"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1242",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1242"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforecalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforecalculatelabelrotation"}},[t._v("#")]),t._v(" beforeCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1248",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1248"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1239",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1239"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefit"}},[t._v("#")]),t._v(" beforeFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1251",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1251"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforelayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeLayout")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Called before the layout process starts")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L46",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:46"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforesetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforesetdimensions"}},[t._v("#")]),t._v(" beforeSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1236",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1236"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeticktolabelconversion"}},[t._v("#")]),t._v(" beforeTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1245",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1245"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1233",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1233"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildticks"}},[t._v("#")]),t._v(" buildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1243",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1243"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatelabelrotation"}},[t._v("#")]),t._v(" calculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1249",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1249"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1234",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1234"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"determinedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#determinedatalimits"}},[t._v("#")]),t._v(" determineDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("determineDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1240",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1240"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Draws the element")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L50",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:50"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawgrid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawgrid"}},[t._v("#")]),t._v(" drawGrid")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawGrid")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1169",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1169"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawlabels"}},[t._v("#")]),t._v(" drawLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawLabels")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1168",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1168"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawtitle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawtitle"}},[t._v("#")]),t._v(" drawTitle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawTitle")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1167",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1167"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fit"}},[t._v("#")]),t._v(" fit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("fit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1252",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1252"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"generateticklabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#generateticklabels"}},[t._v("#")]),t._v(" generateTickLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("generateTickLabels")]),t._v("("),a("code",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ticks")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1246",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1246"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasepixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasepixel"}},[t._v("#")]),t._v(" getBasePixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBasePixel")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the pixel for the minimum chart value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1225",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1225"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasevalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasevalue"}},[t._v("#")]),t._v(" getBaseValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBaseValue")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1219",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1219"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdecimalforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdecimalforpixel"}},[t._v("#")]),t._v(" getDecimalForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDecimalForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1175",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1175"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelforvalue"}},[t._v("#")]),t._v(" getLabelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Used to get the label to display in the tooltip for the given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1195",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1195"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabels"}},[t._v("#")]),t._v(" getLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabels")]),t._v("(): "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1232",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1232"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlinewidthforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlinewidthforvalue"}},[t._v("#")]),t._v(" getLineWidthForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLineWidthForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the grid line width at given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1200",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1200"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmatchingvisiblemetas"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmatchingvisiblemetas"}},[t._v("#")]),t._v(" getMatchingVisibleMetas")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMatchingVisibleMetas")]),t._v("("),a("code",[t._v("type?")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1165",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1165"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("canStack")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1230",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1230"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpadding"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpadding"}},[t._v("#")]),t._v(" getPadding")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getPadding")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Returns an object with padding on the edges")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L54",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:54"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfordecimal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfordecimal"}},[t._v("#")]),t._v(" getPixelForDecimal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForDecimal")]),t._v("("),a("code",[t._v("decimal")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Utility for getting the pixel location of a percentage of scale\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("decimal")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1182",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1182"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfortick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfortick"}},[t._v("#")]),t._v(" getPixelForTick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForTick")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the tick at the given index\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1189",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1189"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelforvalue"}},[t._v("#")]),t._v(" getPixelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the given data point. Value can either be an index or a numerical value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1209",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1209"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-7"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": "),a("em",[t._v("never")]),t._v("[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getticks"}},[t._v("#")]),t._v(" getTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1231",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1231"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getuserbounds"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getuserbounds"}},[t._v("#")]),t._v(" getUserBounds")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getUserBounds")]),t._v("(): "),a("em",[t._v("object")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("maxDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("minDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1229",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1229"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getvalueforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getvalueforpixel"}},[t._v("#")]),t._v(" getValueForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getValueForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Used to get the data value from a given pixel. This is the inverse of getPixelForValue\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1217",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1217"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"init"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#init"}},[t._v("#")]),t._v(" init")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("init")]),t._v("("),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1227",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1227"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isfullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isfullsize"}},[t._v("#")]),t._v(" isFullSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isFullSize")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1255",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1255"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ishorizontal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ishorizontal"}},[t._v("#")]),t._v(" isHorizontal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isHorizontal")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("returns true if the layout item is horizontal (ie. top or bottom)")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("raw")]),t._v(": "),a("em",[t._v("unknown")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("unknown")])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("raw")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("unknown")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1228",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1228"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setdimensions"}},[t._v("#")]),t._v(" setDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1237",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1237"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("margins?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Takes two parameters: width and height.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("margins?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:64"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/180.dcae4343.js b/docs/3.1.0/assets/js/180.4dbdd10b.js similarity index 97% rename from docs/3.1.0/assets/js/180.dcae4343.js rename to docs/3.1.0/assets/js/180.4dbdd10b.js index c7d367f690..e06f858322 100644 --- a/docs/3.1.0/assets/js/180.dcae4343.js +++ b/docs/3.1.0/assets/js/180.4dbdd10b.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[180],{506:function(n,t,e){"use strict";e.r(t);var r=e(7),o=Object(r.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"programmatic-event-triggers"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#programmatic-event-triggers"}},[this._v("#")]),this._v(" Programmatic Event Triggers")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nfunction triggerHover(chart) {\n if (chart.getActiveElements().length > 0) {\n chart.setActiveElements([]);\n } else {\n chart.setActiveElements([\n {\n datasetIndex: 0,\n index: 0,\n }, {\n datasetIndex: 1,\n index: 0,\n }\n ]);\n }\n chart.update();\n}\n// \n\n// \nfunction triggerTooltip(chart) {\n const tooltip = chart.tooltip;\n if (tooltip.getActiveElements().length > 0) {\n tooltip.setActiveElements([], {x: 0, y: 0});\n } else {\n const chartArea = chart.chartArea;\n tooltip.setActiveElements([\n {\n datasetIndex: 0,\n index: 2,\n }, {\n datasetIndex: 1,\n index: 2,\n }\n ],\n {\n x: (chartArea.left + chartArea.right) / 2,\n y: (chartArea.top + chartArea.bottom) / 2,\n });\n }\n\n chart.update();\n}\n// \n\n// \nconst actions = [\n {\n name: 'Trigger Hover',\n handler: triggerHover\n },\n {\n name: 'Trigger Tooltip',\n handler: triggerTooltip\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n hoverBorderWidth: 5,\n hoverBorderColor: 'green',\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n hoverBorderWidth: 5,\n hoverBorderColor: 'green',\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[180],{505:function(n,t,e){"use strict";e.r(t);var r=e(7),o=Object(r.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"programmatic-event-triggers"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#programmatic-event-triggers"}},[this._v("#")]),this._v(" Programmatic Event Triggers")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nfunction triggerHover(chart) {\n if (chart.getActiveElements().length > 0) {\n chart.setActiveElements([]);\n } else {\n chart.setActiveElements([\n {\n datasetIndex: 0,\n index: 0,\n }, {\n datasetIndex: 1,\n index: 0,\n }\n ]);\n }\n chart.update();\n}\n// \n\n// \nfunction triggerTooltip(chart) {\n const tooltip = chart.tooltip;\n if (tooltip.getActiveElements().length > 0) {\n tooltip.setActiveElements([], {x: 0, y: 0});\n } else {\n const chartArea = chart.chartArea;\n tooltip.setActiveElements([\n {\n datasetIndex: 0,\n index: 2,\n }, {\n datasetIndex: 1,\n index: 2,\n }\n ],\n {\n x: (chartArea.left + chartArea.right) / 2,\n y: (chartArea.top + chartArea.bottom) / 2,\n });\n }\n\n chart.update();\n}\n// \n\n// \nconst actions = [\n {\n name: 'Trigger Hover',\n handler: triggerHover\n },\n {\n name: 'Trigger Tooltip',\n handler: triggerTooltip\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n hoverBorderWidth: 5,\n hoverBorderColor: 'green',\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n hoverBorderWidth: 5,\n hoverBorderColor: 'green',\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/181.b91df331.js b/docs/3.1.0/assets/js/181.66862476.js similarity index 100% rename from docs/3.1.0/assets/js/181.b91df331.js rename to docs/3.1.0/assets/js/181.66862476.js diff --git a/docs/3.1.0/assets/js/182.49dad751.js b/docs/3.1.0/assets/js/182.1750aec1.js similarity index 98% rename from docs/3.1.0/assets/js/182.49dad751.js rename to docs/3.1.0/assets/js/182.1750aec1.js index a7091181b1..fb7dee99bf 100644 --- a/docs/3.1.0/assets/js/182.49dad751.js +++ b/docs/3.1.0/assets/js/182.1750aec1.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[182],{508:function(t,n,a){"use strict";a.r(n);var e=a(7),r=Object(e.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"radial-gradient"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#radial-gradient"}},[this._v("#")]),this._v(" Radial Gradient")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 5;\nUtils.srand(110);\n\nconst chartColors = Utils.CHART_COLORS;\nconst colors = [chartColors.red, chartColors.orange, chartColors.yellow, chartColors.green, chartColors.blue];\n\nconst cache = new Map();\nlet width = null;\nlet height = null;\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n];\n// \n\n// \nfunction createRadialGradient3(context, c1, c2, c3) {\n const chartArea = context.chart.chartArea;\n if (!chartArea) {\n // This case happens on initial chart load\n return null;\n }\n\n const chartWidth = chartArea.right - chartArea.left;\n const chartHeight = chartArea.bottom - chartArea.top;\n if (width !== chartWidth || height !== chartHeight) {\n cache.clear();\n }\n var gradient = cache.get(c1 + c2 + c3);\n if (!gradient) {\n // Create the gradient because this is either the first render\n // or the size of the chart has changed\n width = chartWidth;\n height = chartHeight;\n const centerX = (chartArea.left + chartArea.right) / 2;\n const centerY = (chartArea.top + chartArea.bottom) / 2;\n const r = Math.min(\n (chartArea.right - chartArea.left) / 2,\n (chartArea.bottom - chartArea.top) / 2\n );\n var ctx = context.chart.ctx;\n gradient = ctx.createRadialGradient(centerX, centerY, 0, centerX, centerY, r);\n gradient.addColorStop(0, c1);\n gradient.addColorStop(0.5, c2);\n gradient.addColorStop(1, c3);\n cache.set(c1 + c2 + c3, gradient);\n }\n\n return gradient;\n}\n// \n\n// \nfunction generateData() {\n return Utils.numbers({\n count: DATA_COUNT,\n min: 0,\n max: 100\n });\n}\n\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n data: generateData()\n }]\n};\n// \n\n// \nconst config = {\n type: 'polarArea',\n data: data,\n options: {\n plugins: {\n legend: false,\n tooltip: false,\n },\n elements: {\n arc: {\n backgroundColor: function(context) {\n let c = colors[context.dataIndex];\n if (!c) {\n return;\n }\n if (context.active) {\n c = helpers.getHoverColor(c);\n }\n const mid = helpers.color(c).desaturate(0.2).darken(0.2).rgbString();\n const start = helpers.color(c).lighten(0.2).rotate(270).rgbString();\n const end = helpers.color(c).lighten(0.1).rgbString();\n return createRadialGradient3(context, start, mid, end);\n },\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[182],{506:function(t,n,a){"use strict";a.r(n);var e=a(7),r=Object(e.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"radial-gradient"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#radial-gradient"}},[this._v("#")]),this._v(" Radial Gradient")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 5;\nUtils.srand(110);\n\nconst chartColors = Utils.CHART_COLORS;\nconst colors = [chartColors.red, chartColors.orange, chartColors.yellow, chartColors.green, chartColors.blue];\n\nconst cache = new Map();\nlet width = null;\nlet height = null;\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n];\n// \n\n// \nfunction createRadialGradient3(context, c1, c2, c3) {\n const chartArea = context.chart.chartArea;\n if (!chartArea) {\n // This case happens on initial chart load\n return null;\n }\n\n const chartWidth = chartArea.right - chartArea.left;\n const chartHeight = chartArea.bottom - chartArea.top;\n if (width !== chartWidth || height !== chartHeight) {\n cache.clear();\n }\n var gradient = cache.get(c1 + c2 + c3);\n if (!gradient) {\n // Create the gradient because this is either the first render\n // or the size of the chart has changed\n width = chartWidth;\n height = chartHeight;\n const centerX = (chartArea.left + chartArea.right) / 2;\n const centerY = (chartArea.top + chartArea.bottom) / 2;\n const r = Math.min(\n (chartArea.right - chartArea.left) / 2,\n (chartArea.bottom - chartArea.top) / 2\n );\n var ctx = context.chart.ctx;\n gradient = ctx.createRadialGradient(centerX, centerY, 0, centerX, centerY, r);\n gradient.addColorStop(0, c1);\n gradient.addColorStop(0.5, c2);\n gradient.addColorStop(1, c3);\n cache.set(c1 + c2 + c3, gradient);\n }\n\n return gradient;\n}\n// \n\n// \nfunction generateData() {\n return Utils.numbers({\n count: DATA_COUNT,\n min: 0,\n max: 100\n });\n}\n\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n data: generateData()\n }]\n};\n// \n\n// \nconst config = {\n type: 'polarArea',\n data: data,\n options: {\n plugins: {\n legend: false,\n tooltip: false,\n },\n elements: {\n arc: {\n backgroundColor: function(context) {\n let c = colors[context.dataIndex];\n if (!c) {\n return;\n }\n if (context.active) {\n c = helpers.getHoverColor(c);\n }\n const mid = helpers.color(c).desaturate(0.2).darken(0.2).rgbString();\n const start = helpers.color(c).lighten(0.2).rotate(270).rgbString();\n const end = helpers.color(c).lighten(0.1).rgbString();\n return createRadialGradient3(context, start, mid, end);\n },\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/183.d3d1ce2d.js b/docs/3.1.0/assets/js/183.a8ac6c4a.js similarity index 100% rename from docs/3.1.0/assets/js/183.d3d1ce2d.js rename to docs/3.1.0/assets/js/183.a8ac6c4a.js diff --git a/docs/3.1.0/assets/js/184.b2231777.js b/docs/3.1.0/assets/js/184.879d3753.js similarity index 98% rename from docs/3.1.0/assets/js/184.b2231777.js rename to docs/3.1.0/assets/js/184.879d3753.js index 64f2977da6..0916e9f000 100644 --- a/docs/3.1.0/assets/js/184.b2231777.js +++ b/docs/3.1.0/assets/js/184.879d3753.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[184],{510:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"drop"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#drop"}},[this._v("#")]),this._v(" Drop")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n animations: {\n y: {\n duration: 2000,\n delay: 500\n }\n },\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n fill: 1,\n tension: 0.5\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n animations: {\n y: {\n easing: 'easeInOutElastic',\n from: (ctx) => {\n if (ctx.type === 'data') {\n if (ctx.mode === 'default' && !ctx.dropped) {\n ctx.dropped = true;\n return 0;\n }\n }\n }\n }\n },\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[184],{508:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"drop"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#drop"}},[this._v("#")]),this._v(" Drop")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n animations: {\n y: {\n duration: 2000,\n delay: 500\n }\n },\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n fill: 1,\n tension: 0.5\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n animations: {\n y: {\n easing: 'easeInOutElastic',\n from: (ctx) => {\n if (ctx.type === 'data') {\n if (ctx.mode === 'default' && !ctx.dropped) {\n ctx.dropped = true;\n return 0;\n }\n }\n }\n }\n },\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/185.4ad99c89.js b/docs/3.1.0/assets/js/185.6c8fa5a8.js similarity index 98% rename from docs/3.1.0/assets/js/185.4ad99c89.js rename to docs/3.1.0/assets/js/185.6c8fa5a8.js index dfca19d4f1..cd85b498cd 100644 --- a/docs/3.1.0/assets/js/185.4ad99c89.js +++ b/docs/3.1.0/assets/js/185.6c8fa5a8.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[185],{511:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"loop"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#loop"}},[this._v("#")]),this._v(" Loop")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: DATA_COUNT});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n tension: 0.4,\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n tension: 0.2,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n animations: {\n radius: {\n duration: 400,\n easing: 'linear',\n loop: (context) => context.active\n }\n },\n hoverRadius: 12,\n hoverBackgroundColor: 'yellow',\n interaction: {\n mode: 'nearest',\n intersect: false,\n axis: 'x'\n },\n plugins: {\n tooltip: {\n enabled: false\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[185],{510:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"loop"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#loop"}},[this._v("#")]),this._v(" Loop")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: DATA_COUNT});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n tension: 0.4,\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n tension: 0.2,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n animations: {\n radius: {\n duration: 400,\n easing: 'linear',\n loop: (context) => context.active\n }\n },\n hoverRadius: 12,\n hoverBackgroundColor: 'yellow',\n interaction: {\n mode: 'nearest',\n intersect: false,\n axis: 'x'\n },\n plugins: {\n tooltip: {\n enabled: false\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/186.5165b4c6.js b/docs/3.1.0/assets/js/186.f6109ecf.js similarity index 97% rename from docs/3.1.0/assets/js/186.5165b4c6.js rename to docs/3.1.0/assets/js/186.f6109ecf.js index 18327aea32..171f1608fd 100644 --- a/docs/3.1.0/assets/js/186.5165b4c6.js +++ b/docs/3.1.0/assets/js/186.f6109ecf.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[186],{512:function(n,t,e){"use strict";e.r(t);var a=e(7),r=Object(a.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"progressive-line"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#progressive-line"}},[this._v("#")]),this._v(" Progressive Line")]),this._v(" "),t("chart-editor",{attrs:{code:"\n// \nconst data = [];\nconst data2 = [];\nlet prev = 100;\nlet prev2 = 80;\nfor (let i = 0; i < 1000; i++) {\n prev += 5 - Math.random() * 10;\n data.push({x: i, y: prev});\n prev2 += 5 - Math.random() * 10;\n data2.push({x: i, y: prev2});\n}\n// \n\n// \nconst totalDuration = 10000;\nconst delayBetweenPoints = totalDuration / data.length;\nconst previousY = (ctx) => ctx.index === 0 ? ctx.chart.scales.y.getPixelForValue(100) : ctx.chart.getDatasetMeta(ctx.datasetIndex).data[ctx.index - 1].getProps(['y'], true).y;\nconst animation = {\n x: {\n type: 'number',\n easing: 'linear',\n duration: delayBetweenPoints,\n from: NaN, // the point is initially skipped\n delay(ctx) {\n if (ctx.type !== 'data' || ctx.xStarted) {\n return 0;\n }\n ctx.xStarted = true;\n return ctx.index * delayBetweenPoints;\n }\n },\n y: {\n type: 'number',\n easing: 'linear',\n duration: delayBetweenPoints,\n from: previousY,\n delay(ctx) {\n if (ctx.type !== 'data' || ctx.yStarted) {\n return 0;\n }\n ctx.yStarted = true;\n return ctx.index * delayBetweenPoints;\n }\n }\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: {\n datasets: [{\n borderColor: Utils.CHART_COLORS.red,\n borderWidth: 1,\n radius: 0,\n data: data,\n },\n {\n borderColor: Utils.CHART_COLORS.blue,\n borderWidth: 1,\n radius: 0,\n data: data2,\n }]\n },\n options: {\n animation,\n interaction: {\n intersect: false\n },\n plugins: {\n legend: false\n },\n scales: {\n x: {\n type: 'linear'\n }\n }\n }\n};\n// \n\nmodule.exports = {\n config\n};\n\n"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[186],{513:function(n,t,e){"use strict";e.r(t);var a=e(7),r=Object(a.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"progressive-line"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#progressive-line"}},[this._v("#")]),this._v(" Progressive Line")]),this._v(" "),t("chart-editor",{attrs:{code:"\n// \nconst data = [];\nconst data2 = [];\nlet prev = 100;\nlet prev2 = 80;\nfor (let i = 0; i < 1000; i++) {\n prev += 5 - Math.random() * 10;\n data.push({x: i, y: prev});\n prev2 += 5 - Math.random() * 10;\n data2.push({x: i, y: prev2});\n}\n// \n\n// \nconst totalDuration = 10000;\nconst delayBetweenPoints = totalDuration / data.length;\nconst previousY = (ctx) => ctx.index === 0 ? ctx.chart.scales.y.getPixelForValue(100) : ctx.chart.getDatasetMeta(ctx.datasetIndex).data[ctx.index - 1].getProps(['y'], true).y;\nconst animation = {\n x: {\n type: 'number',\n easing: 'linear',\n duration: delayBetweenPoints,\n from: NaN, // the point is initially skipped\n delay(ctx) {\n if (ctx.type !== 'data' || ctx.xStarted) {\n return 0;\n }\n ctx.xStarted = true;\n return ctx.index * delayBetweenPoints;\n }\n },\n y: {\n type: 'number',\n easing: 'linear',\n duration: delayBetweenPoints,\n from: previousY,\n delay(ctx) {\n if (ctx.type !== 'data' || ctx.yStarted) {\n return 0;\n }\n ctx.yStarted = true;\n return ctx.index * delayBetweenPoints;\n }\n }\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: {\n datasets: [{\n borderColor: Utils.CHART_COLORS.red,\n borderWidth: 1,\n radius: 0,\n data: data,\n },\n {\n borderColor: Utils.CHART_COLORS.blue,\n borderWidth: 1,\n radius: 0,\n data: data2,\n }]\n },\n options: {\n animation,\n interaction: {\n intersect: false\n },\n plugins: {\n legend: false\n },\n scales: {\n x: {\n type: 'linear'\n }\n }\n }\n};\n// \n\nmodule.exports = {\n config\n};\n\n"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/187.cd0f1d29.js b/docs/3.1.0/assets/js/187.24f55f38.js similarity index 97% rename from docs/3.1.0/assets/js/187.cd0f1d29.js rename to docs/3.1.0/assets/js/187.24f55f38.js index 0560e26e12..9b7e42a0eb 100644 --- a/docs/3.1.0/assets/js/187.cd0f1d29.js +++ b/docs/3.1.0/assets/js/187.24f55f38.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[187],{513:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-chart-boundaries"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-chart-boundaries"}},[this._v("#")]),this._v(" Line Chart Boundaries")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst inputs = {\n min: -100,\n max: 100,\n count: 8,\n decimals: 2,\n continuity: 1\n};\n\nconst generateLabels = () => {\n return Utils.months({count: inputs.count});\n};\n\nconst generateData = () => (Utils.numbers(inputs));\n// \n\n// \nconst data = {\n labels: generateLabels(),\n datasets: [\n {\n label: 'Dataset',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red),\n fill: false\n }\n ]\n};\n// \n\n// \nlet smooth = false;\n\nconst actions = [\n {\n name: 'Fill: false (default)',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.fill = false;\n });\n chart.update();\n }\n },\n {\n name: 'Fill: origin',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.fill = 'origin';\n });\n chart.update();\n }\n },\n {\n name: 'Fill: start',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.fill = 'start';\n });\n chart.update();\n }\n },\n {\n name: 'Fill: end',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.fill = 'end';\n });\n chart.update();\n }\n },\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n {\n name: 'Smooth',\n handler(chart) {\n smooth = !smooth;\n chart.options.elements.line.tension = smooth ? 0.4 : 0;\n chart.update();\n }\n }\n];\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n filler: {\n propagate: false,\n },\n title: {\n display: true,\n text: (ctx) => 'Fill: ' + ctx.chart.data.datasets[0].fill\n }\n },\n interaction: {\n intersect: false,\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[187],{511:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-chart-boundaries"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-chart-boundaries"}},[this._v("#")]),this._v(" Line Chart Boundaries")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst inputs = {\n min: -100,\n max: 100,\n count: 8,\n decimals: 2,\n continuity: 1\n};\n\nconst generateLabels = () => {\n return Utils.months({count: inputs.count});\n};\n\nconst generateData = () => (Utils.numbers(inputs));\n// \n\n// \nconst data = {\n labels: generateLabels(),\n datasets: [\n {\n label: 'Dataset',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red),\n fill: false\n }\n ]\n};\n// \n\n// \nlet smooth = false;\n\nconst actions = [\n {\n name: 'Fill: false (default)',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.fill = false;\n });\n chart.update();\n }\n },\n {\n name: 'Fill: origin',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.fill = 'origin';\n });\n chart.update();\n }\n },\n {\n name: 'Fill: start',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.fill = 'start';\n });\n chart.update();\n }\n },\n {\n name: 'Fill: end',\n handler: (chart) => {\n chart.data.datasets.forEach(dataset => {\n dataset.fill = 'end';\n });\n chart.update();\n }\n },\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n {\n name: 'Smooth',\n handler(chart) {\n smooth = !smooth;\n chart.options.elements.line.tension = smooth ? 0.4 : 0;\n chart.update();\n }\n }\n];\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n filler: {\n propagate: false,\n },\n title: {\n display: true,\n text: (ctx) => 'Fill: ' + ctx.chart.data.datasets[0].fill\n }\n },\n interaction: {\n intersect: false,\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/188.5f9c50dd.js b/docs/3.1.0/assets/js/188.9625ad8d.js similarity index 98% rename from docs/3.1.0/assets/js/188.5f9c50dd.js rename to docs/3.1.0/assets/js/188.9625ad8d.js index 1c0c6fe85e..f2ca88900c 100644 --- a/docs/3.1.0/assets/js/188.5f9c50dd.js +++ b/docs/3.1.0/assets/js/188.9625ad8d.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[188],{514:function(n,t,a){"use strict";a.r(t);var e=a(7),r=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-chart-datasets"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-chart-datasets"}},[this._v("#")]),this._v(" Line Chart Datasets")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst inputs = {\n min: 20,\n max: 80,\n count: 8,\n decimals: 2,\n continuity: 1\n};\n\nconst generateLabels = () => {\n return Utils.months({count: inputs.count});\n};\n\nconst generateData = () => (Utils.numbers(inputs));\n\nUtils.srand(42);\n// \n\n// \nconst data = {\n labels: generateLabels(),\n datasets: [\n {\n label: 'D0',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red),\n hidden: true\n },\n {\n label: 'D1',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.orange,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange),\n fill: '-1'\n },\n {\n label: 'D2',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.yellow,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.yellow),\n hidden: true,\n fill: 1\n },\n {\n label: 'D3',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.green,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.green),\n fill: '-1'\n },\n {\n label: 'D4',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue),\n fill: '-1'\n },\n {\n label: 'D5',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.grey,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.grey),\n fill: '+2'\n },\n {\n label: 'D6',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.purple,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.purple),\n fill: false\n },\n {\n label: 'D7',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red),\n fill: 8\n },\n {\n label: 'D8',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.orange,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange),\n fill: 'end',\n hidden: true\n },\n {\n label: 'D9',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.yellow,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.yellow),\n fill: {above: 'blue', below: 'red', target: {value: 350}}\n }\n ]\n};\n// \n\n// \nlet smooth = false;\nlet propagate = false;\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n {\n name: 'Propagate',\n handler(chart) {\n propagate = !propagate;\n chart.options.plugins.filler.propagate = propagate;\n chart.update();\n }\n },\n {\n name: 'Smooth',\n handler(chart) {\n smooth = !smooth;\n chart.options.elements.line.tension = smooth ? 0.4 : 0;\n chart.update();\n }\n }\n];\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n scales: {\n y: {\n stacked: true\n }\n },\n plugins: {\n filler: {\n propagate: false\n },\n 'samples-filler-analyser': {\n target: 'chart-analyser'\n }\n },\n interaction: {\n intersect: false,\n },\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}}),t("div",{staticClass:"analyser",attrs:{id:"chart-analyser"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[188],{512:function(n,t,a){"use strict";a.r(t);var e=a(7),r=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-chart-datasets"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-chart-datasets"}},[this._v("#")]),this._v(" Line Chart Datasets")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst inputs = {\n min: 20,\n max: 80,\n count: 8,\n decimals: 2,\n continuity: 1\n};\n\nconst generateLabels = () => {\n return Utils.months({count: inputs.count});\n};\n\nconst generateData = () => (Utils.numbers(inputs));\n\nUtils.srand(42);\n// \n\n// \nconst data = {\n labels: generateLabels(),\n datasets: [\n {\n label: 'D0',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red),\n hidden: true\n },\n {\n label: 'D1',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.orange,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange),\n fill: '-1'\n },\n {\n label: 'D2',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.yellow,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.yellow),\n hidden: true,\n fill: 1\n },\n {\n label: 'D3',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.green,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.green),\n fill: '-1'\n },\n {\n label: 'D4',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue),\n fill: '-1'\n },\n {\n label: 'D5',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.grey,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.grey),\n fill: '+2'\n },\n {\n label: 'D6',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.purple,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.purple),\n fill: false\n },\n {\n label: 'D7',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red),\n fill: 8\n },\n {\n label: 'D8',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.orange,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange),\n fill: 'end',\n hidden: true\n },\n {\n label: 'D9',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.yellow,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.yellow),\n fill: {above: 'blue', below: 'red', target: {value: 350}}\n }\n ]\n};\n// \n\n// \nlet smooth = false;\nlet propagate = false;\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n {\n name: 'Propagate',\n handler(chart) {\n propagate = !propagate;\n chart.options.plugins.filler.propagate = propagate;\n chart.update();\n }\n },\n {\n name: 'Smooth',\n handler(chart) {\n smooth = !smooth;\n chart.options.elements.line.tension = smooth ? 0.4 : 0;\n chart.update();\n }\n }\n];\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n scales: {\n y: {\n stacked: true\n }\n },\n plugins: {\n filler: {\n propagate: false\n },\n 'samples-filler-analyser': {\n target: 'chart-analyser'\n }\n },\n interaction: {\n intersect: false,\n },\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}}),t("div",{staticClass:"analyser",attrs:{id:"chart-analyser"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/189.3bbd1fb0.js b/docs/3.1.0/assets/js/189.2785e485.js similarity index 97% rename from docs/3.1.0/assets/js/189.3bbd1fb0.js rename to docs/3.1.0/assets/js/189.2785e485.js index 1375a61d8e..dc2838b9e2 100644 --- a/docs/3.1.0/assets/js/189.3bbd1fb0.js +++ b/docs/3.1.0/assets/js/189.2785e485.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[189],{515:function(n,t,a){"use strict";a.r(t);var e=a(7),r=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-chart-drawtime"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-chart-drawtime"}},[this._v("#")]),this._v(" Line Chart drawTime")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst inputs = {\n min: -100,\n max: 100,\n count: 8,\n decimals: 2,\n continuity: 1\n};\n\nconst generateLabels = () => {\n return Utils.months({count: inputs.count});\n};\n\nUtils.srand(3);\nconst generateData = () => (Utils.numbers(inputs));\n// \n\n// \nconst data = {\n labels: generateLabels(),\n datasets: [\n {\n label: 'Dataset 1',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red),\n fill: true\n },\n {\n label: 'Dataset 2',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue),\n fill: true\n }\n ]\n};\n// \n\n// \nlet smooth = false;\n\nconst actions = [\n {\n name: 'drawTime: beforeDatasetDraw (default)',\n handler: (chart) => {\n chart.options.plugins.filler.drawTime = 'beforeDatasetDraw';\n chart.update();\n }\n },\n {\n name: 'drawTime: beforeDatasetsDraw',\n handler: (chart) => {\n chart.options.plugins.filler.drawTime = 'beforeDatasetsDraw';\n chart.update();\n }\n },\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n {\n name: 'Smooth',\n handler(chart) {\n smooth = !smooth;\n chart.options.elements.line.tension = smooth ? 0.4 : 0;\n chart.update();\n }\n }\n];\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n filler: {\n propagate: false,\n },\n title: {\n display: true,\n text: (ctx) => 'drawTime: ' + ctx.chart.options.plugins.filler.drawTime\n }\n },\n pointBackgroundColor: '#fff',\n radius: 10,\n interaction: {\n intersect: false,\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[189],{514:function(n,t,a){"use strict";a.r(t);var e=a(7),r=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-chart-drawtime"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-chart-drawtime"}},[this._v("#")]),this._v(" Line Chart drawTime")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst inputs = {\n min: -100,\n max: 100,\n count: 8,\n decimals: 2,\n continuity: 1\n};\n\nconst generateLabels = () => {\n return Utils.months({count: inputs.count});\n};\n\nUtils.srand(3);\nconst generateData = () => (Utils.numbers(inputs));\n// \n\n// \nconst data = {\n labels: generateLabels(),\n datasets: [\n {\n label: 'Dataset 1',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red),\n fill: true\n },\n {\n label: 'Dataset 2',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue),\n fill: true\n }\n ]\n};\n// \n\n// \nlet smooth = false;\n\nconst actions = [\n {\n name: 'drawTime: beforeDatasetDraw (default)',\n handler: (chart) => {\n chart.options.plugins.filler.drawTime = 'beforeDatasetDraw';\n chart.update();\n }\n },\n {\n name: 'drawTime: beforeDatasetsDraw',\n handler: (chart) => {\n chart.options.plugins.filler.drawTime = 'beforeDatasetsDraw';\n chart.update();\n }\n },\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n {\n name: 'Smooth',\n handler(chart) {\n smooth = !smooth;\n chart.options.elements.line.tension = smooth ? 0.4 : 0;\n chart.update();\n }\n }\n];\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n filler: {\n propagate: false,\n },\n title: {\n display: true,\n text: (ctx) => 'drawTime: ' + ctx.chart.options.plugins.filler.drawTime\n }\n },\n pointBackgroundColor: '#fff',\n radius: 10,\n interaction: {\n intersect: false,\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/19.8722ab9b.js b/docs/3.1.0/assets/js/19.59e65df3.js similarity index 52% rename from docs/3.1.0/assets/js/19.8722ab9b.js rename to docs/3.1.0/assets/js/19.59e65df3.js index 2bdafc885b..e9d8356051 100644 --- a/docs/3.1.0/assets/js/19.8722ab9b.js +++ b/docs/3.1.0/assets/js/19.59e65df3.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{346:function(t,e,r){"use strict";r.r(e);var a=r(7),n=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"enumeration-decimationalgorithm"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#enumeration-decimationalgorithm"}},[t._v("#")]),t._v(" Enumeration: DecimationAlgorithm")]),t._v(" "),r("h2",{attrs:{id:"enumeration-members"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#enumeration-members"}},[t._v("#")]),t._v(" Enumeration members")]),t._v(" "),r("h3",{attrs:{id:"lttb"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#lttb"}},[t._v("#")]),t._v(" lttb")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("lttb")]),t._v(': = "lttb"')]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1956",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1956"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"minmax"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#minmax"}},[t._v("#")]),t._v(" minmax")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("minmax")]),t._v(': = "min-max"')]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1957",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1957"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{343:function(t,e,r){"use strict";r.r(e);var a=r(7),n=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"enumeration-decimationalgorithm"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#enumeration-decimationalgorithm"}},[t._v("#")]),t._v(" Enumeration: DecimationAlgorithm")]),t._v(" "),r("h2",{attrs:{id:"enumeration-members"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#enumeration-members"}},[t._v("#")]),t._v(" Enumeration members")]),t._v(" "),r("h3",{attrs:{id:"lttb"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#lttb"}},[t._v("#")]),t._v(" lttb")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("lttb")]),t._v(': = "lttb"')]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1956",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1956"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"minmax"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#minmax"}},[t._v("#")]),t._v(" minmax")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("minmax")]),t._v(': = "min-max"')]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1957",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1957"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/190.1a5d1221.js b/docs/3.1.0/assets/js/190.6e8c7e8f.js similarity index 98% rename from docs/3.1.0/assets/js/190.1a5d1221.js rename to docs/3.1.0/assets/js/190.6e8c7e8f.js index c7792a8df0..a5d1fa8830 100644 --- a/docs/3.1.0/assets/js/190.1a5d1221.js +++ b/docs/3.1.0/assets/js/190.6e8c7e8f.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[190],{516:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-chart-stacked"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-chart-stacked"}},[this._v("#")]),this._v(" Line Chart Stacked")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Stacked: true',\n handler: (chart) => {\n chart.options.scales.y.stacked = true;\n chart.update();\n }\n },\n {\n name: 'Stacked: false (default)',\n handler: (chart) => {\n chart.options.scales.y.stacked = false;\n chart.update();\n }\n },\n {\n name: 'Stacked Single',\n handler: (chart) => {\n chart.options.scales.y.stacked = 'single';\n chart.update();\n }\n },\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: dsColor,\n borderColor: dsColor,\n fill: true,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'My First dataset',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.CHART_COLORS.red,\n fill: true\n },\n {\n label: 'My Second dataset',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.CHART_COLORS.blue,\n fill: true\n },\n {\n label: 'My Third dataset',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.green,\n backgroundColor: Utils.CHART_COLORS.green,\n fill: true\n },\n {\n label: 'My Fourth dataset',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.yellow,\n backgroundColor: Utils.CHART_COLORS.yellow,\n fill: true\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: (ctx) => 'Chart.js Line Chart - stacked=' + ctx.chart.options.scales.y.stacked\n },\n tooltip: {\n mode: 'index'\n },\n },\n interaction: {\n mode: 'nearest',\n axis: 'x',\n intersect: false\n },\n scales: {\n x: {\n title: {\n display: true,\n text: 'Month'\n }\n },\n y: {\n stacked: true,\n title: {\n display: true,\n text: 'Value'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[190],{515:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-chart-stacked"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-chart-stacked"}},[this._v("#")]),this._v(" Line Chart Stacked")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Stacked: true',\n handler: (chart) => {\n chart.options.scales.y.stacked = true;\n chart.update();\n }\n },\n {\n name: 'Stacked: false (default)',\n handler: (chart) => {\n chart.options.scales.y.stacked = false;\n chart.update();\n }\n },\n {\n name: 'Stacked Single',\n handler: (chart) => {\n chart.options.scales.y.stacked = 'single';\n chart.update();\n }\n },\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: dsColor,\n borderColor: dsColor,\n fill: true,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'My First dataset',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.CHART_COLORS.red,\n fill: true\n },\n {\n label: 'My Second dataset',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.CHART_COLORS.blue,\n fill: true\n },\n {\n label: 'My Third dataset',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.green,\n backgroundColor: Utils.CHART_COLORS.green,\n fill: true\n },\n {\n label: 'My Fourth dataset',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.yellow,\n backgroundColor: Utils.CHART_COLORS.yellow,\n fill: true\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: (ctx) => 'Chart.js Line Chart - stacked=' + ctx.chart.options.scales.y.stacked\n },\n tooltip: {\n mode: 'index'\n },\n },\n interaction: {\n mode: 'nearest',\n axis: 'x',\n intersect: false\n },\n scales: {\n x: {\n title: {\n display: true,\n text: 'Month'\n }\n },\n y: {\n stacked: true,\n title: {\n display: true,\n text: 'Value'\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/191.b8f5abad.js b/docs/3.1.0/assets/js/191.75063460.js similarity index 98% rename from docs/3.1.0/assets/js/191.b8f5abad.js rename to docs/3.1.0/assets/js/191.75063460.js index 79d7e54af2..1f1ef39219 100644 --- a/docs/3.1.0/assets/js/191.b8f5abad.js +++ b/docs/3.1.0/assets/js/191.75063460.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[191],{517:function(n,t,a){"use strict";a.r(t);var e=a(7),r=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"radar-chart-stacked"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#radar-chart-stacked"}},[this._v("#")]),this._v(" Radar Chart Stacked")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst inputs = {\n min: 8,\n max: 16,\n count: 8,\n decimals: 2,\n continuity: 1\n};\n\nconst generateLabels = () => {\n return Utils.months({count: inputs.count});\n};\n\nconst generateData = () => {\n const values = Utils.numbers(inputs);\n inputs.from = values;\n return values;\n};\n\nconst labels = Utils.months({count: 8});\nconst data = {\n labels: generateLabels(),\n datasets: [\n {\n label: 'D0',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red),\n },\n {\n label: 'D1',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.orange,\n hidden: true,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange),\n fill: '-1'\n },\n {\n label: 'D2',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.yellow,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.yellow),\n fill: 1\n },\n {\n label: 'D3',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.green,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.green),\n fill: false\n },\n {\n label: 'D4',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue),\n fill: '-1'\n },\n {\n label: 'D5',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.purple,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.purple),\n fill: '-1'\n },\n {\n label: 'D6',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.grey,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.grey),\n fill: {value: 85}\n }\n ]\n};\n// \n\n// \nlet smooth = false;\nlet propagate = false;\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n inputs.from = [];\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n {\n name: 'Propagate',\n handler(chart) {\n propagate = !propagate;\n chart.options.plugins.filler.propagate = propagate;\n chart.update();\n\n }\n },\n {\n name: 'Smooth',\n handler(chart) {\n smooth = !smooth;\n chart.options.elements.line.tension = smooth ? 0.4 : 0;\n chart.update();\n }\n }\n];\n// \n\n// \nconst config = {\n type: 'radar',\n data: data,\n options: {\n plugins: {\n filler: {\n propagate: false\n },\n 'samples-filler-analyser': {\n target: 'chart-analyser'\n }\n },\n interaction: {\n intersect: false\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config\n};\n"}}),t("div",{staticClass:"analyser",attrs:{id:"chart-analyser"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[191],{516:function(n,t,a){"use strict";a.r(t);var e=a(7),r=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"radar-chart-stacked"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#radar-chart-stacked"}},[this._v("#")]),this._v(" Radar Chart Stacked")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst inputs = {\n min: 8,\n max: 16,\n count: 8,\n decimals: 2,\n continuity: 1\n};\n\nconst generateLabels = () => {\n return Utils.months({count: inputs.count});\n};\n\nconst generateData = () => {\n const values = Utils.numbers(inputs);\n inputs.from = values;\n return values;\n};\n\nconst labels = Utils.months({count: 8});\nconst data = {\n labels: generateLabels(),\n datasets: [\n {\n label: 'D0',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red),\n },\n {\n label: 'D1',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.orange,\n hidden: true,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange),\n fill: '-1'\n },\n {\n label: 'D2',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.yellow,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.yellow),\n fill: 1\n },\n {\n label: 'D3',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.green,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.green),\n fill: false\n },\n {\n label: 'D4',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue),\n fill: '-1'\n },\n {\n label: 'D5',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.purple,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.purple),\n fill: '-1'\n },\n {\n label: 'D6',\n data: generateData(),\n borderColor: Utils.CHART_COLORS.grey,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.grey),\n fill: {value: 85}\n }\n ]\n};\n// \n\n// \nlet smooth = false;\nlet propagate = false;\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n inputs.from = [];\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n {\n name: 'Propagate',\n handler(chart) {\n propagate = !propagate;\n chart.options.plugins.filler.propagate = propagate;\n chart.update();\n\n }\n },\n {\n name: 'Smooth',\n handler(chart) {\n smooth = !smooth;\n chart.options.elements.line.tension = smooth ? 0.4 : 0;\n chart.update();\n }\n }\n];\n// \n\n// \nconst config = {\n type: 'radar',\n data: data,\n options: {\n plugins: {\n filler: {\n propagate: false\n },\n 'samples-filler-analyser': {\n target: 'chart-analyser'\n }\n },\n interaction: {\n intersect: false\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config\n};\n"}}),t("div",{staticClass:"analyser",attrs:{id:"chart-analyser"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/192.891f2608.js b/docs/3.1.0/assets/js/192.710f6faa.js similarity index 96% rename from docs/3.1.0/assets/js/192.891f2608.js rename to docs/3.1.0/assets/js/192.710f6faa.js index 41c712786b..ad13aac308 100644 --- a/docs/3.1.0/assets/js/192.891f2608.js +++ b/docs/3.1.0/assets/js/192.710f6faa.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[192],{519:function(n,t,a){"use strict";a.r(t);var r=a(7),s=Object(r.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"bar-chart-border-radius"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bar-chart-border-radius"}},[this._v("#")]),this._v(" Bar Chart Border Radius")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Fully Rounded',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n borderWidth: 2,\n borderRadius: Number.MAX_VALUE,\n borderSkipped: false,\n },\n {\n label: 'Small Radius',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n borderWidth: 2,\n borderRadius: 5,\n borderSkipped: false,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Bar Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[192],{517:function(n,t,a){"use strict";a.r(t);var r=a(7),s=Object(r.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"bar-chart-border-radius"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bar-chart-border-radius"}},[this._v("#")]),this._v(" Bar Chart Border Radius")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Fully Rounded',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n borderWidth: 2,\n borderRadius: Number.MAX_VALUE,\n borderSkipped: false,\n },\n {\n label: 'Small Radius',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n borderWidth: 2,\n borderRadius: 5,\n borderSkipped: false,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Bar Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/193.83f5123a.js b/docs/3.1.0/assets/js/193.10f1ee73.js similarity index 96% rename from docs/3.1.0/assets/js/193.83f5123a.js rename to docs/3.1.0/assets/js/193.10f1ee73.js index fbf7d82881..4c8d29f5dc 100644 --- a/docs/3.1.0/assets/js/193.83f5123a.js +++ b/docs/3.1.0/assets/js/193.10f1ee73.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[193],{518:function(n,t,a){"use strict";a.r(t);var s=a(7),o=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"floating-bars"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#floating-bars"}},[this._v("#")]),this._v(" Floating Bars")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = chart.data.labels.map(() => {\n return [Utils.rand(-100, 100), Utils.rand(-100, 100)];\n });\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: labels.map(() => {\n return [Utils.rand(-100, 100), Utils.rand(-100, 100)];\n }),\n backgroundColor: Utils.CHART_COLORS.red,\n },\n {\n label: 'Dataset 2',\n data: labels.map(() => {\n return [Utils.rand(-100, 100), Utils.rand(-100, 100)];\n }),\n backgroundColor: Utils.CHART_COLORS.blue,\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Floating Bar Chart'\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[193],{520:function(n,t,a){"use strict";a.r(t);var s=a(7),o=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"floating-bars"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#floating-bars"}},[this._v("#")]),this._v(" Floating Bars")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = chart.data.labels.map(() => {\n return [Utils.rand(-100, 100), Utils.rand(-100, 100)];\n });\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: labels.map(() => {\n return [Utils.rand(-100, 100), Utils.rand(-100, 100)];\n }),\n backgroundColor: Utils.CHART_COLORS.red,\n },\n {\n label: 'Dataset 2',\n data: labels.map(() => {\n return [Utils.rand(-100, 100), Utils.rand(-100, 100)];\n }),\n backgroundColor: Utils.CHART_COLORS.blue,\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Floating Bar Chart'\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/194.2409b054.js b/docs/3.1.0/assets/js/194.98945737.js similarity index 98% rename from docs/3.1.0/assets/js/194.2409b054.js rename to docs/3.1.0/assets/js/194.98945737.js index 6d1a5fb55c..b8df7b963f 100644 --- a/docs/3.1.0/assets/js/194.2409b054.js +++ b/docs/3.1.0/assets/js/194.98945737.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[194],{520:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"horizontal-bar-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#horizontal-bar-chart"}},[this._v("#")]),this._v(" Horizontal Bar Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n borderWidth: 1,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n indexAxis: 'y',\n // Elements options apply to all of the options unless overridden in a dataset\n // In this case, we are setting the border of each horizontal bar to be 2px wide\n elements: {\n bar: {\n borderWidth: 2,\n }\n },\n responsive: true,\n plugins: {\n legend: {\n position: 'right',\n },\n title: {\n display: true,\n text: 'Chart.js Horizontal Bar Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[194],{518:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"horizontal-bar-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#horizontal-bar-chart"}},[this._v("#")]),this._v(" Horizontal Bar Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n borderWidth: 1,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n indexAxis: 'y',\n // Elements options apply to all of the options unless overridden in a dataset\n // In this case, we are setting the border of each horizontal bar to be 2px wide\n elements: {\n bar: {\n borderWidth: 2,\n }\n },\n responsive: true,\n plugins: {\n legend: {\n position: 'right',\n },\n title: {\n display: true,\n text: 'Chart.js Horizontal Bar Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/195.0f76964b.js b/docs/3.1.0/assets/js/195.b35e6ac4.js similarity index 96% rename from docs/3.1.0/assets/js/195.0f76964b.js rename to docs/3.1.0/assets/js/195.b35e6ac4.js index 9965bcb571..9c4411bdea 100644 --- a/docs/3.1.0/assets/js/195.0f76964b.js +++ b/docs/3.1.0/assets/js/195.b35e6ac4.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[195],{521:function(n,t,a){"use strict";a.r(t);var s=a(7),e=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"stacked-bar-chart-with-groups"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#stacked-bar-chart-with-groups"}},[this._v("#")]),this._v(" Stacked Bar Chart with Groups")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.red,\n stack: 'Stack 0',\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.blue,\n stack: 'Stack 0',\n },\n {\n label: 'Dataset 3',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.green,\n stack: 'Stack 1',\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Bar Chart - Stacked'\n },\n },\n responsive: true,\n interaction: {\n intersect: false,\n },\n scales: {\n x: {\n stacked: true,\n },\n y: {\n stacked: true\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[195],{519:function(n,t,a){"use strict";a.r(t);var s=a(7),e=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"stacked-bar-chart-with-groups"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#stacked-bar-chart-with-groups"}},[this._v("#")]),this._v(" Stacked Bar Chart with Groups")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.red,\n stack: 'Stack 0',\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.blue,\n stack: 'Stack 0',\n },\n {\n label: 'Dataset 3',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.green,\n stack: 'Stack 1',\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Bar Chart - Stacked'\n },\n },\n responsive: true,\n interaction: {\n intersect: false,\n },\n scales: {\n x: {\n stacked: true,\n },\n y: {\n stacked: true\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/196.15e7d5c4.js b/docs/3.1.0/assets/js/196.a373af9e.js similarity index 96% rename from docs/3.1.0/assets/js/196.15e7d5c4.js rename to docs/3.1.0/assets/js/196.a373af9e.js index 3d2d95e9de..42f134565e 100644 --- a/docs/3.1.0/assets/js/196.15e7d5c4.js +++ b/docs/3.1.0/assets/js/196.a373af9e.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[196],{522:function(n,t,a){"use strict";a.r(t);var s=a(7),e=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"stacked-bar-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#stacked-bar-chart"}},[this._v("#")]),this._v(" Stacked Bar Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.red,\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.blue,\n },\n {\n label: 'Dataset 3',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.green,\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Bar Chart - Stacked'\n },\n },\n responsive: true,\n scales: {\n x: {\n stacked: true,\n },\n y: {\n stacked: true\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[196],{521:function(n,t,a){"use strict";a.r(t);var s=a(7),e=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"stacked-bar-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#stacked-bar-chart"}},[this._v("#")]),this._v(" Stacked Bar Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.red,\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.blue,\n },\n {\n label: 'Dataset 3',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Utils.CHART_COLORS.green,\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Bar Chart - Stacked'\n },\n },\n responsive: true,\n scales: {\n x: {\n stacked: true,\n },\n y: {\n stacked: true\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/197.7d5b82c0.js b/docs/3.1.0/assets/js/197.0951760f.js similarity index 100% rename from docs/3.1.0/assets/js/197.7d5b82c0.js rename to docs/3.1.0/assets/js/197.0951760f.js diff --git a/docs/3.1.0/assets/js/198.5d0c8226.js b/docs/3.1.0/assets/js/198.3eaf762c.js similarity index 96% rename from docs/3.1.0/assets/js/198.5d0c8226.js rename to docs/3.1.0/assets/js/198.3eaf762c.js index 47ca26bfbd..ca6f0f1440 100644 --- a/docs/3.1.0/assets/js/198.5d0c8226.js +++ b/docs/3.1.0/assets/js/198.3eaf762c.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[198],{524:function(n,e,o){"use strict";o.r(e);var t=o(7),a=Object(t.a)({},(function(){var n=this.$createElement,e=this._self._c||n;return e("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[e("h1",{attrs:{id:"events"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#events"}},[this._v("#")]),this._v(" Events")]),this._v(" "),e("p",[this._v("This sample demonstrates how to use the event hooks to highlight chart elements.")]),this._v(" "),e("chart-editor",{attrs:{code:"\n// \nconst data = {\n labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],\n datasets: [{\n label: '# of Votes',\n data: [12, 19, 3, 5, 2, 3],\n borderWidth: 1,\n backgroundColor: ['#CB4335', '#1F618D', '#F1C40F', '#27AE60', '#884EA0', '#D35400'],\n }]\n};\n// \n\n// \n// Append '4d' to the colors (alpha channel), except for the hovered index\nfunction handleHover(evt, item, legend) {\n legend.chart.data.datasets[0].backgroundColor.forEach((color, index, colors) => {\n colors[index] = index === item.index || color.length === 9 ? color : color + '4D';\n });\n legend.chart.update();\n}\n// \n\n// \n// Removes the alpha channel from background colors\nfunction handleLeave(evt, item, legend) {\n legend.chart.data.datasets[0].backgroundColor.forEach((color, index, colors) => {\n colors[index] = color.length === 9 ? color.slice(0, -2) : color;\n });\n legend.chart.update();\n}\n// \n\n// \nconst config = {\n type: 'pie',\n data: data,\n options: {\n plugins: {\n legend: {\n onHover: handleHover,\n onLeave: handleLeave\n }\n }\n }\n};\n// \n\nmodule.exports = {\n config\n};\n"}})],1)}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[198],{522:function(n,e,o){"use strict";o.r(e);var t=o(7),a=Object(t.a)({},(function(){var n=this.$createElement,e=this._self._c||n;return e("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[e("h1",{attrs:{id:"events"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#events"}},[this._v("#")]),this._v(" Events")]),this._v(" "),e("p",[this._v("This sample demonstrates how to use the event hooks to highlight chart elements.")]),this._v(" "),e("chart-editor",{attrs:{code:"\n// \nconst data = {\n labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],\n datasets: [{\n label: '# of Votes',\n data: [12, 19, 3, 5, 2, 3],\n borderWidth: 1,\n backgroundColor: ['#CB4335', '#1F618D', '#F1C40F', '#27AE60', '#884EA0', '#D35400'],\n }]\n};\n// \n\n// \n// Append '4d' to the colors (alpha channel), except for the hovered index\nfunction handleHover(evt, item, legend) {\n legend.chart.data.datasets[0].backgroundColor.forEach((color, index, colors) => {\n colors[index] = index === item.index || color.length === 9 ? color : color + '4D';\n });\n legend.chart.update();\n}\n// \n\n// \n// Removes the alpha channel from background colors\nfunction handleLeave(evt, item, legend) {\n legend.chart.data.datasets[0].backgroundColor.forEach((color, index, colors) => {\n colors[index] = color.length === 9 ? color.slice(0, -2) : color;\n });\n legend.chart.update();\n}\n// \n\n// \nconst config = {\n type: 'pie',\n data: data,\n options: {\n plugins: {\n legend: {\n onHover: handleHover,\n onLeave: handleLeave\n }\n }\n }\n};\n// \n\nmodule.exports = {\n config\n};\n"}})],1)}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/199.386b9983.js b/docs/3.1.0/assets/js/199.e2df0be6.js similarity index 98% rename from docs/3.1.0/assets/js/199.386b9983.js rename to docs/3.1.0/assets/js/199.e2df0be6.js index 8a98a85007..a60a1df2f1 100644 --- a/docs/3.1.0/assets/js/199.386b9983.js +++ b/docs/3.1.0/assets/js/199.e2df0be6.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[199],{525:function(n,t,e){"use strict";e.r(t);var l=e(7),i=Object(l.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"html-legend"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#html-legend"}},[this._v("#")]),this._v(" HTML Legend")]),this._v(" "),t("p",[this._v("This example shows how to create a custom HTML legend using a plugin and connect it to the chart in lieu of the default on-canvas legend.")]),this._v(" "),t("div",{attrs:{id:"legend-container"}}),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst getOrCreateLegendList = (chart, id) => {\n const legendContainer = document.getElementById(id);\n let listContainer = legendContainer.querySelector('ul');\n\n if (!listContainer) {\n listContainer = document.createElement('ul');\n listContainer.style.display = 'flex';\n listContainer.style.flexDirection = 'row';\n listContainer.style.margin = 0;\n listContainer.style.padding = 0;\n\n legendContainer.appendChild(listContainer);\n }\n\n return listContainer;\n};\n\nconst htmlLegendPlugin = {\n id: 'htmlLegend',\n afterUpdate(chart, args, options) {\n const ul = getOrCreateLegendList(chart, options.containerID);\n\n // Remove old legend items\n while (ul.firstChild) {\n ul.firstChild.remove();\n }\n\n // Reuse the built-in legendItems generator\n const items = chart.options.plugins.legend.labels.generateLabels(chart);\n\n items.forEach(item => {\n const li = document.createElement('li');\n li.style.alignItems = 'center';\n li.style.cursor = 'pointer';\n li.style.display = 'flex';\n li.style.flexDirection = 'row';\n li.style.marginLeft = '10px';\n\n li.onclick = () => {\n chart.setDatasetVisibility(item.datasetIndex, !chart.isDatasetVisible(item.datasetIndex));\n chart.update();\n };\n\n // Color box\n const boxSpan = document.createElement('span');\n boxSpan.style.background = item.fillStyle;\n boxSpan.style.borderColor = item.strokeStyle;\n boxSpan.style.borderWidth = item.lineWidth + 'px';\n boxSpan.style.display = 'inline-block';\n boxSpan.style.height = '20px';\n boxSpan.style.marginRight = '10px';\n boxSpan.style.width = '20px';\n\n // Text\n const textContainer = document.createElement('p');\n textContainer.style.color = item.fontColor;\n textContainer.style.margin = 0;\n textContainer.style.padding = 0;\n textContainer.style.textDecoration = item.hidden ? 'line-through' : '';\n\n const text = document.createTextNode(item.text);\n textContainer.appendChild(text);\n\n li.appendChild(boxSpan);\n li.appendChild(textContainer);\n ul.appendChild(li);\n });\n }\n};\n// \n\n// \nconst NUM_DATA = 7;\nconst NUM_CFG = {count: NUM_DATA, min: 0, max: 100};\nconst data = {\n labels: Utils.months({count: NUM_DATA}),\n datasets: [\n {\n label: 'Dataset: 1',\n data: Utils.numbers(NUM_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n fill: false,\n },\n {\n label: 'Dataset: 1',\n data: Utils.numbers(NUM_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n fill: false,\n },\n ],\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n htmlLegend: {\n // ID of the container to put the legend in\n containerID: 'legend-container',\n },\n legend: {\n display: false,\n }\n }\n },\n plugins: [htmlLegendPlugin],\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[199],{524:function(n,t,e){"use strict";e.r(t);var l=e(7),i=Object(l.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"html-legend"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#html-legend"}},[this._v("#")]),this._v(" HTML Legend")]),this._v(" "),t("p",[this._v("This example shows how to create a custom HTML legend using a plugin and connect it to the chart in lieu of the default on-canvas legend.")]),this._v(" "),t("div",{attrs:{id:"legend-container"}}),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst getOrCreateLegendList = (chart, id) => {\n const legendContainer = document.getElementById(id);\n let listContainer = legendContainer.querySelector('ul');\n\n if (!listContainer) {\n listContainer = document.createElement('ul');\n listContainer.style.display = 'flex';\n listContainer.style.flexDirection = 'row';\n listContainer.style.margin = 0;\n listContainer.style.padding = 0;\n\n legendContainer.appendChild(listContainer);\n }\n\n return listContainer;\n};\n\nconst htmlLegendPlugin = {\n id: 'htmlLegend',\n afterUpdate(chart, args, options) {\n const ul = getOrCreateLegendList(chart, options.containerID);\n\n // Remove old legend items\n while (ul.firstChild) {\n ul.firstChild.remove();\n }\n\n // Reuse the built-in legendItems generator\n const items = chart.options.plugins.legend.labels.generateLabels(chart);\n\n items.forEach(item => {\n const li = document.createElement('li');\n li.style.alignItems = 'center';\n li.style.cursor = 'pointer';\n li.style.display = 'flex';\n li.style.flexDirection = 'row';\n li.style.marginLeft = '10px';\n\n li.onclick = () => {\n chart.setDatasetVisibility(item.datasetIndex, !chart.isDatasetVisible(item.datasetIndex));\n chart.update();\n };\n\n // Color box\n const boxSpan = document.createElement('span');\n boxSpan.style.background = item.fillStyle;\n boxSpan.style.borderColor = item.strokeStyle;\n boxSpan.style.borderWidth = item.lineWidth + 'px';\n boxSpan.style.display = 'inline-block';\n boxSpan.style.height = '20px';\n boxSpan.style.marginRight = '10px';\n boxSpan.style.width = '20px';\n\n // Text\n const textContainer = document.createElement('p');\n textContainer.style.color = item.fontColor;\n textContainer.style.margin = 0;\n textContainer.style.padding = 0;\n textContainer.style.textDecoration = item.hidden ? 'line-through' : '';\n\n const text = document.createTextNode(item.text);\n textContainer.appendChild(text);\n\n li.appendChild(boxSpan);\n li.appendChild(textContainer);\n ul.appendChild(li);\n });\n }\n};\n// \n\n// \nconst NUM_DATA = 7;\nconst NUM_CFG = {count: NUM_DATA, min: 0, max: 100};\nconst data = {\n labels: Utils.months({count: NUM_DATA}),\n datasets: [\n {\n label: 'Dataset: 1',\n data: Utils.numbers(NUM_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n fill: false,\n },\n {\n label: 'Dataset: 1',\n data: Utils.numbers(NUM_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n fill: false,\n },\n ],\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n htmlLegend: {\n // ID of the container to put the legend in\n containerID: 'legend-container',\n },\n legend: {\n display: false,\n }\n }\n },\n plugins: [htmlLegendPlugin],\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/2.0c6e21a4.js b/docs/3.1.0/assets/js/2.47b832b0.js similarity index 99% rename from docs/3.1.0/assets/js/2.0c6e21a4.js rename to docs/3.1.0/assets/js/2.47b832b0.js index 0b79b73983..1489bb2e58 100644 --- a/docs/3.1.0/assets/js/2.0c6e21a4.js +++ b/docs/3.1.0/assets/js/2.47b832b0.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{277:function(r,e,t){},278:function(r,e,t){},279:function(r,e,t){},280:function(r,e,t){},281:function(r,e,t){},282:function(r,e){r.exports=function(r){return null==r}},283:function(r,e,t){},284:function(r,e,t){},285:function(r,e,t){},286:function(r,e,t){},287:function(r,e,t){},288:function(r,e,t){},298:function(r,e,t){"use strict";t.r(e);var a=t(20),s={name:"SidebarGroup",components:{DropdownTransition:t(122).a},props:["item","open","collapsable","depth"],beforeCreate(){this.$options.components.SidebarLinks=t(298).default},methods:{isActive:a.e}},i=(t(311),t(7)),o=Object(i.a)(s,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("section",{staticClass:"sidebar-group",class:[{collapsable:r.collapsable,"is-sub-group":0!==r.depth},"depth-"+r.depth]},[r.item.path?t("RouterLink",{staticClass:"sidebar-heading clickable",class:{open:r.open,active:r.isActive(r.$route,r.item.path)},attrs:{to:r.item.path},nativeOn:{click:function(e){return r.$emit("toggle")}}},[t("span",[r._v(r._s(r.item.title))]),r._v(" "),r.collapsable?t("span",{staticClass:"arrow",class:r.open?"down":"right"}):r._e()]):t("p",{staticClass:"sidebar-heading",class:{open:r.open},on:{click:function(e){return r.$emit("toggle")}}},[t("span",[r._v(r._s(r.item.title))]),r._v(" "),r.collapsable?t("span",{staticClass:"arrow",class:r.open?"down":"right"}):r._e()]),r._v(" "),t("DropdownTransition",[r.open||!r.collapsable?t("SidebarLinks",{staticClass:"sidebar-group-items",attrs:{items:r.item.children,"sidebar-depth":r.item.sidebarDepth,"initial-open-group-index":r.item.initialOpenGroupIndex,depth:r.depth+1}}):r._e()],1)],1)}),[],!1,null,null,null).exports;function n(r,e,t,a,s){const i={props:{to:e,activeClass:"",exactActiveClass:""},class:{active:a,"sidebar-link":!0}};return s>2&&(i.style={"padding-left":s+"rem"}),r("RouterLink",i,t)}function l(r,e,t,s,i,o=1){return!e||o>i?null:r("ul",{class:"sidebar-sub-headers"},e.map(e=>{const c=Object(a.e)(s,t+"#"+e.slug);return r("li",{class:"sidebar-sub-header"},[n(r,t+"#"+e.slug,e.title,c,e.level-1),l(r,e.children,t,s,i,o+1)])}))}var c={functional:!0,props:["item","sidebarDepth"],render(r,{parent:{$page:e,$site:t,$route:s,$themeConfig:i,$themeLocaleConfig:o},props:{item:c,sidebarDepth:u}}){const p=Object(a.e)(s,c.path),h="auto"===c.type?p||c.children.some(r=>Object(a.e)(s,c.basePath+"#"+r.slug)):p,d="external"===c.type?function(r,e,t){return r("a",{attrs:{href:e,target:"_blank",rel:"noopener noreferrer"},class:{"sidebar-link":!0}},[t,r("OutboundLink")])}(r,c.path,c.title||c.path):n(r,c.path,c.title||c.path,h),g=[e.frontmatter.sidebarDepth,u,o.sidebarDepth,i.sidebarDepth,1].find(r=>void 0!==r),f=o.displayAllHeaders||i.displayAllHeaders;if("auto"===c.type)return[d,l(r,c.children,c.basePath,s,g)];if((h||f)&&c.headers&&!a.d.test(c.path)){return[d,l(r,Object(a.c)(c.headers),c.path,s,g)]}return d}};t(312);function u(r,e){if("group"===e.type){const t=e.path&&Object(a.e)(r,e.path),s=e.children.some(e=>"group"===e.type?u(r,e):"page"===e.type&&Object(a.e)(r,e.path));return t||s}return!1}var p={name:"SidebarLinks",components:{SidebarGroup:o,SidebarLink:Object(i.a)(c,void 0,void 0,!1,null,null,null).exports},props:["items","depth","sidebarDepth","initialOpenGroupIndex"],data(){return{openGroupIndex:this.initialOpenGroupIndex||0}},watch:{$route(){this.refreshIndex()}},created(){this.refreshIndex()},methods:{refreshIndex(){const r=function(r,e){for(let t=0;t-1&&(this.openGroupIndex=r)},toggleGroup(r){this.openGroupIndex=r===this.openGroupIndex?-1:r},isActive(r){return Object(a.e)(this.$route,r.regularPath)}}},h=Object(i.a)(p,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return r.items.length?t("ul",{staticClass:"sidebar-links"},r._l(r.items,(function(e,a){return t("li",{key:a},["group"===e.type?t("SidebarGroup",{attrs:{item:e,open:a===r.openGroupIndex,collapsable:e.collapsable||e.collapsible,depth:r.depth},on:{toggle:function(e){return r.toggleGroup(a)}}}):t("SidebarLink",{attrs:{"sidebar-depth":r.sidebarDepth,item:e}})],1)})),0):r._e()}),[],!1,null,null,null);e.default=h.exports},299:function(r,e,t){"use strict";t(277)},300:function(r,e,t){"use strict";!function(e,t,a){let s;(s=a.define)&&s.amd?s([],(function(){return t})):(s=a.modules)?s["FlexSearch".toLowerCase()]=t:r.exports=t}(0,function r(e){function t(r,e){const t=e?e.id:r&&r.id;this.id=t||0===t?t:S++,this.init(r,e),o(this,"index",(function(){return this.a?Object.keys(this.a.index[this.a.keys[0]].c):Object.keys(this.c)})),o(this,"length",(function(){return this.index.length}))}function a(r,e,t,a){return this.u!==this.g&&(this.o=this.o.concat(t),this.u++,a&&this.o.length>=a&&(this.u=this.g),this.u===this.g&&(this.cache&&this.j.set(e,this.o),this.F&&this.F(this.o))),this}function s(r,e){const t=r.length,a=y(e),s=[];for(let i=0,o=0;i=o&&((r=(r=r[n-(s+.5>>0)])[t]||(r[t]=[]))[r.length]=a),s)}function u(r,e){if(r){const t=Object.keys(r);for(let a=0,s=t.length;a(r=r.length-e.length)?1:r?-1:0}function d(r,e){return(r=r[N])<(e=e[N])?-1:r>e?1:0}function g(r,e){const t=N.length;for(let a=0;ae?1:0}function f(r,e,t){return r?{page:r,next:e?""+e:null,result:t}:t}function m(r,e,t,a,s,i,o){let n,l=[];if(!0===t){t="0";var c=""}else c=t&&t.split(":");const u=r.length;if(1o&&(c=0),n=(c=c||0)+e,n=this.m.length&&(this.C=0),this.m[this.C].postMessage({add:!0,id:r,content:e}),this.c[o]=""+this.C,t&&t(),this;if(!i){if(this.async&&"function"!=typeof importScripts){let s=this;return o=new Promise((function(t){setTimeout((function(){s.add(r,e,null,a,!0),s=null,t()}))})),t?(o.then(t),this):o}if(t)return this.add(r,e,null,a,!0),t(),this}if(!(e=this.encode(e)).length)return this;i=y(t=this.f)?t(e):e.split(this.split),this.filter&&(i=s(i,this.filter));const d=x();d._ctx=x();const g=i.length,f=this.threshold,m=this.depth,b=this.b,v=this.i,w=this.D;for(let e=0;eh;t--)c(v,d,p=n.substring(h,t),r,e,u,f,b-1)}break;default:if(l=c(v,d,n,r,1,u,f,b-1),m&&1=f)for(l=d._ctx[n]||(d._ctx[n]=x()),n=this.h[n]||(this.h[n]=D(b-(f||0))),0>(u=e-m)&&(u=0),(p=e+m+1)>g&&(p=g);us;t--)a=i[t-1],i[t]=a,e[a]=t;i[s]=r,e[r]=s}}}return e},r}();return t}(function(){const r={},e="undefined"!=typeof Blob&&"undefined"!=typeof URL&&URL.createObjectURL;return function(t,a,s,i,o){return s=e?URL.createObjectURL(new Blob(["("+s.toString()+")()"],{type:"text/javascript"})):t+".min.js",r[t+="-"+a]||(r[t]=[]),r[t][o]=new Worker(s),r[t][o].onmessage=i,r[t][o]}}()),this)},301:function(r,e,t){t(14);const a=t(302);r.exports.getPageText=r=>{if(!r._strippedContent)return"";const{html:e}=r._context.markdown.render(r._strippedContent);return a.decode(e.replace(/(<[^>]+>)+/g," ").replace(/^\s*#\s/gm,""))},r.exports.highlightText=(r,e)=>{let t=r;if(highlightWords=e.split(" ").filter(r=>r.length>0),highlightWords.length>0)for(const r of highlightWords)t=t.replace(new RegExp(r,"ig"),"$&");else t=r.replace(new RegExp(e,"ig"),"$&");return t}},302:function(r,e,t){(function(r){var a;/*! https://mths.be/he v1.2.0 by @mathias | MIT license */!function(s){var i=e,o=(r&&r.exports,"object"==typeof global&&global);o.global!==o&&o.window;var n=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=/[\x01-\x7F]/g,c=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,u=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,p={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon","ˆ":"circ","ˇ":"caron","°":"deg","©":"copy","®":"reg","℗":"copysr","℘":"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","𝒶":"ascr","𝕒":"aopf","𝔞":"afr","𝔸":"Aopf","𝔄":"Afr","𝒜":"Ascr","ª":"ordf","á":"aacute","Á":"Aacute","à":"agrave","À":"Agrave","ă":"abreve","Ă":"Abreve","â":"acirc","Â":"Acirc","å":"aring","Å":"angst","ä":"auml","Ä":"Auml","ã":"atilde","Ã":"Atilde","ą":"aogon","Ą":"Aogon","ā":"amacr","Ā":"Amacr","æ":"aelig","Æ":"AElig","𝒷":"bscr","𝕓":"bopf","𝔟":"bfr","𝔹":"Bopf","ℬ":"Bscr","𝔅":"Bfr","𝔠":"cfr","𝒸":"cscr","𝕔":"copf","ℭ":"Cfr","𝒞":"Cscr","ℂ":"Copf","ć":"cacute","Ć":"Cacute","ĉ":"ccirc","Ĉ":"Ccirc","č":"ccaron","Č":"Ccaron","ċ":"cdot","Ċ":"Cdot","ç":"ccedil","Ç":"Ccedil","℅":"incare","𝔡":"dfr","ⅆ":"dd","𝕕":"dopf","𝒹":"dscr","𝒟":"Dscr","𝔇":"Dfr","ⅅ":"DD","𝔻":"Dopf","ď":"dcaron","Ď":"Dcaron","đ":"dstrok","Đ":"Dstrok","ð":"eth","Ð":"ETH","ⅇ":"ee","ℯ":"escr","𝔢":"efr","𝕖":"eopf","ℰ":"Escr","𝔈":"Efr","𝔼":"Eopf","é":"eacute","É":"Eacute","è":"egrave","È":"Egrave","ê":"ecirc","Ê":"Ecirc","ě":"ecaron","Ě":"Ecaron","ë":"euml","Ë":"Euml","ė":"edot","Ė":"Edot","ę":"eogon","Ę":"Eogon","ē":"emacr","Ē":"Emacr","𝔣":"ffr","𝕗":"fopf","𝒻":"fscr","𝔉":"Ffr","𝔽":"Fopf","ℱ":"Fscr","ff":"fflig","ffi":"ffilig","ffl":"ffllig","fi":"filig",fj:"fjlig","fl":"fllig","ƒ":"fnof","ℊ":"gscr","𝕘":"gopf","𝔤":"gfr","𝒢":"Gscr","𝔾":"Gopf","𝔊":"Gfr","ǵ":"gacute","ğ":"gbreve","Ğ":"Gbreve","ĝ":"gcirc","Ĝ":"Gcirc","ġ":"gdot","Ġ":"Gdot","Ģ":"Gcedil","𝔥":"hfr","ℎ":"planckh","𝒽":"hscr","𝕙":"hopf","ℋ":"Hscr","ℌ":"Hfr","ℍ":"Hopf","ĥ":"hcirc","Ĥ":"Hcirc","ℏ":"hbar","ħ":"hstrok","Ħ":"Hstrok","𝕚":"iopf","𝔦":"ifr","𝒾":"iscr","ⅈ":"ii","𝕀":"Iopf","ℐ":"Iscr","ℑ":"Im","í":"iacute","Í":"Iacute","ì":"igrave","Ì":"Igrave","î":"icirc","Î":"Icirc","ï":"iuml","Ï":"Iuml","ĩ":"itilde","Ĩ":"Itilde","İ":"Idot","į":"iogon","Į":"Iogon","ī":"imacr","Ī":"Imacr","ij":"ijlig","IJ":"IJlig","ı":"imath","𝒿":"jscr","𝕛":"jopf","𝔧":"jfr","𝒥":"Jscr","𝔍":"Jfr","𝕁":"Jopf","ĵ":"jcirc","Ĵ":"Jcirc","ȷ":"jmath","𝕜":"kopf","𝓀":"kscr","𝔨":"kfr","𝒦":"Kscr","𝕂":"Kopf","𝔎":"Kfr","ķ":"kcedil","Ķ":"Kcedil","𝔩":"lfr","𝓁":"lscr","ℓ":"ell","𝕝":"lopf","ℒ":"Lscr","𝔏":"Lfr","𝕃":"Lopf","ĺ":"lacute","Ĺ":"Lacute","ľ":"lcaron","Ľ":"Lcaron","ļ":"lcedil","Ļ":"Lcedil","ł":"lstrok","Ł":"Lstrok","ŀ":"lmidot","Ŀ":"Lmidot","𝔪":"mfr","𝕞":"mopf","𝓂":"mscr","𝔐":"Mfr","𝕄":"Mopf","ℳ":"Mscr","𝔫":"nfr","𝕟":"nopf","𝓃":"nscr","ℕ":"Nopf","𝒩":"Nscr","𝔑":"Nfr","ń":"nacute","Ń":"Nacute","ň":"ncaron","Ň":"Ncaron","ñ":"ntilde","Ñ":"Ntilde","ņ":"ncedil","Ņ":"Ncedil","№":"numero","ŋ":"eng","Ŋ":"ENG","𝕠":"oopf","𝔬":"ofr","ℴ":"oscr","𝒪":"Oscr","𝔒":"Ofr","𝕆":"Oopf","º":"ordm","ó":"oacute","Ó":"Oacute","ò":"ograve","Ò":"Ograve","ô":"ocirc","Ô":"Ocirc","ö":"ouml","Ö":"Ouml","ő":"odblac","Ő":"Odblac","õ":"otilde","Õ":"Otilde","ø":"oslash","Ø":"Oslash","ō":"omacr","Ō":"Omacr","œ":"oelig","Œ":"OElig","𝔭":"pfr","𝓅":"pscr","𝕡":"popf","ℙ":"Popf","𝔓":"Pfr","𝒫":"Pscr","𝕢":"qopf","𝔮":"qfr","𝓆":"qscr","𝒬":"Qscr","𝔔":"Qfr","ℚ":"Qopf","ĸ":"kgreen","𝔯":"rfr","𝕣":"ropf","𝓇":"rscr","ℛ":"Rscr","ℜ":"Re","ℝ":"Ropf","ŕ":"racute","Ŕ":"Racute","ř":"rcaron","Ř":"Rcaron","ŗ":"rcedil","Ŗ":"Rcedil","𝕤":"sopf","𝓈":"sscr","𝔰":"sfr","𝕊":"Sopf","𝔖":"Sfr","𝒮":"Sscr","Ⓢ":"oS","ś":"sacute","Ś":"Sacute","ŝ":"scirc","Ŝ":"Scirc","š":"scaron","Š":"Scaron","ş":"scedil","Ş":"Scedil","ß":"szlig","𝔱":"tfr","𝓉":"tscr","𝕥":"topf","𝒯":"Tscr","𝔗":"Tfr","𝕋":"Topf","ť":"tcaron","Ť":"Tcaron","ţ":"tcedil","Ţ":"Tcedil","™":"trade","ŧ":"tstrok","Ŧ":"Tstrok","𝓊":"uscr","𝕦":"uopf","𝔲":"ufr","𝕌":"Uopf","𝔘":"Ufr","𝒰":"Uscr","ú":"uacute","Ú":"Uacute","ù":"ugrave","Ù":"Ugrave","ŭ":"ubreve","Ŭ":"Ubreve","û":"ucirc","Û":"Ucirc","ů":"uring","Ů":"Uring","ü":"uuml","Ü":"Uuml","ű":"udblac","Ű":"Udblac","ũ":"utilde","Ũ":"Utilde","ų":"uogon","Ų":"Uogon","ū":"umacr","Ū":"Umacr","𝔳":"vfr","𝕧":"vopf","𝓋":"vscr","𝔙":"Vfr","𝕍":"Vopf","𝒱":"Vscr","𝕨":"wopf","𝓌":"wscr","𝔴":"wfr","𝒲":"Wscr","𝕎":"Wopf","𝔚":"Wfr","ŵ":"wcirc","Ŵ":"Wcirc","𝔵":"xfr","𝓍":"xscr","𝕩":"xopf","𝕏":"Xopf","𝔛":"Xfr","𝒳":"Xscr","𝔶":"yfr","𝓎":"yscr","𝕪":"yopf","𝒴":"Yscr","𝔜":"Yfr","𝕐":"Yopf","ý":"yacute","Ý":"Yacute","ŷ":"ycirc","Ŷ":"Ycirc","ÿ":"yuml","Ÿ":"Yuml","𝓏":"zscr","𝔷":"zfr","𝕫":"zopf","ℨ":"Zfr","ℤ":"Zopf","𝒵":"Zscr","ź":"zacute","Ź":"Zacute","ž":"zcaron","Ž":"Zcaron","ż":"zdot","Ż":"Zdot","Ƶ":"imped","þ":"thorn","Þ":"THORN","ʼn":"napos","α":"alpha","Α":"Alpha","β":"beta","Β":"Beta","γ":"gamma","Γ":"Gamma","δ":"delta","Δ":"Delta","ε":"epsi","ϵ":"epsiv","Ε":"Epsilon","ϝ":"gammad","Ϝ":"Gammad","ζ":"zeta","Ζ":"Zeta","η":"eta","Η":"Eta","θ":"theta","ϑ":"thetav","Θ":"Theta","ι":"iota","Ι":"Iota","κ":"kappa","ϰ":"kappav","Κ":"Kappa","λ":"lambda","Λ":"Lambda","μ":"mu","µ":"micro","Μ":"Mu","ν":"nu","Ν":"Nu","ξ":"xi","Ξ":"Xi","ο":"omicron","Ο":"Omicron","π":"pi","ϖ":"piv","Π":"Pi","ρ":"rho","ϱ":"rhov","Ρ":"Rho","σ":"sigma","Σ":"Sigma","ς":"sigmaf","τ":"tau","Τ":"Tau","υ":"upsi","Υ":"Upsilon","ϒ":"Upsi","φ":"phi","ϕ":"phiv","Φ":"Phi","χ":"chi","Χ":"Chi","ψ":"psi","Ψ":"Psi","ω":"omega","Ω":"ohm","а":"acy","А":"Acy","б":"bcy","Б":"Bcy","в":"vcy","В":"Vcy","г":"gcy","Г":"Gcy","ѓ":"gjcy","Ѓ":"GJcy","д":"dcy","Д":"Dcy","ђ":"djcy","Ђ":"DJcy","е":"iecy","Е":"IEcy","ё":"iocy","Ё":"IOcy","є":"jukcy","Є":"Jukcy","ж":"zhcy","Ж":"ZHcy","з":"zcy","З":"Zcy","ѕ":"dscy","Ѕ":"DScy","и":"icy","И":"Icy","і":"iukcy","І":"Iukcy","ї":"yicy","Ї":"YIcy","й":"jcy","Й":"Jcy","ј":"jsercy","Ј":"Jsercy","к":"kcy","К":"Kcy","ќ":"kjcy","Ќ":"KJcy","л":"lcy","Л":"Lcy","љ":"ljcy","Љ":"LJcy","м":"mcy","М":"Mcy","н":"ncy","Н":"Ncy","њ":"njcy","Њ":"NJcy","о":"ocy","О":"Ocy","п":"pcy","П":"Pcy","р":"rcy","Р":"Rcy","с":"scy","С":"Scy","т":"tcy","Т":"Tcy","ћ":"tshcy","Ћ":"TSHcy","у":"ucy","У":"Ucy","ў":"ubrcy","Ў":"Ubrcy","ф":"fcy","Ф":"Fcy","х":"khcy","Х":"KHcy","ц":"tscy","Ц":"TScy","ч":"chcy","Ч":"CHcy","џ":"dzcy","Џ":"DZcy","ш":"shcy","Ш":"SHcy","щ":"shchcy","Щ":"SHCHcy","ъ":"hardcy","Ъ":"HARDcy","ы":"ycy","Ы":"Ycy","ь":"softcy","Ь":"SOFTcy","э":"ecy","Э":"Ecy","ю":"yucy","Ю":"YUcy","я":"yacy","Я":"YAcy","ℵ":"aleph","ℶ":"beth","ℷ":"gimel","ℸ":"daleth"},h=/["&'<>`]/g,d={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},g=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,f=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,m=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,b={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},v={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},y={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},w=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],q=String.fromCharCode,D={}.hasOwnProperty,x=function(r,e){return D.call(r,e)},k=function(r,e){if(!r)return e;var t,a={};for(t in e)a[t]=x(r,t)?r[t]:e[t];return a},A=function(r,e){var t="";return r>=55296&&r<=57343||r>1114111?(e&&C("character reference outside the permissible Unicode range"),"�"):x(y,r)?(e&&C("disallowed character reference"),y[r]):(e&&function(r,e){for(var t=-1,a=r.length;++t65535&&(t+=q((r-=65536)>>>10&1023|55296),r=56320|1023&r),t+=q(r))},E=function(r){return"&#x"+r.toString(16).toUpperCase()+";"},L=function(r){return"&#"+r+";"},C=function(r){throw Error("Parse error: "+r)},S=function(r,e){(e=k(e,S.options)).strict&&f.test(r)&&C("forbidden code point");var t=e.encodeEverything,a=e.useNamedReferences,s=e.allowUnsafeSymbols,i=e.decimal?L:E,o=function(r){return i(r.charCodeAt(0))};return t?(r=r.replace(l,(function(r){return a&&x(p,r)?"&"+p[r]+";":o(r)})),a&&(r=r.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),a&&(r=r.replace(u,(function(r){return"&"+p[r]+";"})))):a?(s||(r=r.replace(h,(function(r){return"&"+p[r]+";"}))),r=(r=r.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(u,(function(r){return"&"+p[r]+";"}))):s||(r=r.replace(h,o)),r.replace(n,(function(r){var e=r.charCodeAt(0),t=r.charCodeAt(1);return i(1024*(e-55296)+t-56320+65536)})).replace(c,o)};S.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var T=function(r,e){var t=(e=k(e,T.options)).strict;return t&&g.test(r)&&C("malformed character reference"),r.replace(m,(function(r,a,s,i,o,n,l,c,u){var p,h,d,g,f,m;return a?b[f=a]:s?(f=s,(m=i)&&e.isAttributeValue?(t&&"="==m&&C("`&` did not start a character reference"),r):(t&&C("named character reference was not terminated by a semicolon"),v[f]+(m||""))):o?(d=o,h=n,t&&!h&&C("character reference was not terminated by a semicolon"),p=parseInt(d,10),A(p,t)):l?(g=l,h=c,t&&!h&&C("character reference was not terminated by a semicolon"),p=parseInt(g,16),A(p,t)):(t&&C("named character reference was not terminated by a semicolon"),r)}))};T.options={isAttributeValue:!1,strict:!1};var B={version:"1.2.0",encode:S,decode:T,escape:function(r){return r.replace(h,(function(r){return d[r]}))},unescape:T};void 0===(a=function(){return B}.call(e,t,e,r))||(r.exports=a)}()}).call(this,t(70)(r))},303:function(r,e,t){"use strict";t(278)},304:function(r,e,t){"use strict";t(279)},305:function(r,e,t){"use strict";t(280)},306:function(r,e,t){"use strict";t(281)},307:function(r,e,t){"use strict";t(283)},308:function(r,e,t){var a=t(25),s=t(10),i=t(21);r.exports=function(r){return"string"==typeof r||!s(r)&&i(r)&&"[object String]"==a(r)}},309:function(r,e,t){"use strict";t(284)},310:function(r,e,t){"use strict";t(285)},311:function(r,e,t){"use strict";t(286)},312:function(r,e,t){"use strict";t(287)},313:function(r,e,t){"use strict";t(288)},331:function(r,e,t){"use strict";t.r(e);var a=t(71),s={name:"Home",components:{NavLink:a.a},computed:{data(){return this.$page.frontmatter},actionLink(){return{link:this.data.actionLink,text:this.data.actionText}}}},i=(t(299),t(7)),o=Object(i.a)(s,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("main",{staticClass:"home",attrs:{"aria-labelledby":null!==r.data.heroText?"main-title":null}},[t("header",{staticClass:"hero"},[r.data.heroImage?t("img",{attrs:{src:r.$withBase(r.data.heroImage),alt:r.data.heroAlt||"hero"}}):r._e(),r._v(" "),null!==r.data.heroText?t("h1",{attrs:{id:"main-title"}},[r._v("\n "+r._s(r.data.heroText||r.$title||"Hello")+"\n ")]):r._e(),r._v(" "),null!==r.data.tagline?t("p",{staticClass:"description"},[r._v("\n "+r._s(r.data.tagline||r.$description||"Welcome to your VuePress site")+"\n ")]):r._e(),r._v(" "),r.data.actionText&&r.data.actionLink?t("p",{staticClass:"action"},[t("NavLink",{staticClass:"action-button",attrs:{item:r.actionLink}})],1):r._e()]),r._v(" "),r.data.features&&r.data.features.length?t("div",{staticClass:"features"},r._l(r.data.features,(function(e,a){return t("div",{key:a,staticClass:"feature"},[t("h2",[r._v(r._s(e.title))]),r._v(" "),t("p",[r._v(r._s(e.details))])])})),0):r._e(),r._v(" "),t("Content",{staticClass:"theme-default-content custom"}),r._v(" "),r.data.footer?t("div",{staticClass:"footer"},[r._v("\n "+r._s(r.data.footer)+"\n ")]):r._e()],1)}),[],!1,null,null,null).exports,n=t(300),l=t.n(n),c=t(301),u={data:()=>({query:"",focused:!1,focusIndex:0,placeholder:void 0,index:null}),mounted(){this.placeholder=this.$site.themeConfig.searchPlaceholder||"",document.addEventListener("keydown",this.onHotkey),this.setupFlexSearch()},beforeDestroy(){document.removeEventListener("keydown",this.onHotkey)},computed:{showSuggestions(){return this.focused&&this.suggestions&&this.suggestions.length},suggestions(){const r=this.query.trim().toLowerCase();if(!r)return;return this.index.search(r,10).map(r=>({...r,title:this.getSuggestionTitle(r),text:this.getSuggestionText(r)}))},alignRight(){return(this.$site.themeConfig.nav||[]).length+(this.$site.repo?1:0)<=2}},methods:{getPageLocalePath(r){for(const e in this.$site.locales||{})if("/"!==e&&0===r.path.indexOf(e))return e;return"/"},isSearchable(r){let e=null;return null===e||(e=Array.isArray(e)?e:new Array(e),e.filter(e=>r.path.match(e)).length>0)},onHotkey(r){r.srcElement===document.body&&"s".includes(r.key)&&(this.$refs.input.focus(),r.preventDefault())},onUp(){this.showSuggestions&&(this.focusIndex>0?this.focusIndex--:this.focusIndex=this.suggestions.length-1)},onDown(){this.showSuggestions&&(this.focusIndex15&&(s-=15,i=".. ");const o=r.content.substr(s,60);return i+Object(c.highlightText)(o,this.query)}}},p=(t(303),Object(i.a)(u,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("div",{staticClass:"search-box"},[t("input",{ref:"input",class:{focused:r.focused},attrs:{"aria-label":"Search",placeholder:r.placeholder,autocomplete:"off",spellcheck:"false"},domProps:{value:r.query},on:{input:function(e){r.query=e.target.value},focus:function(e){r.focused=!0},blur:function(e){r.focused=!1},keyup:[function(e){return!e.type.indexOf("key")&&r._k(e.keyCode,"enter",13,e.key,"Enter")?null:r.go(r.focusIndex)},function(e){return!e.type.indexOf("key")&&r._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:r.onUp(e)},function(e){return!e.type.indexOf("key")&&r._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:r.onDown(e)}]}}),r._v(" "),r.showSuggestions?t("ul",{staticClass:"suggestions",class:{"align-right":r.alignRight},on:{mouseleave:r.unfocus}},r._l(r.suggestions,(function(e,a){return t("li",{key:a,staticClass:"suggestion",class:{focused:a===r.focusIndex},on:{mousedown:function(e){return r.go(a)},mouseenter:function(e){return r.focus(a)}}},[t("a",{attrs:{href:e.regularPath},on:{click:function(r){r.preventDefault()}}},[t("span",{staticClass:"suggestion__title",domProps:{innerHTML:r._s(e.title||e.regularPath)}}),r._v(" "),t("span",{staticClass:"suggestion__result",domProps:{innerHTML:r._s(e.text)}})])])})),0):r._e()])}),[],!1,null,null,null).exports),h=(t(304),Object(i.a)({},(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("div",{staticClass:"sidebar-button",on:{click:function(e){return r.$emit("toggle-sidebar")}}},[t("svg",{staticClass:"icon",attrs:{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",viewBox:"0 0 448 512"}},[t("path",{attrs:{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"}})])])}),[],!1,null,null,null).exports),d=(t(14),t(121)),g=t(20),f={name:"NavLinks",components:{NavLink:a.a,DropdownLink:d.a},computed:{userNav(){return this.$themeLocaleConfig.nav||this.$site.themeConfig.nav||[]},nav(){const{locales:r}=this.$site;if(r&&Object.keys(r).length>1){const e=this.$page.path,t=this.$router.options.routes,a=this.$site.themeConfig.locales||{},s={text:this.$themeLocaleConfig.selectText||"Languages",ariaLabel:this.$themeLocaleConfig.ariaLabel||"Select language",items:Object.keys(r).map(s=>{const i=r[s],o=a[s]&&a[s].label||i.lang;let n;return i.lang===this.$lang?n=e:(n=e.replace(this.$localeConfig.path,s),t.some(r=>r.path===n)||(n=s)),{text:o,link:n}})};return[...this.userNav,s]}return this.userNav},userLinks(){return(this.nav||[]).map(r=>Object.assign(Object(g.j)(r),{items:(r.items||[]).map(g.j)}))},repoLink(){const{repo:r}=this.$site.themeConfig;return r?/^https?:/.test(r)?r:"https://github.com/"+r:null},repoLabel(){if(!this.repoLink)return;if(this.$site.themeConfig.repoLabel)return this.$site.themeConfig.repoLabel;const r=this.repoLink.match(/^https?:\/\/[^/]+/)[0],e=["GitHub","GitLab","Bitbucket"];for(let t=0;t({linksWrapMaxWidth:null}),computed:{algolia(){return this.$themeLocaleConfig.algolia||this.$site.themeConfig.algolia||{}},isAlgoliaSearch(){return this.algolia&&this.algolia.apiKey&&this.algolia.indexName}},mounted(){const r=parseInt(b(this.$el,"paddingLeft"))+parseInt(b(this.$el,"paddingRight")),e=()=>{document.documentElement.clientWidth<719?this.linksWrapMaxWidth=null:this.linksWrapMaxWidth=this.$el.offsetWidth-r-(this.$refs.siteName&&this.$refs.siteName.offsetWidth||0)};e(),window.addEventListener("resize",e,!1)}},y=(t(306),Object(i.a)(v,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("header",{staticClass:"navbar"},[t("SidebarButton",{on:{"toggle-sidebar":function(e){return r.$emit("toggle-sidebar")}}}),r._v(" "),t("RouterLink",{staticClass:"home-link",attrs:{to:r.$localePath}},[r.$site.themeConfig.logo?t("img",{staticClass:"logo",attrs:{src:r.$withBase(r.$site.themeConfig.logo),alt:r.$siteTitle}}):r._e(),r._v(" "),r.$siteTitle?t("span",{ref:"siteName",staticClass:"site-name",class:{"can-hide":r.$site.themeConfig.logo}},[r._v(r._s(r.$siteTitle))]):r._e()]),r._v(" "),t("div",{staticClass:"links",style:r.linksWrapMaxWidth?{"max-width":r.linksWrapMaxWidth+"px"}:{}},[r.isAlgoliaSearch?t("AlgoliaSearchBox",{attrs:{options:r.algolia}}):!1!==r.$site.themeConfig.search&&!1!==r.$page.frontmatter.search?t("SearchBox"):r._e(),r._v(" "),t("NavLinks",{staticClass:"can-hide"})],1)],1)}),[],!1,null,null,null).exports),w=t(282),q=t.n(w),D={name:"PageEdit",computed:{lastUpdated(){return this.$page.lastUpdated},lastUpdatedText(){return"string"==typeof this.$themeLocaleConfig.lastUpdated?this.$themeLocaleConfig.lastUpdated:"string"==typeof this.$site.themeConfig.lastUpdated?this.$site.themeConfig.lastUpdated:"Last Updated"},editLink(){const r=q()(this.$page.frontmatter.editLink)?this.$site.themeConfig.editLinks:this.$page.frontmatter.editLink,{repo:e,docsDir:t="",docsBranch:a="master",docsRepo:s=e}=this.$site.themeConfig;return r&&s&&this.$page.relativePath?this.createEditLink(e,s,t,a,this.$page.relativePath):null},editLinkText(){return this.$themeLocaleConfig.editLinkText||this.$site.themeConfig.editLinkText||"Edit this page"}},methods:{createEditLink(r,e,t,a,s){if(/bitbucket.org/.test(e)){return e.replace(g.a,"")+"/src"+`/${a}/`+(t?t.replace(g.a,"")+"/":"")+s+`?mode=edit&spa=0&at=${a}&fileviewer=file-view-default`}if(/gitlab.com/.test(e)){return e.replace(g.a,"")+"/-/edit"+`/${a}/`+(t?t.replace(g.a,"")+"/":"")+s}return(g.i.test(e)?e:"https://github.com/"+e).replace(g.a,"")+"/edit"+`/${a}/`+(t?t.replace(g.a,"")+"/":"")+s}}},x=(t(307),Object(i.a)(D,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("footer",{staticClass:"page-edit"},[r.editLink?t("div",{staticClass:"edit-link"},[t("a",{attrs:{href:r.editLink,target:"_blank",rel:"noopener noreferrer"}},[r._v(r._s(r.editLinkText))]),r._v(" "),t("OutboundLink")],1):r._e(),r._v(" "),r.lastUpdated?t("div",{staticClass:"last-updated"},[t("span",{staticClass:"prefix"},[r._v(r._s(r.lastUpdatedText)+":")]),r._v(" "),t("span",{staticClass:"time"},[r._v(r._s(r.lastUpdated))])]):r._e()])}),[],!1,null,null,null).exports),k=t(308),A=t.n(k),E={name:"PageNav",props:["sidebarItems"],computed:{prev(){return C(L.PREV,this)},next(){return C(L.NEXT,this)}}};const L={NEXT:{resolveLink:function(r,e){return S(r,e,1)},getThemeLinkConfig:({nextLinks:r})=>r,getPageLinkConfig:({frontmatter:r})=>r.next},PREV:{resolveLink:function(r,e){return S(r,e,-1)},getThemeLinkConfig:({prevLinks:r})=>r,getPageLinkConfig:({frontmatter:r})=>r.prev}};function C(r,{$themeConfig:e,$page:t,$route:a,$site:s,sidebarItems:i}){const{resolveLink:o,getThemeLinkConfig:n,getPageLinkConfig:l}=r,c=n(e),u=l(t),p=q()(u)?c:u;return!1===p?void 0:A()(p)?Object(g.k)(s.pages,p,a.path):o(t,i)}function S(r,e,t){const a=[];!function r(e,t){for(let a=0,s=e.length;a({isSidebarOpen:!1}),computed:{shouldShowNavbar(){const{themeConfig:r}=this.$site,{frontmatter:e}=this.$page;return!1!==e.navbar&&!1!==r.navbar&&(this.$title||r.logo||r.repo||r.nav||this.$themeLocaleConfig.nav)},shouldShowSidebar(){const{frontmatter:r}=this.$page;return!r.home&&!1!==r.sidebar&&this.sidebarItems.length},sidebarItems(){return Object(g.l)(this.$page,this.$page.regularPath,this.$site,this.$localePath)},pageClasses(){const r=this.$page.frontmatter.pageClass;return[{"no-navbar":!this.shouldShowNavbar,"sidebar-open":this.isSidebarOpen,"no-sidebar":!this.shouldShowSidebar},r]}},mounted(){this.$router.afterEach(()=>{this.isSidebarOpen=!1})},methods:{toggleSidebar(r){this.isSidebarOpen="boolean"==typeof r?r:!this.isSidebarOpen,this.$emit("toggle-sidebar",this.isSidebarOpen)},onTouchStart(r){this.touchStart={x:r.changedTouches[0].clientX,y:r.changedTouches[0].clientY}},onTouchEnd(r){const e=r.changedTouches[0].clientX-this.touchStart.x,t=r.changedTouches[0].clientY-this.touchStart.y;Math.abs(e)>Math.abs(t)&&Math.abs(e)>40&&(e>0&&this.touchStart.x<=80?this.toggleSidebar(!0):this.toggleSidebar(!1))}}}),F=Object(i.a)(U,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("div",{staticClass:"theme-container",class:r.pageClasses,on:{touchstart:r.onTouchStart,touchend:r.onTouchEnd}},[r.shouldShowNavbar?t("Navbar",{on:{"toggle-sidebar":r.toggleSidebar}}):r._e(),r._v(" "),t("div",{staticClass:"sidebar-mask",on:{click:function(e){return r.toggleSidebar(!1)}}}),r._v(" "),t("Sidebar",{attrs:{items:r.sidebarItems},on:{"toggle-sidebar":r.toggleSidebar},scopedSlots:r._u([{key:"top",fn:function(){return[r._t("sidebar-top")]},proxy:!0},{key:"bottom",fn:function(){return[r._t("sidebar-bottom")]},proxy:!0}],null,!0)}),r._v(" "),r.$page.frontmatter.home?t("Home"):t("Page",{attrs:{"sidebar-items":r.sidebarItems},scopedSlots:r._u([{key:"top",fn:function(){return[r._t("page-top")]},proxy:!0},{key:"bottom",fn:function(){return[r._t("page-bottom")]},proxy:!0}],null,!0)})],1)}),[],!1,null,null,null);e.default=F.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{277:function(r,e,t){},278:function(r,e,t){},279:function(r,e,t){},280:function(r,e,t){},281:function(r,e,t){},282:function(r,e){r.exports=function(r){return null==r}},283:function(r,e,t){},284:function(r,e,t){},285:function(r,e,t){},286:function(r,e,t){},287:function(r,e,t){},288:function(r,e,t){},298:function(r,e,t){"use strict";t.r(e);var a=t(20),s={name:"SidebarGroup",components:{DropdownTransition:t(122).a},props:["item","open","collapsable","depth"],beforeCreate(){this.$options.components.SidebarLinks=t(298).default},methods:{isActive:a.e}},i=(t(311),t(7)),o=Object(i.a)(s,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("section",{staticClass:"sidebar-group",class:[{collapsable:r.collapsable,"is-sub-group":0!==r.depth},"depth-"+r.depth]},[r.item.path?t("RouterLink",{staticClass:"sidebar-heading clickable",class:{open:r.open,active:r.isActive(r.$route,r.item.path)},attrs:{to:r.item.path},nativeOn:{click:function(e){return r.$emit("toggle")}}},[t("span",[r._v(r._s(r.item.title))]),r._v(" "),r.collapsable?t("span",{staticClass:"arrow",class:r.open?"down":"right"}):r._e()]):t("p",{staticClass:"sidebar-heading",class:{open:r.open},on:{click:function(e){return r.$emit("toggle")}}},[t("span",[r._v(r._s(r.item.title))]),r._v(" "),r.collapsable?t("span",{staticClass:"arrow",class:r.open?"down":"right"}):r._e()]),r._v(" "),t("DropdownTransition",[r.open||!r.collapsable?t("SidebarLinks",{staticClass:"sidebar-group-items",attrs:{items:r.item.children,"sidebar-depth":r.item.sidebarDepth,"initial-open-group-index":r.item.initialOpenGroupIndex,depth:r.depth+1}}):r._e()],1)],1)}),[],!1,null,null,null).exports;function n(r,e,t,a,s){const i={props:{to:e,activeClass:"",exactActiveClass:""},class:{active:a,"sidebar-link":!0}};return s>2&&(i.style={"padding-left":s+"rem"}),r("RouterLink",i,t)}function l(r,e,t,s,i,o=1){return!e||o>i?null:r("ul",{class:"sidebar-sub-headers"},e.map(e=>{const c=Object(a.e)(s,t+"#"+e.slug);return r("li",{class:"sidebar-sub-header"},[n(r,t+"#"+e.slug,e.title,c,e.level-1),l(r,e.children,t,s,i,o+1)])}))}var c={functional:!0,props:["item","sidebarDepth"],render(r,{parent:{$page:e,$site:t,$route:s,$themeConfig:i,$themeLocaleConfig:o},props:{item:c,sidebarDepth:u}}){const p=Object(a.e)(s,c.path),h="auto"===c.type?p||c.children.some(r=>Object(a.e)(s,c.basePath+"#"+r.slug)):p,d="external"===c.type?function(r,e,t){return r("a",{attrs:{href:e,target:"_blank",rel:"noopener noreferrer"},class:{"sidebar-link":!0}},[t,r("OutboundLink")])}(r,c.path,c.title||c.path):n(r,c.path,c.title||c.path,h),g=[e.frontmatter.sidebarDepth,u,o.sidebarDepth,i.sidebarDepth,1].find(r=>void 0!==r),f=o.displayAllHeaders||i.displayAllHeaders;if("auto"===c.type)return[d,l(r,c.children,c.basePath,s,g)];if((h||f)&&c.headers&&!a.d.test(c.path)){return[d,l(r,Object(a.c)(c.headers),c.path,s,g)]}return d}};t(312);function u(r,e){if("group"===e.type){const t=e.path&&Object(a.e)(r,e.path),s=e.children.some(e=>"group"===e.type?u(r,e):"page"===e.type&&Object(a.e)(r,e.path));return t||s}return!1}var p={name:"SidebarLinks",components:{SidebarGroup:o,SidebarLink:Object(i.a)(c,void 0,void 0,!1,null,null,null).exports},props:["items","depth","sidebarDepth","initialOpenGroupIndex"],data(){return{openGroupIndex:this.initialOpenGroupIndex||0}},watch:{$route(){this.refreshIndex()}},created(){this.refreshIndex()},methods:{refreshIndex(){const r=function(r,e){for(let t=0;t-1&&(this.openGroupIndex=r)},toggleGroup(r){this.openGroupIndex=r===this.openGroupIndex?-1:r},isActive(r){return Object(a.e)(this.$route,r.regularPath)}}},h=Object(i.a)(p,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return r.items.length?t("ul",{staticClass:"sidebar-links"},r._l(r.items,(function(e,a){return t("li",{key:a},["group"===e.type?t("SidebarGroup",{attrs:{item:e,open:a===r.openGroupIndex,collapsable:e.collapsable||e.collapsible,depth:r.depth},on:{toggle:function(e){return r.toggleGroup(a)}}}):t("SidebarLink",{attrs:{"sidebar-depth":r.sidebarDepth,item:e}})],1)})),0):r._e()}),[],!1,null,null,null);e.default=h.exports},299:function(r,e,t){"use strict";t(277)},300:function(r,e,t){"use strict";!function(e,t,a){let s;(s=a.define)&&s.amd?s([],(function(){return t})):(s=a.modules)?s["FlexSearch".toLowerCase()]=t:r.exports=t}(0,function r(e){function t(r,e){const t=e?e.id:r&&r.id;this.id=t||0===t?t:S++,this.init(r,e),o(this,"index",(function(){return this.a?Object.keys(this.a.index[this.a.keys[0]].c):Object.keys(this.c)})),o(this,"length",(function(){return this.index.length}))}function a(r,e,t,a){return this.u!==this.g&&(this.o=this.o.concat(t),this.u++,a&&this.o.length>=a&&(this.u=this.g),this.u===this.g&&(this.cache&&this.j.set(e,this.o),this.F&&this.F(this.o))),this}function s(r,e){const t=r.length,a=y(e),s=[];for(let i=0,o=0;i=o&&((r=(r=r[n-(s+.5>>0)])[t]||(r[t]=[]))[r.length]=a),s)}function u(r,e){if(r){const t=Object.keys(r);for(let a=0,s=t.length;a(r=r.length-e.length)?1:r?-1:0}function d(r,e){return(r=r[N])<(e=e[N])?-1:r>e?1:0}function g(r,e){const t=N.length;for(let a=0;ae?1:0}function f(r,e,t){return r?{page:r,next:e?""+e:null,result:t}:t}function m(r,e,t,a,s,i,o){let n,l=[];if(!0===t){t="0";var c=""}else c=t&&t.split(":");const u=r.length;if(1o&&(c=0),n=(c=c||0)+e,n=this.m.length&&(this.C=0),this.m[this.C].postMessage({add:!0,id:r,content:e}),this.c[o]=""+this.C,t&&t(),this;if(!i){if(this.async&&"function"!=typeof importScripts){let s=this;return o=new Promise((function(t){setTimeout((function(){s.add(r,e,null,a,!0),s=null,t()}))})),t?(o.then(t),this):o}if(t)return this.add(r,e,null,a,!0),t(),this}if(!(e=this.encode(e)).length)return this;i=y(t=this.f)?t(e):e.split(this.split),this.filter&&(i=s(i,this.filter));const d=x();d._ctx=x();const g=i.length,f=this.threshold,m=this.depth,b=this.b,v=this.i,w=this.D;for(let e=0;eh;t--)c(v,d,p=n.substring(h,t),r,e,u,f,b-1)}break;default:if(l=c(v,d,n,r,1,u,f,b-1),m&&1=f)for(l=d._ctx[n]||(d._ctx[n]=x()),n=this.h[n]||(this.h[n]=D(b-(f||0))),0>(u=e-m)&&(u=0),(p=e+m+1)>g&&(p=g);us;t--)a=i[t-1],i[t]=a,e[a]=t;i[s]=r,e[r]=s}}}return e},r}();return t}(function(){const r={},e="undefined"!=typeof Blob&&"undefined"!=typeof URL&&URL.createObjectURL;return function(t,a,s,i,o){return s=e?URL.createObjectURL(new Blob(["("+s.toString()+")()"],{type:"text/javascript"})):t+".min.js",r[t+="-"+a]||(r[t]=[]),r[t][o]=new Worker(s),r[t][o].onmessage=i,r[t][o]}}()),this)},301:function(r,e,t){t(15);const a=t(302);r.exports.getPageText=r=>{if(!r._strippedContent)return"";const{html:e}=r._context.markdown.render(r._strippedContent);return a.decode(e.replace(/(<[^>]+>)+/g," ").replace(/^\s*#\s/gm,""))},r.exports.highlightText=(r,e)=>{let t=r;if(highlightWords=e.split(" ").filter(r=>r.length>0),highlightWords.length>0)for(const r of highlightWords)t=t.replace(new RegExp(r,"ig"),"$&");else t=r.replace(new RegExp(e,"ig"),"$&");return t}},302:function(r,e,t){(function(r){var a;/*! https://mths.be/he v1.2.0 by @mathias | MIT license */!function(s){var i=e,o=(r&&r.exports,"object"==typeof global&&global);o.global!==o&&o.window;var n=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=/[\x01-\x7F]/g,c=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,u=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,p={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon","ˆ":"circ","ˇ":"caron","°":"deg","©":"copy","®":"reg","℗":"copysr","℘":"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","𝒶":"ascr","𝕒":"aopf","𝔞":"afr","𝔸":"Aopf","𝔄":"Afr","𝒜":"Ascr","ª":"ordf","á":"aacute","Á":"Aacute","à":"agrave","À":"Agrave","ă":"abreve","Ă":"Abreve","â":"acirc","Â":"Acirc","å":"aring","Å":"angst","ä":"auml","Ä":"Auml","ã":"atilde","Ã":"Atilde","ą":"aogon","Ą":"Aogon","ā":"amacr","Ā":"Amacr","æ":"aelig","Æ":"AElig","𝒷":"bscr","𝕓":"bopf","𝔟":"bfr","𝔹":"Bopf","ℬ":"Bscr","𝔅":"Bfr","𝔠":"cfr","𝒸":"cscr","𝕔":"copf","ℭ":"Cfr","𝒞":"Cscr","ℂ":"Copf","ć":"cacute","Ć":"Cacute","ĉ":"ccirc","Ĉ":"Ccirc","č":"ccaron","Č":"Ccaron","ċ":"cdot","Ċ":"Cdot","ç":"ccedil","Ç":"Ccedil","℅":"incare","𝔡":"dfr","ⅆ":"dd","𝕕":"dopf","𝒹":"dscr","𝒟":"Dscr","𝔇":"Dfr","ⅅ":"DD","𝔻":"Dopf","ď":"dcaron","Ď":"Dcaron","đ":"dstrok","Đ":"Dstrok","ð":"eth","Ð":"ETH","ⅇ":"ee","ℯ":"escr","𝔢":"efr","𝕖":"eopf","ℰ":"Escr","𝔈":"Efr","𝔼":"Eopf","é":"eacute","É":"Eacute","è":"egrave","È":"Egrave","ê":"ecirc","Ê":"Ecirc","ě":"ecaron","Ě":"Ecaron","ë":"euml","Ë":"Euml","ė":"edot","Ė":"Edot","ę":"eogon","Ę":"Eogon","ē":"emacr","Ē":"Emacr","𝔣":"ffr","𝕗":"fopf","𝒻":"fscr","𝔉":"Ffr","𝔽":"Fopf","ℱ":"Fscr","ff":"fflig","ffi":"ffilig","ffl":"ffllig","fi":"filig",fj:"fjlig","fl":"fllig","ƒ":"fnof","ℊ":"gscr","𝕘":"gopf","𝔤":"gfr","𝒢":"Gscr","𝔾":"Gopf","𝔊":"Gfr","ǵ":"gacute","ğ":"gbreve","Ğ":"Gbreve","ĝ":"gcirc","Ĝ":"Gcirc","ġ":"gdot","Ġ":"Gdot","Ģ":"Gcedil","𝔥":"hfr","ℎ":"planckh","𝒽":"hscr","𝕙":"hopf","ℋ":"Hscr","ℌ":"Hfr","ℍ":"Hopf","ĥ":"hcirc","Ĥ":"Hcirc","ℏ":"hbar","ħ":"hstrok","Ħ":"Hstrok","𝕚":"iopf","𝔦":"ifr","𝒾":"iscr","ⅈ":"ii","𝕀":"Iopf","ℐ":"Iscr","ℑ":"Im","í":"iacute","Í":"Iacute","ì":"igrave","Ì":"Igrave","î":"icirc","Î":"Icirc","ï":"iuml","Ï":"Iuml","ĩ":"itilde","Ĩ":"Itilde","İ":"Idot","į":"iogon","Į":"Iogon","ī":"imacr","Ī":"Imacr","ij":"ijlig","IJ":"IJlig","ı":"imath","𝒿":"jscr","𝕛":"jopf","𝔧":"jfr","𝒥":"Jscr","𝔍":"Jfr","𝕁":"Jopf","ĵ":"jcirc","Ĵ":"Jcirc","ȷ":"jmath","𝕜":"kopf","𝓀":"kscr","𝔨":"kfr","𝒦":"Kscr","𝕂":"Kopf","𝔎":"Kfr","ķ":"kcedil","Ķ":"Kcedil","𝔩":"lfr","𝓁":"lscr","ℓ":"ell","𝕝":"lopf","ℒ":"Lscr","𝔏":"Lfr","𝕃":"Lopf","ĺ":"lacute","Ĺ":"Lacute","ľ":"lcaron","Ľ":"Lcaron","ļ":"lcedil","Ļ":"Lcedil","ł":"lstrok","Ł":"Lstrok","ŀ":"lmidot","Ŀ":"Lmidot","𝔪":"mfr","𝕞":"mopf","𝓂":"mscr","𝔐":"Mfr","𝕄":"Mopf","ℳ":"Mscr","𝔫":"nfr","𝕟":"nopf","𝓃":"nscr","ℕ":"Nopf","𝒩":"Nscr","𝔑":"Nfr","ń":"nacute","Ń":"Nacute","ň":"ncaron","Ň":"Ncaron","ñ":"ntilde","Ñ":"Ntilde","ņ":"ncedil","Ņ":"Ncedil","№":"numero","ŋ":"eng","Ŋ":"ENG","𝕠":"oopf","𝔬":"ofr","ℴ":"oscr","𝒪":"Oscr","𝔒":"Ofr","𝕆":"Oopf","º":"ordm","ó":"oacute","Ó":"Oacute","ò":"ograve","Ò":"Ograve","ô":"ocirc","Ô":"Ocirc","ö":"ouml","Ö":"Ouml","ő":"odblac","Ő":"Odblac","õ":"otilde","Õ":"Otilde","ø":"oslash","Ø":"Oslash","ō":"omacr","Ō":"Omacr","œ":"oelig","Œ":"OElig","𝔭":"pfr","𝓅":"pscr","𝕡":"popf","ℙ":"Popf","𝔓":"Pfr","𝒫":"Pscr","𝕢":"qopf","𝔮":"qfr","𝓆":"qscr","𝒬":"Qscr","𝔔":"Qfr","ℚ":"Qopf","ĸ":"kgreen","𝔯":"rfr","𝕣":"ropf","𝓇":"rscr","ℛ":"Rscr","ℜ":"Re","ℝ":"Ropf","ŕ":"racute","Ŕ":"Racute","ř":"rcaron","Ř":"Rcaron","ŗ":"rcedil","Ŗ":"Rcedil","𝕤":"sopf","𝓈":"sscr","𝔰":"sfr","𝕊":"Sopf","𝔖":"Sfr","𝒮":"Sscr","Ⓢ":"oS","ś":"sacute","Ś":"Sacute","ŝ":"scirc","Ŝ":"Scirc","š":"scaron","Š":"Scaron","ş":"scedil","Ş":"Scedil","ß":"szlig","𝔱":"tfr","𝓉":"tscr","𝕥":"topf","𝒯":"Tscr","𝔗":"Tfr","𝕋":"Topf","ť":"tcaron","Ť":"Tcaron","ţ":"tcedil","Ţ":"Tcedil","™":"trade","ŧ":"tstrok","Ŧ":"Tstrok","𝓊":"uscr","𝕦":"uopf","𝔲":"ufr","𝕌":"Uopf","𝔘":"Ufr","𝒰":"Uscr","ú":"uacute","Ú":"Uacute","ù":"ugrave","Ù":"Ugrave","ŭ":"ubreve","Ŭ":"Ubreve","û":"ucirc","Û":"Ucirc","ů":"uring","Ů":"Uring","ü":"uuml","Ü":"Uuml","ű":"udblac","Ű":"Udblac","ũ":"utilde","Ũ":"Utilde","ų":"uogon","Ų":"Uogon","ū":"umacr","Ū":"Umacr","𝔳":"vfr","𝕧":"vopf","𝓋":"vscr","𝔙":"Vfr","𝕍":"Vopf","𝒱":"Vscr","𝕨":"wopf","𝓌":"wscr","𝔴":"wfr","𝒲":"Wscr","𝕎":"Wopf","𝔚":"Wfr","ŵ":"wcirc","Ŵ":"Wcirc","𝔵":"xfr","𝓍":"xscr","𝕩":"xopf","𝕏":"Xopf","𝔛":"Xfr","𝒳":"Xscr","𝔶":"yfr","𝓎":"yscr","𝕪":"yopf","𝒴":"Yscr","𝔜":"Yfr","𝕐":"Yopf","ý":"yacute","Ý":"Yacute","ŷ":"ycirc","Ŷ":"Ycirc","ÿ":"yuml","Ÿ":"Yuml","𝓏":"zscr","𝔷":"zfr","𝕫":"zopf","ℨ":"Zfr","ℤ":"Zopf","𝒵":"Zscr","ź":"zacute","Ź":"Zacute","ž":"zcaron","Ž":"Zcaron","ż":"zdot","Ż":"Zdot","Ƶ":"imped","þ":"thorn","Þ":"THORN","ʼn":"napos","α":"alpha","Α":"Alpha","β":"beta","Β":"Beta","γ":"gamma","Γ":"Gamma","δ":"delta","Δ":"Delta","ε":"epsi","ϵ":"epsiv","Ε":"Epsilon","ϝ":"gammad","Ϝ":"Gammad","ζ":"zeta","Ζ":"Zeta","η":"eta","Η":"Eta","θ":"theta","ϑ":"thetav","Θ":"Theta","ι":"iota","Ι":"Iota","κ":"kappa","ϰ":"kappav","Κ":"Kappa","λ":"lambda","Λ":"Lambda","μ":"mu","µ":"micro","Μ":"Mu","ν":"nu","Ν":"Nu","ξ":"xi","Ξ":"Xi","ο":"omicron","Ο":"Omicron","π":"pi","ϖ":"piv","Π":"Pi","ρ":"rho","ϱ":"rhov","Ρ":"Rho","σ":"sigma","Σ":"Sigma","ς":"sigmaf","τ":"tau","Τ":"Tau","υ":"upsi","Υ":"Upsilon","ϒ":"Upsi","φ":"phi","ϕ":"phiv","Φ":"Phi","χ":"chi","Χ":"Chi","ψ":"psi","Ψ":"Psi","ω":"omega","Ω":"ohm","а":"acy","А":"Acy","б":"bcy","Б":"Bcy","в":"vcy","В":"Vcy","г":"gcy","Г":"Gcy","ѓ":"gjcy","Ѓ":"GJcy","д":"dcy","Д":"Dcy","ђ":"djcy","Ђ":"DJcy","е":"iecy","Е":"IEcy","ё":"iocy","Ё":"IOcy","є":"jukcy","Є":"Jukcy","ж":"zhcy","Ж":"ZHcy","з":"zcy","З":"Zcy","ѕ":"dscy","Ѕ":"DScy","и":"icy","И":"Icy","і":"iukcy","І":"Iukcy","ї":"yicy","Ї":"YIcy","й":"jcy","Й":"Jcy","ј":"jsercy","Ј":"Jsercy","к":"kcy","К":"Kcy","ќ":"kjcy","Ќ":"KJcy","л":"lcy","Л":"Lcy","љ":"ljcy","Љ":"LJcy","м":"mcy","М":"Mcy","н":"ncy","Н":"Ncy","њ":"njcy","Њ":"NJcy","о":"ocy","О":"Ocy","п":"pcy","П":"Pcy","р":"rcy","Р":"Rcy","с":"scy","С":"Scy","т":"tcy","Т":"Tcy","ћ":"tshcy","Ћ":"TSHcy","у":"ucy","У":"Ucy","ў":"ubrcy","Ў":"Ubrcy","ф":"fcy","Ф":"Fcy","х":"khcy","Х":"KHcy","ц":"tscy","Ц":"TScy","ч":"chcy","Ч":"CHcy","џ":"dzcy","Џ":"DZcy","ш":"shcy","Ш":"SHcy","щ":"shchcy","Щ":"SHCHcy","ъ":"hardcy","Ъ":"HARDcy","ы":"ycy","Ы":"Ycy","ь":"softcy","Ь":"SOFTcy","э":"ecy","Э":"Ecy","ю":"yucy","Ю":"YUcy","я":"yacy","Я":"YAcy","ℵ":"aleph","ℶ":"beth","ℷ":"gimel","ℸ":"daleth"},h=/["&'<>`]/g,d={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},g=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,f=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,m=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,b={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},v={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},y={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},w=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],q=String.fromCharCode,D={}.hasOwnProperty,x=function(r,e){return D.call(r,e)},k=function(r,e){if(!r)return e;var t,a={};for(t in e)a[t]=x(r,t)?r[t]:e[t];return a},A=function(r,e){var t="";return r>=55296&&r<=57343||r>1114111?(e&&C("character reference outside the permissible Unicode range"),"�"):x(y,r)?(e&&C("disallowed character reference"),y[r]):(e&&function(r,e){for(var t=-1,a=r.length;++t65535&&(t+=q((r-=65536)>>>10&1023|55296),r=56320|1023&r),t+=q(r))},E=function(r){return"&#x"+r.toString(16).toUpperCase()+";"},L=function(r){return"&#"+r+";"},C=function(r){throw Error("Parse error: "+r)},S=function(r,e){(e=k(e,S.options)).strict&&f.test(r)&&C("forbidden code point");var t=e.encodeEverything,a=e.useNamedReferences,s=e.allowUnsafeSymbols,i=e.decimal?L:E,o=function(r){return i(r.charCodeAt(0))};return t?(r=r.replace(l,(function(r){return a&&x(p,r)?"&"+p[r]+";":o(r)})),a&&(r=r.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),a&&(r=r.replace(u,(function(r){return"&"+p[r]+";"})))):a?(s||(r=r.replace(h,(function(r){return"&"+p[r]+";"}))),r=(r=r.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(u,(function(r){return"&"+p[r]+";"}))):s||(r=r.replace(h,o)),r.replace(n,(function(r){var e=r.charCodeAt(0),t=r.charCodeAt(1);return i(1024*(e-55296)+t-56320+65536)})).replace(c,o)};S.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var T=function(r,e){var t=(e=k(e,T.options)).strict;return t&&g.test(r)&&C("malformed character reference"),r.replace(m,(function(r,a,s,i,o,n,l,c,u){var p,h,d,g,f,m;return a?b[f=a]:s?(f=s,(m=i)&&e.isAttributeValue?(t&&"="==m&&C("`&` did not start a character reference"),r):(t&&C("named character reference was not terminated by a semicolon"),v[f]+(m||""))):o?(d=o,h=n,t&&!h&&C("character reference was not terminated by a semicolon"),p=parseInt(d,10),A(p,t)):l?(g=l,h=c,t&&!h&&C("character reference was not terminated by a semicolon"),p=parseInt(g,16),A(p,t)):(t&&C("named character reference was not terminated by a semicolon"),r)}))};T.options={isAttributeValue:!1,strict:!1};var B={version:"1.2.0",encode:S,decode:T,escape:function(r){return r.replace(h,(function(r){return d[r]}))},unescape:T};void 0===(a=function(){return B}.call(e,t,e,r))||(r.exports=a)}()}).call(this,t(70)(r))},303:function(r,e,t){"use strict";t(278)},304:function(r,e,t){"use strict";t(279)},305:function(r,e,t){"use strict";t(280)},306:function(r,e,t){"use strict";t(281)},307:function(r,e,t){"use strict";t(283)},308:function(r,e,t){var a=t(24),s=t(10),i=t(21);r.exports=function(r){return"string"==typeof r||!s(r)&&i(r)&&"[object String]"==a(r)}},309:function(r,e,t){"use strict";t(284)},310:function(r,e,t){"use strict";t(285)},311:function(r,e,t){"use strict";t(286)},312:function(r,e,t){"use strict";t(287)},313:function(r,e,t){"use strict";t(288)},331:function(r,e,t){"use strict";t.r(e);var a=t(71),s={name:"Home",components:{NavLink:a.a},computed:{data(){return this.$page.frontmatter},actionLink(){return{link:this.data.actionLink,text:this.data.actionText}}}},i=(t(299),t(7)),o=Object(i.a)(s,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("main",{staticClass:"home",attrs:{"aria-labelledby":null!==r.data.heroText?"main-title":null}},[t("header",{staticClass:"hero"},[r.data.heroImage?t("img",{attrs:{src:r.$withBase(r.data.heroImage),alt:r.data.heroAlt||"hero"}}):r._e(),r._v(" "),null!==r.data.heroText?t("h1",{attrs:{id:"main-title"}},[r._v("\n "+r._s(r.data.heroText||r.$title||"Hello")+"\n ")]):r._e(),r._v(" "),null!==r.data.tagline?t("p",{staticClass:"description"},[r._v("\n "+r._s(r.data.tagline||r.$description||"Welcome to your VuePress site")+"\n ")]):r._e(),r._v(" "),r.data.actionText&&r.data.actionLink?t("p",{staticClass:"action"},[t("NavLink",{staticClass:"action-button",attrs:{item:r.actionLink}})],1):r._e()]),r._v(" "),r.data.features&&r.data.features.length?t("div",{staticClass:"features"},r._l(r.data.features,(function(e,a){return t("div",{key:a,staticClass:"feature"},[t("h2",[r._v(r._s(e.title))]),r._v(" "),t("p",[r._v(r._s(e.details))])])})),0):r._e(),r._v(" "),t("Content",{staticClass:"theme-default-content custom"}),r._v(" "),r.data.footer?t("div",{staticClass:"footer"},[r._v("\n "+r._s(r.data.footer)+"\n ")]):r._e()],1)}),[],!1,null,null,null).exports,n=t(300),l=t.n(n),c=t(301),u={data:()=>({query:"",focused:!1,focusIndex:0,placeholder:void 0,index:null}),mounted(){this.placeholder=this.$site.themeConfig.searchPlaceholder||"",document.addEventListener("keydown",this.onHotkey),this.setupFlexSearch()},beforeDestroy(){document.removeEventListener("keydown",this.onHotkey)},computed:{showSuggestions(){return this.focused&&this.suggestions&&this.suggestions.length},suggestions(){const r=this.query.trim().toLowerCase();if(!r)return;return this.index.search(r,10).map(r=>({...r,title:this.getSuggestionTitle(r),text:this.getSuggestionText(r)}))},alignRight(){return(this.$site.themeConfig.nav||[]).length+(this.$site.repo?1:0)<=2}},methods:{getPageLocalePath(r){for(const e in this.$site.locales||{})if("/"!==e&&0===r.path.indexOf(e))return e;return"/"},isSearchable(r){let e=null;return null===e||(e=Array.isArray(e)?e:new Array(e),e.filter(e=>r.path.match(e)).length>0)},onHotkey(r){r.srcElement===document.body&&"s".includes(r.key)&&(this.$refs.input.focus(),r.preventDefault())},onUp(){this.showSuggestions&&(this.focusIndex>0?this.focusIndex--:this.focusIndex=this.suggestions.length-1)},onDown(){this.showSuggestions&&(this.focusIndex15&&(s-=15,i=".. ");const o=r.content.substr(s,60);return i+Object(c.highlightText)(o,this.query)}}},p=(t(303),Object(i.a)(u,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("div",{staticClass:"search-box"},[t("input",{ref:"input",class:{focused:r.focused},attrs:{"aria-label":"Search",placeholder:r.placeholder,autocomplete:"off",spellcheck:"false"},domProps:{value:r.query},on:{input:function(e){r.query=e.target.value},focus:function(e){r.focused=!0},blur:function(e){r.focused=!1},keyup:[function(e){return!e.type.indexOf("key")&&r._k(e.keyCode,"enter",13,e.key,"Enter")?null:r.go(r.focusIndex)},function(e){return!e.type.indexOf("key")&&r._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:r.onUp(e)},function(e){return!e.type.indexOf("key")&&r._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:r.onDown(e)}]}}),r._v(" "),r.showSuggestions?t("ul",{staticClass:"suggestions",class:{"align-right":r.alignRight},on:{mouseleave:r.unfocus}},r._l(r.suggestions,(function(e,a){return t("li",{key:a,staticClass:"suggestion",class:{focused:a===r.focusIndex},on:{mousedown:function(e){return r.go(a)},mouseenter:function(e){return r.focus(a)}}},[t("a",{attrs:{href:e.regularPath},on:{click:function(r){r.preventDefault()}}},[t("span",{staticClass:"suggestion__title",domProps:{innerHTML:r._s(e.title||e.regularPath)}}),r._v(" "),t("span",{staticClass:"suggestion__result",domProps:{innerHTML:r._s(e.text)}})])])})),0):r._e()])}),[],!1,null,null,null).exports),h=(t(304),Object(i.a)({},(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("div",{staticClass:"sidebar-button",on:{click:function(e){return r.$emit("toggle-sidebar")}}},[t("svg",{staticClass:"icon",attrs:{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",viewBox:"0 0 448 512"}},[t("path",{attrs:{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"}})])])}),[],!1,null,null,null).exports),d=(t(15),t(121)),g=t(20),f={name:"NavLinks",components:{NavLink:a.a,DropdownLink:d.a},computed:{userNav(){return this.$themeLocaleConfig.nav||this.$site.themeConfig.nav||[]},nav(){const{locales:r}=this.$site;if(r&&Object.keys(r).length>1){const e=this.$page.path,t=this.$router.options.routes,a=this.$site.themeConfig.locales||{},s={text:this.$themeLocaleConfig.selectText||"Languages",ariaLabel:this.$themeLocaleConfig.ariaLabel||"Select language",items:Object.keys(r).map(s=>{const i=r[s],o=a[s]&&a[s].label||i.lang;let n;return i.lang===this.$lang?n=e:(n=e.replace(this.$localeConfig.path,s),t.some(r=>r.path===n)||(n=s)),{text:o,link:n}})};return[...this.userNav,s]}return this.userNav},userLinks(){return(this.nav||[]).map(r=>Object.assign(Object(g.j)(r),{items:(r.items||[]).map(g.j)}))},repoLink(){const{repo:r}=this.$site.themeConfig;return r?/^https?:/.test(r)?r:"https://github.com/"+r:null},repoLabel(){if(!this.repoLink)return;if(this.$site.themeConfig.repoLabel)return this.$site.themeConfig.repoLabel;const r=this.repoLink.match(/^https?:\/\/[^/]+/)[0],e=["GitHub","GitLab","Bitbucket"];for(let t=0;t({linksWrapMaxWidth:null}),computed:{algolia(){return this.$themeLocaleConfig.algolia||this.$site.themeConfig.algolia||{}},isAlgoliaSearch(){return this.algolia&&this.algolia.apiKey&&this.algolia.indexName}},mounted(){const r=parseInt(b(this.$el,"paddingLeft"))+parseInt(b(this.$el,"paddingRight")),e=()=>{document.documentElement.clientWidth<719?this.linksWrapMaxWidth=null:this.linksWrapMaxWidth=this.$el.offsetWidth-r-(this.$refs.siteName&&this.$refs.siteName.offsetWidth||0)};e(),window.addEventListener("resize",e,!1)}},y=(t(306),Object(i.a)(v,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("header",{staticClass:"navbar"},[t("SidebarButton",{on:{"toggle-sidebar":function(e){return r.$emit("toggle-sidebar")}}}),r._v(" "),t("RouterLink",{staticClass:"home-link",attrs:{to:r.$localePath}},[r.$site.themeConfig.logo?t("img",{staticClass:"logo",attrs:{src:r.$withBase(r.$site.themeConfig.logo),alt:r.$siteTitle}}):r._e(),r._v(" "),r.$siteTitle?t("span",{ref:"siteName",staticClass:"site-name",class:{"can-hide":r.$site.themeConfig.logo}},[r._v(r._s(r.$siteTitle))]):r._e()]),r._v(" "),t("div",{staticClass:"links",style:r.linksWrapMaxWidth?{"max-width":r.linksWrapMaxWidth+"px"}:{}},[r.isAlgoliaSearch?t("AlgoliaSearchBox",{attrs:{options:r.algolia}}):!1!==r.$site.themeConfig.search&&!1!==r.$page.frontmatter.search?t("SearchBox"):r._e(),r._v(" "),t("NavLinks",{staticClass:"can-hide"})],1)],1)}),[],!1,null,null,null).exports),w=t(282),q=t.n(w),D={name:"PageEdit",computed:{lastUpdated(){return this.$page.lastUpdated},lastUpdatedText(){return"string"==typeof this.$themeLocaleConfig.lastUpdated?this.$themeLocaleConfig.lastUpdated:"string"==typeof this.$site.themeConfig.lastUpdated?this.$site.themeConfig.lastUpdated:"Last Updated"},editLink(){const r=q()(this.$page.frontmatter.editLink)?this.$site.themeConfig.editLinks:this.$page.frontmatter.editLink,{repo:e,docsDir:t="",docsBranch:a="master",docsRepo:s=e}=this.$site.themeConfig;return r&&s&&this.$page.relativePath?this.createEditLink(e,s,t,a,this.$page.relativePath):null},editLinkText(){return this.$themeLocaleConfig.editLinkText||this.$site.themeConfig.editLinkText||"Edit this page"}},methods:{createEditLink(r,e,t,a,s){if(/bitbucket.org/.test(e)){return e.replace(g.a,"")+"/src"+`/${a}/`+(t?t.replace(g.a,"")+"/":"")+s+`?mode=edit&spa=0&at=${a}&fileviewer=file-view-default`}if(/gitlab.com/.test(e)){return e.replace(g.a,"")+"/-/edit"+`/${a}/`+(t?t.replace(g.a,"")+"/":"")+s}return(g.i.test(e)?e:"https://github.com/"+e).replace(g.a,"")+"/edit"+`/${a}/`+(t?t.replace(g.a,"")+"/":"")+s}}},x=(t(307),Object(i.a)(D,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("footer",{staticClass:"page-edit"},[r.editLink?t("div",{staticClass:"edit-link"},[t("a",{attrs:{href:r.editLink,target:"_blank",rel:"noopener noreferrer"}},[r._v(r._s(r.editLinkText))]),r._v(" "),t("OutboundLink")],1):r._e(),r._v(" "),r.lastUpdated?t("div",{staticClass:"last-updated"},[t("span",{staticClass:"prefix"},[r._v(r._s(r.lastUpdatedText)+":")]),r._v(" "),t("span",{staticClass:"time"},[r._v(r._s(r.lastUpdated))])]):r._e()])}),[],!1,null,null,null).exports),k=t(308),A=t.n(k),E={name:"PageNav",props:["sidebarItems"],computed:{prev(){return C(L.PREV,this)},next(){return C(L.NEXT,this)}}};const L={NEXT:{resolveLink:function(r,e){return S(r,e,1)},getThemeLinkConfig:({nextLinks:r})=>r,getPageLinkConfig:({frontmatter:r})=>r.next},PREV:{resolveLink:function(r,e){return S(r,e,-1)},getThemeLinkConfig:({prevLinks:r})=>r,getPageLinkConfig:({frontmatter:r})=>r.prev}};function C(r,{$themeConfig:e,$page:t,$route:a,$site:s,sidebarItems:i}){const{resolveLink:o,getThemeLinkConfig:n,getPageLinkConfig:l}=r,c=n(e),u=l(t),p=q()(u)?c:u;return!1===p?void 0:A()(p)?Object(g.k)(s.pages,p,a.path):o(t,i)}function S(r,e,t){const a=[];!function r(e,t){for(let a=0,s=e.length;a({isSidebarOpen:!1}),computed:{shouldShowNavbar(){const{themeConfig:r}=this.$site,{frontmatter:e}=this.$page;return!1!==e.navbar&&!1!==r.navbar&&(this.$title||r.logo||r.repo||r.nav||this.$themeLocaleConfig.nav)},shouldShowSidebar(){const{frontmatter:r}=this.$page;return!r.home&&!1!==r.sidebar&&this.sidebarItems.length},sidebarItems(){return Object(g.l)(this.$page,this.$page.regularPath,this.$site,this.$localePath)},pageClasses(){const r=this.$page.frontmatter.pageClass;return[{"no-navbar":!this.shouldShowNavbar,"sidebar-open":this.isSidebarOpen,"no-sidebar":!this.shouldShowSidebar},r]}},mounted(){this.$router.afterEach(()=>{this.isSidebarOpen=!1})},methods:{toggleSidebar(r){this.isSidebarOpen="boolean"==typeof r?r:!this.isSidebarOpen,this.$emit("toggle-sidebar",this.isSidebarOpen)},onTouchStart(r){this.touchStart={x:r.changedTouches[0].clientX,y:r.changedTouches[0].clientY}},onTouchEnd(r){const e=r.changedTouches[0].clientX-this.touchStart.x,t=r.changedTouches[0].clientY-this.touchStart.y;Math.abs(e)>Math.abs(t)&&Math.abs(e)>40&&(e>0&&this.touchStart.x<=80?this.toggleSidebar(!0):this.toggleSidebar(!1))}}}),F=Object(i.a)(U,(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("div",{staticClass:"theme-container",class:r.pageClasses,on:{touchstart:r.onTouchStart,touchend:r.onTouchEnd}},[r.shouldShowNavbar?t("Navbar",{on:{"toggle-sidebar":r.toggleSidebar}}):r._e(),r._v(" "),t("div",{staticClass:"sidebar-mask",on:{click:function(e){return r.toggleSidebar(!1)}}}),r._v(" "),t("Sidebar",{attrs:{items:r.sidebarItems},on:{"toggle-sidebar":r.toggleSidebar},scopedSlots:r._u([{key:"top",fn:function(){return[r._t("sidebar-top")]},proxy:!0},{key:"bottom",fn:function(){return[r._t("sidebar-bottom")]},proxy:!0}],null,!0)}),r._v(" "),r.$page.frontmatter.home?t("Home"):t("Page",{attrs:{"sidebar-items":r.sidebarItems},scopedSlots:r._u([{key:"top",fn:function(){return[r._t("page-top")]},proxy:!0},{key:"bottom",fn:function(){return[r._t("page-bottom")]},proxy:!0}],null,!0)})],1)}),[],!1,null,null,null);e.default=F.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/20.e03c9894.js b/docs/3.1.0/assets/js/20.e03c9894.js deleted file mode 100644 index 2d5c69690e..0000000000 --- a/docs/3.1.0/assets/js/20.e03c9894.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{347:function(e,t,r){"use strict";r.r(t);var s=r(7),a=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"enumeration-updatemodeenum"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#enumeration-updatemodeenum"}},[e._v("#")]),e._v(" Enumeration: UpdateModeEnum")]),e._v(" "),r("h2",{attrs:{id:"enumeration-members"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#enumeration-members"}},[e._v("#")]),e._v(" Enumeration members")]),e._v(" "),r("h3",{attrs:{id:"active"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[e._v("#")]),e._v(" active")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("active")]),e._v(': = "active"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L522",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:522"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"hide"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hide"}},[e._v("#")]),e._v(" hide")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("hide")]),e._v(': = "hide"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L519",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:519"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"none"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#none"}},[e._v("#")]),e._v(" none")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("none")]),e._v(': = "none"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L518",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:518"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"normal"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normal"}},[e._v("#")]),e._v(" normal")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("normal")]),e._v(': = "normal"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L521",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:521"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"reset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[e._v("#")]),e._v(" reset")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("reset")]),e._v(': = "reset"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L517",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:517"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"resize"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#resize"}},[e._v("#")]),e._v(" resize")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("resize")]),e._v(': = "resize"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L516",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:516"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"show"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#show"}},[e._v("#")]),e._v(" show")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("show")]),e._v(': = "show"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L520",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:520"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/20.e8fa3191.js b/docs/3.1.0/assets/js/20.e8fa3191.js new file mode 100644 index 0000000000..006dd122bf --- /dev/null +++ b/docs/3.1.0/assets/js/20.e8fa3191.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{344:function(e,t,r){"use strict";r.r(t);var s=r(7),n=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"enumeration-updatemodeenum"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#enumeration-updatemodeenum"}},[e._v("#")]),e._v(" Enumeration: UpdateModeEnum")]),e._v(" "),r("h2",{attrs:{id:"enumeration-members"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#enumeration-members"}},[e._v("#")]),e._v(" Enumeration members")]),e._v(" "),r("h3",{attrs:{id:"active"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[e._v("#")]),e._v(" active")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("active")]),e._v(': = "active"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L522",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:522"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"hide"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hide"}},[e._v("#")]),e._v(" hide")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("hide")]),e._v(': = "hide"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L519",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:519"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"none"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#none"}},[e._v("#")]),e._v(" none")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("none")]),e._v(': = "none"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L518",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:518"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"normal"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normal"}},[e._v("#")]),e._v(" normal")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("normal")]),e._v(': = "normal"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L521",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:521"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"reset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[e._v("#")]),e._v(" reset")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("reset")]),e._v(': = "reset"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L517",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:517"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"resize"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#resize"}},[e._v("#")]),e._v(" resize")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("resize")]),e._v(': = "resize"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L516",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:516"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"show"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#show"}},[e._v("#")]),e._v(" show")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("show")]),e._v(': = "show"')]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L520",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:520"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/200.cdef2d1f.js b/docs/3.1.0/assets/js/200.1b76db29.js similarity index 96% rename from docs/3.1.0/assets/js/200.cdef2d1f.js rename to docs/3.1.0/assets/js/200.1b76db29.js index 1f3e874ed4..c858cee7c9 100644 --- a/docs/3.1.0/assets/js/200.cdef2d1f.js +++ b/docs/3.1.0/assets/js/200.1b76db29.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[200],{526:function(n,t,e){"use strict";e.r(t);var o=e(7),s=Object(o.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"point-style"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#point-style"}},[this._v("#")]),this._v(" Point Style")]),this._v(" "),t("p",[this._v("This sample show how to use the dataset point style in the legend instead of a rectangle to identify each dataset..")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Toggle Point Style',\n handler(chart) {\n chart.options.plugins.legend.labels.usePointStyle = !chart.options.plugins.legend.labels.usePointStyle;\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n borderWidth: 1,\n pointStyle: 'rectRot',\n pointRadius: 5,\n pointBorderColor: 'rgb(0, 0, 0)'\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n legend: {\n labels: {\n usePointStyle: true,\n },\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[200],{525:function(n,t,e){"use strict";e.r(t);var o=e(7),s=Object(o.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"point-style"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#point-style"}},[this._v("#")]),this._v(" Point Style")]),this._v(" "),t("p",[this._v("This sample show how to use the dataset point style in the legend instead of a rectangle to identify each dataset..")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Toggle Point Style',\n handler(chart) {\n chart.options.plugins.legend.labels.usePointStyle = !chart.options.plugins.legend.labels.usePointStyle;\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n borderWidth: 1,\n pointStyle: 'rectRot',\n pointRadius: 5,\n pointBorderColor: 'rgb(0, 0, 0)'\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n legend: {\n labels: {\n usePointStyle: true,\n },\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/201.6ec123cc.js b/docs/3.1.0/assets/js/201.1f3b8d0d.js similarity index 96% rename from docs/3.1.0/assets/js/201.6ec123cc.js rename to docs/3.1.0/assets/js/201.1f3b8d0d.js index c027caf138..e92a70a9e7 100644 --- a/docs/3.1.0/assets/js/201.6ec123cc.js +++ b/docs/3.1.0/assets/js/201.1f3b8d0d.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[201],{527:function(n,t,o){"use strict";o.r(t);var s=o(7),i=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"position"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[this._v("#")]),this._v(" Position")]),this._v(" "),t("p",[this._v("This sample show how to change the position of the chart legend.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Position: top',\n handler(chart) {\n chart.options.plugins.legend.position = 'top';\n chart.update();\n }\n },\n {\n name: 'Position: right',\n handler(chart) {\n chart.options.plugins.legend.position = 'right';\n chart.update();\n }\n },\n {\n name: 'Position: bottom',\n handler(chart) {\n chart.options.plugins.legend.position = 'bottom';\n chart.update();\n }\n },\n {\n name: 'Position: left',\n handler(chart) {\n chart.options.plugins.legend.position = 'left';\n chart.update();\n }\n },\n];\n// \n\n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[201],{526:function(n,t,o){"use strict";o.r(t);var s=o(7),i=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"position"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[this._v("#")]),this._v(" Position")]),this._v(" "),t("p",[this._v("This sample show how to change the position of the chart legend.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Position: top',\n handler(chart) {\n chart.options.plugins.legend.position = 'top';\n chart.update();\n }\n },\n {\n name: 'Position: right',\n handler(chart) {\n chart.options.plugins.legend.position = 'right';\n chart.update();\n }\n },\n {\n name: 'Position: bottom',\n handler(chart) {\n chart.options.plugins.legend.position = 'bottom';\n chart.update();\n }\n },\n {\n name: 'Position: left',\n handler(chart) {\n chart.options.plugins.legend.position = 'left';\n chart.update();\n }\n },\n];\n// \n\n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/202.cff3c7fd.js b/docs/3.1.0/assets/js/202.da641c48.js similarity index 97% rename from docs/3.1.0/assets/js/202.cff3c7fd.js rename to docs/3.1.0/assets/js/202.da641c48.js index 9fe69831b6..8239757ae5 100644 --- a/docs/3.1.0/assets/js/202.cff3c7fd.js +++ b/docs/3.1.0/assets/js/202.da641c48.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[202],{528:function(n,t,e){"use strict";e.r(t);var i=e(7),o=Object(i.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"alignment-and-title-position"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#alignment-and-title-position"}},[this._v("#")]),this._v(" Alignment and Title Position")]),this._v(" "),t("p",[this._v("This sample show how to configure the alignment and title position of the chart legend.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Title Position: start',\n handler(chart) {\n chart.options.plugins.legend.align = 'start';\n chart.options.plugins.legend.title.position = 'start';\n chart.update();\n }\n },\n {\n name: 'Title Position: center (default)',\n handler(chart) {\n chart.options.plugins.legend.align = 'center';\n chart.options.plugins.legend.title.position = 'center';\n chart.update();\n }\n },\n {\n name: 'Title Position: end',\n handler(chart) {\n chart.options.plugins.legend.align = 'end';\n chart.options.plugins.legend.title.position = 'end';\n chart.update();\n }\n },\n];\n// \n\n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n legend: {\n title: {\n display: true,\n text: 'Legend Title',\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[202],{527:function(n,t,e){"use strict";e.r(t);var i=e(7),o=Object(i.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"alignment-and-title-position"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#alignment-and-title-position"}},[this._v("#")]),this._v(" Alignment and Title Position")]),this._v(" "),t("p",[this._v("This sample show how to configure the alignment and title position of the chart legend.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Title Position: start',\n handler(chart) {\n chart.options.plugins.legend.align = 'start';\n chart.options.plugins.legend.title.position = 'start';\n chart.update();\n }\n },\n {\n name: 'Title Position: center (default)',\n handler(chart) {\n chart.options.plugins.legend.align = 'center';\n chart.options.plugins.legend.title.position = 'center';\n chart.update();\n }\n },\n {\n name: 'Title Position: end',\n handler(chart) {\n chart.options.plugins.legend.align = 'end';\n chart.options.plugins.legend.title.position = 'end';\n chart.update();\n }\n },\n];\n// \n\n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n legend: {\n title: {\n display: true,\n text: 'Legend Title',\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/203.3716f7c5.js b/docs/3.1.0/assets/js/203.58eb5db9.js similarity index 96% rename from docs/3.1.0/assets/js/203.3716f7c5.js rename to docs/3.1.0/assets/js/203.58eb5db9.js index 02294ce66d..76fd66cf91 100644 --- a/docs/3.1.0/assets/js/203.3716f7c5.js +++ b/docs/3.1.0/assets/js/203.58eb5db9.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[203],{529:function(n,t,e){"use strict";e.r(t);var o=e(7),i=Object(o.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"interpolation-modes"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interpolation-modes"}},[this._v("#")]),this._v(" Interpolation Modes")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 12;\nconst labels = [];\nfor (let i = 0; i < DATA_COUNT; ++i) {\n labels.push(i.toString());\n}\nconst datapoints = [0, 20, 20, 60, 60, 120, NaN, 180, 120, 125, 105, 110, 170];\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Cubic interpolation (monotone)',\n data: datapoints,\n borderColor: Utils.CHART_COLORS.red,\n fill: false,\n cubicInterpolationMode: 'monotone',\n tension: 0.4\n }, {\n label: 'Cubic interpolation',\n data: datapoints,\n borderColor: Utils.CHART_COLORS.blue,\n fill: false,\n tension: 0.4\n }, {\n label: 'Linear interpolation (default)',\n data: datapoints,\n borderColor: Utils.CHART_COLORS.green,\n fill: false\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Line Chart - Cubic interpolation mode'\n },\n },\n interaction: {\n intersect: false,\n },\n scales: {\n x: {\n display: true,\n title: {\n display: true\n }\n },\n y: {\n display: true,\n title: {\n display: true,\n text: 'Value'\n },\n suggestedMin: -10,\n suggestedMax: 200\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[203],{528:function(n,t,e){"use strict";e.r(t);var o=e(7),i=Object(o.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"interpolation-modes"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interpolation-modes"}},[this._v("#")]),this._v(" Interpolation Modes")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 12;\nconst labels = [];\nfor (let i = 0; i < DATA_COUNT; ++i) {\n labels.push(i.toString());\n}\nconst datapoints = [0, 20, 20, 60, 60, 120, NaN, 180, 120, 125, 105, 110, 170];\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Cubic interpolation (monotone)',\n data: datapoints,\n borderColor: Utils.CHART_COLORS.red,\n fill: false,\n cubicInterpolationMode: 'monotone',\n tension: 0.4\n }, {\n label: 'Cubic interpolation',\n data: datapoints,\n borderColor: Utils.CHART_COLORS.blue,\n fill: false,\n tension: 0.4\n }, {\n label: 'Linear interpolation (default)',\n data: datapoints,\n borderColor: Utils.CHART_COLORS.green,\n fill: false\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Line Chart - Cubic interpolation mode'\n },\n },\n interaction: {\n intersect: false,\n },\n scales: {\n x: {\n display: true,\n title: {\n display: true\n }\n },\n y: {\n display: true,\n title: {\n display: true,\n text: 'Value'\n },\n suggestedMin: -10,\n suggestedMax: 200\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/204.aaabe7cd.js b/docs/3.1.0/assets/js/204.d13f1881.js similarity index 97% rename from docs/3.1.0/assets/js/204.aaabe7cd.js rename to docs/3.1.0/assets/js/204.d13f1881.js index 3964af8ff0..eea915caf0 100644 --- a/docs/3.1.0/assets/js/204.aaabe7cd.js +++ b/docs/3.1.0/assets/js/204.d13f1881.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[204],{530:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-chart"}},[this._v("#")]),this._v(" Line Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Line Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[204],{529:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-chart"}},[this._v("#")]),this._v(" Line Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Line Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/205.74645c9f.js b/docs/3.1.0/assets/js/205.471d40f8.js similarity index 97% rename from docs/3.1.0/assets/js/205.74645c9f.js rename to docs/3.1.0/assets/js/205.471d40f8.js index 9e6872144a..ff82e8b15d 100644 --- a/docs/3.1.0/assets/js/205.74645c9f.js +++ b/docs/3.1.0/assets/js/205.471d40f8.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[205],{531:function(n,t,a){"use strict";a.r(t);var s=a(7),e=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"multi-axis-line-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#multi-axis-line-chart"}},[this._v("#")]),this._v(" Multi Axis Line Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n yAxisID: 'y',\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n yAxisID: 'y1',\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n interaction: {\n mode: 'index',\n intersect: false,\n },\n stacked: false,\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Line Chart - Multi Axis'\n }\n },\n scales: {\n y: {\n type: 'linear',\n display: true,\n position: 'left',\n },\n y1: {\n type: 'linear',\n display: true,\n position: 'right',\n\n // grid line settings\n grid: {\n drawOnChartArea: false, // only want the grid lines for one axis to show up\n },\n },\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[205],{530:function(n,t,a){"use strict";a.r(t);var s=a(7),e=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"multi-axis-line-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#multi-axis-line-chart"}},[this._v("#")]),this._v(" Multi Axis Line Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n yAxisID: 'y',\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n yAxisID: 'y1',\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n interaction: {\n mode: 'index',\n intersect: false,\n },\n stacked: false,\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Line Chart - Multi Axis'\n }\n },\n scales: {\n y: {\n type: 'linear',\n display: true,\n position: 'left',\n },\n y1: {\n type: 'linear',\n display: true,\n position: 'right',\n\n // grid line settings\n grid: {\n drawOnChartArea: false, // only want the grid lines for one axis to show up\n },\n },\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/206.df707f94.js b/docs/3.1.0/assets/js/206.9d293c71.js similarity index 95% rename from docs/3.1.0/assets/js/206.df707f94.js rename to docs/3.1.0/assets/js/206.9d293c71.js index aadda123a5..cf43cf788a 100644 --- a/docs/3.1.0/assets/js/206.df707f94.js +++ b/docs/3.1.0/assets/js/206.9d293c71.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[206],{533:function(n,t,e){"use strict";e.r(t);var s=e(7),i=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-segment-styling"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-segment-styling"}},[this._v("#")]),this._v(" Line Segment Styling")]),this._v(" "),t("chart-editor",{attrs:{code:"\n// \nconst skipped = (ctx, value) => ctx.p0.skip || ctx.p1.skip ? value : undefined;\nconst down = (ctx, value) => ctx.p0.parsed.y > ctx.p1.parsed.y ? value : undefined;\n// \n\n// \nconst genericOptions = {\n fill: false,\n interaction: {\n intersect: false\n },\n radius: 0,\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: {\n labels: Utils.months({count: 7}),\n datasets: [{\n label: 'My First Dataset',\n data: [65, 59, NaN, 48, 56, 57, 40],\n borderColor: 'rgb(75, 192, 192)',\n segment: {\n borderColor: ctx => skipped(ctx, 'rgb(0,0,0,0.2)') || down(ctx, 'rgb(192,75,75)'),\n borderDash: ctx => skipped(ctx, [6, 6]),\n }\n }]\n },\n options: genericOptions\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[206],{531:function(n,t,e){"use strict";e.r(t);var s=e(7),i=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-segment-styling"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-segment-styling"}},[this._v("#")]),this._v(" Line Segment Styling")]),this._v(" "),t("chart-editor",{attrs:{code:"\n// \nconst skipped = (ctx, value) => ctx.p0.skip || ctx.p1.skip ? value : undefined;\nconst down = (ctx, value) => ctx.p0.parsed.y > ctx.p1.parsed.y ? value : undefined;\n// \n\n// \nconst genericOptions = {\n fill: false,\n interaction: {\n intersect: false\n },\n radius: 0,\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: {\n labels: Utils.months({count: 7}),\n datasets: [{\n label: 'My First Dataset',\n data: [65, 59, NaN, 48, 56, 57, 40],\n borderColor: 'rgb(75, 192, 192)',\n segment: {\n borderColor: ctx => skipped(ctx, 'rgb(0,0,0,0.2)') || down(ctx, 'rgb(192,75,75)'),\n borderDash: ctx => skipped(ctx, [6, 6]),\n }\n }]\n },\n options: genericOptions\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/207.5e69c18f.js b/docs/3.1.0/assets/js/207.8219847c.js similarity index 100% rename from docs/3.1.0/assets/js/207.5e69c18f.js rename to docs/3.1.0/assets/js/207.8219847c.js diff --git a/docs/3.1.0/assets/js/208.a901b32b.js b/docs/3.1.0/assets/js/208.7b13d4e9.js similarity index 96% rename from docs/3.1.0/assets/js/208.a901b32b.js rename to docs/3.1.0/assets/js/208.7b13d4e9.js index 641160e60b..3ab9f767c1 100644 --- a/docs/3.1.0/assets/js/208.a901b32b.js +++ b/docs/3.1.0/assets/js/208.7b13d4e9.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[208],{534:function(n,t,e){"use strict";e.r(t);var l=e(7),s=Object(l.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-styling"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-styling"}},[this._v("#")]),this._v(" Line Styling")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: DATA_COUNT});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Unfilled',\n fill: false,\n backgroundColor: Utils.CHART_COLORS.blue,\n borderColor: Utils.CHART_COLORS.blue,\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dashed',\n fill: false,\n backgroundColor: Utils.CHART_COLORS.green,\n borderColor: Utils.CHART_COLORS.green,\n borderDash: [5, 5],\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Filled',\n backgroundColor: Utils.CHART_COLORS.red,\n borderColor: Utils.CHART_COLORS.red,\n data: Utils.numbers(NUMBER_CFG),\n fill: true,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Line Chart'\n },\n },\n interaction: {\n mode: 'index',\n intersect: false\n },\n scales: {\n x: {\n display: true,\n title: {\n display: true,\n text: 'Month'\n }\n },\n y: {\n display: true,\n title: {\n display: true,\n text: 'Value'\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[208],{533:function(n,t,e){"use strict";e.r(t);var l=e(7),s=Object(l.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-styling"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-styling"}},[this._v("#")]),this._v(" Line Styling")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: DATA_COUNT});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Unfilled',\n fill: false,\n backgroundColor: Utils.CHART_COLORS.blue,\n borderColor: Utils.CHART_COLORS.blue,\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dashed',\n fill: false,\n backgroundColor: Utils.CHART_COLORS.green,\n borderColor: Utils.CHART_COLORS.green,\n borderDash: [5, 5],\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Filled',\n backgroundColor: Utils.CHART_COLORS.red,\n borderColor: Utils.CHART_COLORS.red,\n data: Utils.numbers(NUMBER_CFG),\n fill: true,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Line Chart'\n },\n },\n interaction: {\n mode: 'index',\n intersect: false\n },\n scales: {\n x: {\n display: true,\n title: {\n display: true,\n text: 'Month'\n }\n },\n y: {\n display: true,\n title: {\n display: true,\n text: 'Value'\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/209.d4796577.js b/docs/3.1.0/assets/js/209.28467871.js similarity index 97% rename from docs/3.1.0/assets/js/209.d4796577.js rename to docs/3.1.0/assets/js/209.28467871.js index 36491444f8..d384491198 100644 --- a/docs/3.1.0/assets/js/209.d4796577.js +++ b/docs/3.1.0/assets/js/209.28467871.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[209],{535:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"bubble"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bubble"}},[this._v("#")]),this._v(" Bubble")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.bubbles({count: chart.data.labels.length, rmin: 5, rmax: 15, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.bubbles({count: data.labels.length, rmin: 5, rmax: 15, min: 0, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.bubbles({count: 1, rmin: 5, rmax: 15, min: 0, max: 100})[0]);\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, rmin: 5, rmax: 15, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.orange,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'bubble',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Bubble Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[209],{534:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"bubble"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bubble"}},[this._v("#")]),this._v(" Bubble")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.bubbles({count: chart.data.labels.length, rmin: 5, rmax: 15, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.bubbles({count: data.labels.length, rmin: 5, rmax: 15, min: 0, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.bubbles({count: 1, rmin: 5, rmax: 15, min: 0, max: 100})[0]);\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, rmin: 5, rmax: 15, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.orange,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'bubble',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Bubble Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/21.ea4083d6.js b/docs/3.1.0/assets/js/21.ea4083d6.js deleted file mode 100644 index 2130ac923a..0000000000 --- a/docs/3.1.0/assets/js/21.ea4083d6.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{348:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-activedatapoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-activedatapoint"}},[t._v("#")]),t._v(" Interface: ActiveDataPoint")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("ActiveDataPoint")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"datasetindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[t._v("#")]),t._v(" datasetIndex")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L427",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:427"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"index"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("index")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L428",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:428"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/21.fee6e631.js b/docs/3.1.0/assets/js/21.fee6e631.js new file mode 100644 index 0000000000..d0442f93ec --- /dev/null +++ b/docs/3.1.0/assets/js/21.fee6e631.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{345:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-activedatapoint"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-activedatapoint"}},[t._v("#")]),t._v(" Interface: ActiveDataPoint")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("strong",[t._v("ActiveDataPoint")])]),t._v(" "),r("p",[t._v("↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[r("em",[t._v("ActiveElement")])])],1)])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"datasetindex"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[t._v("#")]),t._v(" datasetIndex")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("datasetIndex")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L427",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:427"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"index"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("index")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L428",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:428"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/210.a6fc9055.js b/docs/3.1.0/assets/js/210.53598657.js similarity index 97% rename from docs/3.1.0/assets/js/210.a6fc9055.js rename to docs/3.1.0/assets/js/210.53598657.js index 1891c42fc1..4f04d47d70 100644 --- a/docs/3.1.0/assets/js/210.a6fc9055.js +++ b/docs/3.1.0/assets/js/210.53598657.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[210],{536:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"combo-bar-line"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#combo-bar-line"}},[this._v("#")]),this._v(" Combo bar/line")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n borderWidth: 1,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n order: 1\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n type: 'line',\n order: 0\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Combined Line/Bar Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[210],{535:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"combo-bar-line"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#combo-bar-line"}},[this._v("#")]),this._v(" Combo bar/line")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n borderWidth: 1,\n data: Utils.numbers({count: data.labels.length, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(-100, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n order: 1\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n type: 'line',\n order: 0\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'bar',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Combined Line/Bar Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/211.628fa940.js b/docs/3.1.0/assets/js/211.d9c2da28.js similarity index 97% rename from docs/3.1.0/assets/js/211.628fa940.js rename to docs/3.1.0/assets/js/211.d9c2da28.js index beb2be2271..a621cf400f 100644 --- a/docs/3.1.0/assets/js/211.628fa940.js +++ b/docs/3.1.0/assets/js/211.d9c2da28.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[211],{537:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"doughnut"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#doughnut"}},[this._v("#")]),this._v(" Doughnut")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: [],\n data: [],\n };\n\n for (let i = 0; i < data.labels.length; i++) {\n newDataset.data.push(Utils.numbers({count: 1, min: 0, max: 100}));\n\n const colorIndex = i % Object.keys(Utils.CHART_COLORS).length;\n newDataset.backgroundColor.push(Object.values(Utils.CHART_COLORS)[colorIndex]);\n }\n\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels.push('data #' + (data.labels.length + 1));\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(0, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 5;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst data = {\n labels: ['Red', 'Orange', 'Yellow', 'Green', 'Blue'],\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Object.values(Utils.CHART_COLORS),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'doughnut',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Doughnut Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[211],{536:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"doughnut"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#doughnut"}},[this._v("#")]),this._v(" Doughnut")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: [],\n data: [],\n };\n\n for (let i = 0; i < data.labels.length; i++) {\n newDataset.data.push(Utils.numbers({count: 1, min: 0, max: 100}));\n\n const colorIndex = i % Object.keys(Utils.CHART_COLORS).length;\n newDataset.backgroundColor.push(Object.values(Utils.CHART_COLORS)[colorIndex]);\n }\n\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels.push('data #' + (data.labels.length + 1));\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(0, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 5;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst data = {\n labels: ['Red', 'Orange', 'Yellow', 'Green', 'Blue'],\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Object.values(Utils.CHART_COLORS),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'doughnut',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Doughnut Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/212.396efa31.js b/docs/3.1.0/assets/js/212.2e9df0fb.js similarity index 98% rename from docs/3.1.0/assets/js/212.396efa31.js rename to docs/3.1.0/assets/js/212.2e9df0fb.js index 38be46ef98..09da2c9f10 100644 --- a/docs/3.1.0/assets/js/212.396efa31.js +++ b/docs/3.1.0/assets/js/212.2e9df0fb.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[212],{538:function(n,e,t){"use strict";t.r(e);var a=t(7),l=Object(a.a)({},(function(){var n=this.$createElement,e=this._self._c||n;return e("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[e("h1",{attrs:{id:"multi-series-pie"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#multi-series-pie"}},[this._v("#")]),this._v(" Multi Series Pie")]),this._v(" "),e("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 5;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: ['Overall Yay', 'Overall Nay', 'Group A Yay', 'Group A Nay', 'Group B Yay', 'Group B Nay', 'Group C Yay', 'Group C Nay'],\n datasets: [\n {\n backgroundColor: ['#AAA', '#777'],\n data: [21, 79]\n },\n {\n backgroundColor: ['hsl(0, 100%, 60%)', 'hsl(0, 100%, 35%)'],\n data: [33, 67]\n },\n {\n backgroundColor: ['hsl(100, 100%, 60%)', 'hsl(100, 100%, 35%)'],\n data: [20, 80]\n },\n {\n backgroundColor: ['hsl(180, 100%, 60%)', 'hsl(180, 100%, 35%)'],\n data: [10, 90]\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'pie',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n labels: {\n generateLabels: function(chart) {\n // Get the default label list\n const original = Chart.overrides.pie.plugins.legend.labels.generateLabels;\n const labelsOriginal = original.call(this, chart);\n\n // Build an array of colors used in the datasets of the chart\n var datasetColors = chart.data.datasets.map(function(e) {\n return e.backgroundColor;\n });\n datasetColors = datasetColors.flat();\n\n // Modify the color and hide state of each label\n labelsOriginal.forEach(label => {\n // There are twice as many labels as there are datasets. This converts the label index into the corresponding dataset index\n label.datasetIndex = (label.index - label.index % 2) / 2;\n\n // The hidden state must match the dataset's hidden state\n label.hidden = !chart.isDatasetVisible(label.datasetIndex);\n\n // Change the color to match the dataset\n label.fillStyle = datasetColors[label.index];\n });\n\n return labelsOriginal;\n }\n },\n onClick: function(mouseEvent, legendItem, legend) {\n // toggle the visibility of the dataset from what it currently is\n legend.chart.getDatasetMeta(\n legendItem.datasetIndex\n ).hidden = legend.chart.isDatasetVisible(legendItem.datasetIndex);\n legend.chart.update();\n }\n },\n tooltip: {\n callbacks: {\n label: function(context) {\n const labelIndex = (context.datasetIndex * 2) + context.dataIndex;\n return context.chart.data.labels[labelIndex] + ': ' + context.formattedValue;\n }\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);e.default=l.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[212],{537:function(n,e,t){"use strict";t.r(e);var a=t(7),l=Object(a.a)({},(function(){var n=this.$createElement,e=this._self._c||n;return e("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[e("h1",{attrs:{id:"multi-series-pie"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#multi-series-pie"}},[this._v("#")]),this._v(" Multi Series Pie")]),this._v(" "),e("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 5;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: ['Overall Yay', 'Overall Nay', 'Group A Yay', 'Group A Nay', 'Group B Yay', 'Group B Nay', 'Group C Yay', 'Group C Nay'],\n datasets: [\n {\n backgroundColor: ['#AAA', '#777'],\n data: [21, 79]\n },\n {\n backgroundColor: ['hsl(0, 100%, 60%)', 'hsl(0, 100%, 35%)'],\n data: [33, 67]\n },\n {\n backgroundColor: ['hsl(100, 100%, 60%)', 'hsl(100, 100%, 35%)'],\n data: [20, 80]\n },\n {\n backgroundColor: ['hsl(180, 100%, 60%)', 'hsl(180, 100%, 35%)'],\n data: [10, 90]\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'pie',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n labels: {\n generateLabels: function(chart) {\n // Get the default label list\n const original = Chart.overrides.pie.plugins.legend.labels.generateLabels;\n const labelsOriginal = original.call(this, chart);\n\n // Build an array of colors used in the datasets of the chart\n var datasetColors = chart.data.datasets.map(function(e) {\n return e.backgroundColor;\n });\n datasetColors = datasetColors.flat();\n\n // Modify the color and hide state of each label\n labelsOriginal.forEach(label => {\n // There are twice as many labels as there are datasets. This converts the label index into the corresponding dataset index\n label.datasetIndex = (label.index - label.index % 2) / 2;\n\n // The hidden state must match the dataset's hidden state\n label.hidden = !chart.isDatasetVisible(label.datasetIndex);\n\n // Change the color to match the dataset\n label.fillStyle = datasetColors[label.index];\n });\n\n return labelsOriginal;\n }\n },\n onClick: function(mouseEvent, legendItem, legend) {\n // toggle the visibility of the dataset from what it currently is\n legend.chart.getDatasetMeta(\n legendItem.datasetIndex\n ).hidden = legend.chart.isDatasetVisible(legendItem.datasetIndex);\n legend.chart.update();\n }\n },\n tooltip: {\n callbacks: {\n label: function(context) {\n const labelIndex = (context.datasetIndex * 2) + context.dataIndex;\n return context.chart.data.labels[labelIndex] + ': ' + context.formattedValue;\n }\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);e.default=l.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/213.e5cbe7f9.js b/docs/3.1.0/assets/js/213.016ba575.js similarity index 97% rename from docs/3.1.0/assets/js/213.e5cbe7f9.js rename to docs/3.1.0/assets/js/213.016ba575.js index 8ec3fb46b2..46911fc850 100644 --- a/docs/3.1.0/assets/js/213.e5cbe7f9.js +++ b/docs/3.1.0/assets/js/213.016ba575.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[213],{539:function(n,a,t){"use strict";t.r(a);var e=t(7),s=Object(e.a)({},(function(){var n=this.$createElement,a=this._self._c||n;return a("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[a("h1",{attrs:{id:"pie"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pie"}},[this._v("#")]),this._v(" Pie")]),this._v(" "),a("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: [],\n data: [],\n };\n\n for (let i = 0; i < data.labels.length; i++) {\n newDataset.data.push(Utils.numbers({count: 1, min: 0, max: 100}));\n\n const colorIndex = i % Object.keys(Utils.CHART_COLORS).length;\n newDataset.backgroundColor.push(Object.values(Utils.CHART_COLORS)[colorIndex]);\n }\n\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels.push('data #' + (data.labels.length + 1));\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(0, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 5;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst data = {\n labels: ['Red', 'Orange', 'Yellow', 'Green', 'Blue'],\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Object.values(Utils.CHART_COLORS),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'pie',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Pie Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);a.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[213],{538:function(n,a,t){"use strict";t.r(a);var e=t(7),s=Object(e.a)({},(function(){var n=this.$createElement,a=this._self._c||n;return a("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[a("h1",{attrs:{id:"pie"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pie"}},[this._v("#")]),this._v(" Pie")]),this._v(" "),a("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: [],\n data: [],\n };\n\n for (let i = 0; i < data.labels.length; i++) {\n newDataset.data.push(Utils.numbers({count: 1, min: 0, max: 100}));\n\n const colorIndex = i % Object.keys(Utils.CHART_COLORS).length;\n newDataset.backgroundColor.push(Object.values(Utils.CHART_COLORS)[colorIndex]);\n }\n\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels.push('data #' + (data.labels.length + 1));\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(0, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 5;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst data = {\n labels: ['Red', 'Orange', 'Yellow', 'Green', 'Blue'],\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: Object.values(Utils.CHART_COLORS),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'pie',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Pie Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);a.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/214.79aef690.js b/docs/3.1.0/assets/js/214.9581b08a.js similarity index 97% rename from docs/3.1.0/assets/js/214.79aef690.js rename to docs/3.1.0/assets/js/214.9581b08a.js index 5fea9a39a6..09aa8a4280 100644 --- a/docs/3.1.0/assets/js/214.79aef690.js +++ b/docs/3.1.0/assets/js/214.9581b08a.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[214],{541:function(n,a,t){"use strict";t.r(a);var e=t(7),s=Object(e.a)({},(function(){var n=this.$createElement,a=this._self._c||n;return a("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[a("h1",{attrs:{id:"polar-area"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#polar-area"}},[this._v("#")]),this._v(" Polar area")]),this._v(" "),a("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels.push('data #' + (data.labels.length + 1));\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(0, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 5;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = ['Red', 'Orange', 'Yellow', 'Green', 'Blue'];\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: [\n Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n Utils.transparentize(Utils.CHART_COLORS.orange, 0.5),\n Utils.transparentize(Utils.CHART_COLORS.yellow, 0.5),\n Utils.transparentize(Utils.CHART_COLORS.green, 0.5),\n Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n ]\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'polarArea',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Polar Area Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);a.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[214],{539:function(n,a,t){"use strict";t.r(a);var e=t(7),s=Object(e.a)({},(function(){var n=this.$createElement,a=this._self._c||n;return a("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[a("h1",{attrs:{id:"polar-area"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#polar-area"}},[this._v("#")]),this._v(" Polar area")]),this._v(" "),a("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels.push('data #' + (data.labels.length + 1));\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(0, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 5;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = ['Red', 'Orange', 'Yellow', 'Green', 'Blue'];\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n backgroundColor: [\n Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n Utils.transparentize(Utils.CHART_COLORS.orange, 0.5),\n Utils.transparentize(Utils.CHART_COLORS.yellow, 0.5),\n Utils.transparentize(Utils.CHART_COLORS.green, 0.5),\n Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n ]\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'polarArea',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Polar Area Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);a.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/215.7a6e4bab.js b/docs/3.1.0/assets/js/215.903d226f.js similarity index 100% rename from docs/3.1.0/assets/js/215.7a6e4bab.js rename to docs/3.1.0/assets/js/215.903d226f.js diff --git a/docs/3.1.0/assets/js/216.4415816e.js b/docs/3.1.0/assets/js/216.35952ef4.js similarity index 97% rename from docs/3.1.0/assets/js/216.4415816e.js rename to docs/3.1.0/assets/js/216.35952ef4.js index 66401f7428..ff6f477075 100644 --- a/docs/3.1.0/assets/js/216.4415816e.js +++ b/docs/3.1.0/assets/js/216.35952ef4.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[216],{542:function(a,n,t){"use strict";t.r(n);var e=t(7),s=Object(e.a)({},(function(){var a=this.$createElement,n=this._self._c||a;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"radar"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#radar"}},[this._v("#")]),this._v(" Radar")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.numbers({count: data.labels.length, min: 0, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(0, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Radar Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[216],{541:function(a,n,t){"use strict";t.r(n);var e=t(7),s=Object(e.a)({},(function(){var a=this.$createElement,n=this._self._c||a;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"radar"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#radar"}},[this._v("#")]),this._v(" Radar")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.numbers({count: data.labels.length, min: 0, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(0, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'radar',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Radar Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/217.9d8991ac.js b/docs/3.1.0/assets/js/217.9d5607f9.js similarity index 98% rename from docs/3.1.0/assets/js/217.9d8991ac.js rename to docs/3.1.0/assets/js/217.9d5607f9.js index 61dc3436eb..af2a2fb4e9 100644 --- a/docs/3.1.0/assets/js/217.9d8991ac.js +++ b/docs/3.1.0/assets/js/217.9d5607f9.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[217],{543:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"scatter-multi-axis"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#scatter-multi-axis"}},[this._v("#")]),this._v(" Scatter - Multi axis")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.bubbles({count: chart.data.labels.length, rmin: 1, rmax: 1, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.bubbles({count: data.labels.length, rmin: 1, rmax: 1, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.bubbles({count: 1, rmin: 1, rmax: 1, min: -100, max: 100})[0]);\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, rmin: 1, rmax: 1, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n yAxisID: 'y',\n },\n {\n label: 'Dataset 2',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.orange,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange, 0.5),\n yAxisID: 'y2',\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Scatter Multi Axis Chart'\n }\n },\n scales: {\n y: {\n type: 'linear', // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance\n position: 'left',\n ticks: {\n color: Utils.CHART_COLORS.red\n }\n },\n y2: {\n type: 'linear', // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance\n position: 'right',\n reverse: true,\n ticks: {\n color: Utils.CHART_COLORS.blue\n },\n grid: {\n drawOnChartArea: false // only want the grid lines for one axis to show up\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[217],{542:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"scatter-multi-axis"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#scatter-multi-axis"}},[this._v("#")]),this._v(" Scatter - Multi axis")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.bubbles({count: chart.data.labels.length, rmin: 1, rmax: 1, min: -100, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.bubbles({count: data.labels.length, rmin: 1, rmax: 1, min: -100, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.bubbles({count: 1, rmin: 1, rmax: 1, min: -100, max: 100})[0]);\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, rmin: 1, rmax: 1, min: -100, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n yAxisID: 'y',\n },\n {\n label: 'Dataset 2',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.orange,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange, 0.5),\n yAxisID: 'y2',\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Scatter Multi Axis Chart'\n }\n },\n scales: {\n y: {\n type: 'linear', // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance\n position: 'left',\n ticks: {\n color: Utils.CHART_COLORS.red\n }\n },\n y2: {\n type: 'linear', // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance\n position: 'right',\n reverse: true,\n ticks: {\n color: Utils.CHART_COLORS.blue\n },\n grid: {\n drawOnChartArea: false // only want the grid lines for one axis to show up\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/218.e898fcfc.js b/docs/3.1.0/assets/js/218.d6c62cbb.js similarity index 97% rename from docs/3.1.0/assets/js/218.e898fcfc.js rename to docs/3.1.0/assets/js/218.d6c62cbb.js index 267d3e73f4..eccb345b79 100644 --- a/docs/3.1.0/assets/js/218.e898fcfc.js +++ b/docs/3.1.0/assets/js/218.d6c62cbb.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[218],{544:function(t,n,a){"use strict";a.r(n);var e=a(7),s=Object(e.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"scatter"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#scatter"}},[this._v("#")]),this._v(" Scatter")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.bubbles({count: chart.data.labels.length, rmin: 1, rmax: 1, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.bubbles({count: data.labels.length, rmin: 1, rmax: 1, min: 0, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.bubbles({count: 1, rmin: 1, rmax: 1, min: 0, max: 100})[0]);\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, rmin: 1, rmax: 1, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.orange,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Scatter Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[218],{543:function(t,n,a){"use strict";a.r(n);var e=a(7),s=Object(e.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"scatter"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#scatter"}},[this._v("#")]),this._v(" Scatter")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.bubbles({count: chart.data.labels.length, rmin: 1, rmax: 1, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n data: Utils.bubbles({count: data.labels.length, rmin: 1, rmax: 1, min: 0, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.bubbles({count: 1, rmin: 1, rmax: 1, min: 0, max: 100})[0]);\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, rmin: 1, rmax: 1, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.bubbles(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.orange,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.orange, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n responsive: true,\n plugins: {\n legend: {\n position: 'top',\n },\n title: {\n display: true,\n text: 'Chart.js Scatter Chart'\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/219.6b713d5d.js b/docs/3.1.0/assets/js/219.fffb530f.js similarity index 98% rename from docs/3.1.0/assets/js/219.6b713d5d.js rename to docs/3.1.0/assets/js/219.fffb530f.js index 636274c3c2..36d9728d6b 100644 --- a/docs/3.1.0/assets/js/219.6b713d5d.js +++ b/docs/3.1.0/assets/js/219.fffb530f.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[219],{545:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"stacked-bar-line"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#stacked-bar-line"}},[this._v("#")]),this._v(" Stacked bar/line")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n borderWidth: 1,\n stack: 'combined',\n data: Utils.numbers({count: data.labels.length, min: 0, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(0, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n stack: 'combined',\n type: 'bar'\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n stack: 'combined'\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Stacked Line/Bar Chart'\n }\n },\n scales: {\n y: {\n stacked: true\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[219],{544:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"stacked-bar-line"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#stacked-bar-line"}},[this._v("#")]),this._v(" Stacked bar/line")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: Utils.transparentize(dsColor, 0.5),\n borderColor: dsColor,\n borderWidth: 1,\n stack: 'combined',\n data: Utils.numbers({count: data.labels.length, min: 0, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(0, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n stack: 'combined',\n type: 'bar'\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n stack: 'combined'\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Stacked Line/Bar Chart'\n }\n },\n scales: {\n y: {\n stacked: true\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/22.5703057f.js b/docs/3.1.0/assets/js/22.5703057f.js new file mode 100644 index 0000000000..c2f5320d6f --- /dev/null +++ b/docs/3.1.0/assets/js/22.5703057f.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{346:function(t,e,a){"use strict";a.r(e);var r=a(7),n=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-activeelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-activeelement"}},[t._v("#")]),t._v(" Interface: ActiveElement")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[a("em",[t._v("ActiveDataPoint")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("ActiveElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"datasetindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[t._v("#")]),t._v(" datasetIndex")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[t._v("ActiveDataPoint")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html#datasetindex"}},[t._v("datasetIndex")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L427",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:427"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"element"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#element"}},[t._v("#")]),t._v(" element")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L432",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:432"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"index"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("index")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[t._v("ActiveDataPoint")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html#index"}},[t._v("index")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L428",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:428"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/22.75ef9757.js b/docs/3.1.0/assets/js/22.75ef9757.js deleted file mode 100644 index 0b194e7290..0000000000 --- a/docs/3.1.0/assets/js/22.75ef9757.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{349:function(t,e,a){"use strict";a.r(e);var r=a(7),n=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-activeelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-activeelement"}},[t._v("#")]),t._v(" Interface: ActiveElement")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[a("em",[t._v("ActiveDataPoint")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("ActiveElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"datasetindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[t._v("#")]),t._v(" datasetIndex")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[t._v("ActiveDataPoint")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html#datasetindex"}},[t._v("datasetIndex")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L427",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:427"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"element"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#element"}},[t._v("#")]),t._v(" element")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L432",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:432"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"index"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("index")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[t._v("ActiveDataPoint")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html#index"}},[t._v("index")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L428",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:428"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/220.f648efee.js b/docs/3.1.0/assets/js/220.6fcc9be7.js similarity index 97% rename from docs/3.1.0/assets/js/220.f648efee.js rename to docs/3.1.0/assets/js/220.6fcc9be7.js index 6f11afec07..cdb9eece13 100644 --- a/docs/3.1.0/assets/js/220.f648efee.js +++ b/docs/3.1.0/assets/js/220.6fcc9be7.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[220],{546:function(n,t,s){"use strict";s.r(t);var o=s(7),e=Object(o.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"center-positioning"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#center-positioning"}},[this._v("#")]),this._v(" Center Positioning")]),this._v(" "),t("p",[this._v("This sample show how to place the axis in the center of the chart area, instead of at the edges.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Default Positions',\n handler(chart) {\n chart.options.scales.x.position = 'bottom';\n chart.options.scales.y.position = 'left';\n chart.update();\n }\n },\n {\n name: 'Position: center',\n handler(chart) {\n chart.options.scales.x.position = 'center';\n chart.options.scales.y.position = 'center';\n chart.update();\n }\n },\n {\n name: 'Position: Vertical: x=-60, Horizontal: y=30',\n handler(chart) {\n chart.options.scales.x.position = {y: 30};\n chart.options.scales.y.position = {x: -60};\n chart.update();\n }\n },\n];\n// \n\n\n// \nconst DATA_COUNT = 6;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.points(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.points(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Axis Center Positioning'\n }\n },\n scales: {\n x: {\n min: -100,\n max: 100,\n },\n y: {\n min: -100,\n max: 100,\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[220],{545:function(n,t,s){"use strict";s.r(t);var o=s(7),e=Object(o.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"center-positioning"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#center-positioning"}},[this._v("#")]),this._v(" Center Positioning")]),this._v(" "),t("p",[this._v("This sample show how to place the axis in the center of the chart area, instead of at the edges.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Default Positions',\n handler(chart) {\n chart.options.scales.x.position = 'bottom';\n chart.options.scales.y.position = 'left';\n chart.update();\n }\n },\n {\n name: 'Position: center',\n handler(chart) {\n chart.options.scales.x.position = 'center';\n chart.options.scales.y.position = 'center';\n chart.update();\n }\n },\n {\n name: 'Position: Vertical: x=-60, Horizontal: y=30',\n handler(chart) {\n chart.options.scales.x.position = {y: 30};\n chart.options.scales.y.position = {x: -60};\n chart.update();\n }\n },\n];\n// \n\n\n// \nconst DATA_COUNT = 6;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.points(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.points(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'scatter',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Axis Center Positioning'\n }\n },\n scales: {\n x: {\n min: -100,\n max: 100,\n },\n y: {\n min: -100,\n max: 100,\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/221.a7c256ad.js b/docs/3.1.0/assets/js/221.0badbc01.js similarity index 97% rename from docs/3.1.0/assets/js/221.a7c256ad.js rename to docs/3.1.0/assets/js/221.0badbc01.js index 688aa49fd0..7961b67343 100644 --- a/docs/3.1.0/assets/js/221.a7c256ad.js +++ b/docs/3.1.0/assets/js/221.0badbc01.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[221],{547:function(n,t,e){"use strict";e.r(t);var a=e(7),s=Object(a.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"grid-configuration"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#grid-configuration"}},[this._v("#")]),this._v(" Grid Configuration")]),this._v(" "),t("p",[this._v("This sample shows how to use scriptable grid options for an axis to control styling. In this case, the Y axis grid lines are colored based on their value. In addition, booleans are provided to toggle different parts of the X axis grid visibility.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: [10, 30, 39, 20, 25, 34, -10],\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: [18, 33, 22, 19, 11, -39, 30],\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \n// Change these settings to change the display for different parts of the X axis\n// grid configuiration\nconst DISPLAY = true;\nconst BORDER = true;\nconst CHART_AREA = true;\nconst TICKS = true;\n\nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Grid Line Settings'\n }\n },\n scales: {\n x: {\n grid: {\n display: DISPLAY,\n drawBorder: BORDER,\n drawOnChartArea: CHART_AREA,\n drawTicks: TICKS,\n }\n },\n y: {\n grid: {\n drawBorder: false,\n color: function(context) {\n if (context.tick.value > 0) {\n return Utils.CHART_COLORS.green;\n } else if (context.tick.value < 0) {\n return Utils.CHART_COLORS.red;\n }\n\n return '#000000';\n },\n },\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[221],{546:function(n,t,e){"use strict";e.r(t);var a=e(7),s=Object(a.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"grid-configuration"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#grid-configuration"}},[this._v("#")]),this._v(" Grid Configuration")]),this._v(" "),t("p",[this._v("This sample shows how to use scriptable grid options for an axis to control styling. In this case, the Y axis grid lines are colored based on their value. In addition, booleans are provided to toggle different parts of the X axis grid visibility.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: -100, max: 100});\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: [10, 30, 39, 20, 25, 34, -10],\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: [18, 33, 22, 19, 11, -39, 30],\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \n// Change these settings to change the display for different parts of the X axis\n// grid configuiration\nconst DISPLAY = true;\nconst BORDER = true;\nconst CHART_AREA = true;\nconst TICKS = true;\n\nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Grid Line Settings'\n }\n },\n scales: {\n x: {\n grid: {\n display: DISPLAY,\n drawBorder: BORDER,\n drawOnChartArea: CHART_AREA,\n drawTicks: TICKS,\n }\n },\n y: {\n grid: {\n drawBorder: false,\n color: function(context) {\n if (context.tick.value > 0) {\n return Utils.CHART_COLORS.green;\n } else if (context.tick.value < 0) {\n return Utils.CHART_COLORS.red;\n }\n\n return '#000000';\n },\n },\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/222.8dc45fcf.js b/docs/3.1.0/assets/js/222.d26db47d.js similarity index 100% rename from docs/3.1.0/assets/js/222.8dc45fcf.js rename to docs/3.1.0/assets/js/222.d26db47d.js diff --git a/docs/3.1.0/assets/js/223.0046eb65.js b/docs/3.1.0/assets/js/223.97b2025d.js similarity index 97% rename from docs/3.1.0/assets/js/223.0046eb65.js rename to docs/3.1.0/assets/js/223.97b2025d.js index 1877f3d23c..dfa0420cd4 100644 --- a/docs/3.1.0/assets/js/223.0046eb65.js +++ b/docs/3.1.0/assets/js/223.97b2025d.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[223],{549:function(n,t,e){"use strict";e.r(t);var o=e(7),i=Object(o.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"title-configuration"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#title-configuration"}},[this._v("#")]),this._v(" Title Configuration")]),this._v(" "),t("p",[this._v("This sample shows how to configure the title of an axis including alignment, font, and color.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n scales: {\n x: {\n display: true,\n title: {\n display: true,\n text: 'Month',\n color: '#911',\n font: {\n family: 'Comic Sans MS',\n size: 20,\n weight: 'bold',\n lineHeight: 1.2,\n },\n padding: {top: 20, left: 0, right: 0, bottom: 0}\n }\n },\n y: {\n display: true,\n title: {\n display: true,\n text: 'Value',\n color: '#191',\n font: {\n family: 'Times',\n size: 20,\n style: 'normal',\n lineHeight: 1.2\n },\n padding: {top: 30, left: 0, right: 0, bottom: 0}\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[223],{547:function(n,t,e){"use strict";e.r(t);var o=e(7),i=Object(o.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"title-configuration"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#title-configuration"}},[this._v("#")]),this._v(" Title Configuration")]),this._v(" "),t("p",[this._v("This sample shows how to configure the title of an axis including alignment, font, and color.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n scales: {\n x: {\n display: true,\n title: {\n display: true,\n text: 'Month',\n color: '#911',\n font: {\n family: 'Comic Sans MS',\n size: 20,\n weight: 'bold',\n lineHeight: 1.2,\n },\n padding: {top: 20, left: 0, right: 0, bottom: 0}\n }\n },\n y: {\n display: true,\n title: {\n display: true,\n text: 'Value',\n color: '#191',\n font: {\n family: 'Times',\n size: 20,\n style: 'normal',\n lineHeight: 1.2\n },\n padding: {top: 30, left: 0, right: 0, bottom: 0}\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/224.ba6b9714.js b/docs/3.1.0/assets/js/224.5757c412.js similarity index 96% rename from docs/3.1.0/assets/js/224.ba6b9714.js rename to docs/3.1.0/assets/js/224.5757c412.js index b96887875a..3b632997a3 100644 --- a/docs/3.1.0/assets/js/224.ba6b9714.js +++ b/docs/3.1.0/assets/js/224.5757c412.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[224],{550:function(n,t,e){"use strict";e.r(t);var s=e(7),a=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"linear-scale-suggested-min-max"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#linear-scale-suggested-min-max"}},[this._v("#")]),this._v(" Linear Scale - Suggested Min-Max")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: [10, 30, 39, 20, 25, 34, -10],\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.CHART_COLORS.red,\n },\n {\n label: 'Dataset 2',\n data: [18, 33, 22, 19, 11, 39, 30],\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.CHART_COLORS.blue,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Suggested Min and Max Settings'\n }\n },\n scales: {\n y: {\n // the data minimum used for determining the ticks is Math.min(dataMin, suggestedMin)\n suggestedMin: 30,\n\n // the data maximum used for determining the ticks is Math.max(dataMax, suggestedMax)\n suggestedMax: 50,\n }\n }\n },\n};\n// \n\nmodule.exports = {\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[224],{549:function(n,t,e){"use strict";e.r(t);var s=e(7),a=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"linear-scale-suggested-min-max"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#linear-scale-suggested-min-max"}},[this._v("#")]),this._v(" Linear Scale - Suggested Min-Max")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: [10, 30, 39, 20, 25, 34, -10],\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.CHART_COLORS.red,\n },\n {\n label: 'Dataset 2',\n data: [18, 33, 22, 19, 11, 39, 30],\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.CHART_COLORS.blue,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Suggested Min and Max Settings'\n }\n },\n scales: {\n y: {\n // the data minimum used for determining the ticks is Math.min(dataMin, suggestedMin)\n suggestedMin: 30,\n\n // the data maximum used for determining the ticks is Math.max(dataMax, suggestedMax)\n suggestedMax: 50,\n }\n }\n },\n};\n// \n\nmodule.exports = {\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/225.47608bac.js b/docs/3.1.0/assets/js/225.4a17da2d.js similarity index 95% rename from docs/3.1.0/assets/js/225.47608bac.js rename to docs/3.1.0/assets/js/225.4a17da2d.js index 803af0e0fc..2e2eb7cc3a 100644 --- a/docs/3.1.0/assets/js/225.47608bac.js +++ b/docs/3.1.0/assets/js/225.4a17da2d.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[225],{551:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"linear-scale-min-max"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#linear-scale-min-max"}},[this._v("#")]),this._v(" Linear Scale - Min-Max")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: [10, 30, 50, 20, 25, 44, -10],\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.CHART_COLORS.red,\n },\n {\n label: 'Dataset 2',\n data: [100, 33, 22, 19, 11, 49, 30],\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.CHART_COLORS.blue,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Min and Max Settings'\n }\n },\n scales: {\n y: {\n min: 10,\n max: 50,\n }\n }\n },\n};\n// \n\nmodule.exports = {\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[225],{550:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"linear-scale-min-max"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#linear-scale-min-max"}},[this._v("#")]),this._v(" Linear Scale - Min-Max")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: [10, 30, 50, 20, 25, 44, -10],\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.CHART_COLORS.red,\n },\n {\n label: 'Dataset 2',\n data: [100, 33, 22, 19, 11, 49, 30],\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.CHART_COLORS.blue,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Min and Max Settings'\n }\n },\n scales: {\n y: {\n min: 10,\n max: 50,\n }\n }\n },\n};\n// \n\nmodule.exports = {\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/226.61d91c04.js b/docs/3.1.0/assets/js/226.9aa0a8fc.js similarity index 98% rename from docs/3.1.0/assets/js/226.61d91c04.js rename to docs/3.1.0/assets/js/226.9aa0a8fc.js index 2b2a16afc8..3e05540147 100644 --- a/docs/3.1.0/assets/js/226.61d91c04.js +++ b/docs/3.1.0/assets/js/226.9aa0a8fc.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[226],{552:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"linear-scale-step-size"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#linear-scale-step-size"}},[this._v("#")]),this._v(" Linear Scale - Step Size")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: dsColor,\n borderColor: dsColor,\n data: Utils.numbers({count: data.labels.length, min: 0, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(0, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.CHART_COLORS.red,\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.CHART_COLORS.blue,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n tooltip: {\n mode: 'index',\n intersect: false\n },\n title: {\n display: true,\n text: 'Chart.js Line Chart'\n }\n },\n hover: {\n mode: 'index',\n intersec: false\n },\n scales: {\n x: {\n title: {\n display: true,\n text: 'Month'\n }\n },\n y: {\n title: {\n display: true,\n text: 'Value'\n },\n min: 0,\n max: 100,\n ticks: {\n // forces step size to be 50 units\n stepSize: 50\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[226],{551:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"linear-scale-step-size"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#linear-scale-step-size"}},[this._v("#")]),this._v(" Linear Scale - Step Size")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n {\n name: 'Add Dataset',\n handler(chart) {\n const data = chart.data;\n const dsColor = Utils.namedColor(chart.data.datasets.length);\n const newDataset = {\n label: 'Dataset ' + (data.datasets.length + 1),\n backgroundColor: dsColor,\n borderColor: dsColor,\n data: Utils.numbers({count: data.labels.length, min: 0, max: 100}),\n };\n chart.data.datasets.push(newDataset);\n chart.update();\n }\n },\n {\n name: 'Add Data',\n handler(chart) {\n const data = chart.data;\n if (data.datasets.length > 0) {\n data.labels = Utils.months({count: data.labels.length + 1});\n\n for (var index = 0; index < data.datasets.length; ++index) {\n data.datasets[index].data.push(Utils.rand(0, 100));\n }\n\n chart.update();\n }\n }\n },\n {\n name: 'Remove Dataset',\n handler(chart) {\n chart.data.datasets.pop();\n chart.update();\n }\n },\n {\n name: 'Remove Data',\n handler(chart) {\n chart.data.labels.splice(-1, 1); // remove the label first\n\n chart.data.datasets.forEach(dataset => {\n dataset.data.pop();\n });\n\n chart.update();\n }\n }\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.CHART_COLORS.red,\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.CHART_COLORS.blue,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n tooltip: {\n mode: 'index',\n intersect: false\n },\n title: {\n display: true,\n text: 'Chart.js Line Chart'\n }\n },\n hover: {\n mode: 'index',\n intersec: false\n },\n scales: {\n x: {\n title: {\n display: true,\n text: 'Month'\n }\n },\n y: {\n title: {\n display: true,\n text: 'Value'\n },\n min: 0,\n max: 100,\n ticks: {\n // forces step size to be 50 units\n stepSize: 50\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/227.198c9166.js b/docs/3.1.0/assets/js/227.1ae5f133.js similarity index 96% rename from docs/3.1.0/assets/js/227.198c9166.js rename to docs/3.1.0/assets/js/227.1ae5f133.js index 8f30d5784c..283c8a33f4 100644 --- a/docs/3.1.0/assets/js/227.198c9166.js +++ b/docs/3.1.0/assets/js/227.1ae5f133.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[227],{553:function(n,t,a){"use strict";a.r(t);var s=a(7),e=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"log-scale"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#log-scale"}},[this._v("#")]),this._v(" Log Scale")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst logNumbers = (num) => {\n const data = [];\n\n for (let i = 0; i < num; ++i) {\n data.push(Math.ceil(Math.random() * 10.0) * Math.pow(10, Math.ceil(Math.random() * 5)));\n }\n\n return data;\n};\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = logNumbers(chart.data.labels.length);\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: logNumbers(DATA_COUNT),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.CHART_COLORS.red,\n fill: false,\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Line Chart - Logarithmic'\n }\n },\n scales: {\n x: {\n display: true,\n },\n y: {\n display: true,\n type: 'logarithmic',\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[227],{552:function(n,t,a){"use strict";a.r(t);var s=a(7),e=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"log-scale"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#log-scale"}},[this._v("#")]),this._v(" Log Scale")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst logNumbers = (num) => {\n const data = [];\n\n for (let i = 0; i < num; ++i) {\n data.push(Math.ceil(Math.random() * 10.0) * Math.pow(10, Math.ceil(Math.random() * 5)));\n }\n\n return data;\n};\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = logNumbers(chart.data.labels.length);\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = Utils.months({count: 7});\nconst data = {\n labels: labels,\n datasets: [\n {\n label: 'Dataset 1',\n data: logNumbers(DATA_COUNT),\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.CHART_COLORS.red,\n fill: false,\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n responsive: true,\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Line Chart - Logarithmic'\n }\n },\n scales: {\n x: {\n display: true,\n },\n y: {\n display: true,\n type: 'logarithmic',\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=e.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/228.b0349dda.js b/docs/3.1.0/assets/js/228.cc4dbf95.js similarity index 97% rename from docs/3.1.0/assets/js/228.b0349dda.js rename to docs/3.1.0/assets/js/228.cc4dbf95.js index 745eae9b9a..2e1b08a0f7 100644 --- a/docs/3.1.0/assets/js/228.b0349dda.js +++ b/docs/3.1.0/assets/js/228.cc4dbf95.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[228],{554:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"time-scale-combo-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#time-scale-combo-chart"}},[this._v("#")]),this._v(" Time Scale - Combo Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = [];\n\nfor (let i = 0; i < DATA_COUNT; ++i) {\n labels.push(Utils.newDate(i));\n}\n\nconst data = {\n labels: labels,\n datasets: [{\n type: 'bar',\n label: 'Dataset 1',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n borderColor: Utils.CHART_COLORS.red,\n data: Utils.numbers(NUMBER_CFG),\n }, {\n type: 'bar',\n label: 'Dataset 2',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n borderColor: Utils.CHART_COLORS.blue,\n data: Utils.numbers(NUMBER_CFG),\n }, {\n type: 'line',\n label: 'Dataset 3',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.green, 0.5),\n borderColor: Utils.CHART_COLORS.green,\n fill: false,\n data: Utils.numbers(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n title: {\n text: 'Chart.js Combo Time Scale',\n display: true\n }\n },\n scales: {\n x: {\n type: 'time',\n display: true,\n offset: true,\n time: {\n unit: 'day'\n }\n },\n },\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[228],{553:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"time-scale-combo-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#time-scale-combo-chart"}},[this._v("#")]),this._v(" Time Scale - Combo Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = Utils.numbers({count: chart.data.labels.length, min: 0, max: 100});\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst labels = [];\n\nfor (let i = 0; i < DATA_COUNT; ++i) {\n labels.push(Utils.newDate(i));\n}\n\nconst data = {\n labels: labels,\n datasets: [{\n type: 'bar',\n label: 'Dataset 1',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n borderColor: Utils.CHART_COLORS.red,\n data: Utils.numbers(NUMBER_CFG),\n }, {\n type: 'bar',\n label: 'Dataset 2',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n borderColor: Utils.CHART_COLORS.blue,\n data: Utils.numbers(NUMBER_CFG),\n }, {\n type: 'line',\n label: 'Dataset 3',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.green, 0.5),\n borderColor: Utils.CHART_COLORS.green,\n fill: false,\n data: Utils.numbers(NUMBER_CFG),\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n title: {\n text: 'Chart.js Combo Time Scale',\n display: true\n }\n },\n scales: {\n x: {\n type: 'time',\n display: true,\n offset: true,\n time: {\n unit: 'day'\n }\n },\n },\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/229.51ec6bd7.js b/docs/3.1.0/assets/js/229.251d8765.js similarity index 97% rename from docs/3.1.0/assets/js/229.51ec6bd7.js rename to docs/3.1.0/assets/js/229.251d8765.js index 4170182f9b..e856076698 100644 --- a/docs/3.1.0/assets/js/229.51ec6bd7.js +++ b/docs/3.1.0/assets/js/229.251d8765.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[229],{555:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"time-scale"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#time-scale"}},[this._v("#")]),this._v(" Time Scale")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data.forEach(function(dataObj, j) {\n const newVal = Utils.rand(0, 100);\n\n if (typeof dataObj === 'object') {\n dataObj.y = newVal;\n } else {\n dataset.data[j] = newVal;\n }\n });\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst data = {\n labels: [ // Date Objects\n Utils.newDate(0),\n Utils.newDate(1),\n Utils.newDate(2),\n Utils.newDate(3),\n Utils.newDate(4),\n Utils.newDate(5),\n Utils.newDate(6)\n ],\n datasets: [{\n label: 'My First dataset',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n borderColor: Utils.CHART_COLORS.red,\n fill: false,\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'My Second dataset',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n borderColor: Utils.CHART_COLORS.blue,\n fill: false,\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dataset with point data',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.green, 0.5),\n borderColor: Utils.CHART_COLORS.green,\n fill: false,\n data: [{\n x: Utils.newDateString(0),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(5),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(7),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(15),\n y: Utils.rand(0, 100)\n }],\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n title: {\n text: 'Chart.js Time Scale',\n display: true\n }\n },\n scales: {\n x: {\n type: 'time',\n time: {\n // Luxon format string\n tooltipFormat: 'DD T'\n },\n title: {\n display: true,\n text: 'Date'\n }\n },\n y: {\n title: {\n display: true,\n text: 'value'\n }\n }\n },\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[229],{560:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"time-scale"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#time-scale"}},[this._v("#")]),this._v(" Time Scale")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data.forEach(function(dataObj, j) {\n const newVal = Utils.rand(0, 100);\n\n if (typeof dataObj === 'object') {\n dataObj.y = newVal;\n } else {\n dataset.data[j] = newVal;\n }\n });\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: 0, max: 100};\n\nconst data = {\n labels: [ // Date Objects\n Utils.newDate(0),\n Utils.newDate(1),\n Utils.newDate(2),\n Utils.newDate(3),\n Utils.newDate(4),\n Utils.newDate(5),\n Utils.newDate(6)\n ],\n datasets: [{\n label: 'My First dataset',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n borderColor: Utils.CHART_COLORS.red,\n fill: false,\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'My Second dataset',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n borderColor: Utils.CHART_COLORS.blue,\n fill: false,\n data: Utils.numbers(NUMBER_CFG),\n }, {\n label: 'Dataset with point data',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.green, 0.5),\n borderColor: Utils.CHART_COLORS.green,\n fill: false,\n data: [{\n x: Utils.newDateString(0),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(5),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(7),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(15),\n y: Utils.rand(0, 100)\n }],\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n title: {\n text: 'Chart.js Time Scale',\n display: true\n }\n },\n scales: {\n x: {\n type: 'time',\n time: {\n // Luxon format string\n tooltipFormat: 'DD T'\n },\n title: {\n display: true,\n text: 'Date'\n }\n },\n y: {\n title: {\n display: true,\n text: 'value'\n }\n }\n },\n },\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/23.134ecae5.js b/docs/3.1.0/assets/js/23.134ecae5.js new file mode 100644 index 0000000000..c0e1f808c2 --- /dev/null +++ b/docs/3.1.0/assets/js/23.134ecae5.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{455:function(t,e,r){"use strict";r.r(e);var a=r(7),n=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-animationevent"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-animationevent"}},[t._v("#")]),t._v(" Interface: AnimationEvent")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"chart"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("chart")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:13"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"currentstate"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#currentstate"}},[t._v("#")]),t._v(" currentState")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("currentState")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L15",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:15"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"numsteps"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#numsteps"}},[t._v("#")]),t._v(" numSteps")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("numSteps")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/animation.d.ts#L14",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:14"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/23.f0778fc2.js b/docs/3.1.0/assets/js/23.f0778fc2.js deleted file mode 100644 index 4c6e14a379..0000000000 --- a/docs/3.1.0/assets/js/23.f0778fc2.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{350:function(t,e,a){"use strict";a.r(e);var r=a(7),n=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-animationevent"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-animationevent"}},[t._v("#")]),t._v(" Interface: AnimationEvent")]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"currentstate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#currentstate"}},[t._v("#")]),t._v(" currentState")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("currentState")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L15",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:15"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"numsteps"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#numsteps"}},[t._v("#")]),t._v(" numSteps")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("numSteps")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/animation.d.ts#L14",target:"_blank",rel:"noopener noreferrer"}},[t._v("animation.d.ts:14"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/230.deb69283.js b/docs/3.1.0/assets/js/230.2695cca3.js similarity index 98% rename from docs/3.1.0/assets/js/230.deb69283.js rename to docs/3.1.0/assets/js/230.2695cca3.js index 16a6f2e3c4..c13ba5b679 100644 --- a/docs/3.1.0/assets/js/230.deb69283.js +++ b/docs/3.1.0/assets/js/230.2695cca3.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[230],{556:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"time-scale-max-span"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#time-scale-max-span"}},[this._v("#")]),this._v(" Time Scale - Max Span")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data.forEach(function(dataObj, j) {\n const newVal = Utils.rand(0, 100);\n\n if (typeof dataObj === 'object') {\n dataObj.y = newVal;\n } else {\n dataset.data[j] = newVal;\n }\n });\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst data = {\n datasets: [{\n label: 'Dataset with string point data',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n borderColor: Utils.CHART_COLORS.red,\n fill: false,\n data: [{\n x: Utils.newDateString(0),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(2),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(4),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(6),\n y: Utils.rand(0, 100)\n }],\n }, {\n label: 'Dataset with date object point data',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n borderColor: Utils.CHART_COLORS.blue,\n fill: false,\n data: [{\n x: Utils.newDate(0),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDate(2),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDate(5),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDate(6),\n y: Utils.rand(0, 100)\n }]\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n spanGaps: 1000 * 60 * 60 * 24 * 2, // 2 days\n responsive: true,\n interaction: {\n mode: 'nearest',\n },\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Time - spanGaps: 172800000 (2 days in ms)'\n },\n },\n scales: {\n x: {\n type: 'time',\n display: true,\n title: {\n display: true,\n text: 'Date'\n },\n ticks: {\n autoSkip: false,\n maxRotation: 0,\n major: {\n enabled: true\n },\n // color: function(context) {\n // return context.tick && context.tick.major ? '#FF0000' : 'rgba(0,0,0,0.1)';\n // },\n font: function(context) {\n if (context.tick && context.tick.major) {\n return {\n weight: 'bold',\n };\n }\n }\n }\n },\n y: {\n display: true,\n title: {\n display: true,\n text: 'value'\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[230],{554:function(n,t,a){"use strict";a.r(t);var e=a(7),s=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"time-scale-max-span"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#time-scale-max-span"}},[this._v("#")]),this._v(" Time Scale - Max Span")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data.forEach(function(dataObj, j) {\n const newVal = Utils.rand(0, 100);\n\n if (typeof dataObj === 'object') {\n dataObj.y = newVal;\n } else {\n dataset.data[j] = newVal;\n }\n });\n });\n chart.update();\n }\n },\n];\n// \n\n// \nconst data = {\n datasets: [{\n label: 'Dataset with string point data',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n borderColor: Utils.CHART_COLORS.red,\n fill: false,\n data: [{\n x: Utils.newDateString(0),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(2),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(4),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDateString(6),\n y: Utils.rand(0, 100)\n }],\n }, {\n label: 'Dataset with date object point data',\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n borderColor: Utils.CHART_COLORS.blue,\n fill: false,\n data: [{\n x: Utils.newDate(0),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDate(2),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDate(5),\n y: Utils.rand(0, 100)\n }, {\n x: Utils.newDate(6),\n y: Utils.rand(0, 100)\n }]\n }]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n spanGaps: 1000 * 60 * 60 * 24 * 2, // 2 days\n responsive: true,\n interaction: {\n mode: 'nearest',\n },\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Time - spanGaps: 172800000 (2 days in ms)'\n },\n },\n scales: {\n x: {\n type: 'time',\n display: true,\n title: {\n display: true,\n text: 'Date'\n },\n ticks: {\n autoSkip: false,\n maxRotation: 0,\n major: {\n enabled: true\n },\n // color: function(context) {\n // return context.tick && context.tick.major ? '#FF0000' : 'rgba(0,0,0,0.1)';\n // },\n font: function(context) {\n if (context.tick && context.tick.major) {\n return {\n weight: 'bold',\n };\n }\n }\n }\n },\n y: {\n display: true,\n title: {\n display: true,\n text: 'value'\n }\n }\n }\n },\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/231.a0f70811.js b/docs/3.1.0/assets/js/231.ec9b28e6.js similarity index 96% rename from docs/3.1.0/assets/js/231.a0f70811.js rename to docs/3.1.0/assets/js/231.ec9b28e6.js index 4c3ca9adec..da4da0dcbd 100644 --- a/docs/3.1.0/assets/js/231.a0f70811.js +++ b/docs/3.1.0/assets/js/231.ec9b28e6.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[231],{557:function(n,t,a){"use strict";a.r(t);var e=a(7),r=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"bar-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bar-chart"}},[this._v("#")]),this._v(" Bar Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nvar DATA_COUNT = 16;\nUtils.srand(110);\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n];\n// \n\n// \nfunction generateData() {\n return Utils.numbers({\n count: DATA_COUNT,\n min: -100,\n max: 100\n });\n}\n\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n data: generateData(),\n }]\n};\n// \n\n// \nfunction colorize(opaque) {\n return (ctx) => {\n var v = ctx.parsed.y;\n var c = v < -50 ? '#D60000'\n : v < 0 ? '#F46300'\n : v < 50 ? '#0358B6'\n : '#44DE28';\n\n return opaque ? c : Utils.transparentize(c, 1 - Math.abs(v / 150));\n };\n}\n\nconst config = {\n type: 'bar',\n data: data,\n options: {\n plugins: {\n legend: false,\n },\n elements: {\n bar: {\n backgroundColor: colorize(false),\n borderColor: colorize(true),\n borderWidth: 2\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[231],{555:function(n,t,a){"use strict";a.r(t);var e=a(7),r=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"bar-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bar-chart"}},[this._v("#")]),this._v(" Bar Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nvar DATA_COUNT = 16;\nUtils.srand(110);\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n];\n// \n\n// \nfunction generateData() {\n return Utils.numbers({\n count: DATA_COUNT,\n min: -100,\n max: 100\n });\n}\n\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n data: generateData(),\n }]\n};\n// \n\n// \nfunction colorize(opaque) {\n return (ctx) => {\n var v = ctx.parsed.y;\n var c = v < -50 ? '#D60000'\n : v < 0 ? '#F46300'\n : v < 50 ? '#0358B6'\n : '#44DE28';\n\n return opaque ? c : Utils.transparentize(c, 1 - Math.abs(v / 150));\n };\n}\n\nconst config = {\n type: 'bar',\n data: data,\n options: {\n plugins: {\n legend: false,\n },\n elements: {\n bar: {\n backgroundColor: colorize(false),\n borderColor: colorize(true),\n borderWidth: 2\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/232.fcd02ed5.js b/docs/3.1.0/assets/js/232.f27f6418.js similarity index 97% rename from docs/3.1.0/assets/js/232.fcd02ed5.js rename to docs/3.1.0/assets/js/232.f27f6418.js index 5ae5c5875d..7aaf0ea68c 100644 --- a/docs/3.1.0/assets/js/232.fcd02ed5.js +++ b/docs/3.1.0/assets/js/232.f27f6418.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[232],{558:function(n,t,a){"use strict";a.r(t);var e=a(7),r=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"bubble-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bubble-chart"}},[this._v("#")]),this._v(" Bubble Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 16;\nconst MIN_XY = -150;\nconst MAX_XY = 100;\nUtils.srand(110);\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n];\n// \n\n// \nfunction generateData() {\n var data = [];\n var i;\n\n for (i = 0; i < DATA_COUNT; ++i) {\n data.push({\n x: Utils.rand(MIN_XY, MAX_XY),\n y: Utils.rand(MIN_XY, MAX_XY),\n v: Utils.rand(0, 1000)\n });\n }\n\n return data;\n}\n\nconst data = {\n datasets: [{\n data: generateData()\n }, {\n data: generateData()\n }]\n};\n// \n\n// \nfunction channelValue(x, y, values) {\n return x < 0 && y < 0 ? values[0] : x < 0 ? values[1] : y < 0 ? values[2] : values[3];\n}\n\nfunction colorize(opaque, context) {\n var value = context.raw;\n var x = value.x / 100;\n var y = value.y / 100;\n var r = channelValue(x, y, [250, 150, 50, 0]);\n var g = channelValue(x, y, [0, 50, 150, 250]);\n var b = channelValue(x, y, [0, 150, 150, 250]);\n var a = opaque ? 1 : 0.5 * value.v / 1000;\n\n return 'rgba(' + r + ',' + g + ',' + b + ',' + a + ')';\n}\n\nconst config = {\n type: 'bubble',\n data: data,\n options: {\n aspectRatio: 1,\n plugins: {\n legend: false,\n tooltip: false,\n },\n elements: {\n point: {\n backgroundColor: colorize.bind(null, false),\n\n borderColor: colorize.bind(null, true),\n\n borderWidth: function(context) {\n return Math.min(Math.max(1, context.datasetIndex + 1), 8);\n },\n\n hoverBackgroundColor: 'transparent',\n\n hoverBorderColor: function(context) {\n return Utils.color(context.datasetIndex);\n },\n\n hoverBorderWidth: function(context) {\n return Math.round(8 * context.raw.v / 1000);\n },\n\n radius: function(context) {\n var size = context.chart.width;\n var base = Math.abs(context.raw.v) / 1000;\n return (size / 24) * base;\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[232],{556:function(n,t,a){"use strict";a.r(t);var e=a(7),r=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"bubble-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bubble-chart"}},[this._v("#")]),this._v(" Bubble Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 16;\nconst MIN_XY = -150;\nconst MAX_XY = 100;\nUtils.srand(110);\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n];\n// \n\n// \nfunction generateData() {\n var data = [];\n var i;\n\n for (i = 0; i < DATA_COUNT; ++i) {\n data.push({\n x: Utils.rand(MIN_XY, MAX_XY),\n y: Utils.rand(MIN_XY, MAX_XY),\n v: Utils.rand(0, 1000)\n });\n }\n\n return data;\n}\n\nconst data = {\n datasets: [{\n data: generateData()\n }, {\n data: generateData()\n }]\n};\n// \n\n// \nfunction channelValue(x, y, values) {\n return x < 0 && y < 0 ? values[0] : x < 0 ? values[1] : y < 0 ? values[2] : values[3];\n}\n\nfunction colorize(opaque, context) {\n var value = context.raw;\n var x = value.x / 100;\n var y = value.y / 100;\n var r = channelValue(x, y, [250, 150, 50, 0]);\n var g = channelValue(x, y, [0, 50, 150, 250]);\n var b = channelValue(x, y, [0, 150, 150, 250]);\n var a = opaque ? 1 : 0.5 * value.v / 1000;\n\n return 'rgba(' + r + ',' + g + ',' + b + ',' + a + ')';\n}\n\nconst config = {\n type: 'bubble',\n data: data,\n options: {\n aspectRatio: 1,\n plugins: {\n legend: false,\n tooltip: false,\n },\n elements: {\n point: {\n backgroundColor: colorize.bind(null, false),\n\n borderColor: colorize.bind(null, true),\n\n borderWidth: function(context) {\n return Math.min(Math.max(1, context.datasetIndex + 1), 8);\n },\n\n hoverBackgroundColor: 'transparent',\n\n hoverBorderColor: function(context) {\n return Utils.color(context.datasetIndex);\n },\n\n hoverBorderWidth: function(context) {\n return Math.round(8 * context.raw.v / 1000);\n },\n\n radius: function(context) {\n var size = context.chart.width;\n var base = Math.abs(context.raw.v) / 1000;\n return (size / 24) * base;\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/233.a83e7350.js b/docs/3.1.0/assets/js/233.155ff8a1.js similarity index 96% rename from docs/3.1.0/assets/js/233.a83e7350.js rename to docs/3.1.0/assets/js/233.155ff8a1.js index 6d7c67cd9a..46ab424338 100644 --- a/docs/3.1.0/assets/js/233.a83e7350.js +++ b/docs/3.1.0/assets/js/233.155ff8a1.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[233],{559:function(n,t,a){"use strict";a.r(t);var e=a(7),o=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-chart"}},[this._v("#")]),this._v(" Line Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 12;\nUtils.srand(110);\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n];\n// \n\n// \nfunction generateData() {\n return Utils.numbers({\n count: DATA_COUNT,\n min: 0,\n max: 100\n });\n}\n\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n data: generateData()\n }]\n};\n// \n\n// \nfunction getLineColor(ctx) {\n return Utils.color(ctx.datasetIndex);\n}\n\nfunction alternatePointStyles(ctx) {\n var index = ctx.dataIndex;\n return index % 2 === 0 ? 'circle' : 'rect';\n}\n\nfunction makeHalfAsOpaque(ctx) {\n return Utils.transparentize(getLineColor(ctx));\n}\n\nfunction adjustRadiusBasedOnData(ctx) {\n var v = ctx.parsed.y;\n return v < 10 ? 5\n : v < 25 ? 7\n : v < 50 ? 9\n : v < 75 ? 11\n : 15;\n}\n\nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n legend: false,\n tooltip: true,\n },\n elements: {\n line: {\n fill: false,\n backgroundColor: getLineColor,\n borderColor: getLineColor,\n },\n point: {\n backgroundColor: getLineColor,\n hoverBackgroundColor: makeHalfAsOpaque,\n radius: adjustRadiusBasedOnData,\n pointStyle: alternatePointStyles,\n hoverRadius: 15,\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[233],{557:function(n,t,a){"use strict";a.r(t);var e=a(7),o=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"line-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#line-chart"}},[this._v("#")]),this._v(" Line Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 12;\nUtils.srand(110);\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n];\n// \n\n// \nfunction generateData() {\n return Utils.numbers({\n count: DATA_COUNT,\n min: 0,\n max: 100\n });\n}\n\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n data: generateData()\n }]\n};\n// \n\n// \nfunction getLineColor(ctx) {\n return Utils.color(ctx.datasetIndex);\n}\n\nfunction alternatePointStyles(ctx) {\n var index = ctx.dataIndex;\n return index % 2 === 0 ? 'circle' : 'rect';\n}\n\nfunction makeHalfAsOpaque(ctx) {\n return Utils.transparentize(getLineColor(ctx));\n}\n\nfunction adjustRadiusBasedOnData(ctx) {\n var v = ctx.parsed.y;\n return v < 10 ? 5\n : v < 25 ? 7\n : v < 50 ? 9\n : v < 75 ? 11\n : 15;\n}\n\nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n legend: false,\n tooltip: true,\n },\n elements: {\n line: {\n fill: false,\n backgroundColor: getLineColor,\n borderColor: getLineColor,\n },\n point: {\n backgroundColor: getLineColor,\n hoverBackgroundColor: makeHalfAsOpaque,\n radius: adjustRadiusBasedOnData,\n pointStyle: alternatePointStyles,\n hoverRadius: 15,\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/234.46ceae46.js b/docs/3.1.0/assets/js/234.abea39d7.js similarity index 96% rename from docs/3.1.0/assets/js/234.46ceae46.js rename to docs/3.1.0/assets/js/234.abea39d7.js index 30c1035543..fdc96555f3 100644 --- a/docs/3.1.0/assets/js/234.46ceae46.js +++ b/docs/3.1.0/assets/js/234.abea39d7.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[234],{560:function(n,t,a){"use strict";a.r(t);var e=a(7),o=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"pie-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#pie-chart"}},[this._v("#")]),this._v(" Pie Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 5;\nUtils.srand(110);\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n {\n name: 'Toggle Doughnut View',\n handler(chart) {\n if (chart.options.cutout) {\n chart.options.cutout = 0;\n } else {\n chart.options.cutout = '50%';\n }\n chart.update();\n }\n }\n];\n// \n\n// \nfunction generateData() {\n return Utils.numbers({\n count: DATA_COUNT,\n min: -100,\n max: 100\n });\n}\n\nconst data = {\n datasets: [{\n data: generateData()\n }]\n};\n// \n\n// \nfunction colorize(opaque, hover, ctx) {\n var v = ctx.parsed;\n var c = v < -50 ? '#D60000'\n : v < 0 ? '#F46300'\n : v < 50 ? '#0358B6'\n : '#44DE28';\n\n var opacity = hover ? 1 - Math.abs(v / 150) - 0.2 : 1 - Math.abs(v / 150);\n\n return opaque ? c : Utils.transparentize(c, opacity);\n}\n\nfunction hoverColorize(ctx) {\n return colorize(false, true, ctx);\n}\n\nconst config = {\n type: 'pie',\n data: data,\n options: {\n plugins: {\n legend: false,\n tooltip: false,\n },\n elements: {\n arc: {\n backgroundColor: colorize.bind(null, false, false),\n hoverBackgroundColor: hoverColorize\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[234],{558:function(n,t,a){"use strict";a.r(t);var e=a(7),o=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"pie-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#pie-chart"}},[this._v("#")]),this._v(" Pie Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 5;\nUtils.srand(110);\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n {\n name: 'Toggle Doughnut View',\n handler(chart) {\n if (chart.options.cutout) {\n chart.options.cutout = 0;\n } else {\n chart.options.cutout = '50%';\n }\n chart.update();\n }\n }\n];\n// \n\n// \nfunction generateData() {\n return Utils.numbers({\n count: DATA_COUNT,\n min: -100,\n max: 100\n });\n}\n\nconst data = {\n datasets: [{\n data: generateData()\n }]\n};\n// \n\n// \nfunction colorize(opaque, hover, ctx) {\n var v = ctx.parsed;\n var c = v < -50 ? '#D60000'\n : v < 0 ? '#F46300'\n : v < 50 ? '#0358B6'\n : '#44DE28';\n\n var opacity = hover ? 1 - Math.abs(v / 150) - 0.2 : 1 - Math.abs(v / 150);\n\n return opaque ? c : Utils.transparentize(c, opacity);\n}\n\nfunction hoverColorize(ctx) {\n return colorize(false, true, ctx);\n}\n\nconst config = {\n type: 'pie',\n data: data,\n options: {\n plugins: {\n legend: false,\n tooltip: false,\n },\n elements: {\n arc: {\n backgroundColor: colorize.bind(null, false, false),\n hoverBackgroundColor: hoverColorize\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/235.d7428a3d.js b/docs/3.1.0/assets/js/235.6160b7ca.js similarity index 96% rename from docs/3.1.0/assets/js/235.d7428a3d.js rename to docs/3.1.0/assets/js/235.6160b7ca.js index 64f2144df3..7b218825ea 100644 --- a/docs/3.1.0/assets/js/235.d7428a3d.js +++ b/docs/3.1.0/assets/js/235.6160b7ca.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[235],{561:function(n,t,a){"use strict";a.r(t);var e=a(7),o=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"polar-area-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#polar-area-chart"}},[this._v("#")]),this._v(" Polar Area Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nUtils.srand(110);\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n];\n// \n\n// \nfunction generateData() {\n return Utils.numbers({\n count: DATA_COUNT,\n min: 0,\n max: 100\n });\n}\n\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n data: generateData()\n }]\n};\n// \n\n// \nfunction colorize(opaque, hover, ctx) {\n var v = ctx.raw;\n var c = v < 35 ? '#D60000'\n : v < 55 ? '#F46300'\n : v < 75 ? '#0358B6'\n : '#44DE28';\n\n var opacity = hover ? 1 - Math.abs(v / 150) - 0.2 : 1 - Math.abs(v / 150);\n\n return opaque ? c : Utils.transparentize(c, opacity);\n}\n\nfunction hoverColorize(ctx) {\n return colorize(false, true, ctx);\n}\n\nconst config = {\n type: 'polarArea',\n data: data,\n options: {\n plugins: {\n legend: false,\n tooltip: false,\n },\n elements: {\n arc: {\n backgroundColor: colorize.bind(null, false, false),\n hoverBackgroundColor: hoverColorize\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[235],{559:function(n,t,a){"use strict";a.r(t);var e=a(7),o=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"polar-area-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#polar-area-chart"}},[this._v("#")]),this._v(" Polar Area Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nUtils.srand(110);\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n];\n// \n\n// \nfunction generateData() {\n return Utils.numbers({\n count: DATA_COUNT,\n min: 0,\n max: 100\n });\n}\n\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [{\n data: generateData()\n }]\n};\n// \n\n// \nfunction colorize(opaque, hover, ctx) {\n var v = ctx.raw;\n var c = v < 35 ? '#D60000'\n : v < 55 ? '#F46300'\n : v < 75 ? '#0358B6'\n : '#44DE28';\n\n var opacity = hover ? 1 - Math.abs(v / 150) - 0.2 : 1 - Math.abs(v / 150);\n\n return opaque ? c : Utils.transparentize(c, opacity);\n}\n\nfunction hoverColorize(ctx) {\n return colorize(false, true, ctx);\n}\n\nconst config = {\n type: 'polarArea',\n data: data,\n options: {\n plugins: {\n legend: false,\n tooltip: false,\n },\n elements: {\n arc: {\n backgroundColor: colorize.bind(null, false, false),\n hoverBackgroundColor: hoverColorize\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/236.c3986800.js b/docs/3.1.0/assets/js/236.8449bd12.js similarity index 97% rename from docs/3.1.0/assets/js/236.c3986800.js rename to docs/3.1.0/assets/js/236.8449bd12.js index 40fdd81a5f..9b8bc433e0 100644 --- a/docs/3.1.0/assets/js/236.c3986800.js +++ b/docs/3.1.0/assets/js/236.8449bd12.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[236],{562:function(n,t,a){"use strict";a.r(t);var e=a(7),r=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"radar-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#radar-chart"}},[this._v("#")]),this._v(" Radar Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nUtils.srand(110);\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n];\n// \n\n// \nfunction generateData() {\n return Utils.numbers({\n count: DATA_COUNT,\n min: 0,\n max: 100\n });\n}\n\nconst data = {\n labels: [['Eating', 'Dinner'], ['Drinking', 'Water'], 'Sleeping', ['Designing', 'Graphics'], 'Coding', 'Cycling', 'Running'],\n datasets: [{\n data: generateData()\n }]\n};\n// \n\n// \nfunction getLineColor(ctx) {\n return Utils.color(ctx.datasetIndex);\n}\n\nfunction alternatePointStyles(ctx) {\n var index = ctx.dataIndex;\n return index % 2 === 0 ? 'circle' : 'rect';\n}\n\nfunction makeHalfAsOpaque(ctx) {\n return Utils.transparentize(getLineColor(ctx));\n}\n\nfunction make20PercentOpaque(ctx) {\n return Utils.transparentize(getLineColor(ctx), 0.8);\n}\n\nfunction adjustRadiusBasedOnData(ctx) {\n var v = ctx.parsed.y;\n return v < 10 ? 5\n : v < 25 ? 7\n : v < 50 ? 9\n : v < 75 ? 11\n : 15;\n}\n\nconst config = {\n type: 'radar',\n data: data,\n options: {\n plugins: {\n legend: false,\n tooltip: false,\n },\n elements: {\n line: {\n backgroundColor: make20PercentOpaque,\n borderColor: getLineColor,\n },\n point: {\n backgroundColor: getLineColor,\n hoverBackgroundColor: makeHalfAsOpaque,\n radius: adjustRadiusBasedOnData,\n pointStyle: alternatePointStyles,\n hoverRadius: 15,\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[236],{561:function(n,t,a){"use strict";a.r(t);var e=a(7),r=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"radar-chart"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#radar-chart"}},[this._v("#")]),this._v(" Radar Chart")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst DATA_COUNT = 7;\nUtils.srand(110);\n\nconst actions = [\n {\n name: 'Randomize',\n handler(chart) {\n chart.data.datasets.forEach(dataset => {\n dataset.data = generateData();\n });\n chart.update();\n }\n },\n];\n// \n\n// \nfunction generateData() {\n return Utils.numbers({\n count: DATA_COUNT,\n min: 0,\n max: 100\n });\n}\n\nconst data = {\n labels: [['Eating', 'Dinner'], ['Drinking', 'Water'], 'Sleeping', ['Designing', 'Graphics'], 'Coding', 'Cycling', 'Running'],\n datasets: [{\n data: generateData()\n }]\n};\n// \n\n// \nfunction getLineColor(ctx) {\n return Utils.color(ctx.datasetIndex);\n}\n\nfunction alternatePointStyles(ctx) {\n var index = ctx.dataIndex;\n return index % 2 === 0 ? 'circle' : 'rect';\n}\n\nfunction makeHalfAsOpaque(ctx) {\n return Utils.transparentize(getLineColor(ctx));\n}\n\nfunction make20PercentOpaque(ctx) {\n return Utils.transparentize(getLineColor(ctx), 0.8);\n}\n\nfunction adjustRadiusBasedOnData(ctx) {\n var v = ctx.parsed.y;\n return v < 10 ? 5\n : v < 25 ? 7\n : v < 50 ? 9\n : v < 75 ? 11\n : 15;\n}\n\nconst config = {\n type: 'radar',\n data: data,\n options: {\n plugins: {\n legend: false,\n tooltip: false,\n },\n elements: {\n line: {\n backgroundColor: make20PercentOpaque,\n borderColor: getLineColor,\n },\n point: {\n backgroundColor: getLineColor,\n hoverBackgroundColor: makeHalfAsOpaque,\n radius: adjustRadiusBasedOnData,\n pointStyle: alternatePointStyles,\n hoverRadius: 15,\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions,\n config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/237.fca5b311.js b/docs/3.1.0/assets/js/237.39e18457.js similarity index 96% rename from docs/3.1.0/assets/js/237.fca5b311.js rename to docs/3.1.0/assets/js/237.39e18457.js index cb3fe19323..54f75d945a 100644 --- a/docs/3.1.0/assets/js/237.fca5b311.js +++ b/docs/3.1.0/assets/js/237.39e18457.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[237],{563:function(n,t,e){"use strict";e.r(t);var a=e(7),i=Object(a.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"alignment"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#alignment"}},[this._v("#")]),this._v(" Alignment")]),this._v(" "),t("p",[this._v("This sample show how to configure the alignment of the chart title")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Title Alignment: start',\n handler(chart) {\n chart.options.plugins.title.align = 'start';\n chart.update();\n }\n },\n {\n name: 'Title Alignment: center (default)',\n handler(chart) {\n chart.options.plugins.title.align = 'center';\n chart.update();\n }\n },\n {\n name: 'Title Alignment: end',\n handler(chart) {\n chart.options.plugins.title.align = 'end';\n chart.update();\n }\n },\n];\n// \n\n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n title: {\n display: true,\n text: 'Chart Title',\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[237],{562:function(n,t,e){"use strict";e.r(t);var a=e(7),i=Object(a.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"alignment"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#alignment"}},[this._v("#")]),this._v(" Alignment")]),this._v(" "),t("p",[this._v("This sample show how to configure the alignment of the chart title")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Title Alignment: start',\n handler(chart) {\n chart.options.plugins.title.align = 'start';\n chart.update();\n }\n },\n {\n name: 'Title Alignment: center (default)',\n handler(chart) {\n chart.options.plugins.title.align = 'center';\n chart.update();\n }\n },\n {\n name: 'Title Alignment: end',\n handler(chart) {\n chart.options.plugins.title.align = 'end';\n chart.update();\n }\n },\n];\n// \n\n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n plugins: {\n title: {\n display: true,\n text: 'Chart Title',\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/238.521ea89e.js b/docs/3.1.0/assets/js/238.a35df5d4.js similarity index 96% rename from docs/3.1.0/assets/js/238.521ea89e.js rename to docs/3.1.0/assets/js/238.a35df5d4.js index 2bf858b982..9ce97f29df 100644 --- a/docs/3.1.0/assets/js/238.521ea89e.js +++ b/docs/3.1.0/assets/js/238.a35df5d4.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[238],{565:function(t,n,o){"use strict";o.r(n);var s=o(7),e=Object(s.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"custom-tooltip-content"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#custom-tooltip-content"}},[this._v("#")]),this._v(" Custom Tooltip Content")]),this._v(" "),n("p",[this._v("This sample shows how to use the tooltip callbacks to add additional content to the tooltip.")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst footer = (tooltipItems) => {\n let sum = 0;\n\n tooltipItems.forEach(function(tooltipItem) {\n sum += tooltipItem.parsed.y;\n });\n return 'Sum: ' + sum;\n};\n\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100, decimals: 0};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n interaction: {\n intersect: false,\n mode: 'index',\n },\n plugins: {\n tooltip: {\n callbacks: {\n footer: footer,\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=e.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[238],{564:function(t,n,o){"use strict";o.r(n);var s=o(7),e=Object(s.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"custom-tooltip-content"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#custom-tooltip-content"}},[this._v("#")]),this._v(" Custom Tooltip Content")]),this._v(" "),n("p",[this._v("This sample shows how to use the tooltip callbacks to add additional content to the tooltip.")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst footer = (tooltipItems) => {\n let sum = 0;\n\n tooltipItems.forEach(function(tooltipItem) {\n sum += tooltipItem.parsed.y;\n });\n return 'Sum: ' + sum;\n};\n\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100, decimals: 0};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n interaction: {\n intersect: false,\n mode: 'index',\n },\n plugins: {\n tooltip: {\n callbacks: {\n footer: footer,\n }\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=e.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/239.5af05e65.js b/docs/3.1.0/assets/js/239.ecf8e4da.js similarity index 98% rename from docs/3.1.0/assets/js/239.5af05e65.js rename to docs/3.1.0/assets/js/239.ecf8e4da.js index 4b2861790e..afdd0e0242 100644 --- a/docs/3.1.0/assets/js/239.5af05e65.js +++ b/docs/3.1.0/assets/js/239.ecf8e4da.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[239],{564:function(t,n,e){"use strict";e.r(n);var o=e(7),l=Object(o.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"external-html-tooltip"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#external-html-tooltip"}},[this._v("#")]),this._v(" External HTML Tooltip")]),this._v(" "),n("p",[this._v("This sample shows how to use the external tooltip functionality to generate an HTML tooltip.")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst getOrCreateTooltip = (chart) => {\n let tooltipEl = chart.canvas.parentNode.querySelector('div');\n\n if (!tooltipEl) {\n tooltipEl = document.createElement('div');\n tooltipEl.style.background = 'rgba(0, 0, 0, 0.7)';\n tooltipEl.style.borderRadius = '3px';\n tooltipEl.style.color = 'white';\n tooltipEl.style.opacity = 1;\n tooltipEl.style.pointerEvents = 'none';\n tooltipEl.style.position = 'absolute';\n tooltipEl.style.transform = 'translate(-50%, 0)';\n tooltipEl.style.transition = 'all .1s ease';\n\n const table = document.createElement('table');\n table.style.margin = '0px';\n\n tooltipEl.appendChild(table);\n chart.canvas.parentNode.appendChild(tooltipEl);\n }\n\n return tooltipEl;\n};\n\nconst externalTooltipHandler = (context) => {\n // Tooltip Element\n const {chart, tooltip} = context;\n const tooltipEl = getOrCreateTooltip(chart);\n\n // Hide if no tooltip\n if (tooltip.opacity === 0) {\n tooltipEl.style.opacity = 0;\n return;\n }\n\n // Set Text\n if (tooltip.body) {\n const titleLines = tooltip.title || [];\n const bodyLines = tooltip.body.map(b => b.lines);\n\n const tableHead = document.createElement('thead');\n\n titleLines.forEach(title => {\n const tr = document.createElement('tr');\n tr.style.borderWidth = 0;\n\n const th = document.createElement('th');\n th.style.borderWidth = 0;\n const text = document.createTextNode(title);\n\n th.appendChild(text);\n tr.appendChild(th);\n tableHead.appendChild(tr);\n });\n\n const tableBody = document.createElement('tbody');\n bodyLines.forEach((body, i) => {\n const colors = tooltip.labelColors[i];\n\n const span = document.createElement('span');\n span.style.background = colors.backgroundColor;\n span.style.borderColor = colors.borderColor;\n span.style.borderWidth = '2px';\n span.style.marginRight = '10px';\n span.style.height = '10px';\n span.style.width = '10px';\n span.style.display = 'inline-block';\n\n const tr = document.createElement('tr');\n tr.style.backgroundColor = 'inherit';\n tr.style.borderWidth = 0;\n\n const td = document.createElement('td');\n td.style.borderWidth = 0;\n\n const text = document.createTextNode(body);\n\n td.appendChild(span);\n td.appendChild(text);\n tr.appendChild(td);\n tableBody.appendChild(tr);\n });\n\n const tableRoot = tooltipEl.querySelector('table');\n\n // Remove old children\n while (tableRoot.firstChild) {\n tableRoot.firstChild.remove();\n }\n\n // Add new children\n tableRoot.appendChild(tableHead);\n tableRoot.appendChild(tableBody);\n }\n\n const {offsetLeft: positionX, offsetTop: positionY} = chart.canvas;\n\n // Display, position, and set styles for font\n tooltipEl.style.opacity = 1;\n tooltipEl.style.left = positionX + tooltip.caretX + 'px';\n tooltipEl.style.top = positionY + tooltip.caretY + 'px';\n tooltipEl.style.font = tooltip.options.bodyFont.string;\n tooltipEl.style.padding = tooltip.padding + 'px ' + tooltip.padding + 'px';\n};\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100, decimals: 0};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n interaction: {\n mode: 'index',\n intersect: false,\n },\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Line Chart - External Tooltips'\n },\n tooltip: {\n enabled: false,\n position: 'nearest',\n external: externalTooltipHandler\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=l.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[239],{563:function(t,n,e){"use strict";e.r(n);var o=e(7),l=Object(o.a)({},(function(){var t=this.$createElement,n=this._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[n("h1",{attrs:{id:"external-html-tooltip"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#external-html-tooltip"}},[this._v("#")]),this._v(" External HTML Tooltip")]),this._v(" "),n("p",[this._v("This sample shows how to use the external tooltip functionality to generate an HTML tooltip.")]),this._v(" "),n("chart-editor",{attrs:{code:"// \nconst getOrCreateTooltip = (chart) => {\n let tooltipEl = chart.canvas.parentNode.querySelector('div');\n\n if (!tooltipEl) {\n tooltipEl = document.createElement('div');\n tooltipEl.style.background = 'rgba(0, 0, 0, 0.7)';\n tooltipEl.style.borderRadius = '3px';\n tooltipEl.style.color = 'white';\n tooltipEl.style.opacity = 1;\n tooltipEl.style.pointerEvents = 'none';\n tooltipEl.style.position = 'absolute';\n tooltipEl.style.transform = 'translate(-50%, 0)';\n tooltipEl.style.transition = 'all .1s ease';\n\n const table = document.createElement('table');\n table.style.margin = '0px';\n\n tooltipEl.appendChild(table);\n chart.canvas.parentNode.appendChild(tooltipEl);\n }\n\n return tooltipEl;\n};\n\nconst externalTooltipHandler = (context) => {\n // Tooltip Element\n const {chart, tooltip} = context;\n const tooltipEl = getOrCreateTooltip(chart);\n\n // Hide if no tooltip\n if (tooltip.opacity === 0) {\n tooltipEl.style.opacity = 0;\n return;\n }\n\n // Set Text\n if (tooltip.body) {\n const titleLines = tooltip.title || [];\n const bodyLines = tooltip.body.map(b => b.lines);\n\n const tableHead = document.createElement('thead');\n\n titleLines.forEach(title => {\n const tr = document.createElement('tr');\n tr.style.borderWidth = 0;\n\n const th = document.createElement('th');\n th.style.borderWidth = 0;\n const text = document.createTextNode(title);\n\n th.appendChild(text);\n tr.appendChild(th);\n tableHead.appendChild(tr);\n });\n\n const tableBody = document.createElement('tbody');\n bodyLines.forEach((body, i) => {\n const colors = tooltip.labelColors[i];\n\n const span = document.createElement('span');\n span.style.background = colors.backgroundColor;\n span.style.borderColor = colors.borderColor;\n span.style.borderWidth = '2px';\n span.style.marginRight = '10px';\n span.style.height = '10px';\n span.style.width = '10px';\n span.style.display = 'inline-block';\n\n const tr = document.createElement('tr');\n tr.style.backgroundColor = 'inherit';\n tr.style.borderWidth = 0;\n\n const td = document.createElement('td');\n td.style.borderWidth = 0;\n\n const text = document.createTextNode(body);\n\n td.appendChild(span);\n td.appendChild(text);\n tr.appendChild(td);\n tableBody.appendChild(tr);\n });\n\n const tableRoot = tooltipEl.querySelector('table');\n\n // Remove old children\n while (tableRoot.firstChild) {\n tableRoot.firstChild.remove();\n }\n\n // Add new children\n tableRoot.appendChild(tableHead);\n tableRoot.appendChild(tableBody);\n }\n\n const {offsetLeft: positionX, offsetTop: positionY} = chart.canvas;\n\n // Display, position, and set styles for font\n tooltipEl.style.opacity = 1;\n tooltipEl.style.left = positionX + tooltip.caretX + 'px';\n tooltipEl.style.top = positionY + tooltip.caretY + 'px';\n tooltipEl.style.font = tooltip.options.bodyFont.string;\n tooltipEl.style.padding = tooltip.padding + 'px ' + tooltip.padding + 'px';\n};\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100, decimals: 0};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n interaction: {\n mode: 'index',\n intersect: false,\n },\n plugins: {\n title: {\n display: true,\n text: 'Chart.js Line Chart - External Tooltips'\n },\n tooltip: {\n enabled: false,\n position: 'nearest',\n external: externalTooltipHandler\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: [],\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);n.default=l.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/24.266144a9.js b/docs/3.1.0/assets/js/24.266144a9.js new file mode 100644 index 0000000000..d1c912560f --- /dev/null +++ b/docs/3.1.0/assets/js/24.266144a9.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{367:function(e,t,r){"use strict";r.r(t);var n=r(7),s=Object(n.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-arcborderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-arcborderradius"}},[e._v("#")]),e._v(" Interface: ArcBorderRadius")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"innerend"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#innerend"}},[e._v("#")]),e._v(" innerEnd")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("innerEnd")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1617",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1617"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"innerstart"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#innerstart"}},[e._v("#")]),e._v(" innerStart")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("innerStart")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1616",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1616"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"outerend"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#outerend"}},[e._v("#")]),e._v(" outerEnd")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("outerEnd")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1615",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1615"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"outerstart"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#outerstart"}},[e._v("#")]),e._v(" outerStart")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("outerStart")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1614",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1614"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/24.b3cb60bf.js b/docs/3.1.0/assets/js/24.b3cb60bf.js deleted file mode 100644 index 35c2ba9d10..0000000000 --- a/docs/3.1.0/assets/js/24.b3cb60bf.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{351:function(t,e,r){"use strict";r.r(e);var n=r(7),s=Object(n.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-arcborderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-arcborderradius"}},[t._v("#")]),t._v(" Interface: ArcBorderRadius")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"innerend"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#innerend"}},[t._v("#")]),t._v(" innerEnd")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("innerEnd")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1617",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1617"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"innerstart"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#innerstart"}},[t._v("#")]),t._v(" innerStart")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("innerStart")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1616",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1616"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"outerend"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#outerend"}},[t._v("#")]),t._v(" outerEnd")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("outerEnd")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1615",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1615"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"outerstart"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#outerstart"}},[t._v("#")]),t._v(" outerStart")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("outerStart")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1614",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1614"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/240.e4073758.js b/docs/3.1.0/assets/js/240.96c3a582.js similarity index 97% rename from docs/3.1.0/assets/js/240.e4073758.js rename to docs/3.1.0/assets/js/240.96c3a582.js index 50aa45e93b..df4967f0e3 100644 --- a/docs/3.1.0/assets/js/240.e4073758.js +++ b/docs/3.1.0/assets/js/240.96c3a582.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[240],{566:function(n,t,e){"use strict";e.r(t);var a=e(7),o=Object(a.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"interaction-modes"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interaction-modes"}},[this._v("#")]),this._v(" Interaction Modes")]),this._v(" "),t("p",[this._v("This sample shows how to use the tooltip position mode setting.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Mode: index',\n handler(chart) {\n chart.options.interaction.axis = 'xy';\n chart.options.interaction.mode = 'index';\n chart.update();\n }\n },\n {\n name: 'Mode: dataset',\n handler(chart) {\n chart.options.interaction.axis = 'xy';\n chart.options.interaction.mode = 'dataset';\n chart.update();\n }\n },\n {\n name: 'Mode: point',\n handler(chart) {\n chart.options.interaction.axis = 'xy';\n chart.options.interaction.mode = 'point';\n chart.update();\n }\n },\n {\n name: 'Mode: nearest',\n handler(chart) {\n chart.options.interaction.axis = 'xy';\n chart.options.interaction.mode = 'nearest';\n chart.update();\n }\n },\n {\n name: 'Mode: x',\n handler(chart) {\n chart.options.interaction.mode = 'x';\n chart.update();\n }\n },\n {\n name: 'Mode: y',\n handler(chart) {\n chart.options.interaction.mode = 'y';\n chart.update();\n }\n },\n {\n name: 'Toggle Intersect',\n handler(chart) {\n chart.options.interaction.intersect = !chart.options.interaction.intersect;\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n interaction: {\n intersect: false,\n mode: 'index',\n },\n plugins: {\n title: {\n display: true,\n text: (ctx) => {\n const {intersect, mode} = ctx.chart.options.interaction;\n return 'Mode: ' + mode + ', intersect: ' + intersect;\n }\n },\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[240],{565:function(n,t,e){"use strict";e.r(t);var a=e(7),o=Object(a.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"interaction-modes"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interaction-modes"}},[this._v("#")]),this._v(" Interaction Modes")]),this._v(" "),t("p",[this._v("This sample shows how to use the tooltip position mode setting.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Mode: index',\n handler(chart) {\n chart.options.interaction.axis = 'xy';\n chart.options.interaction.mode = 'index';\n chart.update();\n }\n },\n {\n name: 'Mode: dataset',\n handler(chart) {\n chart.options.interaction.axis = 'xy';\n chart.options.interaction.mode = 'dataset';\n chart.update();\n }\n },\n {\n name: 'Mode: point',\n handler(chart) {\n chart.options.interaction.axis = 'xy';\n chart.options.interaction.mode = 'point';\n chart.update();\n }\n },\n {\n name: 'Mode: nearest',\n handler(chart) {\n chart.options.interaction.axis = 'xy';\n chart.options.interaction.mode = 'nearest';\n chart.update();\n }\n },\n {\n name: 'Mode: x',\n handler(chart) {\n chart.options.interaction.mode = 'x';\n chart.update();\n }\n },\n {\n name: 'Mode: y',\n handler(chart) {\n chart.options.interaction.mode = 'y';\n chart.update();\n }\n },\n {\n name: 'Toggle Intersect',\n handler(chart) {\n chart.options.interaction.intersect = !chart.options.interaction.intersect;\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n },\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n interaction: {\n intersect: false,\n mode: 'index',\n },\n plugins: {\n title: {\n display: true,\n text: (ctx) => {\n const {intersect, mode} = ctx.chart.options.interaction;\n return 'Mode: ' + mode + ', intersect: ' + intersect;\n }\n },\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/241.223589aa.js b/docs/3.1.0/assets/js/241.898273af.js similarity index 97% rename from docs/3.1.0/assets/js/241.223589aa.js rename to docs/3.1.0/assets/js/241.898273af.js index 058908c519..5c60d4c170 100644 --- a/docs/3.1.0/assets/js/241.223589aa.js +++ b/docs/3.1.0/assets/js/241.898273af.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[241],{567:function(n,t,o){"use strict";o.r(t);var e=o(7),i=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"point-style"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#point-style"}},[this._v("#")]),this._v(" Point Style")]),this._v(" "),t("p",[this._v("This sample shows how to use the dataset point style in the tooltip instead of a rectangle to identify each dataset.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Toggle Tooltip Point Style',\n handler(chart) {\n chart.options.plugins.tooltip.usePointStyle = !chart.options.plugins.tooltip.usePointStyle;\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Triangles',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n pointStyle: 'triangle',\n pointRadius: 6,\n },\n {\n label: 'Circles',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n pointStyle: 'circle',\n pointRadius: 6,\n },\n {\n label: 'Stars',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.green,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.green, 0.5),\n pointStyle: 'star',\n pointRadius: 6,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n interaction: {\n mode: 'index',\n },\n plugins: {\n title: {\n display: true,\n text: (ctx) => 'Tooltip point style: ' + ctx.chart.options.plugins.tooltip.usePointStyle,\n },\n tooltip: {\n usePointStyle: true,\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[241],{566:function(n,t,o){"use strict";o.r(t);var e=o(7),i=Object(e.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"point-style"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#point-style"}},[this._v("#")]),this._v(" Point Style")]),this._v(" "),t("p",[this._v("This sample shows how to use the dataset point style in the tooltip instead of a rectangle to identify each dataset.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Toggle Tooltip Point Style',\n handler(chart) {\n chart.options.plugins.tooltip.usePointStyle = !chart.options.plugins.tooltip.usePointStyle;\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Triangles',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n pointStyle: 'triangle',\n pointRadius: 6,\n },\n {\n label: 'Circles',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n pointStyle: 'circle',\n pointRadius: 6,\n },\n {\n label: 'Stars',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.green,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.green, 0.5),\n pointStyle: 'star',\n pointRadius: 6,\n }\n ]\n};\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n interaction: {\n mode: 'index',\n },\n plugins: {\n title: {\n display: true,\n text: (ctx) => 'Tooltip point style: ' + ctx.chart.options.plugins.tooltip.usePointStyle,\n },\n tooltip: {\n usePointStyle: true,\n }\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/242.464e4f88.js b/docs/3.1.0/assets/js/242.2ce1e199.js similarity index 97% rename from docs/3.1.0/assets/js/242.464e4f88.js rename to docs/3.1.0/assets/js/242.2ce1e199.js index adbee1b125..5949eb409d 100644 --- a/docs/3.1.0/assets/js/242.464e4f88.js +++ b/docs/3.1.0/assets/js/242.2ce1e199.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[242],{568:function(n,t,o){"use strict";o.r(t);var s=o(7),i=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"position"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[this._v("#")]),this._v(" Position")]),this._v(" "),t("p",[this._v("This sample shows how to use the tooltip position mode setting.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Position: average',\n handler(chart) {\n chart.options.plugins.tooltip.position = 'average';\n chart.update();\n }\n },\n {\n name: 'Position: nearest',\n handler(chart) {\n chart.options.plugins.tooltip.position = 'nearest';\n chart.update();\n }\n },\n {\n name: 'Position: bottom (custom)',\n handler(chart) {\n chart.options.plugins.tooltip.position = 'bottom';\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n },\n ]\n};\n// \n\n// \n// Create a custom tooltip positioner to put at the bottom of the chart area\ncomponents.Tooltip.positioners.bottom = function(items) {\n const pos = components.Tooltip.positioners.average(items);\n\n // Happens when nothing is found\n if (pos === false) {\n return false;\n }\n\n const chart = this._chart;\n\n return {\n x: pos.x,\n y: chart.chartArea.bottom,\n };\n};\n\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n interaction: {\n intersect: false,\n mode: 'index',\n },\n plugins: {\n title: {\n display: true,\n text: (ctx) => 'Tooltip position mode: ' + ctx.chart.options.plugins.tooltip.position,\n },\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[242],{567:function(n,t,o){"use strict";o.r(t);var s=o(7),i=Object(s.a)({},(function(){var n=this.$createElement,t=this._self._c||n;return t("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[t("h1",{attrs:{id:"position"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[this._v("#")]),this._v(" Position")]),this._v(" "),t("p",[this._v("This sample shows how to use the tooltip position mode setting.")]),this._v(" "),t("chart-editor",{attrs:{code:"// \nconst actions = [\n {\n name: 'Position: average',\n handler(chart) {\n chart.options.plugins.tooltip.position = 'average';\n chart.update();\n }\n },\n {\n name: 'Position: nearest',\n handler(chart) {\n chart.options.plugins.tooltip.position = 'nearest';\n chart.update();\n }\n },\n {\n name: 'Position: bottom (custom)',\n handler(chart) {\n chart.options.plugins.tooltip.position = 'bottom';\n chart.update();\n }\n },\n];\n// \n\n// \nconst DATA_COUNT = 7;\nconst NUMBER_CFG = {count: DATA_COUNT, min: -100, max: 100};\nconst data = {\n labels: Utils.months({count: DATA_COUNT}),\n datasets: [\n {\n label: 'Dataset 1',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.red,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.red, 0.5),\n },\n {\n label: 'Dataset 2',\n data: Utils.numbers(NUMBER_CFG),\n fill: false,\n borderColor: Utils.CHART_COLORS.blue,\n backgroundColor: Utils.transparentize(Utils.CHART_COLORS.blue, 0.5),\n },\n ]\n};\n// \n\n// \n// Create a custom tooltip positioner to put at the bottom of the chart area\ncomponents.Tooltip.positioners.bottom = function(items) {\n const pos = components.Tooltip.positioners.average(items);\n\n // Happens when nothing is found\n if (pos === false) {\n return false;\n }\n\n const chart = this._chart;\n\n return {\n x: pos.x,\n y: chart.chartArea.bottom,\n };\n};\n\n// \n\n// \nconst config = {\n type: 'line',\n data: data,\n options: {\n interaction: {\n intersect: false,\n mode: 'index',\n },\n plugins: {\n title: {\n display: true,\n text: (ctx) => 'Tooltip position mode: ' + ctx.chart.options.plugins.tooltip.position,\n },\n }\n }\n};\n// \n\nmodule.exports = {\n actions: actions,\n config: config,\n};\n"}})],1)}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/25.49354505.js b/docs/3.1.0/assets/js/25.49354505.js deleted file mode 100644 index 6863b2dd55..0000000000 --- a/docs/3.1.0/assets/js/25.49354505.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{352:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-arcelement-t-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-arcelement-t-o"}},[t._v("#")]),t._v(" Interface: ArcElement")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/arcprops.html"}},[a("em",[t._v("ArcProps")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/arcprops.html"}},[a("em",[t._v("ArcProps")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[a("em",[t._v("ArcOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[a("em",[t._v("ArcOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("")],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[a("em",[t._v("VisualElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("ArcElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1577",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1577"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcenterpoint"}},[t._v("#")]),t._v(" getCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getCenterPoint")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1581"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": keyof T[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): T")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("keyof T[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getrange"}},[t._v("#")]),t._v(" getRange")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getRange")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inrange"}},[t._v("#")]),t._v(" inRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1578",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1578"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inxrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inxrange"}},[t._v("#")]),t._v(" inXRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inXRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1579",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1579"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inyrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inyrange"}},[t._v("#")]),t._v(" inYRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inYRange")]),t._v("("),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1580"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/25.5f549319.js b/docs/3.1.0/assets/js/25.5f549319.js new file mode 100644 index 0000000000..25648cc647 --- /dev/null +++ b/docs/3.1.0/assets/js/25.5f549319.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{350:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-arcelement-t-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-arcelement-t-o"}},[t._v("#")]),t._v(" Interface: ArcElement")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/arcprops.html"}},[a("em",[t._v("ArcProps")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/arcprops.html"}},[a("em",[t._v("ArcProps")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[a("em",[t._v("ArcOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[a("em",[t._v("ArcOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("")],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[a("em",[t._v("VisualElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("ArcElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1577",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1577"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcenterpoint"}},[t._v("#")]),t._v(" getCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getCenterPoint")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1581"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": keyof T[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): T")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("keyof T[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getrange"}},[t._v("#")]),t._v(" getRange")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getRange")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inrange"}},[t._v("#")]),t._v(" inRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1578",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1578"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inxrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inxrange"}},[t._v("#")]),t._v(" inXRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inXRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1579",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1579"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inyrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inyrange"}},[t._v("#")]),t._v(" inYRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inYRange")]),t._v("("),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1580"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/26.353585cd.js b/docs/3.1.0/assets/js/26.353585cd.js new file mode 100644 index 0000000000..e750e79b07 --- /dev/null +++ b/docs/3.1.0/assets/js/26.353585cd.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{349:function(r,e,o){"use strict";o.r(e);var t=o(7),n=Object(t.a)({},(function(){var r=this,e=r.$createElement,o=r._self._c||e;return o("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[o("h1",{attrs:{id:"interface-archoveroptions"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#interface-archoveroptions"}},[r._v("#")]),r._v(" Interface: ArcHoverOptions")]),r._v(" "),o("h2",{attrs:{id:"hierarchy"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[r._v("#")]),r._v(" Hierarchy")]),r._v(" "),o("ul",[o("li",[o("p",[o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[o("em",[r._v("CommonHoverOptions")])])],1),r._v(" "),o("p",[r._v("↳ "),o("strong",[r._v("ArcHoverOptions")])])])]),r._v(" "),o("h2",{attrs:{id:"properties"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),o("h3",{attrs:{id:"hoverbackgroundcolor"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[r._v("#")]),r._v(" hoverBackgroundColor")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverBackgroundColor")]),r._v(": "),o("RouterLink",{attrs:{to:"/api/#color"}},[o("em",[r._v("Color")])])],1),r._v(" "),o("p",[r._v("Inherited from: "),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbackgroundcolor"}},[r._v("hoverBackgroundColor")])],1),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1594"),o("OutboundLink")],1)]),r._v(" "),o("hr"),r._v(" "),o("h3",{attrs:{id:"hoverbordercolor"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[r._v("#")]),r._v(" hoverBorderColor")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverBorderColor")]),r._v(": "),o("RouterLink",{attrs:{to:"/api/#color"}},[o("em",[r._v("Color")])])],1),r._v(" "),o("p",[r._v("Inherited from: "),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbordercolor"}},[r._v("hoverBorderColor")])],1),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1593"),o("OutboundLink")],1)]),r._v(" "),o("hr"),r._v(" "),o("h3",{attrs:{id:"hoverborderwidth"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[r._v("#")]),r._v(" hoverBorderWidth")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverBorderWidth")]),r._v(": "),o("em",[r._v("number")])]),r._v(" "),o("p",[r._v("Inherited from: "),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverborderwidth"}},[r._v("hoverBorderWidth")])],1),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1592"),o("OutboundLink")],1)]),r._v(" "),o("hr"),r._v(" "),o("h3",{attrs:{id:"hoveroffset"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoveroffset"}},[r._v("#")]),r._v(" hoverOffset")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverOffset")]),r._v(": "),o("em",[r._v("number")])]),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1637",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1637"),o("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/26.5cd11368.js b/docs/3.1.0/assets/js/26.5cd11368.js deleted file mode 100644 index 9b348234f3..0000000000 --- a/docs/3.1.0/assets/js/26.5cd11368.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{353:function(r,o,e){"use strict";e.r(o);var t=e(7),s=Object(t.a)({},(function(){var r=this,o=r.$createElement,e=r._self._c||o;return e("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[e("h1",{attrs:{id:"interface-archoveroptions"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#interface-archoveroptions"}},[r._v("#")]),r._v(" Interface: ArcHoverOptions")]),r._v(" "),e("h2",{attrs:{id:"hierarchy"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[r._v("#")]),r._v(" Hierarchy")]),r._v(" "),e("ul",[e("li",[e("p",[e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[e("em",[r._v("CommonHoverOptions")])])],1),r._v(" "),e("p",[r._v("↳ "),e("strong",[r._v("ArcHoverOptions")])])])]),r._v(" "),e("h2",{attrs:{id:"properties"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),e("h3",{attrs:{id:"hoverbackgroundcolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[r._v("#")]),r._v(" hoverBackgroundColor")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("hoverBackgroundColor")]),r._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[r._v("Color")])])],1),r._v(" "),e("p",[r._v("Inherited from: "),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbackgroundcolor"}},[r._v("hoverBackgroundColor")])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1594"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"hoverbordercolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[r._v("#")]),r._v(" hoverBorderColor")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("hoverBorderColor")]),r._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[r._v("Color")])])],1),r._v(" "),e("p",[r._v("Inherited from: "),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbordercolor"}},[r._v("hoverBorderColor")])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1593"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"hoverborderwidth"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[r._v("#")]),r._v(" hoverBorderWidth")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("hoverBorderWidth")]),r._v(": "),e("em",[r._v("number")])]),r._v(" "),e("p",[r._v("Inherited from: "),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverborderwidth"}},[r._v("hoverBorderWidth")])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1592"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"hoveroffset"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hoveroffset"}},[r._v("#")]),r._v(" hoverOffset")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("hoverOffset")]),r._v(": "),e("em",[r._v("number")])]),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1637",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1637"),e("OutboundLink")],1)])])}),[],!1,null,null,null);o.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/27.b322463a.js b/docs/3.1.0/assets/js/27.b322463a.js new file mode 100644 index 0000000000..80957ea4e8 --- /dev/null +++ b/docs/3.1.0/assets/js/27.b322463a.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{353:function(e,r,t){"use strict";t.r(r);var o=t(7),n=Object(o.a)({},(function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"interface-arcoptions"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interface-arcoptions"}},[e._v("#")]),e._v(" Interface: ArcOptions")]),e._v(" "),t("h2",{attrs:{id:"hierarchy"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[e._v("#")]),e._v(" Hierarchy")]),e._v(" "),t("ul",[t("li",[t("p",[t("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t("em",[e._v("CommonElementOptions")])])],1),e._v(" "),t("p",[e._v("↳ "),t("strong",[e._v("ArcOptions")])])])]),e._v(" "),t("h2",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),t("h3",{attrs:{id:"backgroundcolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[e._v("#")]),e._v(" backgroundColor")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("backgroundColor")]),e._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[e._v("Color")])])],1),e._v(" "),t("p",[e._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[e._v("CommonElementOptions")]),e._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#backgroundcolor"}},[e._v("backgroundColor")])],1),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1588"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"borderalign"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#borderalign"}},[e._v("#")]),e._v(" borderAlign")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("borderAlign")]),e._v(": "),t("em",[e._v("center")]),e._v(" | "),t("em",[e._v("inner")])]),e._v(" "),t("p",[e._v("Arc stroke alignment.")]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1624",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1624"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"bordercolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[e._v("#")]),e._v(" borderColor")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("borderColor")]),e._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[e._v("Color")])])],1),e._v(" "),t("p",[e._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[e._v("CommonElementOptions")]),e._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#bordercolor"}},[e._v("borderColor")])],1),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1587"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"borderradius"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[e._v("#")]),e._v(" borderRadius")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("borderRadius")]),e._v(": "),t("em",[e._v("number")]),e._v(" | "),t("RouterLink",{attrs:{to:"/api/interfaces/arcborderradius.html"}},[t("em",[e._v("ArcBorderRadius")])])],1),e._v(" "),t("p",[e._v("Sets the border radius for arcs")]),e._v(" "),t("p",[t("strong",[t("code",[e._v("default")])]),e._v(" 0")]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1633",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1633"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"borderwidth"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[e._v("#")]),e._v(" borderWidth")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("borderWidth")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[e._v("CommonElementOptions")]),e._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#borderwidth"}},[e._v("borderWidth")])],1),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1586"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"offset"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#offset"}},[e._v("#")]),e._v(" offset")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("offset")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Arc offset (in pixels).")]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1628",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1628"),t("OutboundLink")],1)])])}),[],!1,null,null,null);r.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/27.f3557547.js b/docs/3.1.0/assets/js/27.f3557547.js deleted file mode 100644 index 39e21a5aa0..0000000000 --- a/docs/3.1.0/assets/js/27.f3557547.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{354:function(r,t,e){"use strict";e.r(t);var o=e(7),n=Object(o.a)({},(function(){var r=this,t=r.$createElement,e=r._self._c||t;return e("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[e("h1",{attrs:{id:"interface-arcoptions"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#interface-arcoptions"}},[r._v("#")]),r._v(" Interface: ArcOptions")]),r._v(" "),e("h2",{attrs:{id:"hierarchy"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[r._v("#")]),r._v(" Hierarchy")]),r._v(" "),e("ul",[e("li",[e("p",[e("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[e("em",[r._v("CommonElementOptions")])])],1),r._v(" "),e("p",[r._v("↳ "),e("strong",[r._v("ArcOptions")])])])]),r._v(" "),e("h2",{attrs:{id:"properties"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),e("h3",{attrs:{id:"backgroundcolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[r._v("#")]),r._v(" backgroundColor")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("backgroundColor")]),r._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[r._v("Color")])])],1),r._v(" "),e("p",[r._v("Inherited from: "),e("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[r._v("CommonElementOptions")]),r._v("."),e("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#backgroundcolor"}},[r._v("backgroundColor")])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1588"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"borderalign"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#borderalign"}},[r._v("#")]),r._v(" borderAlign")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("borderAlign")]),r._v(": "),e("em",[r._v("center")]),r._v(" | "),e("em",[r._v("inner")])]),r._v(" "),e("p",[r._v("Arc stroke alignment.")]),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1624",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1624"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"bordercolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[r._v("#")]),r._v(" borderColor")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("borderColor")]),r._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[r._v("Color")])])],1),r._v(" "),e("p",[r._v("Inherited from: "),e("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[r._v("CommonElementOptions")]),r._v("."),e("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#bordercolor"}},[r._v("borderColor")])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1587"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"borderradius"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[r._v("#")]),r._v(" borderRadius")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("borderRadius")]),r._v(": "),e("em",[r._v("number")]),r._v(" | "),e("RouterLink",{attrs:{to:"/api/interfaces/arcborderradius.html"}},[e("em",[r._v("ArcBorderRadius")])])],1),r._v(" "),e("p",[r._v("Sets the border radius for arcs")]),r._v(" "),e("p",[e("strong",[e("code",[r._v("default")])]),r._v(" 0")]),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1633",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1633"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"borderwidth"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[r._v("#")]),r._v(" borderWidth")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("borderWidth")]),r._v(": "),e("em",[r._v("number")])]),r._v(" "),e("p",[r._v("Inherited from: "),e("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[r._v("CommonElementOptions")]),r._v("."),e("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#borderwidth"}},[r._v("borderWidth")])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1586"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"offset"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#offset"}},[r._v("#")]),r._v(" offset")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("offset")]),r._v(": "),e("em",[r._v("number")])]),r._v(" "),e("p",[r._v("Arc offset (in pixels).")]),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1628",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1628"),e("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/28.97e1e48f.js b/docs/3.1.0/assets/js/28.97e1e48f.js deleted file mode 100644 index 98558eac3e..0000000000 --- a/docs/3.1.0/assets/js/28.97e1e48f.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{355:function(e,r,t){"use strict";t.r(r);var s=t(7),n=Object(s.a)({},(function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"interface-arcprops"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interface-arcprops"}},[e._v("#")]),e._v(" Interface: ArcProps")]),e._v(" "),t("h2",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),t("h3",{attrs:{id:"circumference"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#circumference"}},[e._v("#")]),e._v(" circumference")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("circumference")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1610",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1610"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"endangle"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#endangle"}},[e._v("#")]),e._v(" endAngle")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("endAngle")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1607",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1607"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"innerradius"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#innerradius"}},[e._v("#")]),e._v(" innerRadius")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("innerRadius")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1608",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1608"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"outerradius"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#outerradius"}},[e._v("#")]),e._v(" outerRadius")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("outerRadius")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1609",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1609"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"startangle"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#startangle"}},[e._v("#")]),e._v(" startAngle")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("startAngle")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1606",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1606"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"x"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[e._v("#")]),e._v(" x")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("x")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1604",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1604"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"y"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[e._v("#")]),e._v(" y")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("y")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1605",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1605"),t("OutboundLink")],1)])])}),[],!1,null,null,null);r.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/28.ba867bf5.js b/docs/3.1.0/assets/js/28.ba867bf5.js new file mode 100644 index 0000000000..313e41dc83 --- /dev/null +++ b/docs/3.1.0/assets/js/28.ba867bf5.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{351:function(e,r,t){"use strict";t.r(r);var s=t(7),n=Object(s.a)({},(function(){var e=this,r=e.$createElement,t=e._self._c||r;return t("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[t("h1",{attrs:{id:"interface-arcprops"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interface-arcprops"}},[e._v("#")]),e._v(" Interface: ArcProps")]),e._v(" "),t("h2",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),t("h3",{attrs:{id:"circumference"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#circumference"}},[e._v("#")]),e._v(" circumference")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("circumference")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1610",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1610"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"endangle"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#endangle"}},[e._v("#")]),e._v(" endAngle")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("endAngle")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1607",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1607"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"innerradius"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#innerradius"}},[e._v("#")]),e._v(" innerRadius")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("innerRadius")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1608",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1608"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"outerradius"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#outerradius"}},[e._v("#")]),e._v(" outerRadius")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("outerRadius")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1609",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1609"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"startangle"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#startangle"}},[e._v("#")]),e._v(" startAngle")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("startAngle")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1606",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1606"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"x"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[e._v("#")]),e._v(" x")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("x")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1604",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1604"),t("OutboundLink")],1)]),e._v(" "),t("hr"),e._v(" "),t("h3",{attrs:{id:"y"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[e._v("#")]),e._v(" y")]),e._v(" "),t("p",[e._v("• "),t("strong",[e._v("y")]),e._v(": "),t("em",[e._v("number")])]),e._v(" "),t("p",[e._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1605",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1605"),t("OutboundLink")],1)])])}),[],!1,null,null,null);r.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/29.32dffc05.js b/docs/3.1.0/assets/js/29.f82ad649.js similarity index 76% rename from docs/3.1.0/assets/js/29.32dffc05.js rename to docs/3.1.0/assets/js/29.f82ad649.js index ee911c471c..8cef19b646 100644 --- a/docs/3.1.0/assets/js/29.32dffc05.js +++ b/docs/3.1.0/assets/js/29.f82ad649.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{356:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-barcontrollerchartoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-barcontrollerchartoptions"}},[t._v("#")]),t._v(" Interface: BarControllerChartOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"skipnull"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#skipnull"}},[t._v("#")]),t._v(" skipNull")]),t._v(" "),r("p",[t._v("• "),r("code",[t._v("Optional")]),t._v(" "),r("strong",[t._v("skipNull")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Should null or undefined values be omitted from drawing")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L136",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:136"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{352:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-barcontrollerchartoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-barcontrollerchartoptions"}},[t._v("#")]),t._v(" Interface: BarControllerChartOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"skipnull"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#skipnull"}},[t._v("#")]),t._v(" skipNull")]),t._v(" "),r("p",[t._v("• "),r("code",[t._v("Optional")]),t._v(" "),r("strong",[t._v("skipNull")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Should null or undefined values be omitted from drawing")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L136",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:136"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/3.070dc659.js b/docs/3.1.0/assets/js/3.f47fb655.js similarity index 100% rename from docs/3.1.0/assets/js/3.070dc659.js rename to docs/3.1.0/assets/js/3.f47fb655.js diff --git a/docs/3.1.0/assets/js/30.5783407f.js b/docs/3.1.0/assets/js/30.5783407f.js deleted file mode 100644 index 79de537024..0000000000 --- a/docs/3.1.0/assets/js/30.5783407f.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{357:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-barcontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-barcontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: BarControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[r("em",[t._v("ControllerDatasetOptions")])])],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableandarrayoptions"}},[r("em",[t._v("ScriptableAndArrayOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[r("em",[t._v("BarOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#animationoptions"}},[r("em",[t._v("AnimationOptions")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">")],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("BarControllerDatasetOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("em",[t._v("false")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("<"),r("em",[t._v("bar")]),t._v("> & { "),r("code",[t._v("onComplete?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" ; "),r("code",[t._v("onProgress?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" }")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animations")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.backgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"barpercentage"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#barpercentage"}},[t._v("#")]),t._v(" barPercentage")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("barPercentage")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Percent (0-1) of the available width each bar should be within the category width. 1.0 will take the whole category width and put the bars right next to each other.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0.9")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L103",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:103"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"barthickness"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#barthickness"}},[t._v("#")]),t._v(" barThickness")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("barThickness")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("em",[t._v("flex")])]),t._v(" "),r("p",[t._v("Manually set width of each bar in pixels. If set to 'flex', it computes \"optimal\" sample widths that globally arrange bars side by side. If not set (default), bars are equally sized based on the smallest interval.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L113",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:113"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"base"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#base"}},[t._v("#")]),t._v(" base")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("base")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The base value for the bar in data units along the value axis.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.base")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1854",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1854"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[t._v("#")]),t._v(" borderRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Border radius")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1866",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1866"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderskipped"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderskipped"}},[t._v("#")]),t._v(" borderSkipped")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderSkipped")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("em",[t._v("false")]),t._v(" | "),r("em",[t._v("start")]),t._v(" | "),r("em",[t._v("end")]),t._v(" | "),r("em",[t._v("left")]),t._v(" | "),r("em",[t._v("right")]),t._v(" | "),r("em",[t._v("bottom")]),t._v(" | "),r("em",[t._v("top")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Skipped (excluded) border: 'start', 'end', 'left', 'right', 'bottom', 'top' or false (none).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'start'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderSkipped")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1860",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1860"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"categorypercentage"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#categorypercentage"}},[t._v("#")]),t._v(" categoryPercentage")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("categoryPercentage")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Percent (0-1) of the available width each category should be within the sample width.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0.8")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L108",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:108"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"maxbarthickness"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#maxbarthickness"}},[t._v("#")]),t._v(" maxBarThickness")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("maxBarThickness")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Set this to ensure that bars are not sized thicker than this.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L118",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:118"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"minbarlength"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#minbarlength"}},[t._v("#")]),t._v(" minBarLength")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("minBarLength")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Set this to ensure that bars have a minimum length in pixels.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L123",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:123"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])])],1),t._v(" "),r("p",[t._v("Point style for the legend")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'circle;")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L129",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:129"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"transitions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("transitions")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[r("em",[t._v("TransitionsSpec")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.transitions")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"xaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xaxisid"}},[t._v("#")]),t._v(" xAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("xAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the x axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L93",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:93"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"yaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yaxisid"}},[t._v("#")]),t._v(" yAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("yAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the y axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L97",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:97"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/30.c6424404.js b/docs/3.1.0/assets/js/30.c6424404.js new file mode 100644 index 0000000000..db63ff58cd --- /dev/null +++ b/docs/3.1.0/assets/js/30.c6424404.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{354:function(t,e,r){"use strict";r.r(e);var a=r(7),n=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-barcontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-barcontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: BarControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[r("em",[t._v("ControllerDatasetOptions")])])],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableandarrayoptions"}},[r("em",[t._v("ScriptableAndArrayOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[r("em",[t._v("BarOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#animationoptions"}},[r("em",[t._v("AnimationOptions")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">")],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("BarControllerDatasetOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("em",[t._v("false")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("<"),r("em",[t._v("bar")]),t._v("> & { "),r("code",[t._v("onComplete?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" ; "),r("code",[t._v("onProgress?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" }")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animations")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.backgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"barpercentage"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#barpercentage"}},[t._v("#")]),t._v(" barPercentage")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("barPercentage")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Percent (0-1) of the available width each bar should be within the category width. 1.0 will take the whole category width and put the bars right next to each other.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0.9")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L103",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:103"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"barthickness"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#barthickness"}},[t._v("#")]),t._v(" barThickness")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("barThickness")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("em",[t._v("flex")])]),t._v(" "),r("p",[t._v("Manually set width of each bar in pixels. If set to 'flex', it computes \"optimal\" sample widths that globally arrange bars side by side. If not set (default), bars are equally sized based on the smallest interval.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L113",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:113"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"base"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#base"}},[t._v("#")]),t._v(" base")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("base")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The base value for the bar in data units along the value axis.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.base")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1854",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1854"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[t._v("#")]),t._v(" borderRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Border radius")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1866",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1866"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderskipped"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderskipped"}},[t._v("#")]),t._v(" borderSkipped")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderSkipped")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("em",[t._v("false")]),t._v(" | "),r("em",[t._v("start")]),t._v(" | "),r("em",[t._v("end")]),t._v(" | "),r("em",[t._v("left")]),t._v(" | "),r("em",[t._v("right")]),t._v(" | "),r("em",[t._v("bottom")]),t._v(" | "),r("em",[t._v("top")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Skipped (excluded) border: 'start', 'end', 'left', 'right', 'bottom', 'top' or false (none).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'start'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderSkipped")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1860",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1860"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"categorypercentage"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#categorypercentage"}},[t._v("#")]),t._v(" categoryPercentage")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("categoryPercentage")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Percent (0-1) of the available width each category should be within the sample width.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0.8")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L108",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:108"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"maxbarthickness"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#maxbarthickness"}},[t._v("#")]),t._v(" maxBarThickness")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("maxBarThickness")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Set this to ensure that bars are not sized thicker than this.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L118",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:118"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"minbarlength"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#minbarlength"}},[t._v("#")]),t._v(" minBarLength")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("minBarLength")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Set this to ensure that bars have a minimum length in pixels.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L123",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:123"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])])],1),t._v(" "),r("p",[t._v("Point style for the legend")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'circle;")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L129",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:129"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"transitions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("transitions")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[r("em",[t._v("TransitionsSpec")])]),t._v("<"),r("em",[t._v("bar")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.transitions")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"xaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xaxisid"}},[t._v("#")]),t._v(" xAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("xAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the x axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L93",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:93"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"yaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yaxisid"}},[t._v("#")]),t._v(" yAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("yAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the y axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L97",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:97"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/31.7a567ad0.js b/docs/3.1.0/assets/js/31.7a567ad0.js deleted file mode 100644 index 47590df3fa..0000000000 --- a/docs/3.1.0/assets/js/31.7a567ad0.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{358:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-barelement-t-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-barelement-t-o"}},[t._v("#")]),t._v(" Interface: BarElement")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/barprops.html"}},[a("em",[t._v("BarProps")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/barprops.html"}},[a("em",[t._v("BarProps")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[a("em",[t._v("BarOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[a("em",[t._v("BarOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("")],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[a("em",[t._v("VisualElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("BarElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1577",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1577"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcenterpoint"}},[t._v("#")]),t._v(" getCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getCenterPoint")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1581"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": keyof T[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): T")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("keyof T[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getrange"}},[t._v("#")]),t._v(" getRange")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getRange")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inrange"}},[t._v("#")]),t._v(" inRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1578",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1578"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inxrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inxrange"}},[t._v("#")]),t._v(" inXRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inXRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1579",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1579"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inyrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inyrange"}},[t._v("#")]),t._v(" inYRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inYRange")]),t._v("("),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1580"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/31.c150cc00.js b/docs/3.1.0/assets/js/31.c150cc00.js new file mode 100644 index 0000000000..13b49b10d7 --- /dev/null +++ b/docs/3.1.0/assets/js/31.c150cc00.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{356:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-barelement-t-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-barelement-t-o"}},[t._v("#")]),t._v(" Interface: BarElement")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/barprops.html"}},[a("em",[t._v("BarProps")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/barprops.html"}},[a("em",[t._v("BarProps")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[a("em",[t._v("BarOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[a("em",[t._v("BarOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("")],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[a("em",[t._v("VisualElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("BarElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1577",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1577"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcenterpoint"}},[t._v("#")]),t._v(" getCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getCenterPoint")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1581"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": keyof T[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): T")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("keyof T[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getrange"}},[t._v("#")]),t._v(" getRange")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getRange")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inrange"}},[t._v("#")]),t._v(" inRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1578",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1578"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inxrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inxrange"}},[t._v("#")]),t._v(" inXRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inXRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1579",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1579"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inyrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inyrange"}},[t._v("#")]),t._v(" inYRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inYRange")]),t._v("("),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1580"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/32.3cb42dd2.js b/docs/3.1.0/assets/js/32.3cb42dd2.js deleted file mode 100644 index 7a2c7c9548..0000000000 --- a/docs/3.1.0/assets/js/32.3cb42dd2.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{359:function(r,o,e){"use strict";e.r(o);var t=e(7),a=Object(t.a)({},(function(){var r=this,o=r.$createElement,e=r._self._c||o;return e("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[e("h1",{attrs:{id:"interface-barhoveroptions"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#interface-barhoveroptions"}},[r._v("#")]),r._v(" Interface: BarHoverOptions")]),r._v(" "),e("h2",{attrs:{id:"hierarchy"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[r._v("#")]),r._v(" Hierarchy")]),r._v(" "),e("ul",[e("li",[e("p",[e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[e("em",[r._v("CommonHoverOptions")])])],1),r._v(" "),e("p",[r._v("↳ "),e("strong",[r._v("BarHoverOptions")])])])]),r._v(" "),e("h2",{attrs:{id:"properties"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),e("h3",{attrs:{id:"hoverbackgroundcolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[r._v("#")]),r._v(" hoverBackgroundColor")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("hoverBackgroundColor")]),r._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[r._v("Color")])])],1),r._v(" "),e("p",[r._v("Inherited from: "),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbackgroundcolor"}},[r._v("hoverBackgroundColor")])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1594"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"hoverbordercolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[r._v("#")]),r._v(" hoverBorderColor")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("hoverBorderColor")]),r._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[r._v("Color")])])],1),r._v(" "),e("p",[r._v("Inherited from: "),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbordercolor"}},[r._v("hoverBorderColor")])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1593"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"hoverborderradius"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderradius"}},[r._v("#")]),r._v(" hoverBorderRadius")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("hoverBorderRadius")]),r._v(": "),e("em",[r._v("number")]),r._v(" | "),e("RouterLink",{attrs:{to:"/api/interfaces/borderradius.html"}},[e("em",[r._v("BorderRadius")])])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1877",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1877"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"hoverborderwidth"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[r._v("#")]),r._v(" hoverBorderWidth")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("hoverBorderWidth")]),r._v(": "),e("em",[r._v("number")])]),r._v(" "),e("p",[r._v("Inherited from: "),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),e("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverborderwidth"}},[r._v("hoverBorderWidth")])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1592"),e("OutboundLink")],1)])])}),[],!1,null,null,null);o.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/32.5ba19999.js b/docs/3.1.0/assets/js/32.5ba19999.js new file mode 100644 index 0000000000..21fd7d0803 --- /dev/null +++ b/docs/3.1.0/assets/js/32.5ba19999.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{355:function(r,e,o){"use strict";o.r(e);var t=o(7),a=Object(t.a)({},(function(){var r=this,e=r.$createElement,o=r._self._c||e;return o("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[o("h1",{attrs:{id:"interface-barhoveroptions"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#interface-barhoveroptions"}},[r._v("#")]),r._v(" Interface: BarHoverOptions")]),r._v(" "),o("h2",{attrs:{id:"hierarchy"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[r._v("#")]),r._v(" Hierarchy")]),r._v(" "),o("ul",[o("li",[o("p",[o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[o("em",[r._v("CommonHoverOptions")])])],1),r._v(" "),o("p",[r._v("↳ "),o("strong",[r._v("BarHoverOptions")])])])]),r._v(" "),o("h2",{attrs:{id:"properties"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),o("h3",{attrs:{id:"hoverbackgroundcolor"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[r._v("#")]),r._v(" hoverBackgroundColor")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverBackgroundColor")]),r._v(": "),o("RouterLink",{attrs:{to:"/api/#color"}},[o("em",[r._v("Color")])])],1),r._v(" "),o("p",[r._v("Inherited from: "),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbackgroundcolor"}},[r._v("hoverBackgroundColor")])],1),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1594"),o("OutboundLink")],1)]),r._v(" "),o("hr"),r._v(" "),o("h3",{attrs:{id:"hoverbordercolor"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[r._v("#")]),r._v(" hoverBorderColor")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverBorderColor")]),r._v(": "),o("RouterLink",{attrs:{to:"/api/#color"}},[o("em",[r._v("Color")])])],1),r._v(" "),o("p",[r._v("Inherited from: "),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbordercolor"}},[r._v("hoverBorderColor")])],1),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1593"),o("OutboundLink")],1)]),r._v(" "),o("hr"),r._v(" "),o("h3",{attrs:{id:"hoverborderradius"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderradius"}},[r._v("#")]),r._v(" hoverBorderRadius")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverBorderRadius")]),r._v(": "),o("em",[r._v("number")]),r._v(" | "),o("RouterLink",{attrs:{to:"/api/interfaces/borderradius.html"}},[o("em",[r._v("BorderRadius")])])],1),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1877",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1877"),o("OutboundLink")],1)]),r._v(" "),o("hr"),r._v(" "),o("h3",{attrs:{id:"hoverborderwidth"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[r._v("#")]),r._v(" hoverBorderWidth")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverBorderWidth")]),r._v(": "),o("em",[r._v("number")])]),r._v(" "),o("p",[r._v("Inherited from: "),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverborderwidth"}},[r._v("hoverBorderWidth")])],1),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1592"),o("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/33.04619ac5.js b/docs/3.1.0/assets/js/33.04619ac5.js deleted file mode 100644 index f7959b23fe..0000000000 --- a/docs/3.1.0/assets/js/33.04619ac5.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{360:function(e,t,r){"use strict";r.r(t);var o=r(7),a=Object(o.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-baroptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-baroptions"}},[e._v("#")]),e._v(" Interface: BarOptions")]),e._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[e._v("#")]),e._v(" Hierarchy")]),e._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[r("em",[e._v("CommonElementOptions")])])],1),e._v(" "),r("p",[e._v("↳ "),r("strong",[e._v("BarOptions")])])])]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[e._v("#")]),e._v(" backgroundColor")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("backgroundColor")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[e._v("CommonElementOptions")]),e._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#backgroundcolor"}},[e._v("backgroundColor")])],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"base"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#base"}},[e._v("#")]),e._v(" base")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("base")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("The base value for the bar in data units along the value axis.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1854",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1854"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[e._v("#")]),e._v(" borderColor")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderColor")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[e._v("CommonElementOptions")]),e._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#bordercolor"}},[e._v("borderColor")])],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[e._v("#")]),e._v(" borderRadius")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderRadius")]),e._v(": "),r("em",[e._v("number")]),e._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/borderradius.html"}},[r("em",[e._v("BorderRadius")])])],1),e._v(" "),r("p",[e._v("Border radius")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 0")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1866",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1866"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"borderskipped"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderskipped"}},[e._v("#")]),e._v(" borderSkipped")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderSkipped")]),e._v(": "),r("em",[e._v("false")]),e._v(" | "),r("em",[e._v("start")]),e._v(" | "),r("em",[e._v("end")]),e._v(" | "),r("em",[e._v("left")]),e._v(" | "),r("em",[e._v("right")]),e._v(" | "),r("em",[e._v("bottom")]),e._v(" | "),r("em",[e._v("top")])]),e._v(" "),r("p",[e._v("Skipped (excluded) border: 'start', 'end', 'left', 'right', 'bottom', 'top' or false (none).")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 'start'")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1860",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1860"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[e._v("#")]),e._v(" borderWidth")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderWidth")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[e._v("CommonElementOptions")]),e._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#borderwidth"}},[e._v("borderWidth")])],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1586"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/33.886e86c0.js b/docs/3.1.0/assets/js/33.886e86c0.js new file mode 100644 index 0000000000..7e5865cf7a --- /dev/null +++ b/docs/3.1.0/assets/js/33.886e86c0.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{357:function(e,t,r){"use strict";r.r(t);var o=r(7),a=Object(o.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-baroptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-baroptions"}},[e._v("#")]),e._v(" Interface: BarOptions")]),e._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[e._v("#")]),e._v(" Hierarchy")]),e._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[r("em",[e._v("CommonElementOptions")])])],1),e._v(" "),r("p",[e._v("↳ "),r("strong",[e._v("BarOptions")])])])]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[e._v("#")]),e._v(" backgroundColor")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("backgroundColor")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[e._v("CommonElementOptions")]),e._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#backgroundcolor"}},[e._v("backgroundColor")])],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"base"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#base"}},[e._v("#")]),e._v(" base")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("base")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("The base value for the bar in data units along the value axis.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1854",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1854"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[e._v("#")]),e._v(" borderColor")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderColor")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[e._v("CommonElementOptions")]),e._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#bordercolor"}},[e._v("borderColor")])],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[e._v("#")]),e._v(" borderRadius")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderRadius")]),e._v(": "),r("em",[e._v("number")]),e._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/borderradius.html"}},[r("em",[e._v("BorderRadius")])])],1),e._v(" "),r("p",[e._v("Border radius")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 0")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1866",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1866"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"borderskipped"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderskipped"}},[e._v("#")]),e._v(" borderSkipped")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderSkipped")]),e._v(": "),r("em",[e._v("false")]),e._v(" | "),r("em",[e._v("start")]),e._v(" | "),r("em",[e._v("end")]),e._v(" | "),r("em",[e._v("left")]),e._v(" | "),r("em",[e._v("right")]),e._v(" | "),r("em",[e._v("bottom")]),e._v(" | "),r("em",[e._v("top")])]),e._v(" "),r("p",[e._v("Skipped (excluded) border: 'start', 'end', 'left', 'right', 'bottom', 'top' or false (none).")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 'start'")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1860",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1860"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[e._v("#")]),e._v(" borderWidth")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderWidth")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[e._v("CommonElementOptions")]),e._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#borderwidth"}},[e._v("borderWidth")])],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1586"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/34.139281d5.js b/docs/3.1.0/assets/js/34.139281d5.js deleted file mode 100644 index 78fb166433..0000000000 --- a/docs/3.1.0/assets/js/34.139281d5.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{361:function(t,e,r){"use strict";r.r(e);var s=r(7),a=Object(s.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-barprops"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-barprops"}},[t._v("#")]),t._v(" Interface: BarProps")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"base"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#base"}},[t._v("#")]),t._v(" base")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("base")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1844",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1844"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"height"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("height")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1847",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1847"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"horizontal"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#horizontal"}},[t._v("#")]),t._v(" horizontal")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("horizontal")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1845",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1845"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"width"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("width")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1846",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1846"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("x")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1842",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1842"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("y")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1843",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1843"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/34.e6a38b20.js b/docs/3.1.0/assets/js/34.e6a38b20.js new file mode 100644 index 0000000000..36060a4a94 --- /dev/null +++ b/docs/3.1.0/assets/js/34.e6a38b20.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{358:function(e,t,r){"use strict";r.r(t);var s=r(7),a=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-barprops"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-barprops"}},[e._v("#")]),e._v(" Interface: BarProps")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"base"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#base"}},[e._v("#")]),e._v(" base")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("base")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1844",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1844"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"height"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[e._v("#")]),e._v(" height")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("height")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1847",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1847"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"horizontal"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#horizontal"}},[e._v("#")]),e._v(" horizontal")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("horizontal")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1845",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1845"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"width"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[e._v("#")]),e._v(" width")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("width")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1846",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1846"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[e._v("#")]),e._v(" x")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("x")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1842",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1842"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[e._v("#")]),e._v(" y")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("y")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1843",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1843"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/35.2bc7aed5.js b/docs/3.1.0/assets/js/35.2bc7aed5.js new file mode 100644 index 0000000000..d1eb5184b1 --- /dev/null +++ b/docs/3.1.0/assets/js/35.2bc7aed5.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{359:function(t,e,r){"use strict";r.r(e);var s=r(7),a=Object(s.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-borderradius"}},[t._v("#")]),t._v(" Interface: BorderRadius")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"bottomleft"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bottomleft"}},[t._v("#")]),t._v(" bottomLeft")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bottomLeft")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1872",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1872"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bottomright"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bottomright"}},[t._v("#")]),t._v(" bottomRight")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bottomRight")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1873",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1873"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"topleft"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#topleft"}},[t._v("#")]),t._v(" topLeft")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("topLeft")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1870",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1870"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"topright"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#topright"}},[t._v("#")]),t._v(" topRight")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("topRight")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1871",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1871"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/35.fbfa4c98.js b/docs/3.1.0/assets/js/35.fbfa4c98.js deleted file mode 100644 index 3b23b770ae..0000000000 --- a/docs/3.1.0/assets/js/35.fbfa4c98.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{362:function(t,e,r){"use strict";r.r(e);var s=r(7),a=Object(s.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-borderradius"}},[t._v("#")]),t._v(" Interface: BorderRadius")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"bottomleft"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bottomleft"}},[t._v("#")]),t._v(" bottomLeft")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bottomLeft")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1872",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1872"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bottomright"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bottomright"}},[t._v("#")]),t._v(" bottomRight")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bottomRight")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1873",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1873"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"topleft"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#topleft"}},[t._v("#")]),t._v(" topLeft")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("topLeft")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1870",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1870"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"topright"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#topright"}},[t._v("#")]),t._v(" topRight")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("topRight")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1871",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1871"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/36.a4911720.js b/docs/3.1.0/assets/js/36.a4911720.js new file mode 100644 index 0000000000..0fca303379 --- /dev/null +++ b/docs/3.1.0/assets/js/36.a4911720.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{360:function(t,e,r){"use strict";r.r(e);var a=r(7),o=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-bubblecontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-bubblecontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: BubbleControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[r("em",[t._v("ControllerDatasetOptions")])])],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableandarrayoptions"}},[r("em",[t._v("ScriptableAndArrayOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[r("em",[t._v("PointOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("BubbleControllerDatasetOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.backgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hitradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hitradius"}},[t._v("#")]),t._v(" hitRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hitRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Extra radius added to point radius for hit detection.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 1")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hitRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1758",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1758"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverradius"}},[t._v("#")]),t._v(" hoverRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Point radius when hovered.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 4")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1776",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1776"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Point style")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'circle;")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1763",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1763"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"radius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#radius"}},[t._v("#")]),t._v(" radius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("radius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Point radius")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 3")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.radius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1753",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1753"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[t._v("#")]),t._v(" rotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rotation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Point rotation (in degrees).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.rotation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1768",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1768"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/36.cfe2dfd0.js b/docs/3.1.0/assets/js/36.cfe2dfd0.js deleted file mode 100644 index feff47cb47..0000000000 --- a/docs/3.1.0/assets/js/36.cfe2dfd0.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{363:function(t,e,r){"use strict";r.r(e);var a=r(7),o=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-bubblecontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-bubblecontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: BubbleControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[r("em",[t._v("ControllerDatasetOptions")])])],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableandarrayoptions"}},[r("em",[t._v("ScriptableAndArrayOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[r("em",[t._v("PointOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("BubbleControllerDatasetOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.backgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hitradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hitradius"}},[t._v("#")]),t._v(" hitRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hitRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Extra radius added to point radius for hit detection.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 1")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hitRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1758",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1758"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverradius"}},[t._v("#")]),t._v(" hoverRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Point radius when hovered.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 4")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1776",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1776"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("bubble")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Point style")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'circle;")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1763",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1763"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"radius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#radius"}},[t._v("#")]),t._v(" radius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("radius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Point radius")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 3")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.radius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1753",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1753"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[t._v("#")]),t._v(" rotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rotation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Point rotation (in degrees).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.rotation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1768",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1768"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/37.b47c5714.js b/docs/3.1.0/assets/js/37.b47c5714.js new file mode 100644 index 0000000000..783311ca1e --- /dev/null +++ b/docs/3.1.0/assets/js/37.b47c5714.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{361:function(e,t,r){"use strict";r.r(t);var a=r(7),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-bubbledatapoint"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-bubbledatapoint"}},[e._v("#")]),e._v(" Interface: BubbleDataPoint")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"r"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#r"}},[e._v("#")]),e._v(" r")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("r")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Bubble radius in pixels (not scaled).")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L164",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:164"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[e._v("#")]),e._v(" x")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("x")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("X Value")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L154",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:154"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[e._v("#")]),e._v(" y")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("y")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Y Value")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L159",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:159"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/37.d17ee4cf.js b/docs/3.1.0/assets/js/37.d17ee4cf.js deleted file mode 100644 index eb8388a269..0000000000 --- a/docs/3.1.0/assets/js/37.d17ee4cf.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{364:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-bubbledatapoint"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-bubbledatapoint"}},[t._v("#")]),t._v(" Interface: BubbleDataPoint")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"r"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#r"}},[t._v("#")]),t._v(" r")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("r")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Bubble radius in pixels (not scaled).")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L164",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:164"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("x")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("X Value")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L154",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:154"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("y")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Y Value")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L159",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:159"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/38.485e4dd3.js b/docs/3.1.0/assets/js/38.485e4dd3.js deleted file mode 100644 index 35b16373be..0000000000 --- a/docs/3.1.0/assets/js/38.485e4dd3.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{365:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-cartesianscaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-cartesianscaleoptions"}},[t._v("#")]),t._v(" Interface: CartesianScaleOptions")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("CartesianScaleOptions")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"aligntopixels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aligntopixels"}},[t._v("#")]),t._v(" alignToPixels")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("alignToPixels")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Align pixel values to device pixels")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html#aligntopixels"}},[t._v("alignToPixels")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1077",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1077"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"axis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])]),t._v(" "),a("p",[t._v("Which type of axis this is. Possible values are: 'x', 'y'. If not set, this is inferred from the first character of the ID which should be 'x' or 'y'.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2751",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2751"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"display"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[t._v("#")]),t._v(" display")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("display")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("auto")])]),t._v(" "),a("p",[t._v("Controls the axis global visibility (visible when true, hidden when false). When display: 'auto', the axis is visible only if at least one associated dataset is visible.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html#display"}},[t._v("display")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1073",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1073"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"grid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#grid"}},[t._v("#")]),t._v(" grid")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("grid")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/gridlineoptions.html"}},[a("em",[t._v("GridLineOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2769",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2769"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"max"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#max"}},[t._v("#")]),t._v(" max")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("max")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("User defined maximum value for the scale, overrides maximum value from data.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2761",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2761"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"min"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#min"}},[t._v("#")]),t._v(" min")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("min")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("User defined minimum value for the scale, overrides minimum value from data.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2756",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2756"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"offset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offset"}},[t._v("#")]),t._v(" offset")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("offset")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("If true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to true for a bar chart by default.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2767",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2767"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("em",[t._v("left")]),t._v(" | "),a("em",[t._v("right")]),t._v(" | "),a("em",[t._v("bottom")]),t._v(" | "),a("em",[t._v("top")]),t._v(" | "),a("em",[t._v("center")]),t._v(" | { [scale: string]: "),a("em",[t._v("number")]),t._v("; }")]),t._v(" "),a("p",[t._v("Position of the axis.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2747",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2747"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reverse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reverse"}},[t._v("#")]),t._v(" reverse")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("reverse")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Reverse the scale.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html#reverse"}},[t._v("reverse")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1082",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1082"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"stacked"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stacked"}},[t._v("#")]),t._v(" stacked")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Optional")]),t._v(" "),a("strong",[t._v("stacked")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("single")])]),t._v(" "),a("p",[t._v("If true, data will be comprised between datasets of data")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2786",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2786"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[t._v("#")]),t._v(" ticks")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tickoptions.html"}},[a("em",[t._v("TickOptions")])]),t._v(" & { "),a("code",[t._v("align")]),t._v(": "),a("em",[t._v("start")]),t._v(" | "),a("em",[t._v("end")]),t._v(" | "),a("em",[t._v("center")]),t._v(" ; "),a("code",[t._v("autoSkip")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("autoSkipPadding")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("crossAlign")]),t._v(": "),a("em",[t._v("center")]),t._v(" | "),a("em",[t._v("near")]),t._v(" | "),a("em",[t._v("far")]),t._v(" ; "),a("code",[t._v("labelOffset")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("maxRotation")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("minRotation")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("mirror")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("padding")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("sampleSize")]),t._v(": "),a("em",[t._v("number")]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2788",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2788"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"title"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" title")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("title")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("display")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("font")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[a("em",[t._v("FontSpec")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding.bottom")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding.top")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("text")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2771",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2771"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html#weight"}},[t._v("weight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1087",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1087"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBuildTicks")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after ticks are created. Useful for filtering ticks.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1115",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1115"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftercalculatetickrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftercalculatetickrotation"}},[t._v("#")]),t._v(" afterCalculateTickRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterCalculateTickRotation")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after tick rotation is determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1131",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1131"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterDataLimits")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after data limits are determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1107",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1107"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfit"}},[t._v("#")]),t._v(" afterFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFit")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after the scale fits to the canvas.")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1139",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1139"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftersetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftersetdimensions"}},[t._v("#")]),t._v(" afterSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterSetDimensions")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after dimensions are set.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1099",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1099"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterticktolabelconversion"}},[t._v("#")]),t._v(" afterTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTickToLabelConversion")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after ticks are converted into strings.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1123",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1123"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterUpdate")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs at the end of the update process.")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1143",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1143"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBuildTicks")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before ticks are created.")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1111",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1111"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforecalculatetickrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforecalculatetickrotation"}},[t._v("#")]),t._v(" beforeCalculateTickRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeCalculateTickRotation")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before tick rotation is determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1127",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1127"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeDataLimits")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before data limits are determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1103",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1103"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefit"}},[t._v("#")]),t._v(" beforeFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFit")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before the scale fits to the canvas.")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1135",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1135"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforesetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforesetdimensions"}},[t._v("#")]),t._v(" beforeSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeSetDimensions")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before dimensions are set.")]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1095",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1095"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeticktolabelconversion"}},[t._v("#")]),t._v(" beforeTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTickToLabelConversion")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before ticks are converted into strings.")]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1119",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1119"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeUpdate")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback called before the update process starts.")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1091",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1091"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/38.cd9de92b.js b/docs/3.1.0/assets/js/38.cd9de92b.js new file mode 100644 index 0000000000..50bc8fea6b --- /dev/null +++ b/docs/3.1.0/assets/js/38.cd9de92b.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{362:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-cartesianscaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-cartesianscaleoptions"}},[t._v("#")]),t._v(" Interface: CartesianScaleOptions")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("CartesianScaleOptions")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"aligntopixels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aligntopixels"}},[t._v("#")]),t._v(" alignToPixels")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("alignToPixels")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Align pixel values to device pixels")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html#aligntopixels"}},[t._v("alignToPixels")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1077",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1077"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"axis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])]),t._v(" "),a("p",[t._v("Which type of axis this is. Possible values are: 'x', 'y'. If not set, this is inferred from the first character of the ID which should be 'x' or 'y'.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2751",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2751"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"display"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[t._v("#")]),t._v(" display")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("display")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("auto")])]),t._v(" "),a("p",[t._v("Controls the axis global visibility (visible when true, hidden when false). When display: 'auto', the axis is visible only if at least one associated dataset is visible.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html#display"}},[t._v("display")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1073",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1073"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"grid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#grid"}},[t._v("#")]),t._v(" grid")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("grid")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/gridlineoptions.html"}},[a("em",[t._v("GridLineOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2769",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2769"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"max"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#max"}},[t._v("#")]),t._v(" max")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("max")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("User defined maximum value for the scale, overrides maximum value from data.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2761",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2761"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"min"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#min"}},[t._v("#")]),t._v(" min")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("min")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("User defined minimum value for the scale, overrides minimum value from data.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2756",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2756"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"offset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offset"}},[t._v("#")]),t._v(" offset")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("offset")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("If true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to true for a bar chart by default.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2767",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2767"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("em",[t._v("left")]),t._v(" | "),a("em",[t._v("right")]),t._v(" | "),a("em",[t._v("bottom")]),t._v(" | "),a("em",[t._v("top")]),t._v(" | "),a("em",[t._v("center")]),t._v(" | { [scale: string]: "),a("em",[t._v("number")]),t._v("; }")]),t._v(" "),a("p",[t._v("Position of the axis.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2747",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2747"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reverse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reverse"}},[t._v("#")]),t._v(" reverse")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("reverse")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Reverse the scale.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html#reverse"}},[t._v("reverse")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1082",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1082"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"stacked"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stacked"}},[t._v("#")]),t._v(" stacked")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Optional")]),t._v(" "),a("strong",[t._v("stacked")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("single")])]),t._v(" "),a("p",[t._v("If true, data will be comprised between datasets of data")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2786",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2786"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[t._v("#")]),t._v(" ticks")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tickoptions.html"}},[a("em",[t._v("TickOptions")])]),t._v(" & { "),a("code",[t._v("align")]),t._v(": "),a("em",[t._v("start")]),t._v(" | "),a("em",[t._v("end")]),t._v(" | "),a("em",[t._v("center")]),t._v(" ; "),a("code",[t._v("autoSkip")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("autoSkipPadding")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("crossAlign")]),t._v(": "),a("em",[t._v("center")]),t._v(" | "),a("em",[t._v("near")]),t._v(" | "),a("em",[t._v("far")]),t._v(" ; "),a("code",[t._v("labelOffset")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("maxRotation")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("minRotation")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("mirror")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("padding")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("sampleSize")]),t._v(": "),a("em",[t._v("number")]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2788",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2788"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"title"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" title")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("title")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("display")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("font")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[a("em",[t._v("FontSpec")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding.bottom")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding.top")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("text")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("string")]),t._v("[]")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2771",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2771"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html#weight"}},[t._v("weight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1087",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1087"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBuildTicks")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after ticks are created. Useful for filtering ticks.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1115",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1115"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftercalculatetickrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftercalculatetickrotation"}},[t._v("#")]),t._v(" afterCalculateTickRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterCalculateTickRotation")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after tick rotation is determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1131",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1131"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterDataLimits")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after data limits are determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1107",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1107"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfit"}},[t._v("#")]),t._v(" afterFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFit")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after the scale fits to the canvas.")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1139",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1139"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftersetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftersetdimensions"}},[t._v("#")]),t._v(" afterSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterSetDimensions")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after dimensions are set.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1099",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1099"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterticktolabelconversion"}},[t._v("#")]),t._v(" afterTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTickToLabelConversion")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after ticks are converted into strings.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1123",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1123"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterUpdate")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs at the end of the update process.")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1143",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1143"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBuildTicks")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before ticks are created.")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1111",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1111"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforecalculatetickrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforecalculatetickrotation"}},[t._v("#")]),t._v(" beforeCalculateTickRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeCalculateTickRotation")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before tick rotation is determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1127",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1127"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeDataLimits")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before data limits are determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1103",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1103"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefit"}},[t._v("#")]),t._v(" beforeFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFit")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before the scale fits to the canvas.")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1135",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1135"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforesetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforesetdimensions"}},[t._v("#")]),t._v(" beforeSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeSetDimensions")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before dimensions are set.")]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1095",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1095"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeticktolabelconversion"}},[t._v("#")]),t._v(" beforeTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTickToLabelConversion")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before ticks are converted into strings.")]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1119",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1119"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeUpdate")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback called before the update process starts.")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1091",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1091"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/39.4f741a92.js b/docs/3.1.0/assets/js/39.4f741a92.js deleted file mode 100644 index b48976f330..0000000000 --- a/docs/3.1.0/assets/js/39.4f741a92.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{366:function(t,e,a){"use strict";a.r(e);var r=a(7),i=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-cartesianscaletyperegistry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-cartesianscaletyperegistry"}},[t._v("#")]),t._v(" Interface: CartesianScaleTypeRegistry")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("CartesianScaleTypeRegistry")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/scaletyperegistry.html"}},[a("em",[t._v("ScaleTypeRegistry")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"category"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#category"}},[t._v("#")]),t._v(" category")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("category")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#categoryscaleoptions"}},[a("em",[t._v("CategoryScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3186",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3186"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linear"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linear"}},[t._v("#")]),t._v(" linear")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("linear")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#linearscaleoptions"}},[a("em",[t._v("LinearScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3180",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3180"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"logarithmic"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#logarithmic"}},[t._v("#")]),t._v(" logarithmic")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("logarithmic")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-3"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#logarithmicscaleoptions"}},[a("em",[t._v("LogarithmicScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3183",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3183"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"time"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#time"}},[t._v("#")]),t._v(" time")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("time")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-4"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3189",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3189"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timeseries"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timeseries"}},[t._v("#")]),t._v(" timeseries")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("timeseries")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-5"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3192",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3192"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/39.804db20b.js b/docs/3.1.0/assets/js/39.804db20b.js new file mode 100644 index 0000000000..0fffa21dc7 --- /dev/null +++ b/docs/3.1.0/assets/js/39.804db20b.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[39],{363:function(t,e,a){"use strict";a.r(e);var r=a(7),i=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-cartesianscaletyperegistry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-cartesianscaletyperegistry"}},[t._v("#")]),t._v(" Interface: CartesianScaleTypeRegistry")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("CartesianScaleTypeRegistry")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/scaletyperegistry.html"}},[a("em",[t._v("ScaleTypeRegistry")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"category"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#category"}},[t._v("#")]),t._v(" category")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("category")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#categoryscaleoptions"}},[a("em",[t._v("CategoryScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3186",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3186"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linear"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linear"}},[t._v("#")]),t._v(" linear")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("linear")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#linearscaleoptions"}},[a("em",[t._v("LinearScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3180",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3180"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"logarithmic"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#logarithmic"}},[t._v("#")]),t._v(" logarithmic")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("logarithmic")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-3"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#logarithmicscaleoptions"}},[a("em",[t._v("LogarithmicScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3183",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3183"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"time"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#time"}},[t._v("#")]),t._v(" time")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("time")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-4"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3189",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3189"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timeseries"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timeseries"}},[t._v("#")]),t._v(" timeseries")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("timeseries")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-5"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3192",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3192"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/4.ce242792.js b/docs/3.1.0/assets/js/4.02ebacaa.js similarity index 100% rename from docs/3.1.0/assets/js/4.ce242792.js rename to docs/3.1.0/assets/js/4.02ebacaa.js diff --git a/docs/3.1.0/assets/js/40.2b5bc944.js b/docs/3.1.0/assets/js/40.2b5bc944.js new file mode 100644 index 0000000000..76d032c05e --- /dev/null +++ b/docs/3.1.0/assets/js/40.2b5bc944.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{365:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-chartarea"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartarea"}},[t._v("#")]),t._v(" Interface: ChartArea")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"bottom"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bottom")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/geometric.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:5"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"left"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("left")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/geometric.d.ts#L3",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:3"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"right"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("right")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/geometric.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:4"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"top"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("top")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/geometric.d.ts#L2",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:2"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/40.3566dbd1.js b/docs/3.1.0/assets/js/40.3566dbd1.js deleted file mode 100644 index 0fc27dd1ca..0000000000 --- a/docs/3.1.0/assets/js/40.3566dbd1.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{367:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-chartarea"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartarea"}},[t._v("#")]),t._v(" Interface: ChartArea")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"bottom"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bottom")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/geometric.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:5"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"left"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("left")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/geometric.d.ts#L3",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:3"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"right"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("right")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/geometric.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:4"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"top"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("top")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/geometric.d.ts#L2",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:2"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/41.46ae730a.js b/docs/3.1.0/assets/js/41.46ae730a.js deleted file mode 100644 index 862e2e51e4..0000000000 --- a/docs/3.1.0/assets/js/41.46ae730a.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{368:function(e,t,r){"use strict";r.r(t);var s=r(7),a=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-chartcomponent"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartcomponent"}},[e._v("#")]),e._v(" Interface: ChartComponent")]),e._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[e._v("#")]),e._v(" Hierarchy")]),e._v(" "),r("ul",[r("li",[r("p",[r("strong",[e._v("ChartComponent")])]),e._v(" "),r("p",[e._v("↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/datasetcontrollerchartcomponent.html"}},[r("em",[e._v("DatasetControllerChartComponent")])])],1)])]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"defaultroutes"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defaultroutes"}},[e._v("#")]),e._v(" defaultRoutes")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("defaultRoutes")]),e._v(": "),r("em",[e._v("object")])]),e._v(" "),r("h4",{attrs:{id:"type-declaration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[e._v("#")]),e._v(" Type declaration:")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1326",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1326"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"defaults"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defaults"}},[e._v("#")]),e._v(" defaults")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("defaults")]),e._v(": "),r("em",[e._v("Record")]),e._v("")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1325",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1325"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"id"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[e._v("#")]),e._v(" id")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("id")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1324",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1324"),r("OutboundLink")],1)]),e._v(" "),r("h2",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[e._v("#")]),e._v(" Methods")]),e._v(" "),r("h3",{attrs:{id:"afterregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#afterregister"}},[e._v("#")]),e._v(" afterRegister")]),e._v(" "),r("p",[e._v("▸ "),r("code",[e._v("Optional")]),r("strong",[e._v("afterRegister")]),e._v("(): "),r("em",[e._v("void")])]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("em",[e._v("void")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1329",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1329"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"afterunregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#afterunregister"}},[e._v("#")]),e._v(" afterUnregister")]),e._v(" "),r("p",[e._v("▸ "),r("code",[e._v("Optional")]),r("strong",[e._v("afterUnregister")]),e._v("(): "),r("em",[e._v("void")])]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("em",[e._v("void")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1331",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1331"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"beforeregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#beforeregister"}},[e._v("#")]),e._v(" beforeRegister")]),e._v(" "),r("p",[e._v("▸ "),r("code",[e._v("Optional")]),r("strong",[e._v("beforeRegister")]),e._v("(): "),r("em",[e._v("void")])]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("em",[e._v("void")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1328",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1328"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"beforeunregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#beforeunregister"}},[e._v("#")]),e._v(" beforeUnregister")]),e._v(" "),r("p",[e._v("▸ "),r("code",[e._v("Optional")]),r("strong",[e._v("beforeUnregister")]),e._v("(): "),r("em",[e._v("void")])]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("em",[e._v("void")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1330",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1330"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/41.ffdbe277.js b/docs/3.1.0/assets/js/41.ffdbe277.js new file mode 100644 index 0000000000..18175d7581 --- /dev/null +++ b/docs/3.1.0/assets/js/41.ffdbe277.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{364:function(e,t,r){"use strict";r.r(t);var s=r(7),a=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-chartcomponent"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartcomponent"}},[e._v("#")]),e._v(" Interface: ChartComponent")]),e._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[e._v("#")]),e._v(" Hierarchy")]),e._v(" "),r("ul",[r("li",[r("p",[r("strong",[e._v("ChartComponent")])]),e._v(" "),r("p",[e._v("↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/datasetcontrollerchartcomponent.html"}},[r("em",[e._v("DatasetControllerChartComponent")])])],1)])]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"defaultroutes"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defaultroutes"}},[e._v("#")]),e._v(" defaultRoutes")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("defaultRoutes")]),e._v(": "),r("em",[e._v("object")])]),e._v(" "),r("h4",{attrs:{id:"type-declaration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[e._v("#")]),e._v(" Type declaration:")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1326",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1326"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"defaults"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defaults"}},[e._v("#")]),e._v(" defaults")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("defaults")]),e._v(": "),r("em",[e._v("Record")]),e._v("")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1325",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1325"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"id"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[e._v("#")]),e._v(" id")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("id")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1324",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1324"),r("OutboundLink")],1)]),e._v(" "),r("h2",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[e._v("#")]),e._v(" Methods")]),e._v(" "),r("h3",{attrs:{id:"afterregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#afterregister"}},[e._v("#")]),e._v(" afterRegister")]),e._v(" "),r("p",[e._v("▸ "),r("code",[e._v("Optional")]),r("strong",[e._v("afterRegister")]),e._v("(): "),r("em",[e._v("void")])]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("em",[e._v("void")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1329",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1329"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"afterunregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#afterunregister"}},[e._v("#")]),e._v(" afterUnregister")]),e._v(" "),r("p",[e._v("▸ "),r("code",[e._v("Optional")]),r("strong",[e._v("afterUnregister")]),e._v("(): "),r("em",[e._v("void")])]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("em",[e._v("void")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1331",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1331"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"beforeregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#beforeregister"}},[e._v("#")]),e._v(" beforeRegister")]),e._v(" "),r("p",[e._v("▸ "),r("code",[e._v("Optional")]),r("strong",[e._v("beforeRegister")]),e._v("(): "),r("em",[e._v("void")])]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("em",[e._v("void")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1328",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1328"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"beforeunregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#beforeunregister"}},[e._v("#")]),e._v(" beforeUnregister")]),e._v(" "),r("p",[e._v("▸ "),r("code",[e._v("Optional")]),r("strong",[e._v("beforeUnregister")]),e._v("(): "),r("em",[e._v("void")])]),e._v(" "),r("p",[r("strong",[e._v("Returns:")]),e._v(" "),r("em",[e._v("void")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1330",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1330"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/42.670bd41a.js b/docs/3.1.0/assets/js/42.670bd41a.js deleted file mode 100644 index c351c07a29..0000000000 --- a/docs/3.1.0/assets/js/42.670bd41a.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{369:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-chartconfiguration-ttype-tdata-tlabel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartconfiguration-ttype-tdata-tlabel"}},[t._v("#")]),t._v(" Interface: ChartConfiguration")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TType[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TLabel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"data"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[t._v("#")]),t._v(" data")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("data")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[a("em",[t._v("ChartData")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3363",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3363"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Optional")]),t._v(" "),a("strong",[t._v("options")]),t._v(": "),a("em",[t._v("DeepPartial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[a("em",[t._v("CoreChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[a("em",[t._v("ElementChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[a("em",[t._v("PluginChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#datasetchartoptions"}},[a("em",[t._v("DatasetChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#scalechartoptions"}},[a("em",[t._v("ScaleChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("chartOptions")]),t._v("]>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3364",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3364"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"plugins"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#plugins"}},[t._v("#")]),t._v(" plugins")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Optional")]),t._v(" "),a("strong",[t._v("plugins")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])]),t._v(">[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3365",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3365"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("type")]),t._v(": TType")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3362",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3362"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/42.861beeb2.js b/docs/3.1.0/assets/js/42.861beeb2.js new file mode 100644 index 0000000000..ce50faa78f --- /dev/null +++ b/docs/3.1.0/assets/js/42.861beeb2.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{369:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-chartconfiguration-ttype-tdata-tlabel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartconfiguration-ttype-tdata-tlabel"}},[t._v("#")]),t._v(" Interface: ChartConfiguration")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TType[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TLabel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"data"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[t._v("#")]),t._v(" data")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("data")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[a("em",[t._v("ChartData")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3363",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3363"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Optional")]),t._v(" "),a("strong",[t._v("options")]),t._v(": "),a("em",[t._v("DeepPartial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[a("em",[t._v("CoreChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[a("em",[t._v("ElementChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[a("em",[t._v("PluginChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#datasetchartoptions"}},[a("em",[t._v("DatasetChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#scalechartoptions"}},[a("em",[t._v("ScaleChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("chartOptions")]),t._v("]>")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3364",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3364"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"plugins"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#plugins"}},[t._v("#")]),t._v(" plugins")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Optional")]),t._v(" "),a("strong",[t._v("plugins")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])]),t._v(">[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3365",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3365"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("type")]),t._v(": TType")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3362",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3362"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/43.99e62d17.js b/docs/3.1.0/assets/js/43.eaeffe1e.js similarity index 73% rename from docs/3.1.0/assets/js/43.99e62d17.js rename to docs/3.1.0/assets/js/43.eaeffe1e.js index 5435a5e977..90aecbf1e4 100644 --- a/docs/3.1.0/assets/js/43.99e62d17.js +++ b/docs/3.1.0/assets/js/43.eaeffe1e.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[43],{370:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-chartdata-ttype-tdata-tlabel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartdata-ttype-tdata-tlabel"}},[t._v("#")]),t._v(" Interface: ChartData")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TType[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TLabel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"datasets"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasets"}},[t._v("#")]),t._v(" datasets")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("datasets")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3354",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3354"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labels"}},[t._v("#")]),t._v(" labels")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Optional")]),t._v(" "),a("strong",[t._v("labels")]),t._v(": TLabel[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3353",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3353"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[43],{447:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-chartdata-ttype-tdata-tlabel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartdata-ttype-tdata-tlabel"}},[t._v("#")]),t._v(" Interface: ChartData")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TType[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TLabel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"datasets"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasets"}},[t._v("#")]),t._v(" datasets")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("datasets")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3354",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3354"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labels"}},[t._v("#")]),t._v(" labels")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Optional")]),t._v(" "),a("strong",[t._v("labels")]),t._v(": TLabel[]")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3353",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3353"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/44.f2a002b7.js b/docs/3.1.0/assets/js/44.a272b2bf.js similarity index 65% rename from docs/3.1.0/assets/js/44.f2a002b7.js rename to docs/3.1.0/assets/js/44.a272b2bf.js index 7db54f42b5..a5bcc81928 100644 --- a/docs/3.1.0/assets/js/44.f2a002b7.js +++ b/docs/3.1.0/assets/js/44.a272b2bf.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[44],{371:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-chartdatasetproperties-ttype-tdata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartdatasetproperties-ttype-tdata"}},[t._v("#")]),t._v(" Interface: ChartDatasetProperties")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"data"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[t._v("#")]),t._v(" data")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("data")]),t._v(": TData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3338",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3338"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Optional")]),t._v(" "),a("strong",[t._v("type")]),t._v(": TType")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3337",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3337"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[44],{475:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-chartdatasetproperties-ttype-tdata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartdatasetproperties-ttype-tdata"}},[t._v("#")]),t._v(" Interface: ChartDatasetProperties")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"data"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[t._v("#")]),t._v(" data")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("data")]),t._v(": TData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3338",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3338"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Optional")]),t._v(" "),a("strong",[t._v("type")]),t._v(": TType")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3337",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3337"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/45.1c977b10.js b/docs/3.1.0/assets/js/45.1c977b10.js new file mode 100644 index 0000000000..db2af0a30e --- /dev/null +++ b/docs/3.1.0/assets/js/45.1c977b10.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[45],{368:function(e,t,r){"use strict";r.r(t);var s=r(7),n=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-chartevent"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartevent"}},[e._v("#")]),e._v(" Interface: ChartEvent")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"native"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#native"}},[e._v("#")]),e._v(" native")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("native")]),e._v(": Event")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1319",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1319"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"type"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[e._v("#")]),e._v(" type")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("type")]),e._v(": "),r("em",[e._v("resize")]),e._v(" | "),r("em",[e._v("mousemove")]),e._v(" | "),r("em",[e._v("mouseout")]),e._v(" | "),r("em",[e._v("click")]),e._v(" | "),r("em",[e._v("contextmenu")]),e._v(" | "),r("em",[e._v("mouseenter")]),e._v(" | "),r("em",[e._v("mousedown")]),e._v(" | "),r("em",[e._v("mouseup")]),e._v(" | "),r("em",[e._v("dblclick")]),e._v(" | "),r("em",[e._v("keydown")]),e._v(" | "),r("em",[e._v("keypress")]),e._v(" | "),r("em",[e._v("keyup")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1306",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1306"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[e._v("#")]),e._v(" x")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("x")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1320",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1320"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[e._v("#")]),e._v(" y")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("y")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1321",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1321"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/45.ec8e59c9.js b/docs/3.1.0/assets/js/45.ec8e59c9.js deleted file mode 100644 index b84eec3011..0000000000 --- a/docs/3.1.0/assets/js/45.ec8e59c9.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[45],{372:function(e,t,r){"use strict";r.r(t);var s=r(7),a=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-chartevent"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartevent"}},[e._v("#")]),e._v(" Interface: ChartEvent")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"native"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#native"}},[e._v("#")]),e._v(" native")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("native")]),e._v(": Event")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1319",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1319"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"type"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[e._v("#")]),e._v(" type")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("type")]),e._v(": "),r("em",[e._v("resize")]),e._v(" | "),r("em",[e._v("mousemove")]),e._v(" | "),r("em",[e._v("mouseout")]),e._v(" | "),r("em",[e._v("click")]),e._v(" | "),r("em",[e._v("contextmenu")]),e._v(" | "),r("em",[e._v("mouseenter")]),e._v(" | "),r("em",[e._v("mousedown")]),e._v(" | "),r("em",[e._v("mouseup")]),e._v(" | "),r("em",[e._v("dblclick")]),e._v(" | "),r("em",[e._v("keydown")]),e._v(" | "),r("em",[e._v("keypress")]),e._v(" | "),r("em",[e._v("keyup")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1306",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1306"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[e._v("#")]),e._v(" x")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("x")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1320",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1320"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[e._v("#")]),e._v(" y")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("y")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1321",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1321"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/46.84622a0b.js b/docs/3.1.0/assets/js/46.84622a0b.js deleted file mode 100644 index acef57744c..0000000000 --- a/docs/3.1.0/assets/js/46.84622a0b.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[46],{373:function(e,t,r){"use strict";r.r(t);var a=r(7),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-chartmeta-telement-tdatasetelement"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartmeta-telement-tdatasetelement"}},[e._v("#")]),e._v(" Interface: ChartMeta")]),e._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[e._v("#")]),e._v(" Type parameters")]),e._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[e._v("Name")]),e._v(" "),r("th",{staticStyle:{"text-align":"left"}},[e._v("Type")]),e._v(" "),r("th",{staticStyle:{"text-align":"left"}},[e._v("Default")])])]),e._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[e._v("TElement")])]),e._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])])],1),e._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])])],1)]),e._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[e._v("TDatasetElement")])]),e._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])])],1),e._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])])],1)])])]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"parsed"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsed"}},[e._v("#")]),e._v(" _parsed")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("_parsed")]),e._v(": "),r("em",[e._v("unknown")]),e._v("[]")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L423",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:423"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"sorted"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#sorted"}},[e._v("#")]),e._v(" _sorted")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("_sorted")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L421",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:421"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"stacked"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stacked"}},[e._v("#")]),e._v(" _stacked")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("_stacked")]),e._v(": "),r("em",[e._v("boolean")]),e._v(" | "),r("em",[e._v("single")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L422",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:422"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"controller"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#controller"}},[e._v("#")]),e._v(" controller")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("controller")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[r("em",[e._v("DatasetController")])]),e._v("<"),r("em",[e._v("bar")]),e._v(" | "),r("em",[e._v("line")]),e._v(" | "),r("em",[e._v("scatter")]),e._v(" | "),r("em",[e._v("bubble")]),e._v(" | "),r("em",[e._v("pie")]),e._v(" | "),r("em",[e._v("doughnut")]),e._v(" | "),r("em",[e._v("polarArea")]),e._v(" | "),r("em",[e._v("radar")]),e._v(", "),r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])]),e._v("<{}, {}>, "),r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])]),e._v("<{}, {}>, number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData>")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L393",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:393"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"data"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[e._v("#")]),e._v(" data")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("data")]),e._v(": TElement[]")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L404",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:404"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"dataset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[e._v("#")]),e._v(" dataset")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("dataset")]),e._v(": TDatasetElement")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L405",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:405"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[e._v("#")]),e._v(" hidden")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("hidden")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L407",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:407"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"iaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#iaxisid"}},[e._v("#")]),e._v(" iAxisID")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("iAxisID")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L412",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:412"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"iscale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#iscale"}},[e._v("#")]),e._v(" iScale")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("iScale")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[e._v("Scale")])]),e._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[e._v("CoreScaleOptions")])]),e._v(">")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L418",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:418"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"index"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[e._v("#")]),e._v(" index")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("index")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L397",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:397"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[e._v("#")]),e._v(" indexAxis")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("indexAxis")]),e._v(": "),r("em",[e._v("x")]),e._v(" | "),r("em",[e._v("y")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L402",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:402"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[e._v("#")]),e._v(" label")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("label")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L396",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:396"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[e._v("#")]),e._v(" order")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("order")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L394",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:394"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"raxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#raxisid"}},[e._v("#")]),e._v(" rAxisID")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("rAxisID")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L411",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:411"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"rscale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rscale"}},[e._v("#")]),e._v(" rScale")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("rScale")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[e._v("Scale")])]),e._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[e._v("CoreScaleOptions")])]),e._v(">")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L417",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:417"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[e._v("#")]),e._v(" stack")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("stack")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L400",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:400"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"type"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[e._v("#")]),e._v(" type")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("type")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L392",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:392"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"vaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#vaxisid"}},[e._v("#")]),e._v(" vAxisID")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("vAxisID")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L413",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:413"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"vscale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#vscale"}},[e._v("#")]),e._v(" vScale")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("vScale")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[e._v("Scale")])]),e._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[e._v("CoreScaleOptions")])]),e._v(">")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L419",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:419"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"visible"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#visible"}},[e._v("#")]),e._v(" visible")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("visible")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L398",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:398"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"xaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xaxisid"}},[e._v("#")]),e._v(" xAxisID")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("xAxisID")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L409",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:409"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"xscale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xscale"}},[e._v("#")]),e._v(" xScale")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("xScale")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[e._v("Scale")])]),e._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[e._v("CoreScaleOptions")])]),e._v(">")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L415",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:415"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"yaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yaxisid"}},[e._v("#")]),e._v(" yAxisID")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("yAxisID")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L410",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:410"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"yscale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yscale"}},[e._v("#")]),e._v(" yScale")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("yScale")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[e._v("Scale")])]),e._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[e._v("CoreScaleOptions")])]),e._v(">")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L416",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:416"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/46.e4570fef.js b/docs/3.1.0/assets/js/46.e4570fef.js new file mode 100644 index 0000000000..5301aa3101 --- /dev/null +++ b/docs/3.1.0/assets/js/46.e4570fef.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[46],{370:function(e,t,r){"use strict";r.r(t);var a=r(7),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-chartmeta-telement-tdatasetelement"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-chartmeta-telement-tdatasetelement"}},[e._v("#")]),e._v(" Interface: ChartMeta")]),e._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[e._v("#")]),e._v(" Type parameters")]),e._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[e._v("Name")]),e._v(" "),r("th",{staticStyle:{"text-align":"left"}},[e._v("Type")]),e._v(" "),r("th",{staticStyle:{"text-align":"left"}},[e._v("Default")])])]),e._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[e._v("TElement")])]),e._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])])],1),e._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])])],1)]),e._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[e._v("TDatasetElement")])]),e._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])])],1),e._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])])],1)])])]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"parsed"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsed"}},[e._v("#")]),e._v(" _parsed")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("_parsed")]),e._v(": "),r("em",[e._v("unknown")]),e._v("[]")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L423",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:423"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"sorted"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#sorted"}},[e._v("#")]),e._v(" _sorted")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("_sorted")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L421",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:421"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"stacked"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stacked"}},[e._v("#")]),e._v(" _stacked")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("_stacked")]),e._v(": "),r("em",[e._v("boolean")]),e._v(" | "),r("em",[e._v("single")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L422",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:422"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"controller"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#controller"}},[e._v("#")]),e._v(" controller")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("controller")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[r("em",[e._v("DatasetController")])]),e._v("<"),r("em",[e._v("bar")]),e._v(" | "),r("em",[e._v("line")]),e._v(" | "),r("em",[e._v("scatter")]),e._v(" | "),r("em",[e._v("bubble")]),e._v(" | "),r("em",[e._v("pie")]),e._v(" | "),r("em",[e._v("doughnut")]),e._v(" | "),r("em",[e._v("polarArea")]),e._v(" | "),r("em",[e._v("radar")]),e._v(", "),r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])]),e._v("<{}, {}>, "),r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])]),e._v("<{}, {}>, number | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData>")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L393",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:393"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"data"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#data"}},[e._v("#")]),e._v(" data")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("data")]),e._v(": TElement[]")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L404",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:404"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"dataset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[e._v("#")]),e._v(" dataset")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("dataset")]),e._v(": TDatasetElement")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L405",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:405"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[e._v("#")]),e._v(" hidden")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("hidden")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L407",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:407"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"iaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#iaxisid"}},[e._v("#")]),e._v(" iAxisID")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("iAxisID")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L412",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:412"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"iscale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#iscale"}},[e._v("#")]),e._v(" iScale")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("iScale")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[e._v("Scale")])]),e._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[e._v("CoreScaleOptions")])]),e._v(">")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L418",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:418"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"index"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[e._v("#")]),e._v(" index")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("index")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L397",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:397"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[e._v("#")]),e._v(" indexAxis")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("indexAxis")]),e._v(": "),r("em",[e._v("x")]),e._v(" | "),r("em",[e._v("y")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L402",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:402"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[e._v("#")]),e._v(" label")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("label")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L396",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:396"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[e._v("#")]),e._v(" order")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("order")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L394",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:394"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"raxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#raxisid"}},[e._v("#")]),e._v(" rAxisID")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("rAxisID")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L411",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:411"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"rscale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rscale"}},[e._v("#")]),e._v(" rScale")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("rScale")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[e._v("Scale")])]),e._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[e._v("CoreScaleOptions")])]),e._v(">")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L417",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:417"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[e._v("#")]),e._v(" stack")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("stack")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L400",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:400"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"type"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[e._v("#")]),e._v(" type")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("type")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L392",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:392"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"vaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#vaxisid"}},[e._v("#")]),e._v(" vAxisID")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("vAxisID")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L413",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:413"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"vscale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#vscale"}},[e._v("#")]),e._v(" vScale")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("vScale")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[e._v("Scale")])]),e._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[e._v("CoreScaleOptions")])]),e._v(">")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L419",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:419"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"visible"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#visible"}},[e._v("#")]),e._v(" visible")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("visible")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L398",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:398"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"xaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xaxisid"}},[e._v("#")]),e._v(" xAxisID")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("xAxisID")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L409",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:409"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"xscale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xscale"}},[e._v("#")]),e._v(" xScale")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("xScale")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[e._v("Scale")])]),e._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[e._v("CoreScaleOptions")])]),e._v(">")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L415",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:415"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"yaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yaxisid"}},[e._v("#")]),e._v(" yAxisID")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("yAxisID")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L410",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:410"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"yscale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yscale"}},[e._v("#")]),e._v(" yScale")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("yScale")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[e._v("Scale")])]),e._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[r("em",[e._v("CoreScaleOptions")])]),e._v(">")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L416",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:416"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/47.888e1be0.js b/docs/3.1.0/assets/js/47.888e1be0.js new file mode 100644 index 0000000000..4d7c0684e2 --- /dev/null +++ b/docs/3.1.0/assets/js/47.888e1be0.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{371:function(t,e,a){"use strict";a.r(e);var r=a(7),l=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-charttyperegistry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-charttyperegistry"}},[t._v("#")]),t._v(" Interface: ChartTypeRegistry")]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"bar"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bar"}},[t._v("#")]),t._v(" bar")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bar")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/barcontrollerchartoptions.html"}},[a("em",[t._v("BarControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/barcontrollerdatasetoptions.html"}},[a("em",[t._v("BarControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("BarParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3244",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3244"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bubble"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bubble"}},[t._v("#")]),t._v(" bubble")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bubble")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/bubblecontrollerdatasetoptions.html"}},[a("em",[t._v("BubbleControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("BubbleParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3265",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3265"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"doughnut"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#doughnut"}},[t._v("#")]),t._v(" doughnut")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("doughnut")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-3"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerchartoptions.html"}},[a("em",[t._v("DoughnutControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[a("em",[t._v("DoughnutControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3279",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3279"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"line"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#line"}},[t._v("#")]),t._v(" line")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("line")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-4"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[a("em",[t._v("LineControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerdatasetoptions.html"}},[a("em",[t._v("LineControllerDatasetOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/fillercontrollerdatasetoptions.html"}},[a("em",[t._v("FillerControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CartesianParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3251",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3251"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"pie"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pie"}},[t._v("#")]),t._v(" pie")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("pie")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-5"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerchartoptions.html"}},[a("em",[t._v("DoughnutControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[a("em",[t._v("DoughnutControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3272",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3272"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"polararea"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#polararea"}},[t._v("#")]),t._v(" polarArea")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("polarArea")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-6"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/polarareacontrollerchartoptions.html"}},[a("em",[t._v("PolarAreaControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/polarareacontrollerdatasetoptions.html"}},[a("em",[t._v("PolarAreaControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("RadialParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("radialLinear")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3286",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3286"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radar"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radar"}},[t._v("#")]),t._v(" radar")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("radar")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-7"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[a("em",[t._v("LineControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/radarcontrollerdatasetoptions.html"}},[a("em",[t._v("RadarControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("RadialParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("radialLinear")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3293",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3293"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scatter"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scatter"}},[t._v("#")]),t._v(" scatter")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("scatter")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-8"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[a("em",[t._v("LineControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerdatasetoptions.html"}},[a("em",[t._v("LineControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CartesianParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3258",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3258"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=l.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/47.e97a844c.js b/docs/3.1.0/assets/js/47.e97a844c.js deleted file mode 100644 index 147e28d2f8..0000000000 --- a/docs/3.1.0/assets/js/47.e97a844c.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{374:function(t,e,a){"use strict";a.r(e);var r=a(7),l=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-charttyperegistry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-charttyperegistry"}},[t._v("#")]),t._v(" Interface: ChartTypeRegistry")]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"bar"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bar"}},[t._v("#")]),t._v(" bar")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bar")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/barcontrollerchartoptions.html"}},[a("em",[t._v("BarControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/barcontrollerdatasetoptions.html"}},[a("em",[t._v("BarControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("BarParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3244",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3244"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bubble"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bubble"}},[t._v("#")]),t._v(" bubble")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bubble")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/bubblecontrollerdatasetoptions.html"}},[a("em",[t._v("BubbleControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("BubbleParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3265",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3265"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"doughnut"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#doughnut"}},[t._v("#")]),t._v(" doughnut")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("doughnut")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-3"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerchartoptions.html"}},[a("em",[t._v("DoughnutControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[a("em",[t._v("DoughnutControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3279",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3279"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"line"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#line"}},[t._v("#")]),t._v(" line")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("line")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-4"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[a("em",[t._v("LineControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerdatasetoptions.html"}},[a("em",[t._v("LineControllerDatasetOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/fillercontrollerdatasetoptions.html"}},[a("em",[t._v("FillerControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CartesianParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3251",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3251"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"pie"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pie"}},[t._v("#")]),t._v(" pie")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("pie")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-5"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerchartoptions.html"}},[a("em",[t._v("DoughnutControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[a("em",[t._v("DoughnutControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3272",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3272"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"polararea"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#polararea"}},[t._v("#")]),t._v(" polarArea")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("polarArea")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-6"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/polarareacontrollerchartoptions.html"}},[a("em",[t._v("PolarAreaControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/polarareacontrollerdatasetoptions.html"}},[a("em",[t._v("PolarAreaControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("RadialParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("radialLinear")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3286",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3286"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radar"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radar"}},[t._v("#")]),t._v(" radar")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("radar")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-7"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[a("em",[t._v("LineControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/radarcontrollerdatasetoptions.html"}},[a("em",[t._v("RadarControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("RadialParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("radialLinear")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3293",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3293"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scatter"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scatter"}},[t._v("#")]),t._v(" scatter")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("scatter")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-8"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[a("em",[t._v("LineControllerChartOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerdatasetoptions.html"}},[a("em",[t._v("LineControllerDatasetOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("defaultDataPoint")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsedDataType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CartesianParsedData")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3258",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3258"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=l.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/48.a98c8b58.js b/docs/3.1.0/assets/js/48.3d2b6dae.js similarity index 51% rename from docs/3.1.0/assets/js/48.a98c8b58.js rename to docs/3.1.0/assets/js/48.3d2b6dae.js index 846c81ce96..b874d756da 100644 --- a/docs/3.1.0/assets/js/48.a98c8b58.js +++ b/docs/3.1.0/assets/js/48.3d2b6dae.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[48],{375:function(t,r,e){"use strict";e.r(r);var o=e(7),s=Object(o.a)({},(function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"interface-commonelementoptions"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#interface-commonelementoptions"}},[t._v("#")]),t._v(" Interface: CommonElementOptions")]),t._v(" "),e("h2",{attrs:{id:"hierarchy"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),e("ul",[e("li",[e("p",[e("strong",[t._v("CommonElementOptions")])]),t._v(" "),e("p",[t._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[e("em",[t._v("ArcOptions")])])],1),t._v(" "),e("p",[t._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[e("em",[t._v("LineOptions")])])],1),t._v(" "),e("p",[t._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[e("em",[t._v("PointOptions")])])],1),t._v(" "),e("p",[t._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[e("em",[t._v("BarOptions")])])],1)])]),t._v(" "),e("h2",{attrs:{id:"properties"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),e("h3",{attrs:{id:"backgroundcolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("backgroundColor")]),t._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[t._v("Color")])])],1),t._v(" "),e("p",[t._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"bordercolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("borderColor")]),t._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[t._v("Color")])])],1),t._v(" "),e("p",[t._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"borderwidth"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("borderWidth")]),t._v(": "),e("em",[t._v("number")])]),t._v(" "),e("p",[t._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),e("OutboundLink")],1)])])}),[],!1,null,null,null);r.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[48],{372:function(t,r,e){"use strict";e.r(r);var o=e(7),n=Object(o.a)({},(function(){var t=this,r=t.$createElement,e=t._self._c||r;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"interface-commonelementoptions"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#interface-commonelementoptions"}},[t._v("#")]),t._v(" Interface: CommonElementOptions")]),t._v(" "),e("h2",{attrs:{id:"hierarchy"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),e("ul",[e("li",[e("p",[e("strong",[t._v("CommonElementOptions")])]),t._v(" "),e("p",[t._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[e("em",[t._v("ArcOptions")])])],1),t._v(" "),e("p",[t._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[e("em",[t._v("LineOptions")])])],1),t._v(" "),e("p",[t._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[e("em",[t._v("PointOptions")])])],1),t._v(" "),e("p",[t._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[e("em",[t._v("BarOptions")])])],1)])]),t._v(" "),e("h2",{attrs:{id:"properties"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),e("h3",{attrs:{id:"backgroundcolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("backgroundColor")]),t._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[t._v("Color")])])],1),t._v(" "),e("p",[t._v("Defined in: "),e("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"bordercolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("borderColor")]),t._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[t._v("Color")])])],1),t._v(" "),e("p",[t._v("Defined in: "),e("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),e("OutboundLink")],1)]),t._v(" "),e("hr"),t._v(" "),e("h3",{attrs:{id:"borderwidth"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),e("p",[t._v("• "),e("strong",[t._v("borderWidth")]),t._v(": "),e("em",[t._v("number")])]),t._v(" "),e("p",[t._v("Defined in: "),e("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),e("OutboundLink")],1)])])}),[],!1,null,null,null);r.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/49.a9354155.js b/docs/3.1.0/assets/js/49.a9354155.js new file mode 100644 index 0000000000..fc30efa658 --- /dev/null +++ b/docs/3.1.0/assets/js/49.a9354155.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[49],{373:function(r,e,t){"use strict";t.r(e);var o=t(7),s=Object(o.a)({},(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[t("h1",{attrs:{id:"interface-commonhoveroptions"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interface-commonhoveroptions"}},[r._v("#")]),r._v(" Interface: CommonHoverOptions")]),r._v(" "),t("h2",{attrs:{id:"hierarchy"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[r._v("#")]),r._v(" Hierarchy")]),r._v(" "),t("ul",[t("li",[t("p",[t("strong",[r._v("CommonHoverOptions")])]),r._v(" "),t("p",[r._v("↳ "),t("RouterLink",{attrs:{to:"/api/interfaces/archoveroptions.html"}},[t("em",[r._v("ArcHoverOptions")])])],1),r._v(" "),t("p",[r._v("↳ "),t("RouterLink",{attrs:{to:"/api/interfaces/linehoveroptions.html"}},[t("em",[r._v("LineHoverOptions")])])],1),r._v(" "),t("p",[r._v("↳ "),t("RouterLink",{attrs:{to:"/api/interfaces/pointhoveroptions.html"}},[t("em",[r._v("PointHoverOptions")])])],1),r._v(" "),t("p",[r._v("↳ "),t("RouterLink",{attrs:{to:"/api/interfaces/barhoveroptions.html"}},[t("em",[r._v("BarHoverOptions")])])],1)])]),r._v(" "),t("h2",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),t("h3",{attrs:{id:"hoverbackgroundcolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[r._v("#")]),r._v(" hoverBackgroundColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBackgroundColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1594"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverbordercolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[r._v("#")]),r._v(" hoverBorderColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1593"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverborderwidth"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[r._v("#")]),r._v(" hoverBorderWidth")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderWidth")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1592"),t("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/49.dd5207d9.js b/docs/3.1.0/assets/js/49.dd5207d9.js deleted file mode 100644 index 09b6d33d45..0000000000 --- a/docs/3.1.0/assets/js/49.dd5207d9.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[49],{376:function(r,t,e){"use strict";e.r(t);var o=e(7),s=Object(o.a)({},(function(){var r=this,t=r.$createElement,e=r._self._c||t;return e("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[e("h1",{attrs:{id:"interface-commonhoveroptions"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#interface-commonhoveroptions"}},[r._v("#")]),r._v(" Interface: CommonHoverOptions")]),r._v(" "),e("h2",{attrs:{id:"hierarchy"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[r._v("#")]),r._v(" Hierarchy")]),r._v(" "),e("ul",[e("li",[e("p",[e("strong",[r._v("CommonHoverOptions")])]),r._v(" "),e("p",[r._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/archoveroptions.html"}},[e("em",[r._v("ArcHoverOptions")])])],1),r._v(" "),e("p",[r._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/linehoveroptions.html"}},[e("em",[r._v("LineHoverOptions")])])],1),r._v(" "),e("p",[r._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/pointhoveroptions.html"}},[e("em",[r._v("PointHoverOptions")])])],1),r._v(" "),e("p",[r._v("↳ "),e("RouterLink",{attrs:{to:"/api/interfaces/barhoveroptions.html"}},[e("em",[r._v("BarHoverOptions")])])],1)])]),r._v(" "),e("h2",{attrs:{id:"properties"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),e("h3",{attrs:{id:"hoverbackgroundcolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[r._v("#")]),r._v(" hoverBackgroundColor")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("hoverBackgroundColor")]),r._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[r._v("Color")])])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1594"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"hoverbordercolor"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[r._v("#")]),r._v(" hoverBorderColor")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("hoverBorderColor")]),r._v(": "),e("RouterLink",{attrs:{to:"/api/#color"}},[e("em",[r._v("Color")])])],1),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1593"),e("OutboundLink")],1)]),r._v(" "),e("hr"),r._v(" "),e("h3",{attrs:{id:"hoverborderwidth"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[r._v("#")]),r._v(" hoverBorderWidth")]),r._v(" "),e("p",[r._v("• "),e("strong",[r._v("hoverBorderWidth")]),r._v(": "),e("em",[r._v("number")])]),r._v(" "),e("p",[r._v("Defined in: "),e("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1592"),e("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/50.b539434c.js b/docs/3.1.0/assets/js/50.b539434c.js deleted file mode 100644 index d3fb56e494..0000000000 --- a/docs/3.1.0/assets/js/50.b539434c.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[50],{377:function(e,t,r){"use strict";r.r(t);var a=r(7),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-complexfilltarget"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-complexfilltarget"}},[e._v("#")]),e._v(" Interface: ComplexFillTarget")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"above"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#above"}},[e._v("#")]),e._v(" above")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("above")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("If no color is set, the default color will be the background color of the chart.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1990",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1990"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"below"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#below"}},[e._v("#")]),e._v(" below")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("below")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Same as the above.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1994",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1994"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"target"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#target"}},[e._v("#")]),e._v(" target")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("target")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#filltarget"}},[r("em",[e._v("FillTarget")])])],1),e._v(" "),r("p",[e._v("The accepted values are the same as the filling mode values, so you may use absolute and relative dataset indexes and/or boundaries.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1986",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1986"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/50.ece980c4.js b/docs/3.1.0/assets/js/50.ece980c4.js new file mode 100644 index 0000000000..9a03c64cee --- /dev/null +++ b/docs/3.1.0/assets/js/50.ece980c4.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[50],{374:function(e,t,r){"use strict";r.r(t);var a=r(7),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-complexfilltarget"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-complexfilltarget"}},[e._v("#")]),e._v(" Interface: ComplexFillTarget")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"above"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#above"}},[e._v("#")]),e._v(" above")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("above")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("If no color is set, the default color will be the background color of the chart.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1990",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1990"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"below"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#below"}},[e._v("#")]),e._v(" below")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("below")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Same as the above.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1994",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1994"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"target"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#target"}},[e._v("#")]),e._v(" target")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("target")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#filltarget"}},[r("em",[e._v("FillTarget")])])],1),e._v(" "),r("p",[e._v("The accepted values are the same as the filling mode values, so you may use absolute and relative dataset indexes and/or boundaries.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1986",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1986"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/51.4ce2ec8a.js b/docs/3.1.0/assets/js/51.4ce2ec8a.js new file mode 100644 index 0000000000..8d4f74942e --- /dev/null +++ b/docs/3.1.0/assets/js/51.4ce2ec8a.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{375:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-controllerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-controllerdatasetoptions"}},[t._v("#")]),t._v(" Interface: ControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[r("em",[t._v("ParsingOptions")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("ControllerDatasetOptions")])]),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/barcontrollerdatasetoptions.html"}},[r("em",[t._v("BarControllerDatasetOptions")])])],1),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/bubblecontrollerdatasetoptions.html"}},[r("em",[t._v("BubbleControllerDatasetOptions")])])],1),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerdatasetoptions.html"}},[r("em",[t._v("LineControllerDatasetOptions")])])],1),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[r("em",[t._v("DoughnutControllerDatasetOptions")])])],1),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/radarcontrollerdatasetoptions.html"}},[r("em",[t._v("RadarControllerDatasetOptions")])])],1)])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[t._v("ParsingOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[t._v("ParsingOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/51.780cd47d.js b/docs/3.1.0/assets/js/51.780cd47d.js deleted file mode 100644 index bc0e768a3d..0000000000 --- a/docs/3.1.0/assets/js/51.780cd47d.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{378:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-controllerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-controllerdatasetoptions"}},[t._v("#")]),t._v(" Interface: ControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[r("em",[t._v("ParsingOptions")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("ControllerDatasetOptions")])]),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/barcontrollerdatasetoptions.html"}},[r("em",[t._v("BarControllerDatasetOptions")])])],1),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/bubblecontrollerdatasetoptions.html"}},[r("em",[t._v("BubbleControllerDatasetOptions")])])],1),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerdatasetoptions.html"}},[r("em",[t._v("LineControllerDatasetOptions")])])],1),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[r("em",[t._v("DoughnutControllerDatasetOptions")])])],1),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/radarcontrollerdatasetoptions.html"}},[r("em",[t._v("RadarControllerDatasetOptions")])])],1)])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[t._v("ParsingOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[t._v("ParsingOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/52.44c00e86.js b/docs/3.1.0/assets/js/52.44c00e86.js new file mode 100644 index 0000000000..4802179cdd --- /dev/null +++ b/docs/3.1.0/assets/js/52.44c00e86.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[52],{376:function(t,e,a){"use strict";a.r(e);var r=a(7),n=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-corechartoptions-ttype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-corechartoptions-ttype"}},[t._v("#")]),t._v(" Interface: CoreChartOptions")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[a("em",[t._v("ParsingOptions")])])],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#animationoptions"}},[a("em",[t._v("AnimationOptions")])]),t._v("")],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("CoreChartOptions")])]),t._v(" "),a("p",[t._v("↳↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[a("em",[t._v("Defaults")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"animation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("animation")]),t._v(": "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/#animationspec"}},[a("em",[t._v("AnimationSpec")])]),t._v(" & { "),a("code",[t._v("onComplete?")]),t._v(": ("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v(" ; "),a("code",[t._v("onProgress?")]),t._v(": ("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v(" }")],1),t._v(" "),a("p",[t._v("Inherited from: AnimationOptions.animation")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"animations"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("animations")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#animationsspec"}},[a("em",[t._v("AnimationsSpec")])]),t._v("")],1),t._v(" "),a("p",[t._v("Inherited from: AnimationOptions.animations")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aspectratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aspectratio"}},[t._v("#")]),t._v(" aspectRatio")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("aspectRatio")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Canvas aspect ratio (i.e. width / height, a value of 1 representing a square canvas). Note that this option is ignored if the height is explicitly defined either as attribute or via the style.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1399",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1399"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"backgroundcolor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("backgroundColor")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("p",[t._v("base background color")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.backgroundColor")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1373",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1373"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bordercolor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("borderColor")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("p",[t._v("base border color")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.borderColor")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1378",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1378"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"color"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[t._v("#")]),t._v(" color")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("color")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("p",[t._v("base color")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.color")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1368",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1368"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"datasets"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasets"}},[t._v("#")]),t._v(" datasets")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("datasets")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("bar")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("bubble")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("doughnut")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("line")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pie")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("polarArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("radar")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scatter")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1354",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1354"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"devicepixelratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#devicepixelratio"}},[t._v("#")]),t._v(" devicePixelRatio")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("devicePixelRatio")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Override the window's default devicePixelRatio.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" window.devicePixelRatio")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1416",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1416"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"events"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#events"}},[t._v("#")]),t._v(" events")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("events")]),t._v(": ("),a("em",[t._v("mousemove")]),t._v(" | "),a("em",[t._v("mouseout")]),t._v(" | "),a("em",[t._v("click")]),t._v(" | "),a("em",[t._v("touchstart")]),t._v(" | "),a("em",[t._v("touchmove")]),t._v(")[]")]),t._v(" "),a("p",[t._v("The events option defines the browser events that the chart should listen to for tooltips and hovering.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" ['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove']")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1426",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1426"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"font"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#font"}},[t._v("#")]),t._v(" font")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("font")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[a("em",[t._v("FontSpec")])])],1),t._v(" "),a("p",[t._v("base font")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.font")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1383",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1383"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hover"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hover"}},[t._v("#")]),t._v(" hover")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("hover")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[a("em",[t._v("CoreInteractionOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1420",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1420"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"indexaxis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("indexAxis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])]),t._v(" "),a("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1362",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1362"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"interaction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interaction"}},[t._v("#")]),t._v(" interaction")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("interaction")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[a("em",[t._v("CoreInteractionOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1418",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1418"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"layout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#layout"}},[t._v("#")]),t._v(" layout")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("layout")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(">")],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1438",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1438"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"locale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#locale"}},[t._v("#")]),t._v(" locale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("locale")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Locale used for number formatting (using "),a("code",[t._v("Intl.NumberFormat")]),t._v(").")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" user's browser setting")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1405",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1405"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maintainaspectratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maintainaspectratio"}},[t._v("#")]),t._v(" maintainAspectRatio")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maintainAspectRatio")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Maintain the original canvas aspect ratio (width / height) when resizing.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1393",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1393"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"normalized"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("normalized")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[t._v("ParsingOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("parsing")]),t._v(": "),a("em",[t._v("false")]),t._v(" | { [key: string]: "),a("em",[t._v("string")]),t._v("; }")]),t._v(" "),a("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[t._v("ParsingOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"responsive"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#responsive"}},[t._v("#")]),t._v(" responsive")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("responsive")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Resizes the chart canvas when its container does (important note...).")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1388",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1388"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"transitions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("transitions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[a("em",[t._v("TransitionsSpec")])]),t._v("")],1),t._v(" "),a("p",[t._v("Inherited from: AnimationOptions.transitions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"onclick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onclick"}},[t._v("#")]),t._v(" onClick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onClick")]),t._v("("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[], "),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called if the event is of type 'mouseup' or 'click'. Passed the event, an array of active elements, and the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1436",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1436"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"onhover"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onhover"}},[t._v("#")]),t._v(" onHover")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onHover")]),t._v("("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[], "),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called when any of the events fire. Passed the event, an array of active elements (bars, points, etc), and the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1431",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1431"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"onresize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onresize"}},[t._v("#")]),t._v(" onResize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onResize")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("size")]),t._v(": { "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(" }): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called when a resize occurs. Gets passed two arguments: the chart instance and the new size.")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("size")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("size.height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("size.width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1410",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1410"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/52.a1330943.js b/docs/3.1.0/assets/js/52.a1330943.js deleted file mode 100644 index 06377c29a1..0000000000 --- a/docs/3.1.0/assets/js/52.a1330943.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[52],{379:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-corechartoptions-ttype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-corechartoptions-ttype"}},[t._v("#")]),t._v(" Interface: CoreChartOptions")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[a("em",[t._v("ParsingOptions")])])],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#animationoptions"}},[a("em",[t._v("AnimationOptions")])]),t._v("")],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("CoreChartOptions")])]),t._v(" "),a("p",[t._v("↳↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[a("em",[t._v("Defaults")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"animation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("animation")]),t._v(": "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/#animationspec"}},[a("em",[t._v("AnimationSpec")])]),t._v(" & { "),a("code",[t._v("onComplete?")]),t._v(": ("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v(" ; "),a("code",[t._v("onProgress?")]),t._v(": ("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v(" }")],1),t._v(" "),a("p",[t._v("Inherited from: AnimationOptions.animation")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"animations"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("animations")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#animationsspec"}},[a("em",[t._v("AnimationsSpec")])]),t._v("")],1),t._v(" "),a("p",[t._v("Inherited from: AnimationOptions.animations")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aspectratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aspectratio"}},[t._v("#")]),t._v(" aspectRatio")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("aspectRatio")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Canvas aspect ratio (i.e. width / height, a value of 1 representing a square canvas). Note that this option is ignored if the height is explicitly defined either as attribute or via the style.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1399",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1399"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"backgroundcolor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("backgroundColor")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("p",[t._v("base background color")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.backgroundColor")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1373",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1373"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bordercolor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("borderColor")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("p",[t._v("base border color")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.borderColor")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1378",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1378"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"color"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[t._v("#")]),t._v(" color")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("color")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("p",[t._v("base color")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.color")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1368",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1368"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"datasets"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasets"}},[t._v("#")]),t._v(" datasets")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("datasets")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("bar")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("bubble")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("doughnut")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("line")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pie")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("polarArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("radar")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scatter")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1354",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1354"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"devicepixelratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#devicepixelratio"}},[t._v("#")]),t._v(" devicePixelRatio")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("devicePixelRatio")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Override the window's default devicePixelRatio.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" window.devicePixelRatio")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1416",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1416"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"events"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#events"}},[t._v("#")]),t._v(" events")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("events")]),t._v(": ("),a("em",[t._v("mousemove")]),t._v(" | "),a("em",[t._v("mouseout")]),t._v(" | "),a("em",[t._v("click")]),t._v(" | "),a("em",[t._v("touchstart")]),t._v(" | "),a("em",[t._v("touchmove")]),t._v(")[]")]),t._v(" "),a("p",[t._v("The events option defines the browser events that the chart should listen to for tooltips and hovering.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" ['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove']")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1426",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1426"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"font"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#font"}},[t._v("#")]),t._v(" font")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("font")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[a("em",[t._v("FontSpec")])])],1),t._v(" "),a("p",[t._v("base font")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.font")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1383",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1383"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hover"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hover"}},[t._v("#")]),t._v(" hover")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("hover")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[a("em",[t._v("CoreInteractionOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1420",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1420"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"indexaxis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("indexAxis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])]),t._v(" "),a("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1362",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1362"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"interaction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interaction"}},[t._v("#")]),t._v(" interaction")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("interaction")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[a("em",[t._v("CoreInteractionOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1418",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1418"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"layout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#layout"}},[t._v("#")]),t._v(" layout")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("layout")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(">")],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1438",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1438"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"locale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#locale"}},[t._v("#")]),t._v(" locale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("locale")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Locale used for number formatting (using "),a("code",[t._v("Intl.NumberFormat")]),t._v(").")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" user's browser setting")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1405",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1405"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maintainaspectratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maintainaspectratio"}},[t._v("#")]),t._v(" maintainAspectRatio")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maintainAspectRatio")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Maintain the original canvas aspect ratio (width / height) when resizing.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1393",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1393"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"normalized"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("normalized")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[t._v("ParsingOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("parsing")]),t._v(": "),a("em",[t._v("false")]),t._v(" | { [key: string]: "),a("em",[t._v("string")]),t._v("; }")]),t._v(" "),a("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[t._v("ParsingOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"responsive"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#responsive"}},[t._v("#")]),t._v(" responsive")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("responsive")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Resizes the chart canvas when its container does (important note...).")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1388",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1388"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"transitions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("transitions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[a("em",[t._v("TransitionsSpec")])]),t._v("")],1),t._v(" "),a("p",[t._v("Inherited from: AnimationOptions.transitions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"onclick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onclick"}},[t._v("#")]),t._v(" onClick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onClick")]),t._v("("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[], "),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called if the event is of type 'mouseup' or 'click'. Passed the event, an array of active elements, and the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1436",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1436"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"onhover"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onhover"}},[t._v("#")]),t._v(" onHover")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onHover")]),t._v("("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[], "),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called when any of the events fire. Passed the event, an array of active elements (bars, points, etc), and the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1431",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1431"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"onresize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onresize"}},[t._v("#")]),t._v(" onResize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onResize")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("size")]),t._v(": { "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(" }): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called when a resize occurs. Gets passed two arguments: the chart instance and the new size.")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("size")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("size.height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("size.width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1410",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1410"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/53.6f12fc3c.js b/docs/3.1.0/assets/js/53.6f12fc3c.js deleted file mode 100644 index e32194c186..0000000000 --- a/docs/3.1.0/assets/js/53.6f12fc3c.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[53],{380:function(e,t,r){"use strict";r.r(t);var s=r(7),a=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-coreinteractionoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-coreinteractionoptions"}},[e._v("#")]),e._v(" Interface: CoreInteractionOptions")]),e._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[e._v("#")]),e._v(" Hierarchy")]),e._v(" "),r("ul",[r("li",[r("p",[r("strong",[e._v("CoreInteractionOptions")])]),e._v(" "),r("p",[e._v("↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipoptions.html"}},[r("em",[e._v("TooltipOptions")])])],1)])]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"axis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[e._v("#")]),e._v(" axis")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("axis")]),e._v(": "),r("em",[e._v("x")]),e._v(" | "),r("em",[e._v("y")]),e._v(" | "),r("em",[e._v("xy")])]),e._v(" "),r("p",[e._v("Can be set to 'x', 'y', or 'xy' to define which directions are used in calculating distances. Defaults to 'x' for 'index' mode and 'xy' in dataset and 'nearest' modes.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1349",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1349"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"intersect"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#intersect"}},[e._v("#")]),e._v(" intersect")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("intersect")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("if true, the hover mode only applies when the mouse position intersects an item on the chart.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" true")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1344",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1344"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"mode"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#mode"}},[e._v("#")]),e._v(" mode")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("mode")]),e._v(": "),r("em",[e._v("x")]),e._v(" | "),r("em",[e._v("y")]),e._v(" | "),r("em",[e._v("dataset")]),e._v(" | "),r("em",[e._v("index")]),e._v(" | "),r("em",[e._v("point")]),e._v(" | "),r("em",[e._v("nearest")])]),e._v(" "),r("p",[e._v("Sets which elements appear in the tooltip. See Interaction Modes for details.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 'nearest'")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1339",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1339"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/53.df736d99.js b/docs/3.1.0/assets/js/53.df736d99.js new file mode 100644 index 0000000000..353823c600 --- /dev/null +++ b/docs/3.1.0/assets/js/53.df736d99.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[53],{377:function(e,t,r){"use strict";r.r(t);var s=r(7),a=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-coreinteractionoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-coreinteractionoptions"}},[e._v("#")]),e._v(" Interface: CoreInteractionOptions")]),e._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[e._v("#")]),e._v(" Hierarchy")]),e._v(" "),r("ul",[r("li",[r("p",[r("strong",[e._v("CoreInteractionOptions")])]),e._v(" "),r("p",[e._v("↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipoptions.html"}},[r("em",[e._v("TooltipOptions")])])],1)])]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"axis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[e._v("#")]),e._v(" axis")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("axis")]),e._v(": "),r("em",[e._v("x")]),e._v(" | "),r("em",[e._v("y")]),e._v(" | "),r("em",[e._v("xy")])]),e._v(" "),r("p",[e._v("Can be set to 'x', 'y', or 'xy' to define which directions are used in calculating distances. Defaults to 'x' for 'index' mode and 'xy' in dataset and 'nearest' modes.")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1349",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1349"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"intersect"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#intersect"}},[e._v("#")]),e._v(" intersect")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("intersect")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("if true, the hover mode only applies when the mouse position intersects an item on the chart.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" true")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1344",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1344"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"mode"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#mode"}},[e._v("#")]),e._v(" mode")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("mode")]),e._v(": "),r("em",[e._v("x")]),e._v(" | "),r("em",[e._v("y")]),e._v(" | "),r("em",[e._v("dataset")]),e._v(" | "),r("em",[e._v("index")]),e._v(" | "),r("em",[e._v("point")]),e._v(" | "),r("em",[e._v("nearest")])]),e._v(" "),r("p",[e._v("Sets which elements appear in the tooltip. See Interaction Modes for details.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 'nearest'")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1339",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1339"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/54.29b9b9a7.js b/docs/3.1.0/assets/js/54.29b9b9a7.js deleted file mode 100644 index faa20f75fd..0000000000 --- a/docs/3.1.0/assets/js/54.29b9b9a7.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{381:function(t,e,a){"use strict";a.r(e);var s=a(7),r=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-corescaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-corescaleoptions"}},[t._v("#")]),t._v(" Interface: CoreScaleOptions")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("CoreScaleOptions")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[a("em",[t._v("CartesianScaleOptions")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"aligntopixels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aligntopixels"}},[t._v("#")]),t._v(" alignToPixels")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("alignToPixels")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Align pixel values to device pixels")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1077",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1077"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"display"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[t._v("#")]),t._v(" display")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("display")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("auto")])]),t._v(" "),a("p",[t._v("Controls the axis global visibility (visible when true, hidden when false). When display: 'auto', the axis is visible only if at least one associated dataset is visible.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1073",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1073"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reverse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reverse"}},[t._v("#")]),t._v(" reverse")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("reverse")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Reverse the scale.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1082",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1082"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1087",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1087"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBuildTicks")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after ticks are created. Useful for filtering ticks.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1115",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1115"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftercalculatetickrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftercalculatetickrotation"}},[t._v("#")]),t._v(" afterCalculateTickRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterCalculateTickRotation")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after tick rotation is determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1131",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1131"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterDataLimits")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after data limits are determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1107",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1107"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfit"}},[t._v("#")]),t._v(" afterFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFit")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after the scale fits to the canvas.")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1139",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1139"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftersetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftersetdimensions"}},[t._v("#")]),t._v(" afterSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterSetDimensions")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after dimensions are set.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1099",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1099"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterticktolabelconversion"}},[t._v("#")]),t._v(" afterTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTickToLabelConversion")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after ticks are converted into strings.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1123",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1123"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterUpdate")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs at the end of the update process.")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1143",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1143"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBuildTicks")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before ticks are created.")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1111",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1111"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforecalculatetickrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforecalculatetickrotation"}},[t._v("#")]),t._v(" beforeCalculateTickRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeCalculateTickRotation")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before tick rotation is determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1127",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1127"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeDataLimits")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before data limits are determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1103",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1103"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefit"}},[t._v("#")]),t._v(" beforeFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFit")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before the scale fits to the canvas.")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1135",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1135"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforesetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforesetdimensions"}},[t._v("#")]),t._v(" beforeSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeSetDimensions")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before dimensions are set.")]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1095",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1095"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeticktolabelconversion"}},[t._v("#")]),t._v(" beforeTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTickToLabelConversion")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before ticks are converted into strings.")]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1119",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1119"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeUpdate")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback called before the update process starts.")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1091",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1091"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/54.3cb944cc.js b/docs/3.1.0/assets/js/54.3cb944cc.js new file mode 100644 index 0000000000..14178cccf5 --- /dev/null +++ b/docs/3.1.0/assets/js/54.3cb944cc.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{378:function(t,e,a){"use strict";a.r(e);var s=a(7),r=Object(s.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-corescaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-corescaleoptions"}},[t._v("#")]),t._v(" Interface: CoreScaleOptions")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("CoreScaleOptions")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[a("em",[t._v("CartesianScaleOptions")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"aligntopixels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aligntopixels"}},[t._v("#")]),t._v(" alignToPixels")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("alignToPixels")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Align pixel values to device pixels")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1077",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1077"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"display"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[t._v("#")]),t._v(" display")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("display")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("auto")])]),t._v(" "),a("p",[t._v("Controls the axis global visibility (visible when true, hidden when false). When display: 'auto', the axis is visible only if at least one associated dataset is visible.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1073",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1073"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reverse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reverse"}},[t._v("#")]),t._v(" reverse")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("reverse")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Reverse the scale.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1082",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1082"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the axis. Higher weights are further away from the chart area.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1087",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1087"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBuildTicks")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after ticks are created. Useful for filtering ticks.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1115",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1115"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftercalculatetickrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftercalculatetickrotation"}},[t._v("#")]),t._v(" afterCalculateTickRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterCalculateTickRotation")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after tick rotation is determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1131",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1131"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterDataLimits")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after data limits are determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1107",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1107"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfit"}},[t._v("#")]),t._v(" afterFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFit")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after the scale fits to the canvas.")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1139",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1139"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftersetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftersetdimensions"}},[t._v("#")]),t._v(" afterSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterSetDimensions")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after dimensions are set.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1099",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1099"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterticktolabelconversion"}},[t._v("#")]),t._v(" afterTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTickToLabelConversion")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs after ticks are converted into strings.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1123",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1123"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterUpdate")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs at the end of the update process.")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1143",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1143"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBuildTicks")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before ticks are created.")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1111",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1111"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforecalculatetickrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforecalculatetickrotation"}},[t._v("#")]),t._v(" beforeCalculateTickRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeCalculateTickRotation")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before tick rotation is determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1127",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1127"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeDataLimits")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before data limits are determined.")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1103",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1103"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefit"}},[t._v("#")]),t._v(" beforeFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFit")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before the scale fits to the canvas.")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1135",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1135"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforesetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforesetdimensions"}},[t._v("#")]),t._v(" beforeSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeSetDimensions")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before dimensions are set.")]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1095",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1095"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeticktolabelconversion"}},[t._v("#")]),t._v(" beforeTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTickToLabelConversion")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback that runs before ticks are converted into strings.")]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1119",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1119"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeUpdate")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Callback called before the update process starts.")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1091",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1091"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/55.49c0fd5c.js b/docs/3.1.0/assets/js/55.49c0fd5c.js new file mode 100644 index 0000000000..156d029db3 --- /dev/null +++ b/docs/3.1.0/assets/js/55.49c0fd5c.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[55],{379:function(t,e,r){"use strict";r.r(e);var a=r(7),n=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-datasetcontrollerchartcomponent"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-datasetcontrollerchartcomponent"}},[t._v("#")]),t._v(" Interface: DatasetControllerChartComponent")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[r("em",[t._v("ChartComponent")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("DatasetControllerChartComponent")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"defaultroutes"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defaultroutes"}},[t._v("#")]),t._v(" defaultRoutes")]),t._v(" "),r("p",[t._v("• "),r("code",[t._v("Optional")]),t._v(" "),r("strong",[t._v("defaultRoutes")]),t._v(": "),r("em",[t._v("object")])]),t._v(" "),r("h4",{attrs:{id:"type-declaration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html#defaultroutes"}},[t._v("defaultRoutes")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1326",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1326"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"defaults"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defaults"}},[t._v("#")]),t._v(" defaults")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("defaults")]),t._v(": "),r("em",[t._v("object")])]),t._v(" "),r("h4",{attrs:{id:"type-declaration-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("dataElementType")]),t._v("?")]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("false")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("datasetElementType")]),t._v("?")]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("false")])])])])]),t._v(" "),r("p",[t._v("Overrides: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html#defaults"}},[t._v("defaults")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L601",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:601"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"id"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("id")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html#id"}},[t._v("id")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1324",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1324"),r("OutboundLink")],1)]),t._v(" "),r("h2",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("h3",{attrs:{id:"afterregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#afterregister"}},[t._v("#")]),t._v(" afterRegister")]),t._v(" "),r("p",[t._v("▸ "),r("code",[t._v("Optional")]),r("strong",[t._v("afterRegister")]),t._v("(): "),r("em",[t._v("void")])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1329",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1329"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"afterunregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#afterunregister"}},[t._v("#")]),t._v(" afterUnregister")]),t._v(" "),r("p",[t._v("▸ "),r("code",[t._v("Optional")]),r("strong",[t._v("afterUnregister")]),t._v("(): "),r("em",[t._v("void")])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1331",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1331"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"beforeregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#beforeregister"}},[t._v("#")]),t._v(" beforeRegister")]),t._v(" "),r("p",[t._v("▸ "),r("code",[t._v("Optional")]),r("strong",[t._v("beforeRegister")]),t._v("(): "),r("em",[t._v("void")])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1328",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1328"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"beforeunregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#beforeunregister"}},[t._v("#")]),t._v(" beforeUnregister")]),t._v(" "),r("p",[t._v("▸ "),r("code",[t._v("Optional")]),r("strong",[t._v("beforeUnregister")]),t._v("(): "),r("em",[t._v("void")])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1330",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1330"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/55.93c18df5.js b/docs/3.1.0/assets/js/55.93c18df5.js deleted file mode 100644 index 48feff661d..0000000000 --- a/docs/3.1.0/assets/js/55.93c18df5.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[55],{382:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-datasetcontrollerchartcomponent"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-datasetcontrollerchartcomponent"}},[t._v("#")]),t._v(" Interface: DatasetControllerChartComponent")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[r("em",[t._v("ChartComponent")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("DatasetControllerChartComponent")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"defaultroutes"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defaultroutes"}},[t._v("#")]),t._v(" defaultRoutes")]),t._v(" "),r("p",[t._v("• "),r("code",[t._v("Optional")]),t._v(" "),r("strong",[t._v("defaultRoutes")]),t._v(": "),r("em",[t._v("object")])]),t._v(" "),r("h4",{attrs:{id:"type-declaration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html#defaultroutes"}},[t._v("defaultRoutes")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1326",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1326"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"defaults"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#defaults"}},[t._v("#")]),t._v(" defaults")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("defaults")]),t._v(": "),r("em",[t._v("object")])]),t._v(" "),r("h4",{attrs:{id:"type-declaration-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("dataElementType")]),t._v("?")]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("false")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("datasetElementType")]),t._v("?")]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("false")])])])])]),t._v(" "),r("p",[t._v("Overrides: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html#defaults"}},[t._v("defaults")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L601",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:601"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"id"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("id")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html#id"}},[t._v("id")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1324",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1324"),r("OutboundLink")],1)]),t._v(" "),r("h2",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("h3",{attrs:{id:"afterregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#afterregister"}},[t._v("#")]),t._v(" afterRegister")]),t._v(" "),r("p",[t._v("▸ "),r("code",[t._v("Optional")]),r("strong",[t._v("afterRegister")]),t._v("(): "),r("em",[t._v("void")])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1329",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1329"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"afterunregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#afterunregister"}},[t._v("#")]),t._v(" afterUnregister")]),t._v(" "),r("p",[t._v("▸ "),r("code",[t._v("Optional")]),r("strong",[t._v("afterUnregister")]),t._v("(): "),r("em",[t._v("void")])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1331",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1331"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"beforeregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#beforeregister"}},[t._v("#")]),t._v(" beforeRegister")]),t._v(" "),r("p",[t._v("▸ "),r("code",[t._v("Optional")]),r("strong",[t._v("beforeRegister")]),t._v("(): "),r("em",[t._v("void")])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1328",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1328"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"beforeunregister"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#beforeunregister"}},[t._v("#")]),t._v(" beforeUnregister")]),t._v(" "),r("p",[t._v("▸ "),r("code",[t._v("Optional")]),r("strong",[t._v("beforeUnregister")]),t._v("(): "),r("em",[t._v("void")])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1330",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1330"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/56.8beb8892.js b/docs/3.1.0/assets/js/56.8beb8892.js new file mode 100644 index 0000000000..37d7a35add --- /dev/null +++ b/docs/3.1.0/assets/js/56.8beb8892.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[56],{380:function(t,e,a){"use strict";a.r(e);var v=a(7),_=Object(v.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-dateadapter"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-dateadapter"}},[t._v("#")]),t._v(" Interface: DateAdapter")]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": "),a("em",[t._v("any")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/adapters.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"add"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#add"}},[t._v("#")]),t._v(" add")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("add")]),t._v("("),a("code",[t._v("timestamp")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("amount")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("unit")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v("): "),a("em",[t._v("number")])],1),t._v(" "),a("p",[t._v("Adds the specified "),a("code",[t._v("amount")]),t._v(" of "),a("code",[t._v("unit")]),t._v(" to the given "),a("code",[t._v("timestamp")]),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("timestamp")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the input timestamp")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("amount")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the amount to add")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("unit")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the unit as string")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/adapters.d.ts#L34",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:34"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"diff"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#diff"}},[t._v("#")]),t._v(" diff")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("diff")]),t._v("("),a("code",[t._v("a")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("b")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("unit")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v("): "),a("em",[t._v("number")])],1),t._v(" "),a("p",[t._v("Returns the number of "),a("code",[t._v("unit")]),t._v(" between the given timestamps.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("a")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the input timestamp (reference)")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("b")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the timestamp to subtract")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("unit")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the unit as string")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/adapters.d.ts#L42",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:42"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"endof"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#endof"}},[t._v("#")]),t._v(" endOf")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("endOf")]),t._v("("),a("code",[t._v("timestamp")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("unit")]),t._v(": "),a("em",[t._v("millisecond")]),t._v(" | "),a("em",[t._v("second")]),t._v(" | "),a("em",[t._v("minute")]),t._v(" | "),a("em",[t._v("hour")]),t._v(" | "),a("em",[t._v("day")]),t._v(" | "),a("em",[t._v("week")]),t._v(" | "),a("em",[t._v("month")]),t._v(" | "),a("em",[t._v("quarter")]),t._v(" | "),a("em",[t._v("year")]),t._v(" | "),a("em",[t._v("isoWeek")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns end of "),a("code",[t._v("unit")]),t._v(" for the given "),a("code",[t._v("timestamp")]),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("timestamp")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the input timestamp")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("unit")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("millisecond")]),t._v(" | "),a("em",[t._v("second")]),t._v(" | "),a("em",[t._v("minute")]),t._v(" | "),a("em",[t._v("hour")]),t._v(" | "),a("em",[t._v("day")]),t._v(" | "),a("em",[t._v("week")]),t._v(" | "),a("em",[t._v("month")]),t._v(" | "),a("em",[t._v("quarter")]),t._v(" | "),a("em",[t._v("year")]),t._v(" | "),a("em",[t._v("isoWeek")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the unit as string")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/adapters.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#format"}},[t._v("#")]),t._v(" format")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("format")]),t._v("("),a("code",[t._v("timestamp")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("format")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v("): "),a("em",[t._v("string")])],1),t._v(" "),a("p",[t._v("Returns the formatted date in the specified "),a("code",[t._v("format")]),t._v(" for a given "),a("code",[t._v("timestamp")]),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("timestamp")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the timestamp to format")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("format")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the date/time token")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/adapters.d.ts#L26",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:26"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"formats"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#formats"}},[t._v("#")]),t._v(" formats")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("formats")]),t._v("(): "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Returns a map of time formats for the supported formatting units defined\nin Unit as well as 'datetime' representing a detailed date/time string.")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/adapters.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"override"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#override"}},[t._v("#")]),t._v(" override")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("override")]),t._v("("),a("code",[t._v("members")]),t._v(": "),a("em",[t._v("Partial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/dateadapter.html"}},[a("em",[t._v("DateAdapter")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("members")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Partial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/dateadapter.html"}},[a("em",[t._v("DateAdapter")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/adapters.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("any")]),t._v(", "),a("code",[t._v("format?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v("): "),a("em",[t._v("number")])],1),t._v(" "),a("p",[t._v("Parses the given "),a("code",[t._v("value")]),t._v(" and return the associated timestamp.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("any")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the value to parse (usually comes from the data)")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("format?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/adapters.d.ts#L19",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:19"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"startof"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#startof"}},[t._v("#")]),t._v(" startOf")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("startOf")]),t._v("("),a("code",[t._v("timestamp")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("unit")]),t._v(": "),a("em",[t._v("millisecond")]),t._v(" | "),a("em",[t._v("second")]),t._v(" | "),a("em",[t._v("minute")]),t._v(" | "),a("em",[t._v("hour")]),t._v(" | "),a("em",[t._v("day")]),t._v(" | "),a("em",[t._v("week")]),t._v(" | "),a("em",[t._v("month")]),t._v(" | "),a("em",[t._v("quarter")]),t._v(" | "),a("em",[t._v("year")]),t._v(" | "),a("em",[t._v("isoWeek")]),t._v(", "),a("code",[t._v("weekday?")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns start of "),a("code",[t._v("unit")]),t._v(" for the given "),a("code",[t._v("timestamp")]),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("timestamp")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the input timestamp")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("unit")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("millisecond")]),t._v(" | "),a("em",[t._v("second")]),t._v(" | "),a("em",[t._v("minute")]),t._v(" | "),a("em",[t._v("hour")]),t._v(" | "),a("em",[t._v("day")]),t._v(" | "),a("em",[t._v("week")]),t._v(" | "),a("em",[t._v("month")]),t._v(" | "),a("em",[t._v("quarter")]),t._v(" | "),a("em",[t._v("year")]),t._v(" | "),a("em",[t._v("isoWeek")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the unit as string")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("weekday?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/adapters.d.ts#L51",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:51"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/56.e7730f5b.js b/docs/3.1.0/assets/js/56.e7730f5b.js deleted file mode 100644 index d28c84c00a..0000000000 --- a/docs/3.1.0/assets/js/56.e7730f5b.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[56],{383:function(t,e,a){"use strict";a.r(e);var v=a(7),_=Object(v.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-dateadapter"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-dateadapter"}},[t._v("#")]),t._v(" Interface: DateAdapter")]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": "),a("em",[t._v("any")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/adapters.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"add"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#add"}},[t._v("#")]),t._v(" add")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("add")]),t._v("("),a("code",[t._v("timestamp")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("amount")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("unit")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v("): "),a("em",[t._v("number")])],1),t._v(" "),a("p",[t._v("Adds the specified "),a("code",[t._v("amount")]),t._v(" of "),a("code",[t._v("unit")]),t._v(" to the given "),a("code",[t._v("timestamp")]),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("timestamp")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the input timestamp")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("amount")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the amount to add")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("unit")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the unit as string")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/adapters.d.ts#L34",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:34"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"diff"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#diff"}},[t._v("#")]),t._v(" diff")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("diff")]),t._v("("),a("code",[t._v("a")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("b")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("unit")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v("): "),a("em",[t._v("number")])],1),t._v(" "),a("p",[t._v("Returns the number of "),a("code",[t._v("unit")]),t._v(" between the given timestamps.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("a")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the input timestamp (reference)")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("b")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the timestamp to subtract")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("unit")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the unit as string")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/adapters.d.ts#L42",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:42"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"endof"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#endof"}},[t._v("#")]),t._v(" endOf")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("endOf")]),t._v("("),a("code",[t._v("timestamp")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("unit")]),t._v(": "),a("em",[t._v("millisecond")]),t._v(" | "),a("em",[t._v("second")]),t._v(" | "),a("em",[t._v("minute")]),t._v(" | "),a("em",[t._v("hour")]),t._v(" | "),a("em",[t._v("day")]),t._v(" | "),a("em",[t._v("week")]),t._v(" | "),a("em",[t._v("month")]),t._v(" | "),a("em",[t._v("quarter")]),t._v(" | "),a("em",[t._v("year")]),t._v(" | "),a("em",[t._v("isoWeek")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns end of "),a("code",[t._v("unit")]),t._v(" for the given "),a("code",[t._v("timestamp")]),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("timestamp")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the input timestamp")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("unit")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("millisecond")]),t._v(" | "),a("em",[t._v("second")]),t._v(" | "),a("em",[t._v("minute")]),t._v(" | "),a("em",[t._v("hour")]),t._v(" | "),a("em",[t._v("day")]),t._v(" | "),a("em",[t._v("week")]),t._v(" | "),a("em",[t._v("month")]),t._v(" | "),a("em",[t._v("quarter")]),t._v(" | "),a("em",[t._v("year")]),t._v(" | "),a("em",[t._v("isoWeek")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the unit as string")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/adapters.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"format"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#format"}},[t._v("#")]),t._v(" format")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("format")]),t._v("("),a("code",[t._v("timestamp")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("format")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v("): "),a("em",[t._v("string")])],1),t._v(" "),a("p",[t._v("Returns the formatted date in the specified "),a("code",[t._v("format")]),t._v(" for a given "),a("code",[t._v("timestamp")]),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("timestamp")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the timestamp to format")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("format")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the date/time token")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/adapters.d.ts#L26",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:26"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"formats"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#formats"}},[t._v("#")]),t._v(" formats")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("formats")]),t._v("(): "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Returns a map of time formats for the supported formatting units defined\nin Unit as well as 'datetime' representing a detailed date/time string.")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/adapters.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"override"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#override"}},[t._v("#")]),t._v(" override")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("override")]),t._v("("),a("code",[t._v("members")]),t._v(": "),a("em",[t._v("Partial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/dateadapter.html"}},[a("em",[t._v("DateAdapter")])]),t._v(">): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("members")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Partial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/dateadapter.html"}},[a("em",[t._v("DateAdapter")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/adapters.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("any")]),t._v(", "),a("code",[t._v("format?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v("): "),a("em",[t._v("number")])],1),t._v(" "),a("p",[t._v("Parses the given "),a("code",[t._v("value")]),t._v(" and return the associated timestamp.")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("any")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the value to parse (usually comes from the data)")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("format?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/adapters.d.ts#L19",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:19"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"startof"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#startof"}},[t._v("#")]),t._v(" startOf")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("startOf")]),t._v("("),a("code",[t._v("timestamp")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("unit")]),t._v(": "),a("em",[t._v("millisecond")]),t._v(" | "),a("em",[t._v("second")]),t._v(" | "),a("em",[t._v("minute")]),t._v(" | "),a("em",[t._v("hour")]),t._v(" | "),a("em",[t._v("day")]),t._v(" | "),a("em",[t._v("week")]),t._v(" | "),a("em",[t._v("month")]),t._v(" | "),a("em",[t._v("quarter")]),t._v(" | "),a("em",[t._v("year")]),t._v(" | "),a("em",[t._v("isoWeek")]),t._v(", "),a("code",[t._v("weekday?")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns start of "),a("code",[t._v("unit")]),t._v(" for the given "),a("code",[t._v("timestamp")]),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("timestamp")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the input timestamp")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("unit")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("millisecond")]),t._v(" | "),a("em",[t._v("second")]),t._v(" | "),a("em",[t._v("minute")]),t._v(" | "),a("em",[t._v("hour")]),t._v(" | "),a("em",[t._v("day")]),t._v(" | "),a("em",[t._v("week")]),t._v(" | "),a("em",[t._v("month")]),t._v(" | "),a("em",[t._v("quarter")]),t._v(" | "),a("em",[t._v("year")]),t._v(" | "),a("em",[t._v("isoWeek")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("the unit as string")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("weekday?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/adapters.d.ts#L51",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:51"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/57.62b24161.js b/docs/3.1.0/assets/js/57.62b24161.js new file mode 100644 index 0000000000..e005c5b5bc --- /dev/null +++ b/docs/3.1.0/assets/js/57.62b24161.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[57],{381:function(t,e,r){"use strict";r.r(e);var a=r(7),i=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-defaults"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-defaults"}},[t._v("#")]),t._v(" Interface: Defaults")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[r("em",[t._v("CoreChartOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#charttype"}},[r("em",[t._v("ChartType")])]),t._v(">")],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[r("em",[t._v("ElementChartOptions")])])],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[r("em",[t._v("PluginChartOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#charttype"}},[r("em",[t._v("ChartType")])]),t._v(">")],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("Defaults")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("em",[t._v("false")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v("> & { "),r("code",[t._v("onComplete?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" ; "),r("code",[t._v("onProgress?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" }")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#animation"}},[t._v("animation")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#animations"}},[t._v("animations")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"aspectratio"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#aspectratio"}},[t._v("#")]),t._v(" aspectRatio")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("aspectRatio")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Canvas aspect ratio (i.e. width / height, a value of 1 representing a square canvas). Note that this option is ignored if the height is explicitly defined either as attribute or via the style.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#aspectratio"}},[t._v("aspectRatio")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1399",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1399"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("base background color")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("see")])]),t._v(" Defaults.backgroundColor")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#backgroundcolor"}},[t._v("backgroundColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1373",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1373"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("base border color")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("see")])]),t._v(" Defaults.borderColor")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#bordercolor"}},[t._v("borderColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1378",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1378"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"color"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[t._v("#")]),t._v(" color")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("color")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("base color")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("see")])]),t._v(" Defaults.color")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#color"}},[t._v("color")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1368",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1368"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"datasets"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#datasets"}},[t._v("#")]),t._v(" datasets")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("datasets")]),t._v(": "),r("em",[t._v("object")])]),t._v(" "),r("h4",{attrs:{id:"type-declaration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("bar")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("bubble")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("doughnut")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("line")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("pie")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("polarArea")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("radar")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("scatter")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})])])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#datasets"}},[t._v("datasets")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1354",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1354"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"devicepixelratio"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#devicepixelratio"}},[t._v("#")]),t._v(" devicePixelRatio")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("devicePixelRatio")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Override the window's default devicePixelRatio.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" window.devicePixelRatio")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#devicepixelratio"}},[t._v("devicePixelRatio")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1416",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1416"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"elements"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#elements"}},[t._v("#")]),t._v(" elements")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("elements")]),t._v(": "),r("em",[t._v("Partial")]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/elementoptionsbytype.html"}},[r("em",[t._v("ElementOptionsByType")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[t._v("ElementChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html#elements"}},[t._v("elements")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1897",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1897"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"events"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#events"}},[t._v("#")]),t._v(" events")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("events")]),t._v(": ("),r("em",[t._v("mousemove")]),t._v(" | "),r("em",[t._v("mouseout")]),t._v(" | "),r("em",[t._v("click")]),t._v(" | "),r("em",[t._v("touchstart")]),t._v(" | "),r("em",[t._v("touchmove")]),t._v(")[]")]),t._v(" "),r("p",[t._v("The events option defines the browser events that the chart should listen to for tooltips and hovering.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" ['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove']")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#events"}},[t._v("events")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1426",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1426"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"font"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#font"}},[t._v("#")]),t._v(" font")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("font")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[r("em",[t._v("FontSpec")])])],1),t._v(" "),r("p",[t._v("base font")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("see")])]),t._v(" Defaults.font")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#font"}},[t._v("font")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1383",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1383"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hover"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hover"}},[t._v("#")]),t._v(" hover")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hover")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[r("em",[t._v("CoreInteractionOptions")])])],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#hover"}},[t._v("hover")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1420",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1420"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1362",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1362"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"interaction"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interaction"}},[t._v("#")]),t._v(" interaction")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("interaction")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[r("em",[t._v("CoreInteractionOptions")])])],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#interaction"}},[t._v("interaction")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1418",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1418"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"layout"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#layout"}},[t._v("#")]),t._v(" layout")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("layout")]),t._v(": "),r("em",[t._v("object")])]),t._v(" "),r("h4",{attrs:{id:"type-declaration-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("padding")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1)])])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#layout"}},[t._v("layout")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1438",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1438"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"locale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#locale"}},[t._v("#")]),t._v(" locale")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("locale")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("Locale used for number formatting (using "),r("code",[t._v("Intl.NumberFormat")]),t._v(").")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" user's browser setting")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#locale"}},[t._v("locale")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1405",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1405"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"maintainaspectratio"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#maintainaspectratio"}},[t._v("#")]),t._v(" maintainAspectRatio")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("maintainAspectRatio")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Maintain the original canvas aspect ratio (width / height) when resizing.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#maintainaspectratio"}},[t._v("maintainAspectRatio")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1393",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1393"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"plugins"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#plugins"}},[t._v("#")]),t._v(" plugins")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("plugins")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/pluginoptionsbytype.html"}},[r("em",[t._v("PluginOptionsByType")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[t._v("PluginChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html#plugins"}},[t._v("plugins")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2626",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2626"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"responsive"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#responsive"}},[t._v("#")]),t._v(" responsive")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("responsive")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Resizes the chart canvas when its container does (important note...).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#responsive"}},[t._v("responsive")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1388",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1388"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"scale"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#scale"}},[t._v("#")]),t._v(" scale")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("scale")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scaleoptionsbytype"}},[r("em",[t._v("ScaleOptionsByType")])]),t._v("<"),r("em",[t._v("linear")]),t._v(" | "),r("em",[t._v("logarithmic")]),t._v(" | "),r("em",[t._v("category")]),t._v(" | "),r("em",[t._v("time")]),t._v(" | "),r("em",[t._v("timeseries")]),t._v(" | "),r("em",[t._v("radialLinear")]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L609",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:609"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"scales"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#scales"}},[t._v("#")]),t._v(" scales")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("scales")]),t._v(": "),r("em",[t._v("object")])]),t._v(" "),r("h4",{attrs:{id:"type-declaration-3"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-3"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("category")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("linear")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("logarithmic")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("radialLinear")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("time")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("timeseries")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}})])])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L610",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:610"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"transitions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("transitions")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[r("em",[t._v("TransitionsSpec")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#transitions"}},[t._v("transitions")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),r("OutboundLink")],1)]),t._v(" "),r("h2",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("h3",{attrs:{id:"describe"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#describe"}},[t._v("#")]),t._v(" describe")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("describe")]),t._v("("),r("code",[t._v("scope")]),t._v(": "),r("em",[t._v("string")]),t._v(", "),r("code",[t._v("values")]),t._v(": "),r("em",[t._v("Record")]),t._v("): "),r("em",[t._v("Record")]),t._v("")]),t._v(" "),r("h4",{attrs:{id:"parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("scope")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("values")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("Record")]),t._v("")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L618",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:618"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"get"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#get"}},[t._v("#")]),t._v(" get")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("get")]),t._v("("),r("code",[t._v("scope")]),t._v(": "),r("em",[t._v("string")]),t._v("): "),r("em",[t._v("Record")]),t._v("")]),t._v(" "),r("h4",{attrs:{id:"parameters-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("scope")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")])])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("Record")]),t._v("")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L616",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:616"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"onclick"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#onclick"}},[t._v("#")]),t._v(" onClick")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("onClick")]),t._v("("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[r("em",[t._v("ChartEvent")])]),t._v(", "),r("code",[t._v("elements")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[r("em",[t._v("ActiveElement")])]),t._v("[], "),r("code",[t._v("chart")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),r("em",[t._v("void")])],1),t._v(" "),r("p",[t._v("Called if the event is of type 'mouseup' or 'click'. Passed the event, an array of active elements, and the chart.")]),t._v(" "),r("h4",{attrs:{id:"parameters-3"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("event")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[r("em",[t._v("ChartEvent")])])],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("elements")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[r("em",[t._v("ActiveElement")])]),t._v("[]")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("chart")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1436",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1436"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"onhover"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#onhover"}},[t._v("#")]),t._v(" onHover")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("onHover")]),t._v("("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[r("em",[t._v("ChartEvent")])]),t._v(", "),r("code",[t._v("elements")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[r("em",[t._v("ActiveElement")])]),t._v("[], "),r("code",[t._v("chart")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),r("em",[t._v("void")])],1),t._v(" "),r("p",[t._v("Called when any of the events fire. Passed the event, an array of active elements (bars, points, etc), and the chart.")]),t._v(" "),r("h4",{attrs:{id:"parameters-4"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("event")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[r("em",[t._v("ChartEvent")])])],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("elements")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[r("em",[t._v("ActiveElement")])]),t._v("[]")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("chart")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1431",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1431"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"onresize"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#onresize"}},[t._v("#")]),t._v(" onResize")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("onResize")]),t._v("("),r("code",[t._v("chart")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),r("code",[t._v("size")]),t._v(": { "),r("code",[t._v("height")]),t._v(": "),r("em",[t._v("number")]),t._v(" ; "),r("code",[t._v("width")]),t._v(": "),r("em",[t._v("number")]),t._v(" }): "),r("em",[t._v("void")])],1),t._v(" "),r("p",[t._v("Called when a resize occurs. Gets passed two arguments: the chart instance and the new size.")]),t._v(" "),r("h4",{attrs:{id:"parameters-5"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("chart")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[r("em",[t._v("Chart")])]),t._v("<"),r("em",[t._v("bar")]),t._v(" | "),r("em",[t._v("line")]),t._v(" | "),r("em",[t._v("scatter")]),t._v(" | "),r("em",[t._v("bubble")]),t._v(" | "),r("em",[t._v("pie")]),t._v(" | "),r("em",[t._v("doughnut")]),t._v(" | "),r("em",[t._v("polarArea")]),t._v(" | "),r("em",[t._v("radar")]),t._v(", (number | "),r("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[r("em",[t._v("ScatterDataPoint")])]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[r("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("size")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("object")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("size.height")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("number")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("size.width")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("number")])])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1410",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1410"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"override"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#override"}},[t._v("#")]),t._v(" override")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("override")]),t._v("("),r("code",[t._v("scope")]),t._v(": "),r("em",[t._v("string")]),t._v(", "),r("code",[t._v("values")]),t._v(": "),r("em",[t._v("Record")]),t._v("): "),r("em",[t._v("Record")]),t._v("")]),t._v(" "),r("h4",{attrs:{id:"parameters-6"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("scope")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("values")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("Record")]),t._v("")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L619",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:619"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"route"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#route"}},[t._v("#")]),t._v(" route")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("route")]),t._v("("),r("code",[t._v("scope")]),t._v(": "),r("em",[t._v("string")]),t._v(", "),r("code",[t._v("name")]),t._v(": "),r("em",[t._v("string")]),t._v(", "),r("code",[t._v("targetScope")]),t._v(": "),r("em",[t._v("string")]),t._v(", "),r("code",[t._v("targetName")]),t._v(": "),r("em",[t._v("string")]),t._v("): "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Routes the named defaults to fallback to another scope/name.\nThis routing is useful when those target values, like defaults.color, are changed runtime.\nIf the values would be copied, the runtime change would not take effect. By routing, the\nfallback is evaluated at each access, so its always up to date.")]),t._v(" "),r("p",[t._v("Example:")]),t._v(" "),r("p",[t._v("defaults.route('elements.arc', 'backgroundColor', '', 'color')")]),t._v(" "),r("ul",[r("li",[t._v("reads the backgroundColor from defaults.color when undefined locally")])]),t._v(" "),r("h4",{attrs:{id:"parameters-7"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("scope")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[t._v("Scope this route applies to.")])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("name")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[t._v("Property name that should be routed to different namespace when not defined here.")])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("targetScope")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[t._v("The namespace where those properties should be routed to. Empty string ('') is the root of defaults.")])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("targetName")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[t._v("The target name in the target scope the property should be routed to.")])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L638",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:638"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"set"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#set"}},[t._v("#")]),t._v(" set")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("set")]),t._v("("),r("code",[t._v("values")]),t._v(": "),r("em",[t._v("Record")]),t._v("): "),r("em",[t._v("Record")]),t._v("")]),t._v(" "),r("h4",{attrs:{id:"parameters-8"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("values")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("Record")]),t._v("")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L614",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:614"),r("OutboundLink")],1)]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("set")]),t._v("("),r("code",[t._v("scope")]),t._v(": "),r("em",[t._v("string")]),t._v(", "),r("code",[t._v("values")]),t._v(": "),r("em",[t._v("Record")]),t._v("): "),r("em",[t._v("Record")]),t._v("")]),t._v(" "),r("h4",{attrs:{id:"parameters-9"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("scope")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("string")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("values")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("Record")]),t._v("")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L615",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:615"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/57.a4d9f801.js b/docs/3.1.0/assets/js/57.a4d9f801.js deleted file mode 100644 index 29e5b926c8..0000000000 --- a/docs/3.1.0/assets/js/57.a4d9f801.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[57],{384:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-defaults"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-defaults"}},[t._v("#")]),t._v(" Interface: Defaults")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[a("em",[t._v("CoreChartOptions")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])]),t._v(">")],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[a("em",[t._v("ElementChartOptions")])])],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[a("em",[t._v("PluginChartOptions")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])]),t._v(">")],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("Defaults")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"animation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("animation")]),t._v(": "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/#animationspec"}},[a("em",[t._v("AnimationSpec")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v("> & { "),a("code",[t._v("onComplete?")]),t._v(": ("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v(" ; "),a("code",[t._v("onProgress?")]),t._v(": ("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v(" }")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#animation"}},[t._v("animation")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"animations"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("animations")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#animationsspec"}},[a("em",[t._v("AnimationsSpec")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(">")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#animations"}},[t._v("animations")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aspectratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aspectratio"}},[t._v("#")]),t._v(" aspectRatio")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("aspectRatio")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Canvas aspect ratio (i.e. width / height, a value of 1 representing a square canvas). Note that this option is ignored if the height is explicitly defined either as attribute or via the style.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" 2")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#aspectratio"}},[t._v("aspectRatio")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1399",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1399"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"backgroundcolor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("backgroundColor")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("p",[t._v("base background color")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.backgroundColor")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#backgroundcolor"}},[t._v("backgroundColor")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1373",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1373"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bordercolor"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("borderColor")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("p",[t._v("base border color")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.borderColor")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#bordercolor"}},[t._v("borderColor")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1378",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1378"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"color"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[t._v("#")]),t._v(" color")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("color")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("p",[t._v("base color")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.color")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#color"}},[t._v("color")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1368",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1368"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"datasets"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasets"}},[t._v("#")]),t._v(" datasets")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("datasets")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("bar")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("bubble")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("doughnut")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("line")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pie")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("polarArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("radar")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scatter")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#datasets"}},[t._v("datasets")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1354",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1354"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"devicepixelratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#devicepixelratio"}},[t._v("#")]),t._v(" devicePixelRatio")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("devicePixelRatio")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Override the window's default devicePixelRatio.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" window.devicePixelRatio")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#devicepixelratio"}},[t._v("devicePixelRatio")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1416",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1416"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"elements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#elements"}},[t._v("#")]),t._v(" elements")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("elements")]),t._v(": "),a("em",[t._v("Partial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/elementoptionsbytype.html"}},[a("em",[t._v("ElementOptionsByType")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[t._v("ElementChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html#elements"}},[t._v("elements")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1897",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1897"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"events"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#events"}},[t._v("#")]),t._v(" events")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("events")]),t._v(": ("),a("em",[t._v("mousemove")]),t._v(" | "),a("em",[t._v("mouseout")]),t._v(" | "),a("em",[t._v("click")]),t._v(" | "),a("em",[t._v("touchstart")]),t._v(" | "),a("em",[t._v("touchmove")]),t._v(")[]")]),t._v(" "),a("p",[t._v("The events option defines the browser events that the chart should listen to for tooltips and hovering.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" ['mousemove', 'mouseout', 'click', 'touchstart', 'touchmove']")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#events"}},[t._v("events")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1426",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1426"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"font"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#font"}},[t._v("#")]),t._v(" font")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("font")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[a("em",[t._v("FontSpec")])])],1),t._v(" "),a("p",[t._v("base font")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.font")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#font"}},[t._v("font")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1383",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1383"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hover"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hover"}},[t._v("#")]),t._v(" hover")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("hover")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[a("em",[t._v("CoreInteractionOptions")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#hover"}},[t._v("hover")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1420",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1420"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"indexaxis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("indexAxis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])]),t._v(" "),a("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1362",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1362"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"interaction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interaction"}},[t._v("#")]),t._v(" interaction")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("interaction")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[a("em",[t._v("CoreInteractionOptions")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#interaction"}},[t._v("interaction")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1418",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1418"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"layout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#layout"}},[t._v("#")]),t._v(" layout")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("layout")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(">")],1)])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#layout"}},[t._v("layout")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1438",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1438"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"locale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#locale"}},[t._v("#")]),t._v(" locale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("locale")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Locale used for number formatting (using "),a("code",[t._v("Intl.NumberFormat")]),t._v(").")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" user's browser setting")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#locale"}},[t._v("locale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1405",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1405"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maintainaspectratio"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maintainaspectratio"}},[t._v("#")]),t._v(" maintainAspectRatio")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maintainAspectRatio")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Maintain the original canvas aspect ratio (width / height) when resizing.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#maintainaspectratio"}},[t._v("maintainAspectRatio")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1393",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1393"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"normalized"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("normalized")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("parsing")]),t._v(": "),a("em",[t._v("false")]),t._v(" | { [key: string]: "),a("em",[t._v("string")]),t._v("; }")]),t._v(" "),a("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"plugins"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#plugins"}},[t._v("#")]),t._v(" plugins")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("plugins")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/pluginoptionsbytype.html"}},[a("em",[t._v("PluginOptionsByType")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(">")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[t._v("PluginChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html#plugins"}},[t._v("plugins")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2626",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2626"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"responsive"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#responsive"}},[t._v("#")]),t._v(" responsive")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("responsive")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Resizes the chart canvas when its container does (important note...).")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#responsive"}},[t._v("responsive")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1388",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1388"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scale"}},[t._v("#")]),t._v(" scale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scaleoptionsbytype"}},[a("em",[t._v("ScaleOptionsByType")])]),t._v("<"),a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("logarithmic")]),t._v(" | "),a("em",[t._v("category")]),t._v(" | "),a("em",[t._v("time")]),t._v(" | "),a("em",[t._v("timeseries")]),t._v(" | "),a("em",[t._v("radialLinear")]),t._v(">")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L609",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:609"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scales"}},[t._v("#")]),t._v(" scales")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("scales")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-3"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("category")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("linear")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("logarithmic")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("radialLinear")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("time")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("timeseries")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}})])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L610",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:610"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"transitions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("transitions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[a("em",[t._v("TransitionsSpec")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(">")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html#transitions"}},[t._v("transitions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"describe"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#describe"}},[t._v("#")]),t._v(" describe")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("describe")]),t._v("("),a("code",[t._v("scope")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("values")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scope")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("values")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L618",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:618"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"get"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#get"}},[t._v("#")]),t._v(" get")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("get")]),t._v("("),a("code",[t._v("scope")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scope")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L616",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:616"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"onclick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onclick"}},[t._v("#")]),t._v(" onClick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onClick")]),t._v("("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[], "),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called if the event is of type 'mouseup' or 'click'. Passed the event, an array of active elements, and the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1436",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1436"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"onhover"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onhover"}},[t._v("#")]),t._v(" onHover")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onHover")]),t._v("("),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[], "),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called when any of the events fire. Passed the event, an array of active elements (bars, points, etc), and the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1431",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1431"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"onresize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onresize"}},[t._v("#")]),t._v(" onResize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onResize")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("size")]),t._v(": { "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(" }): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called when a resize occurs. Gets passed two arguments: the chart instance and the new size.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("size")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("size.height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("size.width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1410",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1410"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"override"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#override"}},[t._v("#")]),t._v(" override")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("override")]),t._v("("),a("code",[t._v("scope")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("values")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scope")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("values")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L619",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:619"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"route"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#route"}},[t._v("#")]),t._v(" route")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("route")]),t._v("("),a("code",[t._v("scope")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("name")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("targetScope")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("targetName")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Routes the named defaults to fallback to another scope/name.\nThis routing is useful when those target values, like defaults.color, are changed runtime.\nIf the values would be copied, the runtime change would not take effect. By routing, the\nfallback is evaluated at each access, so its always up to date.")]),t._v(" "),a("p",[t._v("Example:")]),t._v(" "),a("p",[t._v("defaults.route('elements.arc', 'backgroundColor', '', 'color')")]),t._v(" "),a("ul",[a("li",[t._v("reads the backgroundColor from defaults.color when undefined locally")])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scope")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Scope this route applies to.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("name")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Property name that should be routed to different namespace when not defined here.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("targetScope")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The namespace where those properties should be routed to. Empty string ('') is the root of defaults.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("targetName")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The target name in the target scope the property should be routed to.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L638",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:638"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"set"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#set"}},[t._v("#")]),t._v(" set")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("set")]),t._v("("),a("code",[t._v("values")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("values")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L614",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:614"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("set")]),t._v("("),a("code",[t._v("scope")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("values")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scope")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("values")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L615",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:615"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/58.837a30e7.js b/docs/3.1.0/assets/js/58.a738cc24.js similarity index 53% rename from docs/3.1.0/assets/js/58.837a30e7.js rename to docs/3.1.0/assets/js/58.a738cc24.js index 90f41a3314..d76528396a 100644 --- a/docs/3.1.0/assets/js/58.837a30e7.js +++ b/docs/3.1.0/assets/js/58.a738cc24.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[58],{385:function(t,e,a){"use strict";a.r(e);var n=a(7),r=Object(n.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-doughnutanimationoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-doughnutanimationoptions"}},[t._v("#")]),t._v(" Interface: DoughnutAnimationOptions")]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"animaterotate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animaterotate"}},[t._v("#")]),t._v(" animateRotate")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("animateRotate")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("If true, the chart will animate in with a rotation animation. This property is in the options.animation object.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L262",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:262"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"animatescale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animatescale"}},[t._v("#")]),t._v(" animateScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("animateScale")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("If true, will animate scaling the chart from the center outwards.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L268",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:268"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[58],{382:function(t,e,a){"use strict";a.r(e);var n=a(7),r=Object(n.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-doughnutanimationoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-doughnutanimationoptions"}},[t._v("#")]),t._v(" Interface: DoughnutAnimationOptions")]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"animaterotate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animaterotate"}},[t._v("#")]),t._v(" animateRotate")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("animateRotate")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("If true, the chart will animate in with a rotation animation. This property is in the options.animation object.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L262",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:262"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"animatescale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animatescale"}},[t._v("#")]),t._v(" animateScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("animateScale")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("If true, will animate scaling the chart from the center outwards.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L268",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:268"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/59.cda3b460.js b/docs/3.1.0/assets/js/59.cda3b460.js deleted file mode 100644 index ff8de8738e..0000000000 --- a/docs/3.1.0/assets/js/59.cda3b460.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[59],{386:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-doughnutcontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-doughnutcontroller"}},[t._v("#")]),t._v(" Interface: DoughnutController")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("DoughnutController")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"cachedmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cachedmeta"}},[t._v("#")]),t._v(" _cachedMeta")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("_cachedMeta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html#_cachedmeta"}},[t._v("_cachedMeta")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L537",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:537"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html#chart"}},[t._v("chart")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L535",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:535"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"enableoptionsharing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enableoptionsharing"}},[t._v("#")]),t._v(" enableOptionSharing")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("enableOptionSharing")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html#enableoptionsharing"}},[t._v("enableOptionSharing")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L538",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:538"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"index"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("index")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html#index"}},[t._v("index")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L536",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:536"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"innerradius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#innerradius"}},[t._v("#")]),t._v(" innerRadius")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("innerRadius")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L303",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:303"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"offsetx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offsetx"}},[t._v("#")]),t._v(" offsetX")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("offsetX")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L305",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:305"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"offsety"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offsety"}},[t._v("#")]),t._v(" offsetY")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("offsetY")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L306",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:306"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"outerradius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#outerradius"}},[t._v("#")]),t._v(" outerRadius")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("outerRadius")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L304",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:304"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"addelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addelements"}},[t._v("#")]),t._v(" addElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addElements")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L554",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:554"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"applystack"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#applystack"}},[t._v("#")]),t._v(" applyStack")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("applyStack")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[]): "),a("em",[t._v("number")])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L590",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:590"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildorupdateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildorupdateelements"}},[t._v("#")]),t._v(" buildOrUpdateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildOrUpdateElements")]),t._v("("),a("code",[t._v("resetNewElements?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("resetNewElements?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L555",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:555"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatecircumference"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatecircumference"}},[t._v("#")]),t._v(" calculateCircumference")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateCircumference")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L309",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:309"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatetotal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatetotal"}},[t._v("#")]),t._v(" calculateTotal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateTotal")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L308",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:308"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L552",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:552"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L547",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:547"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getallparsedvalues"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getallparsedvalues"}},[t._v("#")]),t._v(" getAllParsedValues")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getAllParsedValues")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("number")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L541",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:541"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdataset"}},[t._v("#")]),t._v(" getDataset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDataset")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L549",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:549"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelandvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelandvalue"}},[t._v("#")]),t._v(" getLabelAndValue")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getLabelAndValue")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("label")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L542",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:542"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaxoverflow"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaxoverflow"}},[t._v("#")]),t._v(" getMaxOverflow")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMaxOverflow")]),t._v("(): "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L546",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:546"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmeta"}},[t._v("#")]),t._v(" getMeta")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMeta")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L550",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:550"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("canStack?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L597",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:597"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getparsed"}},[t._v("#")]),t._v(" getParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getParsed")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")]),t._v(" | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v(" | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L589",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:589"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getscaleforid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getscaleforid"}},[t._v("#")]),t._v(" getScaleForId")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getScaleForId")]),t._v("("),a("code",[t._v("scaleID")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scaleID")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L551",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:551"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getsharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getsharedoptions"}},[t._v("#")]),t._v(" getSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getSharedOptions")]),t._v("("),a("code",[t._v("options")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Utility for checking if the options are shared and should be animated separately.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L564",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:564"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getstyle"}},[t._v("#")]),t._v(" getStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getStyle")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L557",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:557"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"includeoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#includeoptions"}},[t._v("#")]),t._v(" includeOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("includeOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Utility for determining if "),a("code",[t._v("options")]),t._v(" should be included in the updated properties")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L569",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:569"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"initialize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#initialize"}},[t._v("#")]),t._v(" initialize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("initialize")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L553",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:553"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linkscales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linkscales"}},[t._v("#")]),t._v(" linkScales")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("linkScales")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L540",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:540"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L585",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:585"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsearraydata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsearraydata"}},[t._v("#")]),t._v(" parseArrayData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseArrayData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:587"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseobjectdata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseobjectdata"}},[t._v("#")]),t._v(" parseObjectData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseObjectData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:588"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseprimitivedata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseprimitivedata"}},[t._v("#")]),t._v(" parsePrimitiveData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parsePrimitiveData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:586"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removehoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removehoverstyle"}},[t._v("#")]),t._v(" removeHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" reset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("reset")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L548",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:548"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedataelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedataelementoptions"}},[t._v("#")]),t._v(" resolveDataElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDataElementOptions")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L559",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:559"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedatasetelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedatasetelementoptions"}},[t._v("#")]),t._v(" resolveDatasetElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDatasetElementOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L558",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:558"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"sethoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#sethoverstyle"}},[t._v("#")]),t._v(" setHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L583",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:583"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:544"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelement"}},[t._v("#")]),t._v(" updateElement")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateElement")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("properties")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Utility for updating an element with new properties, using animations when appropriate.")]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("properties")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L575",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:575"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelements"}},[t._v("#")]),t._v(" updateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateElements")]),t._v("("),a("code",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>[]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:543"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateindex"}},[t._v("#")]),t._v(" updateIndex")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateIndex")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L545",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:545"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updaterangefromparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updaterangefromparsed"}},[t._v("#")]),t._v(" updateRangeFromParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateRangeFromParsed")]),t._v("("),a("code",[t._v("range")]),t._v(": { "),a("code",[t._v("max")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("min")]),t._v(": "),a("em",[t._v("number")]),t._v(" }, "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[], "),a("code",[t._v("stack")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("stack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L591",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:591"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatesharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatesharedoptions"}},[t._v("#")]),t._v(" updateSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateSharedOptions")]),t._v("("),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("newOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Utility to animate the shared options, that are potentially affecting multiple elements.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("newOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:581"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/59.faa2f5d2.js b/docs/3.1.0/assets/js/59.faa2f5d2.js new file mode 100644 index 0000000000..a288a00fc4 --- /dev/null +++ b/docs/3.1.0/assets/js/59.faa2f5d2.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[59],{383:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-doughnutcontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-doughnutcontroller"}},[t._v("#")]),t._v(" Interface: DoughnutController")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("DoughnutController")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"cachedmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cachedmeta"}},[t._v("#")]),t._v(" _cachedMeta")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("_cachedMeta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html#_cachedmeta"}},[t._v("_cachedMeta")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L537",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:537"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html#chart"}},[t._v("chart")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L535",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:535"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"enableoptionsharing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enableoptionsharing"}},[t._v("#")]),t._v(" enableOptionSharing")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("enableOptionSharing")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html#enableoptionsharing"}},[t._v("enableOptionSharing")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L538",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:538"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"index"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("index")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html#index"}},[t._v("index")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L536",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:536"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"innerradius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#innerradius"}},[t._v("#")]),t._v(" innerRadius")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("innerRadius")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L303",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:303"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"offsetx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offsetx"}},[t._v("#")]),t._v(" offsetX")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("offsetX")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L305",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:305"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"offsety"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offsety"}},[t._v("#")]),t._v(" offsetY")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("offsetY")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L306",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:306"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"outerradius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#outerradius"}},[t._v("#")]),t._v(" outerRadius")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("outerRadius")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L304",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:304"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"addelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addelements"}},[t._v("#")]),t._v(" addElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addElements")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L554",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:554"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"applystack"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#applystack"}},[t._v("#")]),t._v(" applyStack")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("applyStack")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[]): "),a("em",[t._v("number")])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L590",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:590"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildorupdateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildorupdateelements"}},[t._v("#")]),t._v(" buildOrUpdateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildOrUpdateElements")]),t._v("("),a("code",[t._v("resetNewElements?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("resetNewElements?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L555",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:555"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatecircumference"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatecircumference"}},[t._v("#")]),t._v(" calculateCircumference")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateCircumference")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L309",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:309"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatetotal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatetotal"}},[t._v("#")]),t._v(" calculateTotal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateTotal")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L308",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:308"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L552",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:552"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L547",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:547"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getallparsedvalues"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getallparsedvalues"}},[t._v("#")]),t._v(" getAllParsedValues")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getAllParsedValues")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("number")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L541",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:541"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdataset"}},[t._v("#")]),t._v(" getDataset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDataset")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L549",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:549"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelandvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelandvalue"}},[t._v("#")]),t._v(" getLabelAndValue")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getLabelAndValue")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("label")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L542",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:542"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaxoverflow"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaxoverflow"}},[t._v("#")]),t._v(" getMaxOverflow")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMaxOverflow")]),t._v("(): "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L546",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:546"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmeta"}},[t._v("#")]),t._v(" getMeta")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMeta")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L550",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:550"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("canStack?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L597",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:597"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getparsed"}},[t._v("#")]),t._v(" getParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getParsed")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")]),t._v(" | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v(" | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L589",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:589"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getscaleforid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getscaleforid"}},[t._v("#")]),t._v(" getScaleForId")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getScaleForId")]),t._v("("),a("code",[t._v("scaleID")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scaleID")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L551",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:551"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getsharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getsharedoptions"}},[t._v("#")]),t._v(" getSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getSharedOptions")]),t._v("("),a("code",[t._v("options")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Utility for checking if the options are shared and should be animated separately.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L564",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:564"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getstyle"}},[t._v("#")]),t._v(" getStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getStyle")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L557",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:557"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"includeoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#includeoptions"}},[t._v("#")]),t._v(" includeOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("includeOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Utility for determining if "),a("code",[t._v("options")]),t._v(" should be included in the updated properties")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L569",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:569"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"initialize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#initialize"}},[t._v("#")]),t._v(" initialize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("initialize")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L553",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:553"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linkscales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linkscales"}},[t._v("#")]),t._v(" linkScales")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("linkScales")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L540",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:540"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L585",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:585"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsearraydata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsearraydata"}},[t._v("#")]),t._v(" parseArrayData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseArrayData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:587"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseobjectdata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseobjectdata"}},[t._v("#")]),t._v(" parseObjectData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseObjectData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:588"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseprimitivedata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseprimitivedata"}},[t._v("#")]),t._v(" parsePrimitiveData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parsePrimitiveData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:586"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removehoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removehoverstyle"}},[t._v("#")]),t._v(" removeHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" reset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("reset")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L548",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:548"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedataelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedataelementoptions"}},[t._v("#")]),t._v(" resolveDataElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDataElementOptions")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L559",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:559"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedatasetelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedatasetelementoptions"}},[t._v("#")]),t._v(" resolveDatasetElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDatasetElementOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L558",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:558"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"sethoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#sethoverstyle"}},[t._v("#")]),t._v(" setHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L583",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:583"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:544"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelement"}},[t._v("#")]),t._v(" updateElement")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateElement")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("properties")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Utility for updating an element with new properties, using animations when appropriate.")]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("properties")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L575",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:575"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelements"}},[t._v("#")]),t._v(" updateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateElements")]),t._v("("),a("code",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>[]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:543"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateindex"}},[t._v("#")]),t._v(" updateIndex")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateIndex")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L545",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:545"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updaterangefromparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updaterangefromparsed"}},[t._v("#")]),t._v(" updateRangeFromParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateRangeFromParsed")]),t._v("("),a("code",[t._v("range")]),t._v(": { "),a("code",[t._v("max")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("min")]),t._v(": "),a("em",[t._v("number")]),t._v(" }, "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[], "),a("code",[t._v("stack")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("stack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L591",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:591"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatesharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatesharedoptions"}},[t._v("#")]),t._v(" updateSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateSharedOptions")]),t._v("("),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("newOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Utility to animate the shared options, that are potentially affecting multiple elements.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("newOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:581"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/6.51425ea4.js b/docs/3.1.0/assets/js/6.66c3a69e.js similarity index 67% rename from docs/3.1.0/assets/js/6.51425ea4.js rename to docs/3.1.0/assets/js/6.66c3a69e.js index 04acdd3bf2..065c3b3578 100644 --- a/docs/3.1.0/assets/js/6.51425ea4.js +++ b/docs/3.1.0/assets/js/6.66c3a69e.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{296:function(t,e,a){},329:function(t,e,a){"use strict";a(296)},334:function(t,e,a){"use strict";a.r(e);var s={name:"CodeBlock",props:{title:{type:String,required:!0},active:{type:Boolean,default:!1}},mounted(){this.$parent&&this.$parent.loadTabs&&this.$parent.loadTabs()}},i=(a(329),a(7)),n=Object(i.a)(s,(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"theme-code-block",class:{"theme-code-block__active":this.active}},[this._t("default")],2)}),[],!1,null,"759a7d02",null);e.default=n.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{297:function(t,e,a){},330:function(t,e,a){"use strict";a(297)},335:function(t,e,a){"use strict";a.r(e);var s={name:"CodeBlock",props:{title:{type:String,required:!0},active:{type:Boolean,default:!1}},mounted(){this.$parent&&this.$parent.loadTabs&&this.$parent.loadTabs()}},i=(a(330),a(7)),n=Object(i.a)(s,(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"theme-code-block",class:{"theme-code-block__active":this.active}},[this._t("default")],2)}),[],!1,null,"759a7d02",null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/60.4b0ad5e2.js b/docs/3.1.0/assets/js/60.4b0ad5e2.js new file mode 100644 index 0000000000..28fb1e3f4b --- /dev/null +++ b/docs/3.1.0/assets/js/60.4b0ad5e2.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[60],{384:function(t,e,r){"use strict";r.r(e);var n=r(7),a=Object(n.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-doughnutcontrollerchartoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-doughnutcontrollerchartoptions"}},[t._v("#")]),t._v(" Interface: DoughnutControllerChartOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutanimationoptions.html"}},[r("em",[t._v("DoughnutAnimationOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L297",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:297"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"circumference"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#circumference"}},[t._v("#")]),t._v(" circumference")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("circumference")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Sweep to allow arcs to cover.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 360")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L276",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:276"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"cutout"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#cutout"}},[t._v("#")]),t._v(" cutout")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("cutout")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The portion of the chart that is cut out of the middle. ('50%' - for doughnut, 0 - for pie)\nString ending with '%' means percentage, number means pixels.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 50")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L283",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:283"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"radius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#radius"}},[t._v("#")]),t._v(" radius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("radius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The outer radius of the chart. String ending with '%' means percentage of maximum radius, number means pixels.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" '100%'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L289",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:289"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[t._v("#")]),t._v(" rotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rotation")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Starting angle to draw arcs from.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L295",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:295"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/60.8987e982.js b/docs/3.1.0/assets/js/60.8987e982.js deleted file mode 100644 index 2722e63708..0000000000 --- a/docs/3.1.0/assets/js/60.8987e982.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[60],{387:function(t,e,r){"use strict";r.r(e);var n=r(7),a=Object(n.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-doughnutcontrollerchartoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-doughnutcontrollerchartoptions"}},[t._v("#")]),t._v(" Interface: DoughnutControllerChartOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutanimationoptions.html"}},[r("em",[t._v("DoughnutAnimationOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L297",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:297"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"circumference"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#circumference"}},[t._v("#")]),t._v(" circumference")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("circumference")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Sweep to allow arcs to cover.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 360")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L276",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:276"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"cutout"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#cutout"}},[t._v("#")]),t._v(" cutout")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("cutout")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The portion of the chart that is cut out of the middle. ('50%' - for doughnut, 0 - for pie)\nString ending with '%' means percentage, number means pixels.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 50")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L283",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:283"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"radius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#radius"}},[t._v("#")]),t._v(" radius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("radius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The outer radius of the chart. String ending with '%' means percentage of maximum radius, number means pixels.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" '100%'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L289",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:289"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[t._v("#")]),t._v(" rotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rotation")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Starting angle to draw arcs from.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L295",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:295"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/61.0c94f87a.js b/docs/3.1.0/assets/js/61.0c94f87a.js new file mode 100644 index 0000000000..7ef0a2e059 --- /dev/null +++ b/docs/3.1.0/assets/js/61.0c94f87a.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[61],{385:function(t,e,r){"use strict";r.r(e);var a=r(7),o=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-doughnutcontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-doughnutcontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: DoughnutControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[r("em",[t._v("ControllerDatasetOptions")])])],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableandarrayoptions"}},[r("em",[t._v("ScriptableAndArrayOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[r("em",[t._v("ArcOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#animationoptions"}},[r("em",[t._v("AnimationOptions")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">")],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("DoughnutControllerDatasetOptions")])]),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/polarareacontrollerdatasetoptions.html"}},[r("em",[t._v("PolarAreaControllerDatasetOptions")])])],1)])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("em",[t._v("false")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v("> & { "),r("code",[t._v("onComplete?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" ; "),r("code",[t._v("onProgress?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" }")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animations")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.backgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderalign"}},[t._v("#")]),t._v(" borderAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("em",[t._v("center")]),t._v(" | "),r("em",[t._v("inner")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Arc stroke alignment.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderAlign")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1624",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1624"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[t._v("#")]),t._v(" borderRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Sets the border radius for arcs")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1633",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1633"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"circumference"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#circumference"}},[t._v("#")]),t._v(" circumference")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("circumference")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Sweep to allow arcs to cover.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 360")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L242",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:242"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoveroffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoveroffset"}},[t._v("#")]),t._v(" hoverOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverOffset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1637",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1637"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"offset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#offset"}},[t._v("#")]),t._v(" offset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("offset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Arc offset (in pixels).")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.offset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1628",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1628"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[t._v("#")]),t._v(" rotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rotation")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Starting angle to draw this dataset from.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L248",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:248"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"transitions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("transitions")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[r("em",[t._v("TransitionsSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.transitions")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"weight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("weight")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The relative thickness of the dataset. Providing a value for weight will cause the pie or doughnut dataset to be drawn with a thickness relative to the sum of all the dataset weight values.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 1")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L254",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:254"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/61.d8d4483c.js b/docs/3.1.0/assets/js/61.d8d4483c.js deleted file mode 100644 index 41b20a7c3a..0000000000 --- a/docs/3.1.0/assets/js/61.d8d4483c.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[61],{388:function(t,e,r){"use strict";r.r(e);var a=r(7),o=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-doughnutcontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-doughnutcontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: DoughnutControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[r("em",[t._v("ControllerDatasetOptions")])])],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableandarrayoptions"}},[r("em",[t._v("ScriptableAndArrayOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[r("em",[t._v("ArcOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#animationoptions"}},[r("em",[t._v("AnimationOptions")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">")],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("DoughnutControllerDatasetOptions")])]),t._v(" "),r("p",[t._v("↳↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/polarareacontrollerdatasetoptions.html"}},[r("em",[t._v("PolarAreaControllerDatasetOptions")])])],1)])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("em",[t._v("false")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v("> & { "),r("code",[t._v("onComplete?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" ; "),r("code",[t._v("onProgress?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" }")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animations")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.backgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderalign"}},[t._v("#")]),t._v(" borderAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("em",[t._v("center")]),t._v(" | "),r("em",[t._v("inner")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Arc stroke alignment.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderAlign")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1624",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1624"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[t._v("#")]),t._v(" borderRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Sets the border radius for arcs")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1633",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1633"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.borderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"circumference"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#circumference"}},[t._v("#")]),t._v(" circumference")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("circumference")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Sweep to allow arcs to cover.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 360")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L242",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:242"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoveroffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoveroffset"}},[t._v("#")]),t._v(" hoverOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.hoverOffset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1637",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1637"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"offset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#offset"}},[t._v("#")]),t._v(" offset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("offset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Arc offset (in pixels).")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.offset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1628",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1628"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[t._v("#")]),t._v(" rotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rotation")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Starting angle to draw this dataset from.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L248",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:248"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"transitions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("transitions")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[r("em",[t._v("TransitionsSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.transitions")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"weight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("weight")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The relative thickness of the dataset. Providing a value for weight will cause the pie or doughnut dataset to be drawn with a thickness relative to the sum of all the dataset weight values.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 1")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L254",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:254"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/62.1955e3ef.js b/docs/3.1.0/assets/js/62.1955e3ef.js new file mode 100644 index 0000000000..e814200fb4 --- /dev/null +++ b/docs/3.1.0/assets/js/62.1955e3ef.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[62],{386:function(t,e,a){"use strict";a.r(e);var _=a(7),v=Object(_.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-element-t-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-element-t-o"}},[t._v("#")]),t._v(" Interface: Element")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("{}")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("{}")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": keyof T[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): T")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("keyof T[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/62.d2a0739e.js b/docs/3.1.0/assets/js/62.d2a0739e.js deleted file mode 100644 index a367718fba..0000000000 --- a/docs/3.1.0/assets/js/62.d2a0739e.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[62],{389:function(t,e,a){"use strict";a.r(e);var _=a(7),v=Object(_.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-element-t-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-element-t-o"}},[t._v("#")]),t._v(" Interface: Element")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("{}")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("{}")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": keyof T[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): T")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("keyof T[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/63.38bf5ef9.js b/docs/3.1.0/assets/js/63.a2c68d92.js similarity index 80% rename from docs/3.1.0/assets/js/63.38bf5ef9.js rename to docs/3.1.0/assets/js/63.a2c68d92.js index 257ba170d4..08936c141e 100644 --- a/docs/3.1.0/assets/js/63.38bf5ef9.js +++ b/docs/3.1.0/assets/js/63.a2c68d92.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[63],{390:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-elementchartoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-elementchartoptions"}},[t._v("#")]),t._v(" Interface: ElementChartOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("strong",[t._v("ElementChartOptions")])]),t._v(" "),r("p",[t._v("↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[r("em",[t._v("Defaults")])])],1)])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"elements"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#elements"}},[t._v("#")]),t._v(" elements")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("elements")]),t._v(": "),r("em",[t._v("Partial")]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/elementoptionsbytype.html"}},[r("em",[t._v("ElementOptionsByType")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1897",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1897"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[63],{387:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-elementchartoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-elementchartoptions"}},[t._v("#")]),t._v(" Interface: ElementChartOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("strong",[t._v("ElementChartOptions")])]),t._v(" "),r("p",[t._v("↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[r("em",[t._v("Defaults")])])],1)])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"elements"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#elements"}},[t._v("#")]),t._v(" elements")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("elements")]),t._v(": "),r("em",[t._v("Partial")]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/elementoptionsbytype.html"}},[r("em",[t._v("ElementOptionsByType")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1897",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1897"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/64.1370b0c2.js b/docs/3.1.0/assets/js/64.1370b0c2.js deleted file mode 100644 index d23e336092..0000000000 --- a/docs/3.1.0/assets/js/64.1370b0c2.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[64],{391:function(t,e,r){"use strict";r.r(e);var n=r(7),s=Object(n.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-elementoptionsbytype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-elementoptionsbytype"}},[t._v("#")]),t._v(" Interface: ElementOptionsByType")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"arc"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#arc"}},[t._v("#")]),t._v(" arc")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("arc")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[r("em",[t._v("ArcOptions")])]),t._v(" & "),r("RouterLink",{attrs:{to:"/api/interfaces/archoveroptions.html"}},[r("em",[t._v("ArcHoverOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1891",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1891"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bar"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bar"}},[t._v("#")]),t._v(" bar")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bar")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[r("em",[t._v("BarOptions")])]),t._v(" & "),r("RouterLink",{attrs:{to:"/api/interfaces/barhoveroptions.html"}},[r("em",[t._v("BarHoverOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1892",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1892"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"line"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#line"}},[t._v("#")]),t._v(" line")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("line")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[r("em",[t._v("LineOptions")])]),t._v(" & "),r("RouterLink",{attrs:{to:"/api/interfaces/linehoveroptions.html"}},[r("em",[t._v("LineHoverOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1893",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1893"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"point"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#point"}},[t._v("#")]),t._v(" point")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("point")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[r("em",[t._v("PointOptions")])]),t._v(" & "),r("RouterLink",{attrs:{to:"/api/interfaces/pointhoveroptions.html"}},[r("em",[t._v("PointHoverOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1894",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1894"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/64.61e33bb7.js b/docs/3.1.0/assets/js/64.61e33bb7.js new file mode 100644 index 0000000000..67d661432c --- /dev/null +++ b/docs/3.1.0/assets/js/64.61e33bb7.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[64],{388:function(t,e,r){"use strict";r.r(e);var n=r(7),s=Object(n.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-elementoptionsbytype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-elementoptionsbytype"}},[t._v("#")]),t._v(" Interface: ElementOptionsByType")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"arc"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#arc"}},[t._v("#")]),t._v(" arc")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("arc")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[r("em",[t._v("ArcOptions")])]),t._v(" & "),r("RouterLink",{attrs:{to:"/api/interfaces/archoveroptions.html"}},[r("em",[t._v("ArcHoverOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1891",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1891"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bar"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bar"}},[t._v("#")]),t._v(" bar")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bar")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[r("em",[t._v("BarOptions")])]),t._v(" & "),r("RouterLink",{attrs:{to:"/api/interfaces/barhoveroptions.html"}},[r("em",[t._v("BarHoverOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1892",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1892"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"line"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#line"}},[t._v("#")]),t._v(" line")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("line")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[r("em",[t._v("LineOptions")])]),t._v(" & "),r("RouterLink",{attrs:{to:"/api/interfaces/linehoveroptions.html"}},[r("em",[t._v("LineHoverOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1893",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1893"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"point"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#point"}},[t._v("#")]),t._v(" point")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("point")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[r("em",[t._v("PointOptions")])]),t._v(" & "),r("RouterLink",{attrs:{to:"/api/interfaces/pointhoveroptions.html"}},[r("em",[t._v("PointHoverOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1894",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1894"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/65.c9ea7df7.js b/docs/3.1.0/assets/js/65.3ed92966.js similarity index 58% rename from docs/3.1.0/assets/js/65.c9ea7df7.js rename to docs/3.1.0/assets/js/65.3ed92966.js index fa6cbe7661..7888258735 100644 --- a/docs/3.1.0/assets/js/65.c9ea7df7.js +++ b/docs/3.1.0/assets/js/65.3ed92966.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[65],{392:function(t,e,a){"use strict";a.r(e);var v=a(7),_=Object(v.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-extendedplugin-ttype-o-model"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-extendedplugin-ttype-o-model"}},[t._v("#")]),t._v(" Interface: ExtendedPlugin")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("AnyObject")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Model")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v("")],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("ExtendedPlugin")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"aftertooltipdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftertooltipdraw"}},[t._v("#")]),t._v(" afterTooltipDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterTooltipDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("tooltip")]),t._v(": Model }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after drawing the "),a("code",[t._v("tooltip")]),t._v(". Note that this hook will not\nbe called if the tooltip drawing has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.tooltip")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Model")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The tooltip.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2388",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2388"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforetooltipdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforetooltipdraw"}},[t._v("#")]),t._v(" beforeTooltipDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeTooltipDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("tooltip")]),t._v(": Model }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before drawing the "),a("code",[t._v("tooltip")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe tooltip drawing is cancelled until another "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.tooltip")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Model")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The tooltip.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart tooltip drawing.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2379",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2379"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[65],{390:function(t,e,a){"use strict";a.r(e);var v=a(7),_=Object(v.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-extendedplugin-ttype-o-model"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-extendedplugin-ttype-o-model"}},[t._v("#")]),t._v(" Interface: ExtendedPlugin")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("AnyObject")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("Model")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v("")],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("ExtendedPlugin")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"aftertooltipdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftertooltipdraw"}},[t._v("#")]),t._v(" afterTooltipDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterTooltipDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("tooltip")]),t._v(": Model }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after drawing the "),a("code",[t._v("tooltip")]),t._v(". Note that this hook will not\nbe called if the tooltip drawing has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.tooltip")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Model")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The tooltip.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2388",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2388"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforetooltipdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforetooltipdraw"}},[t._v("#")]),t._v(" beforeTooltipDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeTooltipDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("tooltip")]),t._v(": Model }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before drawing the "),a("code",[t._v("tooltip")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe tooltip drawing is cancelled until another "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.tooltip")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Model")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The tooltip.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart tooltip drawing.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2379",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2379"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/66.c14fc7c9.js b/docs/3.1.0/assets/js/66.85ebdcec.js similarity index 83% rename from docs/3.1.0/assets/js/66.c14fc7c9.js rename to docs/3.1.0/assets/js/66.85ebdcec.js index cf70c8718d..aee2d55b4b 100644 --- a/docs/3.1.0/assets/js/66.c14fc7c9.js +++ b/docs/3.1.0/assets/js/66.85ebdcec.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[66],{393:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-fillercontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-fillercontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: FillerControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"fill"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#fill"}},[t._v("#")]),t._v(" fill")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("fill")]),t._v(": "),r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("number")]),t._v(" | "),r("em",[t._v("boolean")]),t._v(" | { "),r("code",[t._v("value")]),t._v(": "),r("em",[t._v("number")]),t._v(" } | "),r("RouterLink",{attrs:{to:"/api/interfaces/complexfilltarget.html"}},[r("em",[t._v("ComplexFillTarget")])])],1),t._v(" "),r("p",[t._v("Both line and radar charts support a fill option on the dataset object which can be used to create area between two datasets or a dataset and a boundary, i.e. the scale origin, start or end")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2001",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2001"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[66],{389:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-fillercontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-fillercontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: FillerControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"fill"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#fill"}},[t._v("#")]),t._v(" fill")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("fill")]),t._v(": "),r("em",[t._v("string")]),t._v(" | "),r("em",[t._v("number")]),t._v(" | "),r("em",[t._v("boolean")]),t._v(" | { "),r("code",[t._v("value")]),t._v(": "),r("em",[t._v("number")]),t._v(" } | "),r("RouterLink",{attrs:{to:"/api/interfaces/complexfilltarget.html"}},[r("em",[t._v("ComplexFillTarget")])])],1),t._v(" "),r("p",[t._v("Both line and radar charts support a fill option on the dataset object which can be used to create area between two datasets or a dataset and a boundary, i.e. the scale origin, start or end")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2001",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2001"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/67.50df0fc7.js b/docs/3.1.0/assets/js/67.7fdf739f.js similarity index 50% rename from docs/3.1.0/assets/js/67.50df0fc7.js rename to docs/3.1.0/assets/js/67.7fdf739f.js index 1cd9ff0b2d..350ca649dc 100644 --- a/docs/3.1.0/assets/js/67.50df0fc7.js +++ b/docs/3.1.0/assets/js/67.7fdf739f.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[67],{394:function(e,t,r){"use strict";r.r(t);var a=r(7),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-filleroptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-filleroptions"}},[e._v("#")]),e._v(" Interface: FillerOptions")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"drawtime"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#drawtime"}},[e._v("#")]),e._v(" drawTime")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("drawTime")]),e._v(": "),r("em",[e._v("beforeDatasetDraw")]),e._v(" | "),r("em",[e._v("beforeDatasetsDraw")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1976",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1976"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"propagate"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#propagate"}},[e._v("#")]),e._v(" propagate")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("propagate")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1977",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1977"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[67],{391:function(e,t,r){"use strict";r.r(t);var a=r(7),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-filleroptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-filleroptions"}},[e._v("#")]),e._v(" Interface: FillerOptions")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"drawtime"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#drawtime"}},[e._v("#")]),e._v(" drawTime")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("drawTime")]),e._v(": "),r("em",[e._v("beforeDatasetDraw")]),e._v(" | "),r("em",[e._v("beforeDatasetsDraw")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1976",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1976"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"propagate"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#propagate"}},[e._v("#")]),e._v(" propagate")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("propagate")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1977",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1977"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/68.7f6a9b2d.js b/docs/3.1.0/assets/js/68.7f6a9b2d.js deleted file mode 100644 index 9e891ee2ca..0000000000 --- a/docs/3.1.0/assets/js/68.7f6a9b2d.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[68],{395:function(e,t,r){"use strict";r.r(t);var s=r(7),a=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-fontspec"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-fontspec"}},[e._v("#")]),e._v(" Interface: FontSpec")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"family"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#family"}},[e._v("#")]),e._v(" family")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("family")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Default font family for all text, follows CSS font-family options.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" \"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\"")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1552",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1552"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"lineheight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#lineheight"}},[e._v("#")]),e._v(" lineHeight")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("lineHeight")]),e._v(": "),r("em",[e._v("string")]),e._v(" | "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Height of an individual line of text (see MDN).")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 1.2")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1571",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1571"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"size"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#size"}},[e._v("#")]),e._v(" size")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("size")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Default font size (in px) for text. Does not apply to radialLinear scale point labels.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 12")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1557",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1557"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"style"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#style"}},[e._v("#")]),e._v(" style")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("style")]),e._v(": "),r("em",[e._v("normal")]),e._v(" | "),r("em",[e._v("italic")]),e._v(" | "),r("em",[e._v("oblique")]),e._v(" | "),r("em",[e._v("initial")]),e._v(" | "),r("em",[e._v("inherit")])]),e._v(" "),r("p",[e._v("Default font style. Does not apply to tooltip title or footer. Does not apply to chart title. Follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit)")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 'normal'")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1562",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1562"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"weight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[e._v("#")]),e._v(" weight")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("weight")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Default font weight (boldness). (see MDN).")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1566",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1566"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/68.9ba7535b.js b/docs/3.1.0/assets/js/68.9ba7535b.js new file mode 100644 index 0000000000..9c6105cd5d --- /dev/null +++ b/docs/3.1.0/assets/js/68.9ba7535b.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[68],{392:function(e,t,r){"use strict";r.r(t);var s=r(7),i=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-fontspec"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-fontspec"}},[e._v("#")]),e._v(" Interface: FontSpec")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"family"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#family"}},[e._v("#")]),e._v(" family")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("family")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Default font family for all text, follows CSS font-family options.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" \"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif\"")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1552",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1552"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"lineheight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#lineheight"}},[e._v("#")]),e._v(" lineHeight")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("lineHeight")]),e._v(": "),r("em",[e._v("string")]),e._v(" | "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Height of an individual line of text (see MDN).")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 1.2")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1571",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1571"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"size"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#size"}},[e._v("#")]),e._v(" size")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("size")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Default font size (in px) for text. Does not apply to radialLinear scale point labels.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 12")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1557",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1557"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"style"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#style"}},[e._v("#")]),e._v(" style")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("style")]),e._v(": "),r("em",[e._v("normal")]),e._v(" | "),r("em",[e._v("italic")]),e._v(" | "),r("em",[e._v("oblique")]),e._v(" | "),r("em",[e._v("initial")]),e._v(" | "),r("em",[e._v("inherit")])]),e._v(" "),r("p",[e._v("Default font style. Does not apply to tooltip title or footer. Does not apply to chart title. Follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit)")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 'normal'")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1562",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1562"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"weight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[e._v("#")]),e._v(" weight")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("weight")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Default font weight (boldness). (see MDN).")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1566",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:1566"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=i.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/69.9baf5afd.js b/docs/3.1.0/assets/js/69.9baf5afd.js deleted file mode 100644 index 0cae23148a..0000000000 --- a/docs/3.1.0/assets/js/69.9baf5afd.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[69],{396:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-gridlineoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-gridlineoptions"}},[t._v("#")]),t._v(" Interface: GridLineOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2634",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2634"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdash"}},[t._v("#")]),t._v(" borderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDash")]),t._v(": "),r("em",[t._v("number")]),t._v("[]")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" []")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2647",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2647"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdashoffset"}},[t._v("#")]),t._v(" borderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2651",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2651"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2635",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2635"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"circular"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#circular"}},[t._v("#")]),t._v(" circular")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("circular")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2639",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2639"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"color"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[t._v("#")]),t._v(" color")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("color")]),t._v(": "),r("em",[t._v("string")]),t._v(" | CanvasGradient | CanvasPattern | readonly "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v("[] | ("),r("code",[t._v("ctx")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[t._v("ScriptableScaleContext")])]),t._v(") => "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'rgba(0, 0, 0, 0.1)'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2643",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2643"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"display"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[t._v("#")]),t._v(" display")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("display")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2633",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2633"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"drawborder"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#drawborder"}},[t._v("#")]),t._v(" drawBorder")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("drawBorder")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2660",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2660"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"drawonchartarea"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#drawonchartarea"}},[t._v("#")]),t._v(" drawOnChartArea")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("drawOnChartArea")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2664",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2664"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"drawticks"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#drawticks"}},[t._v("#")]),t._v(" drawTicks")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("drawTicks")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2668",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2668"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"linewidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linewidth"}},[t._v("#")]),t._v(" lineWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("lineWidth")]),t._v(": "),r("em",[t._v("number")]),t._v(" | readonly "),r("em",[t._v("number")]),t._v("[] | ("),r("code",[t._v("ctx")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[t._v("ScriptableScaleContext")])]),t._v(") => "),r("em",[t._v("number")])],1),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 1")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2655",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2655"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"offset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#offset"}},[t._v("#")]),t._v(" offset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("offset")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2692",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2692"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tickborderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tickborderdash"}},[t._v("#")]),t._v(" tickBorderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tickBorderDash")]),t._v(": "),r("em",[t._v("number")]),t._v("[]")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" []")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2672",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2672"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tickborderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tickborderdashoffset"}},[t._v("#")]),t._v(" tickBorderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tickBorderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2676",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2676"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tickcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tickcolor"}},[t._v("#")]),t._v(" tickColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tickColor")]),t._v(": "),r("em",[t._v("string")]),t._v(" | CanvasGradient | CanvasPattern | readonly "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v("[] | ("),r("code",[t._v("ctx")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[t._v("ScriptableScaleContext")])]),t._v(") => "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'rgba(0, 0, 0, 0.1)'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2680",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2680"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"ticklength"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#ticklength"}},[t._v("#")]),t._v(" tickLength")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tickLength")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 10")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2684",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2684"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tickwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tickwidth"}},[t._v("#")]),t._v(" tickWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tickWidth")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 1")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2688",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2688"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/69.e5b7dac5.js b/docs/3.1.0/assets/js/69.e5b7dac5.js new file mode 100644 index 0000000000..b67ab3b972 --- /dev/null +++ b/docs/3.1.0/assets/js/69.e5b7dac5.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[69],{393:function(e,t,r){"use strict";r.r(t);var a=r(7),s=Object(a.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-gridlineoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-gridlineoptions"}},[e._v("#")]),e._v(" Interface: GridLineOptions")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[e._v("#")]),e._v(" borderColor")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderColor")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2634",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2634"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"borderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdash"}},[e._v("#")]),e._v(" borderDash")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderDash")]),e._v(": "),r("em",[e._v("number")]),e._v("[]")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" []")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2647",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2647"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"borderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdashoffset"}},[e._v("#")]),e._v(" borderDashOffset")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderDashOffset")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[e._v("Scriptable")])]),e._v("")],1),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 0")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2651",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2651"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[e._v("#")]),e._v(" borderWidth")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("borderWidth")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2635",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2635"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"circular"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#circular"}},[e._v("#")]),e._v(" circular")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("circular")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" false")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2639",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2639"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"color"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[e._v("#")]),e._v(" color")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("color")]),e._v(": "),r("em",[e._v("string")]),e._v(" | CanvasGradient | CanvasPattern | readonly "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])]),e._v("[] | ("),r("code",[e._v("ctx")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[e._v("ScriptableScaleContext")])]),e._v(") => "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 'rgba(0, 0, 0, 0.1)'")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2643",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2643"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"display"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[e._v("#")]),e._v(" display")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("display")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" true")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2633",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2633"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"drawborder"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#drawborder"}},[e._v("#")]),e._v(" drawBorder")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("drawBorder")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" true")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2660",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2660"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"drawonchartarea"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#drawonchartarea"}},[e._v("#")]),e._v(" drawOnChartArea")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("drawOnChartArea")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" true")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2664",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2664"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"drawticks"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#drawticks"}},[e._v("#")]),e._v(" drawTicks")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("drawTicks")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" true")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2668",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2668"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"linewidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linewidth"}},[e._v("#")]),e._v(" lineWidth")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("lineWidth")]),e._v(": "),r("em",[e._v("number")]),e._v(" | readonly "),r("em",[e._v("number")]),e._v("[] | ("),r("code",[e._v("ctx")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[e._v("ScriptableScaleContext")])]),e._v(") => "),r("em",[e._v("number")])],1),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 1")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2655",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2655"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"offset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#offset"}},[e._v("#")]),e._v(" offset")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("offset")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" false")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2692",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2692"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"tickborderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tickborderdash"}},[e._v("#")]),e._v(" tickBorderDash")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("tickBorderDash")]),e._v(": "),r("em",[e._v("number")]),e._v("[]")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" []")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2672",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2672"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"tickborderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tickborderdashoffset"}},[e._v("#")]),e._v(" tickBorderDashOffset")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("tickBorderDashOffset")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[e._v("Scriptable")])]),e._v("")],1),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 0")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2676",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2676"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"tickcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tickcolor"}},[e._v("#")]),e._v(" tickColor")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("tickColor")]),e._v(": "),r("em",[e._v("string")]),e._v(" | CanvasGradient | CanvasPattern | readonly "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])]),e._v("[] | ("),r("code",[e._v("ctx")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[r("em",[e._v("ScriptableScaleContext")])]),e._v(") => "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 'rgba(0, 0, 0, 0.1)'")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2680",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2680"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"ticklength"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#ticklength"}},[e._v("#")]),e._v(" tickLength")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("tickLength")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 10")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2684",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2684"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"tickwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tickwidth"}},[e._v("#")]),e._v(" tickWidth")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("tickWidth")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[r("strong",[r("code",[e._v("default")])]),e._v(" 1")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2688",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2688"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/7.a9072f57.js b/docs/3.1.0/assets/js/7.444ac8c1.js similarity index 88% rename from docs/3.1.0/assets/js/7.a9072f57.js rename to docs/3.1.0/assets/js/7.444ac8c1.js index 509f821e2d..c158c0addf 100644 --- a/docs/3.1.0/assets/js/7.a9072f57.js +++ b/docs/3.1.0/assets/js/7.444ac8c1.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{297:function(e,t,a){},330:function(e,t,a){"use strict";a(297)},335:function(e,t,a){"use strict";a.r(t);var o={name:"CodeGroup",data:()=>({codeTabs:[],activeCodeTabIndex:-1}),watch:{activeCodeTabIndex(e){this.activateCodeTab(e)}},mounted(){this.loadTabs()},methods:{changeCodeTab(e){this.activeCodeTabIndex=e},loadTabs(){this.codeTabs=(this.$slots.default||[]).filter(e=>Boolean(e.componentOptions)).map((e,t)=>(""===e.componentOptions.propsData.active&&(this.activeCodeTabIndex=t),{title:e.componentOptions.propsData.title,elm:e.elm})),-1===this.activeCodeTabIndex&&this.codeTabs.length>0&&(this.activeCodeTabIndex=0),this.activateCodeTab(0)},activateCodeTab(e){this.codeTabs.forEach(e=>{e.elm&&e.elm.classList.remove("theme-code-block__active")}),this.codeTabs[e].elm&&this.codeTabs[e].elm.classList.add("theme-code-block__active")}}},s=(a(330),a(7)),c=Object(s.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ClientOnly",[a("div",{staticClass:"theme-code-group"},[a("div",{staticClass:"theme-code-group__nav"},[a("ul",{staticClass:"theme-code-group__ul"},e._l(e.codeTabs,(function(t,o){return a("li",{key:t.title,staticClass:"theme-code-group__li"},[a("button",{staticClass:"theme-code-group__nav-tab",class:{"theme-code-group__nav-tab-active":o===e.activeCodeTabIndex},on:{click:function(t){return e.changeCodeTab(o)}}},[e._v("\n "+e._s(t.title)+"\n ")])])})),0)]),e._v(" "),e._t("default"),e._v(" "),e.codeTabs.length<1?a("pre",{staticClass:"pre-blank"},[e._v("// Make sure to add code blocks to your code group")]):e._e()],2)])}),[],!1,null,"deefee04",null);t.default=c.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{296:function(e,t,a){},329:function(e,t,a){"use strict";a(296)},334:function(e,t,a){"use strict";a.r(t);var o={name:"CodeGroup",data:()=>({codeTabs:[],activeCodeTabIndex:-1}),watch:{activeCodeTabIndex(e){this.activateCodeTab(e)}},mounted(){this.loadTabs()},methods:{changeCodeTab(e){this.activeCodeTabIndex=e},loadTabs(){this.codeTabs=(this.$slots.default||[]).filter(e=>Boolean(e.componentOptions)).map((e,t)=>(""===e.componentOptions.propsData.active&&(this.activeCodeTabIndex=t),{title:e.componentOptions.propsData.title,elm:e.elm})),-1===this.activeCodeTabIndex&&this.codeTabs.length>0&&(this.activeCodeTabIndex=0),this.activateCodeTab(0)},activateCodeTab(e){this.codeTabs.forEach(e=>{e.elm&&e.elm.classList.remove("theme-code-block__active")}),this.codeTabs[e].elm&&this.codeTabs[e].elm.classList.add("theme-code-block__active")}}},s=(a(329),a(7)),c=Object(s.a)(o,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ClientOnly",[a("div",{staticClass:"theme-code-group"},[a("div",{staticClass:"theme-code-group__nav"},[a("ul",{staticClass:"theme-code-group__ul"},e._l(e.codeTabs,(function(t,o){return a("li",{key:t.title,staticClass:"theme-code-group__li"},[a("button",{staticClass:"theme-code-group__nav-tab",class:{"theme-code-group__nav-tab-active":o===e.activeCodeTabIndex},on:{click:function(t){return e.changeCodeTab(o)}}},[e._v("\n "+e._s(t.title)+"\n ")])])})),0)]),e._v(" "),e._t("default"),e._v(" "),e.codeTabs.length<1?a("pre",{staticClass:"pre-blank"},[e._v("// Make sure to add code blocks to your code group")]):e._e()],2)])}),[],!1,null,"deefee04",null);t.default=c.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/70.3999b0cd.js b/docs/3.1.0/assets/js/70.3999b0cd.js deleted file mode 100644 index 97ce2112a8..0000000000 --- a/docs/3.1.0/assets/js/70.3999b0cd.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[70],{397:function(e,t,r){"use strict";r.r(t);var n=r(7),a=Object(n.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-interactionitem"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-interactionitem"}},[e._v("#")]),e._v(" Interface: InteractionItem")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"datasetindex"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[e._v("#")]),e._v(" datasetIndex")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("datasetIndex")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L659",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:659"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"element"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#element"}},[e._v("#")]),e._v(" element")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("element")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])]),e._v("<{}, {}>")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L658",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:658"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"index"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[e._v("#")]),e._v(" index")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("index")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L660",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:660"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/70.5f575655.js b/docs/3.1.0/assets/js/70.5f575655.js new file mode 100644 index 0000000000..96fbddfe9f --- /dev/null +++ b/docs/3.1.0/assets/js/70.5f575655.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[70],{394:function(e,t,r){"use strict";r.r(t);var n=r(7),a=Object(n.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-interactionitem"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-interactionitem"}},[e._v("#")]),e._v(" Interface: InteractionItem")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"datasetindex"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[e._v("#")]),e._v(" datasetIndex")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("datasetIndex")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L659",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:659"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"element"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#element"}},[e._v("#")]),e._v(" element")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("element")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#element"}},[r("em",[e._v("Element")])]),e._v("<{}, {}>")],1),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L658",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:658"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"index"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[e._v("#")]),e._v(" index")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("index")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L660",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:660"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/71.8b4b0011.js b/docs/3.1.0/assets/js/71.8b4b0011.js deleted file mode 100644 index 05bc63f699..0000000000 --- a/docs/3.1.0/assets/js/71.8b4b0011.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[71],{398:function(t,e,n){"use strict";n.r(e);var r=n(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[n("h1",{attrs:{id:"interface-interactionmodemap"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#interface-interactionmodemap"}},[t._v("#")]),t._v(" Interface: InteractionModeMap")]),t._v(" "),n("h2",{attrs:{id:"properties"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),n("h3",{attrs:{id:"dataset"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[t._v("#")]),t._v(" dataset")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("dataset")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("Returns items in the same dataset. If the options.intersect parameter is true, we only return items if we intersect something\nIf the options.intersect is false, we find the nearest item and return the items in that dataset")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L681",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:681"),n("OutboundLink")],1)]),t._v(" "),n("hr"),t._v(" "),n("h3",{attrs:{id:"index"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("index")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("Returns items at the same index. If the options.intersect parameter is true, we only return items if we intersect something\nIf the options.intersect mode is false, we find the nearest item and return the items at the same index as that item")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L675",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:675"),n("OutboundLink")],1)]),t._v(" "),n("hr"),t._v(" "),n("h3",{attrs:{id:"nearest"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#nearest"}},[t._v("#")]),t._v(" nearest")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("nearest")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("nearest mode returns the element closest to the point")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L690",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:690"),n("OutboundLink")],1)]),t._v(" "),n("hr"),t._v(" "),n("h3",{attrs:{id:"point"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#point"}},[t._v("#")]),t._v(" point")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("point")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("Point mode returns all elements that hit test based on the event position\nof the event")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L686",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:686"),n("OutboundLink")],1)]),t._v(" "),n("hr"),t._v(" "),n("h3",{attrs:{id:"x"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("x")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("x mode returns the elements that hit-test at the current x coordinate")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L694",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:694"),n("OutboundLink")],1)]),t._v(" "),n("hr"),t._v(" "),n("h3",{attrs:{id:"y"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("y")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("y mode returns the elements that hit-test at the current y coordinate")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L698",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:698"),n("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/71.e6886a7d.js b/docs/3.1.0/assets/js/71.e6886a7d.js new file mode 100644 index 0000000000..ab62bc8dbe --- /dev/null +++ b/docs/3.1.0/assets/js/71.e6886a7d.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[71],{395:function(t,e,n){"use strict";n.r(e);var r=n(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[n("h1",{attrs:{id:"interface-interactionmodemap"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#interface-interactionmodemap"}},[t._v("#")]),t._v(" Interface: InteractionModeMap")]),t._v(" "),n("h2",{attrs:{id:"properties"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),n("h3",{attrs:{id:"dataset"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#dataset"}},[t._v("#")]),t._v(" dataset")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("dataset")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("Returns items in the same dataset. If the options.intersect parameter is true, we only return items if we intersect something\nIf the options.intersect is false, we find the nearest item and return the items in that dataset")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L681",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:681"),n("OutboundLink")],1)]),t._v(" "),n("hr"),t._v(" "),n("h3",{attrs:{id:"index"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("index")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("Returns items at the same index. If the options.intersect parameter is true, we only return items if we intersect something\nIf the options.intersect mode is false, we find the nearest item and return the items at the same index as that item")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L675",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:675"),n("OutboundLink")],1)]),t._v(" "),n("hr"),t._v(" "),n("h3",{attrs:{id:"nearest"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#nearest"}},[t._v("#")]),t._v(" nearest")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("nearest")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("nearest mode returns the element closest to the point")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L690",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:690"),n("OutboundLink")],1)]),t._v(" "),n("hr"),t._v(" "),n("h3",{attrs:{id:"point"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#point"}},[t._v("#")]),t._v(" point")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("point")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("Point mode returns all elements that hit test based on the event position\nof the event")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L686",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:686"),n("OutboundLink")],1)]),t._v(" "),n("hr"),t._v(" "),n("h3",{attrs:{id:"x"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("x")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("x mode returns the elements that hit-test at the current x coordinate")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L694",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:694"),n("OutboundLink")],1)]),t._v(" "),n("hr"),t._v(" "),n("h3",{attrs:{id:"y"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),n("p",[t._v("• "),n("strong",[t._v("y")]),t._v(": "),n("RouterLink",{attrs:{to:"/api/#interactionmodefunction"}},[n("em",[t._v("InteractionModeFunction")])])],1),t._v(" "),n("p",[t._v("y mode returns the elements that hit-test at the current y coordinate")]),t._v(" "),n("p",[t._v("Defined in: "),n("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L698",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:698"),n("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/72.3cbbf440.js b/docs/3.1.0/assets/js/72.3cbbf440.js new file mode 100644 index 0000000000..864c1f534b --- /dev/null +++ b/docs/3.1.0/assets/js/72.3cbbf440.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[72],{396:function(t,e,r){"use strict";r.r(e);var s=r(7),n=Object(s.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-interactionoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-interactionoptions"}},[t._v("#")]),t._v(" Interface: InteractionOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"axis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),r("p",[t._v("• "),r("code",[t._v("Optional")]),t._v(" "),r("strong",[t._v("axis")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L653",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:653"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"intersect"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#intersect"}},[t._v("#")]),t._v(" intersect")]),t._v(" "),r("p",[t._v("• "),r("code",[t._v("Optional")]),t._v(" "),r("strong",[t._v("intersect")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L654",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:654"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/72.5b51c465.js b/docs/3.1.0/assets/js/72.5b51c465.js deleted file mode 100644 index dd457e7bda..0000000000 --- a/docs/3.1.0/assets/js/72.5b51c465.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[72],{403:function(t,e,r){"use strict";r.r(e);var s=r(7),a=Object(s.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-interactionoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-interactionoptions"}},[t._v("#")]),t._v(" Interface: InteractionOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"axis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),r("p",[t._v("• "),r("code",[t._v("Optional")]),t._v(" "),r("strong",[t._v("axis")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L653",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:653"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"intersect"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#intersect"}},[t._v("#")]),t._v(" intersect")]),t._v(" "),r("p",[t._v("• "),r("code",[t._v("Optional")]),t._v(" "),r("strong",[t._v("intersect")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L654",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:654"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/73.24c14f7c.js b/docs/3.1.0/assets/js/73.24c14f7c.js deleted file mode 100644 index 029c828bde..0000000000 --- a/docs/3.1.0/assets/js/73.24c14f7c.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[73],{399:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-layoutitem"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-layoutitem"}},[t._v("#")]),t._v(" Interface: LayoutItem")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("LayoutItem")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])])],1),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"bottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Bottom edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L41",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:41"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("fullSize")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("if true, and the item is horizontal, then push vertical boxes down")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"height"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("height")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Height of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"left"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("left")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Left edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:29"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])])],1),t._v(" "),a("p",[t._v("The position of the item in the chart layout. Possible values are")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"right"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("right")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Right edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:37"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"top"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("top")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Top edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:33"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the item. Higher weights are further away from the chart area")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"width"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("width")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Width of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"beforelayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeLayout")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Called before the layout process starts")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L46",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:46"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Draws the element")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L50",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:50"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpadding"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpadding"}},[t._v("#")]),t._v(" getPadding")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getPadding")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Returns an object with padding on the edges")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L54",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:54"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ishorizontal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ishorizontal"}},[t._v("#")]),t._v(" isHorizontal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isHorizontal")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("returns true if the layout item is horizontal (ie. top or bottom)")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("margins?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Takes two parameters: width and height.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("margins?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:64"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/73.7e0c7b18.js b/docs/3.1.0/assets/js/73.7e0c7b18.js new file mode 100644 index 0000000000..52cf8855f2 --- /dev/null +++ b/docs/3.1.0/assets/js/73.7e0c7b18.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[73],{397:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-layoutitem"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-layoutitem"}},[t._v("#")]),t._v(" Interface: LayoutItem")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("strong",[t._v("LayoutItem")])]),t._v(" "),r("p",[t._v("↳ "),r("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[r("em",[t._v("Scale")])])],1),t._v(" "),r("p",[t._v("↳ "),r("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[r("em",[t._v("LegendElement")])])],1)])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"bottom"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("bottom")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Bottom edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L41",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:41"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"fullsize"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("fullSize")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("if true, and the item is horizontal, then push vertical boxes down")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:17"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"height"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("height")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Height of item. Must be valid after update()")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:25"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"left"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("left")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Left edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:29"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"position"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("position")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#layoutposition"}},[r("em",[t._v("LayoutPosition")])])],1),t._v(" "),r("p",[t._v("The position of the item in the chart layout. Possible values are")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:9"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"right"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("right")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Right edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:37"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"top"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("top")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Top edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:33"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"weight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("weight")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The weight used to sort the item. Higher weights are further away from the chart area")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:13"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"width"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("width")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Width of item. Must be valid after update()")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:21"),r("OutboundLink")],1)]),t._v(" "),r("h2",{attrs:{id:"methods"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),r("h3",{attrs:{id:"beforelayout"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),r("p",[t._v("▸ "),r("code",[t._v("Optional")]),r("strong",[t._v("beforeLayout")]),t._v("(): "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Called before the layout process starts")]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L46",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:46"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"draw"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("draw")]),t._v("("),r("code",[t._v("chartArea")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])]),t._v("): "),r("em",[t._v("void")])],1),t._v(" "),r("p",[t._v("Draws the element")]),t._v(" "),r("h4",{attrs:{id:"parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("chartArea")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L50",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:50"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"getpadding"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#getpadding"}},[t._v("#")]),t._v(" getPadding")]),t._v(" "),r("p",[t._v("▸ "),r("code",[t._v("Optional")]),r("strong",[t._v("getPadding")]),t._v("(): "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("Returns an object with padding on the edges")]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L54",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:54"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"ishorizontal"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#ishorizontal"}},[t._v("#")]),t._v(" isHorizontal")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("isHorizontal")]),t._v("(): "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("returns true if the layout item is horizontal (ie. top or bottom)")]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:58"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"update"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),r("p",[t._v("▸ "),r("strong",[t._v("update")]),t._v("("),r("code",[t._v("width")]),t._v(": "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("height")]),t._v(": "),r("em",[t._v("number")]),t._v(", "),r("code",[t._v("margins?")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])]),t._v("): "),r("em",[t._v("void")])],1),t._v(" "),r("p",[t._v("Takes two parameters: width and height.")]),t._v(" "),r("h4",{attrs:{id:"parameters-2"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("width")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("number")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("height")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("em",[t._v("number")])])]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("margins?")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),r("p",[r("strong",[t._v("Returns:")]),t._v(" "),r("em",[t._v("void")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:64"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/74.26bae493.js b/docs/3.1.0/assets/js/74.26bae493.js new file mode 100644 index 0000000000..130da2a926 --- /dev/null +++ b/docs/3.1.0/assets/js/74.26bae493.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[74],{399:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-legendelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-legendelement"}},[t._v("#")]),t._v(" Interface: LegendElement")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])])],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("LegendElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Bottom edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#bottom"}},[t._v("bottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L41",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:41"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("fullSize")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("if true, and the item is horizontal, then push vertical boxes down")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#fullsize"}},[t._v("fullSize")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"height"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("height")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Height of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#height"}},[t._v("height")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"left"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("left")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Left edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#left"}},[t._v("left")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:29"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])])],1),t._v(" "),a("p",[t._v("The position of the item in the chart layout. Possible values are")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#position"}},[t._v("position")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"right"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("right")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Right edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#right"}},[t._v("right")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:37"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"top"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("top")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Top edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#top"}},[t._v("top")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:33"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the item. Higher weights are further away from the chart area")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#weight"}},[t._v("weight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"width"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("width")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Width of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#width"}},[t._v("width")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"beforelayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeLayout")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Called before the layout process starts")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L46",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:46"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Draws the element")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L50",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:50"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpadding"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpadding"}},[t._v("#")]),t._v(" getPadding")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getPadding")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Returns an object with padding on the edges")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L54",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:54"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": "),a("em",[t._v("never")]),t._v("[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ishorizontal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ishorizontal"}},[t._v("#")]),t._v(" isHorizontal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isHorizontal")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("returns true if the layout item is horizontal (ie. top or bottom)")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("margins?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Takes two parameters: width and height.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("margins?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:64"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/74.8446418e.js b/docs/3.1.0/assets/js/74.8446418e.js deleted file mode 100644 index a50c37bbaf..0000000000 --- a/docs/3.1.0/assets/js/74.8446418e.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[74],{400:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-legendelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-legendelement"}},[t._v("#")]),t._v(" Interface: LegendElement")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])])],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("LegendElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Bottom edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#bottom"}},[t._v("bottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L41",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:41"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("fullSize")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("if true, and the item is horizontal, then push vertical boxes down")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#fullsize"}},[t._v("fullSize")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"height"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("height")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Height of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#height"}},[t._v("height")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"left"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("left")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Left edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#left"}},[t._v("left")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:29"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])])],1),t._v(" "),a("p",[t._v("The position of the item in the chart layout. Possible values are")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#position"}},[t._v("position")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"right"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("right")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Right edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#right"}},[t._v("right")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:37"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"top"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("top")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Top edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#top"}},[t._v("top")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:33"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the item. Higher weights are further away from the chart area")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#weight"}},[t._v("weight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"width"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("width")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Width of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")]),t._v("."),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html#width"}},[t._v("width")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"beforelayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeLayout")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Called before the layout process starts")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L46",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:46"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Draws the element")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L50",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:50"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpadding"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpadding"}},[t._v("#")]),t._v(" getPadding")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getPadding")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Returns an object with padding on the edges")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L54",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:54"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": "),a("em",[t._v("never")]),t._v("[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ishorizontal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ishorizontal"}},[t._v("#")]),t._v(" isHorizontal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isHorizontal")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("returns true if the layout item is horizontal (ie. top or bottom)")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("margins?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Takes two parameters: width and height.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("margins?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:64"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/75.4ce5d7c0.js b/docs/3.1.0/assets/js/75.4ce5d7c0.js deleted file mode 100644 index 2655126d6e..0000000000 --- a/docs/3.1.0/assets/js/75.4ce5d7c0.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[75],{401:function(e,t,r){"use strict";r.r(t);var s=r(7),n=Object(s.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-legenditem"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-legenditem"}},[e._v("#")]),e._v(" Interface: LegendItem")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[e._v("#")]),e._v(" borderRadius")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("borderRadius")]),e._v(": "),r("em",[e._v("number")]),e._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/borderradius.html"}},[r("em",[e._v("BorderRadius")])])],1),e._v(" "),r("p",[e._v("Border radius of the legend box")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("since")])]),e._v(" 3.1.0")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2016",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2016"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"datasetindex"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[e._v("#")]),e._v(" datasetIndex")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("datasetIndex")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Index of the associated dataset")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2021",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2021"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"fillstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#fillstyle"}},[e._v("#")]),e._v(" fillStyle")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("fillStyle")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Fill style of the legend box")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2026",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2026"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"fontcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#fontcolor"}},[e._v("#")]),e._v(" fontColor")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("fontColor")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Font color for the text\nDefaults to LegendOptions.labels.color")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2032",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2032"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[e._v("#")]),e._v(" hidden")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("hidden")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("If true, this item represents a hidden dataset. Label will be rendered with a strike-through effect")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2037",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2037"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"linecap"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linecap"}},[e._v("#")]),e._v(" lineCap")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("lineCap")]),e._v(": CanvasLineCap")]),e._v(" "),r("p",[e._v("For box border.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("see")])]),e._v(" https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/lineCap")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2043",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2043"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"linedash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linedash"}},[e._v("#")]),e._v(" lineDash")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("lineDash")]),e._v(": "),r("em",[e._v("number")]),e._v("[]")]),e._v(" "),r("p",[e._v("For box border.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("see")])]),e._v(" https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2049",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2049"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"linedashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linedashoffset"}},[e._v("#")]),e._v(" lineDashOffset")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("lineDashOffset")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("For box border.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("see")])]),e._v(" https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2055",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2055"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"linejoin"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linejoin"}},[e._v("#")]),e._v(" lineJoin")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("lineJoin")]),e._v(": CanvasLineJoin")]),e._v(" "),r("p",[e._v("For box border.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("see")])]),e._v(" https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2061",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2061"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"linewidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linewidth"}},[e._v("#")]),e._v(" lineWidth")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("lineWidth")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Width of box border")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2066",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2066"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[e._v("#")]),e._v(" pointStyle")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("pointStyle")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[e._v("PointStyle")])])],1),e._v(" "),r("p",[e._v("Point style of the legend box (only used if usePointStyle is true)")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2076",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2076"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[e._v("#")]),e._v(" rotation")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("rotation")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Rotation of the point in degrees (only used if usePointStyle is true)")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2081",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2081"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"strokestyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#strokestyle"}},[e._v("#")]),e._v(" strokeStyle")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("strokeStyle")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Stroke style of the legend box")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2071",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2071"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"text"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#text"}},[e._v("#")]),e._v(" text")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("text")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Label that will be displayed")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2010",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2010"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"textalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#textalign"}},[e._v("#")]),e._v(" textAlign")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("textAlign")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[e._v("TextAlign")])])],1),e._v(" "),r("p",[e._v("Text alignment")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2086",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2086"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/75.9641c3e4.js b/docs/3.1.0/assets/js/75.9641c3e4.js new file mode 100644 index 0000000000..4695490347 --- /dev/null +++ b/docs/3.1.0/assets/js/75.9641c3e4.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[75],{398:function(e,t,r){"use strict";r.r(t);var n=r(7),s=Object(n.a)({},(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[r("h1",{attrs:{id:"interface-legenditem"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-legenditem"}},[e._v("#")]),e._v(" Interface: LegendItem")]),e._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),r("h3",{attrs:{id:"borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[e._v("#")]),e._v(" borderRadius")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("borderRadius")]),e._v(": "),r("em",[e._v("number")]),e._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/borderradius.html"}},[r("em",[e._v("BorderRadius")])])],1),e._v(" "),r("p",[e._v("Border radius of the legend box")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("since")])]),e._v(" 3.1.0")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2016",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2016"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"datasetindex"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#datasetindex"}},[e._v("#")]),e._v(" datasetIndex")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("datasetIndex")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Index of the associated dataset")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2021",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2021"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"fillstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#fillstyle"}},[e._v("#")]),e._v(" fillStyle")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("fillStyle")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Fill style of the legend box")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2026",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2026"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"fontcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#fontcolor"}},[e._v("#")]),e._v(" fontColor")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("fontColor")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Font color for the text\nDefaults to LegendOptions.labels.color")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2032",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2032"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[e._v("#")]),e._v(" hidden")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("hidden")]),e._v(": "),r("em",[e._v("boolean")])]),e._v(" "),r("p",[e._v("If true, this item represents a hidden dataset. Label will be rendered with a strike-through effect")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2037",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2037"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"linecap"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linecap"}},[e._v("#")]),e._v(" lineCap")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("lineCap")]),e._v(": CanvasLineCap")]),e._v(" "),r("p",[e._v("For box border.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("see")])]),e._v(" https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/lineCap")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2043",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2043"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"linedash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linedash"}},[e._v("#")]),e._v(" lineDash")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("lineDash")]),e._v(": "),r("em",[e._v("number")]),e._v("[]")]),e._v(" "),r("p",[e._v("For box border.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("see")])]),e._v(" https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2049",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2049"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"linedashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linedashoffset"}},[e._v("#")]),e._v(" lineDashOffset")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("lineDashOffset")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("For box border.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("see")])]),e._v(" https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2055",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2055"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"linejoin"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linejoin"}},[e._v("#")]),e._v(" lineJoin")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("lineJoin")]),e._v(": CanvasLineJoin")]),e._v(" "),r("p",[e._v("For box border.")]),e._v(" "),r("p",[r("strong",[r("code",[e._v("see")])]),e._v(" https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2061",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2061"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"linewidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#linewidth"}},[e._v("#")]),e._v(" lineWidth")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("lineWidth")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Width of box border")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2066",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2066"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[e._v("#")]),e._v(" pointStyle")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("pointStyle")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[e._v("PointStyle")])])],1),e._v(" "),r("p",[e._v("Point style of the legend box (only used if usePointStyle is true)")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2076",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2076"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[e._v("#")]),e._v(" rotation")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("rotation")]),e._v(": "),r("em",[e._v("number")])]),e._v(" "),r("p",[e._v("Rotation of the point in degrees (only used if usePointStyle is true)")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2081",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2081"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"strokestyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#strokestyle"}},[e._v("#")]),e._v(" strokeStyle")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("strokeStyle")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[e._v("Color")])])],1),e._v(" "),r("p",[e._v("Stroke style of the legend box")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2071",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2071"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"text"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#text"}},[e._v("#")]),e._v(" text")]),e._v(" "),r("p",[e._v("• "),r("strong",[e._v("text")]),e._v(": "),r("em",[e._v("string")])]),e._v(" "),r("p",[e._v("Label that will be displayed")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2010",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2010"),r("OutboundLink")],1)]),e._v(" "),r("hr"),e._v(" "),r("h3",{attrs:{id:"textalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#textalign"}},[e._v("#")]),e._v(" textAlign")]),e._v(" "),r("p",[e._v("• "),r("code",[e._v("Optional")]),e._v(" "),r("strong",[e._v("textAlign")]),e._v(": "),r("RouterLink",{attrs:{to:"/api/#textalign"}},[r("em",[e._v("TextAlign")])])],1),e._v(" "),r("p",[e._v("Text alignment")]),e._v(" "),r("p",[e._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2086",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:2086"),r("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/76.497de90f.js b/docs/3.1.0/assets/js/76.497de90f.js deleted file mode 100644 index 987e74a7d1..0000000000 --- a/docs/3.1.0/assets/js/76.497de90f.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[76],{402:function(t,e,a){"use strict";a.r(e);var v=a(7),r=Object(v.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-legendoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-legendoptions"}},[t._v("#")]),t._v(" Interface: LegendOptions")]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"align"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#align"}},[t._v("#")]),t._v(" align")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("align")]),t._v(": "),a("em",[t._v("start")]),t._v(" | "),a("em",[t._v("end")]),t._v(" | "),a("em",[t._v("center")])]),t._v(" "),a("p",[t._v("Alignment of the legend.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" 'center'")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2106",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2106"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"display"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[t._v("#")]),t._v(" display")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("display")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Is the legend shown?")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2096",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2096"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("fullSize")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Marks that this box should take the full width/height of the canvas (moving other boxes). This is unlikely to need to be changed in day-to-day use.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2111",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2111"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labels"}},[t._v("#")]),t._v(" labels")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("labels")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("boxHeight")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Height of the coloured box. "),a("strong",[a("code",[t._v("default")])]),t._v(" fontSize")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("boxWidth")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Width of colored box. "),a("strong",[a("code",[t._v("default")])]),t._v(" 40")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Color of label "),a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.color")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("font")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[a("em",[t._v("FontSpec")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Font of label "),a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.font")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Padding between rows of colored boxes. "),a("strong",[a("code",[t._v("default")])]),t._v(" 10")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#pointstyle"}},[a("em",[t._v("PointStyle")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Override point style for the legend. Only applies if usePointStyle is true")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("textAlign")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#textalign"}},[a("em",[t._v("TextAlign")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Text alignment")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("usePointStyle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Label style will match corresponding point style (size is based on the minimum value between boxWidth and font.size). "),a("strong",[a("code",[t._v("default")])]),t._v(" false")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("filter")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("item")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("data")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[a("em",[t._v("ChartData")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>) => "),a("em",[t._v("boolean")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("generateLabels")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>) => "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v("[]")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sort")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("a")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("b")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("data")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[a("em",[t._v("ChartData")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>) => "),a("em",[t._v("number")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2130",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2130"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])])],1),t._v(" "),a("p",[t._v("Position of the legend.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" 'top'")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2101",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2101"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reverse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reverse"}},[t._v("#")]),t._v(" reverse")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("reverse")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Legend will show datasets in reverse order.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2116",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2116"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"title"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" title")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("title")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Color of title "),a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.color")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("display")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Is the legend title displayed. "),a("strong",[a("code",[t._v("default")])]),t._v(" false")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("font")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[a("em",[t._v("FontSpec")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("see Fonts")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("position")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("start")]),t._v(" | "),a("em",[t._v("end")]),t._v(" | "),a("em",[t._v("center")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("text")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The string title.")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2188",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2188"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"onclick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onclick"}},[t._v("#")]),t._v(" onClick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onClick")]),t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("legendItem")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("legend")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("A callback that is called when a click event is registered on a label item.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("e")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legendItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legend")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2120",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2120"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"onhover"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onhover"}},[t._v("#")]),t._v(" onHover")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onHover")]),t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("legendItem")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("legend")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("A callback that is called when a 'mousemove' event is registered on top of a label item")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("e")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legendItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legend")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2124",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2124"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"onleave"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onleave"}},[t._v("#")]),t._v(" onLeave")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onLeave")]),t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("legendItem")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("legend")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("A callback that is called when a 'mousemove' event is registered outside of a previously hovered label item.")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("e")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legendItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legend")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2128",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2128"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/76.a2eb57f4.js b/docs/3.1.0/assets/js/76.a2eb57f4.js new file mode 100644 index 0000000000..fd06ddafa4 --- /dev/null +++ b/docs/3.1.0/assets/js/76.a2eb57f4.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[76],{401:function(t,e,a){"use strict";a.r(e);var v=a(7),i=Object(v.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-legendoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-legendoptions"}},[t._v("#")]),t._v(" Interface: LegendOptions")]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"align"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#align"}},[t._v("#")]),t._v(" align")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("align")]),t._v(": "),a("em",[t._v("start")]),t._v(" | "),a("em",[t._v("end")]),t._v(" | "),a("em",[t._v("center")])]),t._v(" "),a("p",[t._v("Alignment of the legend.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" 'center'")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2106",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2106"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"display"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#display"}},[t._v("#")]),t._v(" display")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("display")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Is the legend shown?")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2096",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2096"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("fullSize")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Marks that this box should take the full width/height of the canvas (moving other boxes). This is unlikely to need to be changed in day-to-day use.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" true")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2111",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2111"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labels"}},[t._v("#")]),t._v(" labels")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("labels")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("boxHeight")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Height of the coloured box. "),a("strong",[a("code",[t._v("default")])]),t._v(" fontSize")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("boxWidth")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Width of colored box. "),a("strong",[a("code",[t._v("default")])]),t._v(" 40")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Color of label "),a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.color")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("font")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[a("em",[t._v("FontSpec")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Font of label "),a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.font")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Padding between rows of colored boxes. "),a("strong",[a("code",[t._v("default")])]),t._v(" 10")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pointStyle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#pointstyle"}},[a("em",[t._v("PointStyle")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Override point style for the legend. Only applies if usePointStyle is true")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("textAlign")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#textalign"}},[a("em",[t._v("TextAlign")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Text alignment")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("usePointStyle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Label style will match corresponding point style (size is based on the minimum value between boxWidth and font.size). "),a("strong",[a("code",[t._v("default")])]),t._v(" false")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("filter")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("item")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("data")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[a("em",[t._v("ChartData")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>) => "),a("em",[t._v("boolean")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("generateLabels")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>) => "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v("[]")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sort")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("a")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("b")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("data")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[a("em",[t._v("ChartData")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>) => "),a("em",[t._v("number")])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2130",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2130"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])])],1),t._v(" "),a("p",[t._v("Position of the legend.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" 'top'")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2101",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2101"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reverse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reverse"}},[t._v("#")]),t._v(" reverse")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("reverse")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Legend will show datasets in reverse order.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("default")])]),t._v(" false")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2116",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2116"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"title"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" title")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("title")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("color")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Color of title "),a("strong",[a("code",[t._v("see")])]),t._v(" Defaults.color")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("display")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Is the legend title displayed. "),a("strong",[a("code",[t._v("default")])]),t._v(" false")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("font")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[a("em",[t._v("FontSpec")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("see Fonts")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("padding")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("position")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("start")]),t._v(" | "),a("em",[t._v("end")]),t._v(" | "),a("em",[t._v("center")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("text")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The string title.")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2188",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2188"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"onclick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onclick"}},[t._v("#")]),t._v(" onClick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onClick")]),t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("legendItem")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("legend")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("A callback that is called when a click event is registered on a label item.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("e")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legendItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legend")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2120",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2120"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"onhover"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onhover"}},[t._v("#")]),t._v(" onHover")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onHover")]),t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("legendItem")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("legend")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("A callback that is called when a 'mousemove' event is registered on top of a label item")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("e")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legendItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legend")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2124",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2124"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"onleave"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#onleave"}},[t._v("#")]),t._v(" onLeave")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("onLeave")]),t._v("("),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("legendItem")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])]),t._v(", "),a("code",[t._v("legend")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("A callback that is called when a 'mousemove' event is registered outside of a previously hovered label item.")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("e")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legendItem")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[a("em",[t._v("LegendItem")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("legend")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[a("em",[t._v("LegendElement")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2128",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2128"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/77.9c7bbc3d.js b/docs/3.1.0/assets/js/77.9c7bbc3d.js deleted file mode 100644 index b071fa2750..0000000000 --- a/docs/3.1.0/assets/js/77.9c7bbc3d.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[77],{404:function(e,t,a){"use strict";a.r(t);var n=a(7),r=Object(n.a)({},(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[a("h1",{attrs:{id:"interface-linecontrollerchartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-linecontrollerchartoptions"}},[e._v("#")]),e._v(" Interface: LineControllerChartOptions")]),e._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),a("h3",{attrs:{id:"showline"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#showline"}},[e._v("#")]),e._v(" showLine")]),e._v(" "),a("p",[e._v("• "),a("strong",[e._v("showLine")]),e._v(": "),a("em",[e._v("boolean")])]),e._v(" "),a("p",[e._v("If false, the lines between points are not drawn.")]),e._v(" "),a("p",[a("strong",[a("code",[e._v("default")])]),e._v(" true")]),e._v(" "),a("p",[e._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L208",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:208"),a("OutboundLink")],1)]),e._v(" "),a("hr"),e._v(" "),a("h3",{attrs:{id:"spangaps"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#spangaps"}},[e._v("#")]),e._v(" spanGaps")]),e._v(" "),a("p",[e._v("• "),a("strong",[e._v("spanGaps")]),e._v(": "),a("em",[e._v("number")]),e._v(" | "),a("em",[e._v("boolean")])]),e._v(" "),a("p",[e._v("If true, lines will be drawn between points with no or null data. If false, points with NaN data will create a break in the line. Can also be a number specifying the maximum gap length to span. The unit of the value depends on the scale used.")]),e._v(" "),a("p",[a("strong",[a("code",[e._v("default")])]),e._v(" false")]),e._v(" "),a("p",[e._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L203",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:203"),a("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/77.aa12d9c5.js b/docs/3.1.0/assets/js/77.aa12d9c5.js new file mode 100644 index 0000000000..7567651e51 --- /dev/null +++ b/docs/3.1.0/assets/js/77.aa12d9c5.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[77],{400:function(e,t,n){"use strict";n.r(t);var a=n(7),r=Object(a.a)({},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[n("h1",{attrs:{id:"interface-linecontrollerchartoptions"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#interface-linecontrollerchartoptions"}},[e._v("#")]),e._v(" Interface: LineControllerChartOptions")]),e._v(" "),n("h2",{attrs:{id:"properties"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[e._v("#")]),e._v(" Properties")]),e._v(" "),n("h3",{attrs:{id:"showline"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#showline"}},[e._v("#")]),e._v(" showLine")]),e._v(" "),n("p",[e._v("• "),n("strong",[e._v("showLine")]),e._v(": "),n("em",[e._v("boolean")])]),e._v(" "),n("p",[e._v("If false, the lines between points are not drawn.")]),e._v(" "),n("p",[n("strong",[n("code",[e._v("default")])]),e._v(" true")]),e._v(" "),n("p",[e._v("Defined in: "),n("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L208",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:208"),n("OutboundLink")],1)]),e._v(" "),n("hr"),e._v(" "),n("h3",{attrs:{id:"spangaps"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#spangaps"}},[e._v("#")]),e._v(" spanGaps")]),e._v(" "),n("p",[e._v("• "),n("strong",[e._v("spanGaps")]),e._v(": "),n("em",[e._v("number")]),e._v(" | "),n("em",[e._v("boolean")])]),e._v(" "),n("p",[e._v("If true, lines will be drawn between points with no or null data. If false, points with NaN data will create a break in the line. Can also be a number specifying the maximum gap length to span. The unit of the value depends on the scale used.")]),e._v(" "),n("p",[n("strong",[n("code",[e._v("default")])]),e._v(" false")]),e._v(" "),n("p",[e._v("Defined in: "),n("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L203",target:"_blank",rel:"noopener noreferrer"}},[e._v("index.esm.d.ts:203"),n("OutboundLink")],1)])])}),[],!1,null,null,null);t.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/78.52cd58bc.js b/docs/3.1.0/assets/js/78.52cd58bc.js deleted file mode 100644 index 9837bf3225..0000000000 --- a/docs/3.1.0/assets/js/78.52cd58bc.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[78],{405:function(t,e,r){"use strict";r.r(e);var a=r(7),o=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-linecontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-linecontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: LineControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[r("em",[t._v("ControllerDatasetOptions")])])],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableandarrayoptions"}},[r("em",[t._v("ScriptableAndArrayOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/pointprefixedoptions.html"}},[r("em",[t._v("PointPrefixedOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableoptions"}},[r("em",[t._v("ScriptableOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[r("em",[t._v("LineOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#animationoptions"}},[r("em",[t._v("AnimationOptions")])]),t._v("<"),r("em",[t._v("line")]),t._v(">")],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("LineControllerDatasetOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("em",[t._v("false")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("<"),r("em",[t._v("line")]),t._v("> & { "),r("code",[t._v("onComplete?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" ; "),r("code",[t._v("onProgress?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" }")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("<"),r("em",[t._v("line")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animations")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.backgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercapstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercapstyle"}},[t._v("#")]),t._v(" borderCapStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line cap style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'butt'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderCapStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1656",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1656"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdash"}},[t._v("#")]),t._v(" borderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line dash. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" []")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderDash")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1661",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1661"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdashoffset"}},[t._v("#")]),t._v(" borderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line dash offset. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0.0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderDashOffset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1666",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1666"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderjoinstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderjoinstyle"}},[t._v("#")]),t._v(" borderJoinStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line join style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'miter'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderJoinStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1671",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1671"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"capbezierpoints"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#capbezierpoints"}},[t._v("#")]),t._v(" capBezierPoints")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("capBezierPoints")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("true to keep Bézier control inside the chart, false for no restriction.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.capBezierPoints")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1676",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1676"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"cubicinterpolationmode"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#cubicinterpolationmode"}},[t._v("#")]),t._v(" cubicInterpolationMode")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("cubicInterpolationMode")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("em",[t._v("default")]),t._v(" | "),r("em",[t._v("monotone")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Interpolation mode to apply.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'default'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.cubicInterpolationMode")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1681",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1681"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercapstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercapstyle"}},[t._v("#")]),t._v(" hoverBorderCapStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderCapStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1705",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1705"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdash"}},[t._v("#")]),t._v(" hoverBorderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderDash")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1706",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1706"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdashoffset"}},[t._v("#")]),t._v(" hoverBorderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderDashOffset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1707",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1707"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderjoinstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderjoinstyle"}},[t._v("#")]),t._v(" hoverBorderJoinStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderJoinStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1708",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1708"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbackgroundcolor"}},[t._v("#")]),t._v(" pointBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("The fill color for points.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1783",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1783"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbordercolor"}},[t._v("#")]),t._v(" pointBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("The border color for points.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1787",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1787"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointborderwidth"}},[t._v("#")]),t._v(" pointBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The width of the point border in pixels.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1791",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1791"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhitradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhitradius"}},[t._v("#")]),t._v(" pointHitRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHitRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The pixel size of the non-displayed point that reacts to mouse events.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointHitRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1795",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1795"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbackgroundcolor"}},[t._v("#")]),t._v(" pointHoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Point background color when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointHoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1814",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1814"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbordercolor"}},[t._v("#")]),t._v(" pointHoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Point border color when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointHoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1818",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1818"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverborderwidth"}},[t._v("#")]),t._v(" pointHoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Border width of point when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointHoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1822",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1822"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverradius"}},[t._v("#")]),t._v(" pointHoverRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The radius of the point when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointHoverRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1826",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1826"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointradius"}},[t._v("#")]),t._v(" pointRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The radius of the point shape. If set to 0, the point is not rendered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1799",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1799"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointrotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointrotation"}},[t._v("#")]),t._v(" pointRotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRotation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The rotation of the point in degrees.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointRotation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1803",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1803"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Style of the point.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1807",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1807"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"segment"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#segment"}},[t._v("#")]),t._v(" segment")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("segment")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<{ "),r("code",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v("> ; "),r("code",[t._v("borderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v("> ; "),r("code",[t._v("borderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" }, "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.segment")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1693",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1693"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"showline"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#showline"}},[t._v("#")]),t._v(" showLine")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("showLine")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L195",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:195"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"spangaps"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#spangaps"}},[t._v("#")]),t._v(" spanGaps")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("spanGaps")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("If true, lines will be drawn between points with no or null data. If false, points with NaN data will create a break in the line. Can also be a number specifying the maximum gap length to span. The unit of the value depends on the scale used.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L193",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:193"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stepped"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stepped"}},[t._v("#")]),t._v(" stepped")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stepped")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("true to show the line as a stepped line (tension will be ignored).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.stepped")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1691",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1691"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tension"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tension"}},[t._v("#")]),t._v(" tension")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tension")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Bézier curve tension (0 for no Bézier curves).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.tension")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1686",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1686"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"transitions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("transitions")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[r("em",[t._v("TransitionsSpec")])]),t._v("<"),r("em",[t._v("line")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.transitions")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"xaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xaxisid"}},[t._v("#")]),t._v(" xAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("xAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the x axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L183",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:183"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"yaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yaxisid"}},[t._v("#")]),t._v(" yAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("yAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the y axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L187",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:187"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/78.5b5597b6.js b/docs/3.1.0/assets/js/78.5b5597b6.js new file mode 100644 index 0000000000..0ebd0dbee3 --- /dev/null +++ b/docs/3.1.0/assets/js/78.5b5597b6.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[78],{402:function(t,e,r){"use strict";r.r(e);var o=r(7),a=Object(o.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-linecontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-linecontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: LineControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[r("em",[t._v("ControllerDatasetOptions")])])],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableandarrayoptions"}},[r("em",[t._v("ScriptableAndArrayOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/pointprefixedoptions.html"}},[r("em",[t._v("PointPrefixedOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableoptions"}},[r("em",[t._v("ScriptableOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[r("em",[t._v("LineOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#animationoptions"}},[r("em",[t._v("AnimationOptions")])]),t._v("<"),r("em",[t._v("line")]),t._v(">")],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("LineControllerDatasetOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("em",[t._v("false")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("<"),r("em",[t._v("line")]),t._v("> & { "),r("code",[t._v("onComplete?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" ; "),r("code",[t._v("onProgress?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" }")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("<"),r("em",[t._v("line")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animations")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.backgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercapstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercapstyle"}},[t._v("#")]),t._v(" borderCapStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line cap style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'butt'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderCapStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1656",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1656"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdash"}},[t._v("#")]),t._v(" borderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line dash. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" []")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderDash")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1661",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1661"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdashoffset"}},[t._v("#")]),t._v(" borderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line dash offset. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0.0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderDashOffset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1666",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1666"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderjoinstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderjoinstyle"}},[t._v("#")]),t._v(" borderJoinStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line join style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'miter'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderJoinStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1671",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1671"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"capbezierpoints"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#capbezierpoints"}},[t._v("#")]),t._v(" capBezierPoints")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("capBezierPoints")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("true to keep Bézier control inside the chart, false for no restriction.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.capBezierPoints")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1676",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1676"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"cubicinterpolationmode"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#cubicinterpolationmode"}},[t._v("#")]),t._v(" cubicInterpolationMode")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("cubicInterpolationMode")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("em",[t._v("default")]),t._v(" | "),r("em",[t._v("monotone")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Interpolation mode to apply.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'default'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.cubicInterpolationMode")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1681",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1681"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercapstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercapstyle"}},[t._v("#")]),t._v(" hoverBorderCapStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderCapStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1705",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1705"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdash"}},[t._v("#")]),t._v(" hoverBorderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderDash")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1706",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1706"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdashoffset"}},[t._v("#")]),t._v(" hoverBorderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderDashOffset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1707",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1707"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderjoinstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderjoinstyle"}},[t._v("#")]),t._v(" hoverBorderJoinStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderJoinStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1708",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1708"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbackgroundcolor"}},[t._v("#")]),t._v(" pointBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("The fill color for points.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1783",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1783"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbordercolor"}},[t._v("#")]),t._v(" pointBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("The border color for points.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1787",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1787"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointborderwidth"}},[t._v("#")]),t._v(" pointBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The width of the point border in pixels.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1791",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1791"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhitradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhitradius"}},[t._v("#")]),t._v(" pointHitRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHitRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The pixel size of the non-displayed point that reacts to mouse events.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointHitRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1795",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1795"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbackgroundcolor"}},[t._v("#")]),t._v(" pointHoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Point background color when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointHoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1814",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1814"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbordercolor"}},[t._v("#")]),t._v(" pointHoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Point border color when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointHoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1818",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1818"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverborderwidth"}},[t._v("#")]),t._v(" pointHoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Border width of point when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointHoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1822",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1822"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverradius"}},[t._v("#")]),t._v(" pointHoverRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The radius of the point when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointHoverRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1826",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1826"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointradius"}},[t._v("#")]),t._v(" pointRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The radius of the point shape. If set to 0, the point is not rendered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1799",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1799"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointrotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointrotation"}},[t._v("#")]),t._v(" pointRotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRotation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The rotation of the point in degrees.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointRotation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1803",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1803"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Style of the point.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableAndArrayOptions.pointStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1807",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1807"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"segment"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#segment"}},[t._v("#")]),t._v(" segment")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("segment")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<{ "),r("code",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v("> ; "),r("code",[t._v("borderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v("> ; "),r("code",[t._v("borderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" }, "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("line")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.segment")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1693",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1693"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"showline"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#showline"}},[t._v("#")]),t._v(" showLine")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("showLine")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L195",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:195"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"spangaps"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#spangaps"}},[t._v("#")]),t._v(" spanGaps")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("spanGaps")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("If true, lines will be drawn between points with no or null data. If false, points with NaN data will create a break in the line. Can also be a number specifying the maximum gap length to span. The unit of the value depends on the scale used.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L193",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:193"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stepped"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stepped"}},[t._v("#")]),t._v(" stepped")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stepped")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("true to show the line as a stepped line (tension will be ignored).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.stepped")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1691",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1691"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tension"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tension"}},[t._v("#")]),t._v(" tension")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tension")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Bézier curve tension (0 for no Bézier curves).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.tension")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1686",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1686"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"transitions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("transitions")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[r("em",[t._v("TransitionsSpec")])]),t._v("<"),r("em",[t._v("line")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.transitions")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"xaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xaxisid"}},[t._v("#")]),t._v(" xAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("xAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the x axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L183",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:183"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"yaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yaxisid"}},[t._v("#")]),t._v(" yAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("yAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the y axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L187",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:187"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/79.260b827c.js b/docs/3.1.0/assets/js/79.260b827c.js deleted file mode 100644 index c9e7e1b6ae..0000000000 --- a/docs/3.1.0/assets/js/79.260b827c.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[79],{406:function(t,e,a){"use strict";a.r(e);var r=a(7),_=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-lineelement-t-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-lineelement-t-o"}},[t._v("#")]),t._v(" Interface: LineElement")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/lineprops.html"}},[a("em",[t._v("LineProps")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/lineprops.html"}},[a("em",[t._v("LineProps")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[a("em",[t._v("LineOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[a("em",[t._v("LineOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("")],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[a("em",[t._v("VisualElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("LineElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"points"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#points"}},[t._v("#")]),t._v(" points")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("points")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1715",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1715"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"segments"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#segments"}},[t._v("#")]),t._v(" segments")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("segments")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/segment.html"}},[a("em",[t._v("Segment")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1716",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1716"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1577",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1577"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"first"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#first"}},[t._v("#")]),t._v(" first")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("first")]),t._v("(): "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1717",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1717"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcenterpoint"}},[t._v("#")]),t._v(" getCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getCenterPoint")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1581"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": keyof T[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): T")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("keyof T[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getrange"}},[t._v("#")]),t._v(" getRange")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getRange")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inrange"}},[t._v("#")]),t._v(" inRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1578",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1578"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inxrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inxrange"}},[t._v("#")]),t._v(" inXRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inXRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1579",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1579"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inyrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inyrange"}},[t._v("#")]),t._v(" inYRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inYRange")]),t._v("("),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1580"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"interpolate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interpolate"}},[t._v("#")]),t._v(" interpolate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("interpolate")]),t._v("("),a("code",[t._v("point")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v(", "),a("code",[t._v("property")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("point")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("property")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1719",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1719"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"last"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#last"}},[t._v("#")]),t._v(" last")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("last")]),t._v("(): "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1718",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1718"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"path"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#path"}},[t._v("#")]),t._v(" path")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("path")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1721",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1721"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"pathsegment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pathsegment"}},[t._v("#")]),t._v(" pathSegment")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("pathSegment")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D, "),a("code",[t._v("segment")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/segment.html"}},[a("em",[t._v("Segment")])]),t._v(", "),a("code",[t._v("params")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("segment")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/segment.html"}},[a("em",[t._v("Segment")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("params")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1720",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1720"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatecontrolpoints"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatecontrolpoints"}},[t._v("#")]),t._v(" updateControlPoints")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateControlPoints")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1714",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1714"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/79.a436a5a4.js b/docs/3.1.0/assets/js/79.a436a5a4.js new file mode 100644 index 0000000000..2fad70441f --- /dev/null +++ b/docs/3.1.0/assets/js/79.a436a5a4.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[79],{403:function(t,e,a){"use strict";a.r(e);var r=a(7),_=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-lineelement-t-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-lineelement-t-o"}},[t._v("#")]),t._v(" Interface: LineElement")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/lineprops.html"}},[a("em",[t._v("LineProps")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/lineprops.html"}},[a("em",[t._v("LineProps")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[a("em",[t._v("LineOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[a("em",[t._v("LineOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("")],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[a("em",[t._v("VisualElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("LineElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"points"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#points"}},[t._v("#")]),t._v(" points")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("points")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1715",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1715"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"segments"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#segments"}},[t._v("#")]),t._v(" segments")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("segments")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/segment.html"}},[a("em",[t._v("Segment")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1716",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1716"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1577",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1577"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"first"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#first"}},[t._v("#")]),t._v(" first")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("first")]),t._v("(): "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1717",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1717"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcenterpoint"}},[t._v("#")]),t._v(" getCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getCenterPoint")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1581"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": keyof T[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): T")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("keyof T[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getrange"}},[t._v("#")]),t._v(" getRange")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getRange")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inrange"}},[t._v("#")]),t._v(" inRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1578",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1578"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inxrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inxrange"}},[t._v("#")]),t._v(" inXRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inXRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1579",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1579"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inyrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inyrange"}},[t._v("#")]),t._v(" inYRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inYRange")]),t._v("("),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1580"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"interpolate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interpolate"}},[t._v("#")]),t._v(" interpolate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("interpolate")]),t._v("("),a("code",[t._v("point")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v(", "),a("code",[t._v("property")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("point")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("property")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1719",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1719"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"last"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#last"}},[t._v("#")]),t._v(" last")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("last")]),t._v("(): "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1718",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1718"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"path"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#path"}},[t._v("#")]),t._v(" path")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("path")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1721",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1721"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"pathsegment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pathsegment"}},[t._v("#")]),t._v(" pathSegment")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("pathSegment")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D, "),a("code",[t._v("segment")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/segment.html"}},[a("em",[t._v("Segment")])]),t._v(", "),a("code",[t._v("params")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("segment")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/segment.html"}},[a("em",[t._v("Segment")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("params")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1720",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1720"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatecontrolpoints"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatecontrolpoints"}},[t._v("#")]),t._v(" updateControlPoints")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateControlPoints")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1714",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1714"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/8.f223931f.js b/docs/3.1.0/assets/js/8.213592ca.js similarity index 100% rename from docs/3.1.0/assets/js/8.f223931f.js rename to docs/3.1.0/assets/js/8.213592ca.js diff --git a/docs/3.1.0/assets/js/80.5e6c45b3.js b/docs/3.1.0/assets/js/80.5e6c45b3.js deleted file mode 100644 index 81400582d2..0000000000 --- a/docs/3.1.0/assets/js/80.5e6c45b3.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[80],{407:function(r,e,t){"use strict";t.r(e);var o=t(7),s=Object(o.a)({},(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[t("h1",{attrs:{id:"interface-linehoveroptions"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interface-linehoveroptions"}},[r._v("#")]),r._v(" Interface: LineHoverOptions")]),r._v(" "),t("h2",{attrs:{id:"hierarchy"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[r._v("#")]),r._v(" Hierarchy")]),r._v(" "),t("ul",[t("li",[t("p",[t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[t("em",[r._v("CommonHoverOptions")])])],1),r._v(" "),t("p",[r._v("↳ "),t("strong",[r._v("LineHoverOptions")])])])]),r._v(" "),t("h2",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),t("h3",{attrs:{id:"hoverbackgroundcolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[r._v("#")]),r._v(" hoverBackgroundColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBackgroundColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbackgroundcolor"}},[r._v("hoverBackgroundColor")])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1594"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverbordercapstyle"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercapstyle"}},[r._v("#")]),r._v(" hoverBorderCapStyle")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderCapStyle")]),r._v(": CanvasLineCap")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1705",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1705"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverbordercolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[r._v("#")]),r._v(" hoverBorderColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbordercolor"}},[r._v("hoverBorderColor")])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1593"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverborderdash"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdash"}},[r._v("#")]),r._v(" hoverBorderDash")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderDash")]),r._v(": "),t("em",[r._v("number")]),r._v("[]")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1706",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1706"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverborderdashoffset"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdashoffset"}},[r._v("#")]),r._v(" hoverBorderDashOffset")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderDashOffset")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1707",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1707"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverborderjoinstyle"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderjoinstyle"}},[r._v("#")]),r._v(" hoverBorderJoinStyle")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderJoinStyle")]),r._v(": CanvasLineJoin")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1708",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1708"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverborderwidth"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[r._v("#")]),r._v(" hoverBorderWidth")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderWidth")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverborderwidth"}},[r._v("hoverBorderWidth")])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1592"),t("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/80.98082ae7.js b/docs/3.1.0/assets/js/80.98082ae7.js new file mode 100644 index 0000000000..f77984e10f --- /dev/null +++ b/docs/3.1.0/assets/js/80.98082ae7.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[80],{406:function(r,e,t){"use strict";t.r(e);var o=t(7),s=Object(o.a)({},(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[t("h1",{attrs:{id:"interface-linehoveroptions"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interface-linehoveroptions"}},[r._v("#")]),r._v(" Interface: LineHoverOptions")]),r._v(" "),t("h2",{attrs:{id:"hierarchy"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[r._v("#")]),r._v(" Hierarchy")]),r._v(" "),t("ul",[t("li",[t("p",[t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[t("em",[r._v("CommonHoverOptions")])])],1),r._v(" "),t("p",[r._v("↳ "),t("strong",[r._v("LineHoverOptions")])])])]),r._v(" "),t("h2",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),t("h3",{attrs:{id:"hoverbackgroundcolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[r._v("#")]),r._v(" hoverBackgroundColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBackgroundColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbackgroundcolor"}},[r._v("hoverBackgroundColor")])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1594"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverbordercapstyle"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercapstyle"}},[r._v("#")]),r._v(" hoverBorderCapStyle")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderCapStyle")]),r._v(": CanvasLineCap")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1705",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1705"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverbordercolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[r._v("#")]),r._v(" hoverBorderColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbordercolor"}},[r._v("hoverBorderColor")])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1593"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverborderdash"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdash"}},[r._v("#")]),r._v(" hoverBorderDash")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderDash")]),r._v(": "),t("em",[r._v("number")]),r._v("[]")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1706",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1706"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverborderdashoffset"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdashoffset"}},[r._v("#")]),r._v(" hoverBorderDashOffset")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderDashOffset")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1707",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1707"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverborderjoinstyle"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderjoinstyle"}},[r._v("#")]),r._v(" hoverBorderJoinStyle")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderJoinStyle")]),r._v(": CanvasLineJoin")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1708",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1708"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverborderwidth"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[r._v("#")]),r._v(" hoverBorderWidth")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderWidth")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverborderwidth"}},[r._v("hoverBorderWidth")])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1592"),t("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/81.3c4dfdab.js b/docs/3.1.0/assets/js/81.3c4dfdab.js new file mode 100644 index 0000000000..731a201310 --- /dev/null +++ b/docs/3.1.0/assets/js/81.3c4dfdab.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[81],{405:function(t,e,r){"use strict";r.r(e);var o=r(7),n=Object(o.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-lineoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-lineoptions"}},[t._v("#")]),t._v(" Interface: LineOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[r("em",[t._v("CommonElementOptions")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("LineOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#backgroundcolor"}},[t._v("backgroundColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercapstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercapstyle"}},[t._v("#")]),t._v(" borderCapStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderCapStyle")]),t._v(": CanvasLineCap")]),t._v(" "),r("p",[t._v("Line cap style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'butt'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1656",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1656"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#bordercolor"}},[t._v("borderColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdash"}},[t._v("#")]),t._v(" borderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDash")]),t._v(": "),r("em",[t._v("number")]),t._v("[]")]),t._v(" "),r("p",[t._v("Line dash. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" []")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1661",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1661"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdashoffset"}},[t._v("#")]),t._v(" borderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDashOffset")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Line dash offset. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0.0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1666",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1666"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderjoinstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderjoinstyle"}},[t._v("#")]),t._v(" borderJoinStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderJoinStyle")]),t._v(": CanvasLineJoin")]),t._v(" "),r("p",[t._v("Line join style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'miter'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1671",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1671"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#borderwidth"}},[t._v("borderWidth")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"capbezierpoints"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#capbezierpoints"}},[t._v("#")]),t._v(" capBezierPoints")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("capBezierPoints")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("true to keep Bézier control inside the chart, false for no restriction.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1676",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1676"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"cubicinterpolationmode"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#cubicinterpolationmode"}},[t._v("#")]),t._v(" cubicInterpolationMode")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("cubicInterpolationMode")]),t._v(": "),r("em",[t._v("default")]),t._v(" | "),r("em",[t._v("monotone")])]),t._v(" "),r("p",[t._v("Interpolation mode to apply.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'default'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1681",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1681"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"segment"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#segment"}},[t._v("#")]),t._v(" segment")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("segment")]),t._v(": "),r("em",[t._v("object")])]),t._v(" "),r("h4",{attrs:{id:"type-declaration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("backgroundColor")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v(">")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderCapStyle")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderColor")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v(">")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderDash")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderDashOffset")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderJoinStyle")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderWidth")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1)])])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1693",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1693"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stepped"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stepped"}},[t._v("#")]),t._v(" stepped")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stepped")]),t._v(": "),r("em",[t._v("boolean")]),t._v(" | "),r("em",[t._v("before")]),t._v(" | "),r("em",[t._v("after")]),t._v(" | "),r("em",[t._v("middle")])]),t._v(" "),r("p",[t._v("true to show the line as a stepped line (tension will be ignored).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1691",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1691"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tension"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tension"}},[t._v("#")]),t._v(" tension")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tension")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Bézier curve tension (0 for no Bézier curves).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1686",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1686"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/81.4c7bb29c.js b/docs/3.1.0/assets/js/81.4c7bb29c.js deleted file mode 100644 index 08af755a1e..0000000000 --- a/docs/3.1.0/assets/js/81.4c7bb29c.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[81],{408:function(t,e,r){"use strict";r.r(e);var o=r(7),n=Object(o.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-lineoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-lineoptions"}},[t._v("#")]),t._v(" Interface: LineOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[r("em",[t._v("CommonElementOptions")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("LineOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#backgroundcolor"}},[t._v("backgroundColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercapstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercapstyle"}},[t._v("#")]),t._v(" borderCapStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderCapStyle")]),t._v(": CanvasLineCap")]),t._v(" "),r("p",[t._v("Line cap style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'butt'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1656",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1656"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#bordercolor"}},[t._v("borderColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdash"}},[t._v("#")]),t._v(" borderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDash")]),t._v(": "),r("em",[t._v("number")]),t._v("[]")]),t._v(" "),r("p",[t._v("Line dash. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" []")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1661",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1661"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdashoffset"}},[t._v("#")]),t._v(" borderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDashOffset")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Line dash offset. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0.0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1666",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1666"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderjoinstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderjoinstyle"}},[t._v("#")]),t._v(" borderJoinStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderJoinStyle")]),t._v(": CanvasLineJoin")]),t._v(" "),r("p",[t._v("Line join style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'miter'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1671",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1671"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#borderwidth"}},[t._v("borderWidth")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"capbezierpoints"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#capbezierpoints"}},[t._v("#")]),t._v(" capBezierPoints")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("capBezierPoints")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("true to keep Bézier control inside the chart, false for no restriction.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1676",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1676"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"cubicinterpolationmode"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#cubicinterpolationmode"}},[t._v("#")]),t._v(" cubicInterpolationMode")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("cubicInterpolationMode")]),t._v(": "),r("em",[t._v("default")]),t._v(" | "),r("em",[t._v("monotone")])]),t._v(" "),r("p",[t._v("Interpolation mode to apply.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'default'")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1681",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1681"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"segment"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#segment"}},[t._v("#")]),t._v(" segment")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("segment")]),t._v(": "),r("em",[t._v("object")])]),t._v(" "),r("h4",{attrs:{id:"type-declaration"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("backgroundColor")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v(">")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderCapStyle")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderColor")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v(">")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderDash")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderDashOffset")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderJoinStyle")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1)]),t._v(" "),r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("borderWidth")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("")],1)])])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1693",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1693"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stepped"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stepped"}},[t._v("#")]),t._v(" stepped")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stepped")]),t._v(": "),r("em",[t._v("boolean")]),t._v(" | "),r("em",[t._v("before")]),t._v(" | "),r("em",[t._v("after")]),t._v(" | "),r("em",[t._v("middle")])]),t._v(" "),r("p",[t._v("true to show the line as a stepped line (tension will be ignored).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1691",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1691"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tension"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tension"}},[t._v("#")]),t._v(" tension")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tension")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Bézier curve tension (0 for no Bézier curves).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1686",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1686"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/82.69931859.js b/docs/3.1.0/assets/js/82.847186b1.js similarity index 86% rename from docs/3.1.0/assets/js/82.69931859.js rename to docs/3.1.0/assets/js/82.847186b1.js index f0ef152e5f..e58a48da73 100644 --- a/docs/3.1.0/assets/js/82.69931859.js +++ b/docs/3.1.0/assets/js/82.847186b1.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[82],{409:function(t,e,s){"use strict";s.r(e);var n=s(7),r=Object(n.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[e("h1",{attrs:{id:"interface-lineprops"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#interface-lineprops"}},[this._v("#")]),this._v(" Interface: LineProps")])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[82],{404:function(t,e,s){"use strict";s.r(e);var n=s(7),r=Object(n.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[e("h1",{attrs:{id:"interface-lineprops"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#interface-lineprops"}},[this._v("#")]),this._v(" Interface: LineProps")])])}),[],!1,null,null,null);e.default=r.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/83.9bdbc6a6.js b/docs/3.1.0/assets/js/83.1464037a.js similarity index 58% rename from docs/3.1.0/assets/js/83.9bdbc6a6.js rename to docs/3.1.0/assets/js/83.1464037a.js index b8af898da7..1d3ad984ef 100644 --- a/docs/3.1.0/assets/js/83.9bdbc6a6.js +++ b/docs/3.1.0/assets/js/83.1464037a.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[83],{434:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-parsingoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-parsingoptions"}},[t._v("#")]),t._v(" Interface: ParsingOptions")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("ParsingOptions")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[a("em",[t._v("ControllerDatasetOptions")])])],1),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[a("em",[t._v("CoreChartOptions")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"normalized"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("normalized")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("parsing")]),t._v(": "),a("em",[t._v("false")]),t._v(" | { [key: string]: "),a("em",[t._v("string")]),t._v("; }")]),t._v(" "),a("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[83],{407:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-parsingoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-parsingoptions"}},[t._v("#")]),t._v(" Interface: ParsingOptions")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("ParsingOptions")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[a("em",[t._v("ControllerDatasetOptions")])])],1),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[a("em",[t._v("CoreChartOptions")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"normalized"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("normalized")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("parsing")]),t._v(": "),a("em",[t._v("false")]),t._v(" | { [key: string]: "),a("em",[t._v("string")]),t._v("; }")]),t._v(" "),a("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/84.6c883a62.js b/docs/3.1.0/assets/js/84.6c883a62.js new file mode 100644 index 0000000000..5d0ead3bd1 --- /dev/null +++ b/docs/3.1.0/assets/js/84.6c883a62.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[84],{410:function(t,e,a){"use strict";a.r(e);var v=a(7),_=Object(v.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-plugin-ttype-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-plugin-ttype-o"}},[t._v("#")]),t._v(" Interface: Plugin")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("AnyObject")])])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/extendedplugin.html"}},[a("em",[t._v("ExtendedPlugin")])]),t._v("")],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("Plugin")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"id"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("id")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L746",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:746"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterBuildTicks")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v("> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after scale has build its ticks. This hook is called separately for each scale in the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The scale.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L905",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:905"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDataLimits")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v("> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after scale data limits are calculated. This hook is called separately for each scale in the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The scale.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L889",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:889"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatasetdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatasetdraw"}},[t._v("#")]),t._v(" afterDatasetDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDatasetDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" datasets at the given "),a("code",[t._v("args.index")]),t._v(" have been drawn\n(datasets are drawn in the reverse order). Note that this hook will not be called\nif the datasets drawing has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset index.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset metadata.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L987",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:987"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatasetupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatasetupdate"}},[t._v("#")]),t._v(" afterDatasetUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDatasetUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("false")]),t._v(" ; "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>> ; "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" datasets at the given "),a("code",[t._v("args.index")]),t._v(" has been updated. Note\nthat this hook will not be called if the datasets update has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("false")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset index.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset metadata.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L864",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:864"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatasetsdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatasetsdraw"}},[t._v("#")]),t._v(" afterDatasetsDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDatasetsDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O, "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("false")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" datasets have been drawn. Note that this hook\nwill not be called if the datasets drawing has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("false")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L964",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:964"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatasetsupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatasetsupdate"}},[t._v("#")]),t._v(" afterDatasetsUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDatasetsUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" ; "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" datasets have been updated. Note that this hook\nwill not be called if the datasets update has been previously cancelled.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" version 2.1.5")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L841",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:841"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdraw"}},[t._v("#")]),t._v(" afterDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" has been drawn. Note that this hook will not be called\nif the drawing has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L947",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:947"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterevent"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterevent"}},[t._v("#")]),t._v(" afterEvent")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterEvent")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("false")]),t._v(" ; "),a("code",[t._v("changed?")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(" ; "),a("code",[t._v("replay")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("event")]),t._v(" has been consumed. Note that this hook\nwill not be called if the "),a("code",[t._v("event")]),t._v(" has been previously discarded.")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("false")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.changed?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The event object.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.replay")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("True if this event is replayed from "),a("code",[t._v("Chart.update")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1008",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1008"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterinit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterinit"}},[t._v("#")]),t._v(" afterInit")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterInit")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after "),a("code",[t._v("chart")]),t._v(" has been initialized and before the first update.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L785",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:785"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterlayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterlayout"}},[t._v("#")]),t._v(" afterLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterLayout")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" has been laid out. Note that this hook will not\nbe called if the layout update has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L913",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:913"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterrender"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterrender"}},[t._v("#")]),t._v(" afterRender")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterRender")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" has been fully rendered (and animation completed). Note\nthat this hook will not be called if the rendering has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L930",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:930"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftertooltipdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftertooltipdraw"}},[t._v("#")]),t._v(" afterTooltipDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterTooltipDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("tooltip")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v(" }, "),a("code",[t._v("options")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after drawing the "),a("code",[t._v("tooltip")]),t._v(". Note that this hook will not\nbe called if the tooltip drawing has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.tooltip")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v("")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The tooltip.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/extendedplugin.html"}},[t._v("ExtendedPlugin")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2388",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2388"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after "),a("code",[t._v("chart")]),t._v(" has been updated and before rendering. Note that this\nhook will not be called if the chart update has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L804",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:804"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeBuildTicks")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v("> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before scale bulds its ticks. This hook is called separately for each scale in the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The scale.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L897",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:897"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDataLimits")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v("> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before scale data limits are calculated. This hook is called separately for each scale in the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The scale.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L881",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:881"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatasetdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatasetdraw"}},[t._v("#")]),t._v(" beforeDatasetDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDatasetDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before drawing the "),a("code",[t._v("chart")]),t._v(" dataset at the given "),a("code",[t._v("args.index")]),t._v(" (datasets\nare drawn in the reverse order). If any plugin returns "),a("code",[t._v("false")]),t._v(", the datasets drawing\nis cancelled until another "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset index.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset metadata.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart datasets drawing.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L976",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:976"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatasetupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatasetupdate"}},[t._v("#")]),t._v(" beforeDatasetUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDatasetUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" ; "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>> ; "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before updating the "),a("code",[t._v("chart")]),t._v(" dataset at the given "),a("code",[t._v("args.index")]),t._v(". If any plugin\nreturns "),a("code",[t._v("false")]),t._v(", the datasets update is cancelled until another "),a("code",[t._v("update")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset index.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset metadata.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart datasets drawing.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L853",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:853"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatasetsdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatasetsdraw"}},[t._v("#")]),t._v(" beforeDatasetsDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDatasetsDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before drawing the "),a("code",[t._v("chart")]),t._v(" datasets. If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe datasets drawing is cancelled until another "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart datasets drawing.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L956",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:956"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatasetsupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatasetsupdate"}},[t._v("#")]),t._v(" beforeDatasetsUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDatasetsUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before updating the "),a("code",[t._v("chart")]),t._v(" datasets. If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe datasets update is cancelled until another "),a("code",[t._v("update")]),t._v(" is triggered.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" version 2.1.5")]),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("false to cancel the datasets update.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L831",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:831"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedraw"}},[t._v("#")]),t._v(" beforeDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before drawing "),a("code",[t._v("chart")]),t._v(" at every animation frame. If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe frame drawing is cancelled untilanother "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart drawing.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L939",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:939"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeelementsupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeelementsupdate"}},[t._v("#")]),t._v(" beforeElementsUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeElementsUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called during the update process, before any chart elements have been created.\nThis can be used for data decimation by changing the data array inside a dataset.")]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L812",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:812"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeevent"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeevent"}},[t._v("#")]),t._v(" beforeEvent")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeEvent")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" ; "),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(" ; "),a("code",[t._v("replay")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before processing the specified "),a("code",[t._v("event")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe event will be discarded.")]),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The event object.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.replay")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("True if this event is replayed from "),a("code",[t._v("Chart.update")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L997",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:997"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeinit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeinit"}},[t._v("#")]),t._v(" beforeInit")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeInit")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before initializing "),a("code",[t._v("chart")]),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L778",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:778"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforelayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeLayout")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before laying out "),a("code",[t._v("chart")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe layout update is cancelled until another "),a("code",[t._v("update")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart layout.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L873",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:873"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforerender"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforerender"}},[t._v("#")]),t._v(" beforeRender")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeRender")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before rendering "),a("code",[t._v("chart")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe rendering is cancelled until another "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart rendering.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L922",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:922"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforetooltipdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforetooltipdraw"}},[t._v("#")]),t._v(" beforeTooltipDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeTooltipDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("tooltip")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v(" }, "),a("code",[t._v("options")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before drawing the "),a("code",[t._v("tooltip")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe tooltip drawing is cancelled until another "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-26"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-26"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.tooltip")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v("")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The tooltip.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart tooltip drawing.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/extendedplugin.html"}},[t._v("ExtendedPlugin")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2379",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2379"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" ; "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before updating "),a("code",[t._v("chart")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(", the update\nis cancelled (and thus subsequent render(s)) until another "),a("code",[t._v("update")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-27"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-27"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart update.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L795",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:795"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"destroy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#destroy"}},[t._v("#")]),t._v(" destroy")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("destroy")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called after the chart has been destroyed.")]),t._v(" "),a("h4",{attrs:{id:"parameters-28"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-28"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1023",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1023"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"install"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#install"}},[t._v("#")]),t._v(" install")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("install")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called when plugin is installed for this chart instance. This hook is also invoked for disabled plugins (options === false).")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" 3.0.0")]),t._v(" "),a("h4",{attrs:{id:"parameters-29"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-29"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L755",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:755"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" reset")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("reset")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called during chart reset")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" version 3.0.0")]),t._v(" "),a("h4",{attrs:{id:"parameters-30"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-30"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L820",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:820"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resize"}},[t._v("#")]),t._v(" resize")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("resize")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("size")]),t._v(": { "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(" } }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the chart as been resized.")]),t._v(" "),a("h4",{attrs:{id:"parameters-31"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-31"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.size")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The new canvas display size (eq. canvas.style width & height).")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.size.height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.size.width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1016",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1016"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"start"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#start"}},[t._v("#")]),t._v(" start")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("start")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called when a plugin is starting. This happens when chart is created or plugin is enabled.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" 3.0.0")]),t._v(" "),a("h4",{attrs:{id:"parameters-32"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-32"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L763",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:763"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"stop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stop"}},[t._v("#")]),t._v(" stop")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("stop")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called when a plugin stopping. This happens when chart is destroyed or plugin is disabled.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" 3.0.0")]),t._v(" "),a("h4",{attrs:{id:"parameters-33"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-33"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L771",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:771"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"uninstall"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#uninstall"}},[t._v("#")]),t._v(" uninstall")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("uninstall")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called after chart is destroyed on all plugins that were installed for that chart. This hook is also invoked for disabled plugins (options === false).")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" 3.0.0")]),t._v(" "),a("h4",{attrs:{id:"parameters-34"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-34"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1031",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1031"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/84.f8ea29f0.js b/docs/3.1.0/assets/js/84.f8ea29f0.js deleted file mode 100644 index 7f5c7b75c9..0000000000 --- a/docs/3.1.0/assets/js/84.f8ea29f0.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[84],{410:function(t,e,a){"use strict";a.r(e);var v=a(7),_=Object(v.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-plugin-ttype-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-plugin-ttype-o"}},[t._v("#")]),t._v(" Interface: Plugin")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("AnyObject")])])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/extendedplugin.html"}},[a("em",[t._v("ExtendedPlugin")])]),t._v("")],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("Plugin")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"id"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("id")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L746",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:746"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterBuildTicks")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v("> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after scale has build its ticks. This hook is called separately for each scale in the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The scale.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L905",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:905"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDataLimits")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v("> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after scale data limits are calculated. This hook is called separately for each scale in the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The scale.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L889",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:889"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatasetdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatasetdraw"}},[t._v("#")]),t._v(" afterDatasetDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDatasetDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" datasets at the given "),a("code",[t._v("args.index")]),t._v(" have been drawn\n(datasets are drawn in the reverse order). Note that this hook will not be called\nif the datasets drawing has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset index.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset metadata.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L987",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:987"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatasetupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatasetupdate"}},[t._v("#")]),t._v(" afterDatasetUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDatasetUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("false")]),t._v(" ; "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>> ; "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" datasets at the given "),a("code",[t._v("args.index")]),t._v(" has been updated. Note\nthat this hook will not be called if the datasets update has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("false")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset index.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset metadata.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L864",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:864"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatasetsdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatasetsdraw"}},[t._v("#")]),t._v(" afterDatasetsDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDatasetsDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O, "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("false")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" datasets have been drawn. Note that this hook\nwill not be called if the datasets drawing has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("false")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L964",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:964"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatasetsupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatasetsupdate"}},[t._v("#")]),t._v(" afterDatasetsUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDatasetsUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" ; "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" datasets have been updated. Note that this hook\nwill not be called if the datasets update has been previously cancelled.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" version 2.1.5")]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L841",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:841"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdraw"}},[t._v("#")]),t._v(" afterDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" has been drawn. Note that this hook will not be called\nif the drawing has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L947",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:947"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterevent"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterevent"}},[t._v("#")]),t._v(" afterEvent")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterEvent")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("false")]),t._v(" ; "),a("code",[t._v("changed?")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(" ; "),a("code",[t._v("replay")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("event")]),t._v(" has been consumed. Note that this hook\nwill not be called if the "),a("code",[t._v("event")]),t._v(" has been previously discarded.")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("false")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.changed?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The event object.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.replay")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("True if this event is replayed from "),a("code",[t._v("Chart.update")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1008",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1008"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterinit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterinit"}},[t._v("#")]),t._v(" afterInit")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterInit")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after "),a("code",[t._v("chart")]),t._v(" has been initialized and before the first update.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L785",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:785"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterlayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterlayout"}},[t._v("#")]),t._v(" afterLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterLayout")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" has been laid out. Note that this hook will not\nbe called if the layout update has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L913",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:913"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterrender"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterrender"}},[t._v("#")]),t._v(" afterRender")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterRender")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the "),a("code",[t._v("chart")]),t._v(" has been fully rendered (and animation completed). Note\nthat this hook will not be called if the rendering has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L930",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:930"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftertooltipdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftertooltipdraw"}},[t._v("#")]),t._v(" afterTooltipDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterTooltipDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("tooltip")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v(" }, "),a("code",[t._v("options")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after drawing the "),a("code",[t._v("tooltip")]),t._v(". Note that this hook will not\nbe called if the tooltip drawing has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.tooltip")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v("")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The tooltip.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/extendedplugin.html"}},[t._v("ExtendedPlugin")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2388",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2388"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("afterUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after "),a("code",[t._v("chart")]),t._v(" has been updated and before rendering. Note that this\nhook will not be called if the chart update has been previously cancelled.")]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L804",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:804"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeBuildTicks")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v("> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before scale bulds its ticks. This hook is called separately for each scale in the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The scale.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L897",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:897"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDataLimits")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v("> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before scale data limits are calculated. This hook is called separately for each scale in the chart.")]),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The scale.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L881",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:881"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatasetdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatasetdraw"}},[t._v("#")]),t._v(" beforeDatasetDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDatasetDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>> }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before drawing the "),a("code",[t._v("chart")]),t._v(" dataset at the given "),a("code",[t._v("args.index")]),t._v(" (datasets\nare drawn in the reverse order). If any plugin returns "),a("code",[t._v("false")]),t._v(", the datasets drawing\nis cancelled until another "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset index.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset metadata.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart datasets drawing.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L976",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:976"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatasetupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatasetupdate"}},[t._v("#")]),t._v(" beforeDatasetUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDatasetUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" ; "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>> ; "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before updating the "),a("code",[t._v("chart")]),t._v(" dataset at the given "),a("code",[t._v("args.index")]),t._v(". If any plugin\nreturns "),a("code",[t._v("false")]),t._v(", the datasets update is cancelled until another "),a("code",[t._v("update")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset index.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The dataset metadata.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart datasets drawing.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L853",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:853"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatasetsdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatasetsdraw"}},[t._v("#")]),t._v(" beforeDatasetsDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDatasetsDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before drawing the "),a("code",[t._v("chart")]),t._v(" datasets. If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe datasets drawing is cancelled until another "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart datasets drawing.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L956",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:956"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatasetsupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatasetsupdate"}},[t._v("#")]),t._v(" beforeDatasetsUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDatasetsUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before updating the "),a("code",[t._v("chart")]),t._v(" datasets. If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe datasets update is cancelled until another "),a("code",[t._v("update")]),t._v(" is triggered.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" version 2.1.5")]),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("false to cancel the datasets update.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L831",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:831"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedraw"}},[t._v("#")]),t._v(" beforeDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before drawing "),a("code",[t._v("chart")]),t._v(" at every animation frame. If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe frame drawing is cancelled untilanother "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart drawing.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L939",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:939"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeelementsupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeelementsupdate"}},[t._v("#")]),t._v(" beforeElementsUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeElementsUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called during the update process, before any chart elements have been created.\nThis can be used for data decimation by changing the data array inside a dataset.")]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L812",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:812"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeevent"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeevent"}},[t._v("#")]),t._v(" beforeEvent")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeEvent")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" ; "),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(" ; "),a("code",[t._v("replay")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before processing the specified "),a("code",[t._v("event")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe event will be discarded.")]),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.event")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The event object.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.replay")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("True if this event is replayed from "),a("code",[t._v("Chart.update")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L997",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:997"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeinit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeinit"}},[t._v("#")]),t._v(" beforeInit")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeInit")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before initializing "),a("code",[t._v("chart")]),t._v(".")]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L778",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:778"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforelayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeLayout")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before laying out "),a("code",[t._v("chart")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe layout update is cancelled until another "),a("code",[t._v("update")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart layout.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L873",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:873"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforerender"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforerender"}},[t._v("#")]),t._v(" beforeRender")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeRender")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before rendering "),a("code",[t._v("chart")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe rendering is cancelled until another "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart rendering.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L922",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:922"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforetooltipdraw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforetooltipdraw"}},[t._v("#")]),t._v(" beforeTooltipDraw")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeTooltipDraw")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("tooltip")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v(" }, "),a("code",[t._v("options")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before drawing the "),a("code",[t._v("tooltip")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(",\nthe tooltip drawing is cancelled until another "),a("code",[t._v("render")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-26"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-26"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.tooltip")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[a("em",[t._v("TooltipModel")])]),t._v("")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The tooltip.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart tooltip drawing.")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/extendedplugin.html"}},[t._v("ExtendedPlugin")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2379",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2379"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeUpdate")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("cancelable")]),t._v(": "),a("em",[t._v("true")]),t._v(" ; "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(" }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called before updating "),a("code",[t._v("chart")]),t._v(". If any plugin returns "),a("code",[t._v("false")]),t._v(", the update\nis cancelled (and thus subsequent render(s)) until another "),a("code",[t._v("update")]),t._v(" is triggered.")]),t._v(" "),a("h4",{attrs:{id:"parameters-27"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-27"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.cancelable")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("true")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The update mode")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")]),t._v(" | "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("code",[t._v("false")]),t._v(" to cancel the chart update.")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L795",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:795"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"destroy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#destroy"}},[t._v("#")]),t._v(" destroy")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("destroy")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called after the chart has been destroyed.")]),t._v(" "),a("h4",{attrs:{id:"parameters-28"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-28"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1023",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1023"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"install"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#install"}},[t._v("#")]),t._v(" install")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("install")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called when plugin is installed for this chart instance. This hook is also invoked for disabled plugins (options === false).")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" 3.0.0")]),t._v(" "),a("h4",{attrs:{id:"parameters-29"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-29"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L755",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:755"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" reset")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("reset")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called during chart reset")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" version 3.0.0")]),t._v(" "),a("h4",{attrs:{id:"parameters-30"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-30"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L820",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:820"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resize"}},[t._v("#")]),t._v(" resize")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("resize")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": { "),a("code",[t._v("size")]),t._v(": { "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(" } }, "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called after the chart as been resized.")]),t._v(" "),a("h4",{attrs:{id:"parameters-31"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-31"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.size")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The new canvas display size (eq. canvas.style width & height).")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.size.height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args.size.width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1016",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1016"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"start"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#start"}},[t._v("#")]),t._v(" start")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("start")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called when a plugin is starting. This happens when chart is created or plugin is enabled.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" 3.0.0")]),t._v(" "),a("h4",{attrs:{id:"parameters-32"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-32"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L763",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:763"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"stop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#stop"}},[t._v("#")]),t._v(" stop")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("stop")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[a("strong",[a("code",[t._v("desc")])]),t._v(" Called when a plugin stopping. This happens when chart is destroyed or plugin is disabled.")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" 3.0.0")]),t._v(" "),a("h4",{attrs:{id:"parameters-33"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-33"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L771",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:771"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"uninstall"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#uninstall"}},[t._v("#")]),t._v(" uninstall")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("uninstall")]),t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("args")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Called after chart is destroyed on all plugins that were installed for that chart. This hook is also invoked for disabled plugins (options === false).")]),t._v(" "),a("p",[a("strong",[a("code",[t._v("since")])]),t._v(" 3.0.0")]),t._v(" "),a("h4",{attrs:{id:"parameters-34"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-34"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The chart instance.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("args")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The call arguments.")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The plugin options.")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1031",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1031"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/85.57e607be.js b/docs/3.1.0/assets/js/85.ce19abc2.js similarity index 86% rename from docs/3.1.0/assets/js/85.57e607be.js rename to docs/3.1.0/assets/js/85.ce19abc2.js index 15f0dccd1c..c34d149418 100644 --- a/docs/3.1.0/assets/js/85.57e607be.js +++ b/docs/3.1.0/assets/js/85.ce19abc2.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[85],{411:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-pluginchartoptions-ttype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-pluginchartoptions-ttype"}},[t._v("#")]),t._v(" Interface: PluginChartOptions")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("PluginChartOptions")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[a("em",[t._v("Defaults")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"plugins"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#plugins"}},[t._v("#")]),t._v(" plugins")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("plugins")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/pluginoptionsbytype.html"}},[a("em",[t._v("PluginOptionsByType")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2626",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2626"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[85],{408:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-pluginchartoptions-ttype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-pluginchartoptions-ttype"}},[t._v("#")]),t._v(" Interface: PluginChartOptions")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("PluginChartOptions")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[a("em",[t._v("Defaults")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"plugins"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#plugins"}},[t._v("#")]),t._v(" plugins")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("plugins")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/pluginoptionsbytype.html"}},[a("em",[t._v("PluginOptionsByType")])]),t._v("")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2626",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2626"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/86.44f69d78.js b/docs/3.1.0/assets/js/86.44f69d78.js new file mode 100644 index 0000000000..3b211ae1e2 --- /dev/null +++ b/docs/3.1.0/assets/js/86.44f69d78.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[86],{409:function(t,e,r){"use strict";r.r(e);var a=r(7),i=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-pluginoptionsbytype-ttype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-pluginoptionsbytype-ttype"}},[t._v("#")]),t._v(" Interface: PluginOptionsByType")]),t._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("TType")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#charttype"}},[r("em",[t._v("ChartType")])])],1)])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"decimation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#decimation"}},[t._v("#")]),t._v(" decimation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("decimation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#decimationoptions"}},[r("em",[t._v("DecimationOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2619",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2619"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"filler"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#filler"}},[t._v("#")]),t._v(" filler")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("filler")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/filleroptions.html"}},[r("em",[t._v("FillerOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2620",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2620"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"legend"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#legend"}},[t._v("#")]),t._v(" legend")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("legend")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/legendoptions.html"}},[r("em",[t._v("LegendOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2621",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2621"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"title"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" title")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("title")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/titleoptions.html"}},[r("em",[t._v("TitleOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2622",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2622"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tooltip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tooltip"}},[t._v("#")]),t._v(" tooltip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tooltip")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipoptions.html"}},[r("em",[t._v("TooltipOptions")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2623",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2623"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/86.5d09beae.js b/docs/3.1.0/assets/js/86.5d09beae.js deleted file mode 100644 index 49e4ad1a4a..0000000000 --- a/docs/3.1.0/assets/js/86.5d09beae.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[86],{412:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-pluginoptionsbytype-ttype"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-pluginoptionsbytype-ttype"}},[t._v("#")]),t._v(" Interface: PluginOptionsByType")]),t._v(" "),r("h2",{attrs:{id:"type-parameters"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),r("table",[r("thead",[r("tr",[r("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),r("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),r("tbody",[r("tr",[r("td",{staticStyle:{"text-align":"left"}},[r("code",[t._v("TType")])]),t._v(" "),r("td",{staticStyle:{"text-align":"left"}},[r("RouterLink",{attrs:{to:"/api/#charttype"}},[r("em",[t._v("ChartType")])])],1)])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"decimation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#decimation"}},[t._v("#")]),t._v(" decimation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("decimation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#decimationoptions"}},[r("em",[t._v("DecimationOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2619",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2619"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"filler"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#filler"}},[t._v("#")]),t._v(" filler")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("filler")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/filleroptions.html"}},[r("em",[t._v("FillerOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2620",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2620"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"legend"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#legend"}},[t._v("#")]),t._v(" legend")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("legend")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/legendoptions.html"}},[r("em",[t._v("LegendOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2621",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2621"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"title"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" title")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("title")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/titleoptions.html"}},[r("em",[t._v("TitleOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2622",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2622"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tooltip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tooltip"}},[t._v("#")]),t._v(" tooltip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tooltip")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/tooltipoptions.html"}},[r("em",[t._v("TooltipOptions")])]),t._v("")],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2623",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2623"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/87.563ac9a5.js b/docs/3.1.0/assets/js/87.3639bc16.js similarity index 51% rename from docs/3.1.0/assets/js/87.563ac9a5.js rename to docs/3.1.0/assets/js/87.3639bc16.js index 89ed755e46..c9f9ea482e 100644 --- a/docs/3.1.0/assets/js/87.563ac9a5.js +++ b/docs/3.1.0/assets/js/87.3639bc16.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[87],{413:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-point"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-point"}},[t._v("#")]),t._v(" Interface: Point")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("x")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/geometric.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:9"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("y")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/geometric.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:10"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[87],{411:function(t,e,r){"use strict";r.r(e);var a=r(7),s=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-point"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-point"}},[t._v("#")]),t._v(" Interface: Point")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("x")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/geometric.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:9"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("y")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/geometric.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("geometric.d.ts:10"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/88.14645b1d.js b/docs/3.1.0/assets/js/88.14645b1d.js new file mode 100644 index 0000000000..6f821e39a2 --- /dev/null +++ b/docs/3.1.0/assets/js/88.14645b1d.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[88],{412:function(t,e,a){"use strict";a.r(e);var r=a(7),_=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-pointelement-t-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointelement-t-o"}},[t._v("#")]),t._v(" Interface: PointElement")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[a("em",[t._v("PointProps")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[a("em",[t._v("PointProps")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[a("em",[t._v("PointOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[a("em",[t._v("PointOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("")],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[a("em",[t._v("VisualElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("PointElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsed"}},[t._v("#")]),t._v(" parsed")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("parsed")]),t._v(": CartesianParsedData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1833",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1833"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"skip"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#skip"}},[t._v("#")]),t._v(" skip")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("skip")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1832",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1832"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1577",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1577"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcenterpoint"}},[t._v("#")]),t._v(" getCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getCenterPoint")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1581"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": keyof T[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): T")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("keyof T[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getrange"}},[t._v("#")]),t._v(" getRange")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getRange")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inrange"}},[t._v("#")]),t._v(" inRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1578",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1578"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inxrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inxrange"}},[t._v("#")]),t._v(" inXRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inXRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1579",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1579"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inyrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inyrange"}},[t._v("#")]),t._v(" inYRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inYRange")]),t._v("("),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1580"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/88.733e93fc.js b/docs/3.1.0/assets/js/88.733e93fc.js deleted file mode 100644 index 3818f043f0..0000000000 --- a/docs/3.1.0/assets/js/88.733e93fc.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[88],{414:function(t,e,a){"use strict";a.r(e);var r=a(7),_=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-pointelement-t-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointelement-t-o"}},[t._v("#")]),t._v(" Interface: PointElement")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[a("em",[t._v("PointProps")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[a("em",[t._v("PointProps")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[a("em",[t._v("PointOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[a("em",[t._v("PointOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("")],1)]),t._v(" "),a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[a("em",[t._v("VisualElement")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("PointElement")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.active")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: Element.options")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsed"}},[t._v("#")]),t._v(" parsed")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("parsed")]),t._v(": CartesianParsedData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1833",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1833"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"skip"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#skip"}},[t._v("#")]),t._v(" skip")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("skip")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1832",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1832"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.x")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: Element.y")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("ctx")]),t._v(": CanvasRenderingContext2D): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ctx")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("CanvasRenderingContext2D")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1577",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1577"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getcenterpoint"}},[t._v("#")]),t._v(" getCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getCenterPoint")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1581"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("symbol")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": keyof T[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): T")]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("keyof T[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" T")]),t._v(" "),a("p",[t._v("Inherited from: Element.getProps")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getrange"}},[t._v("#")]),t._v(" getRange")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getRange")]),t._v("("),a("code",[t._v("axis")]),t._v(": "),a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("axis")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("x")]),t._v(" | "),a("em",[t._v("y")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: Element.hasValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inrange"}},[t._v("#")]),t._v(" inRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1578",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1578"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inxrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inxrange"}},[t._v("#")]),t._v(" inXRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inXRange")]),t._v("("),a("code",[t._v("mouseX")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseX")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1579",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1579"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"inyrange"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#inyrange"}},[t._v("#")]),t._v(" inYRange")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("inYRange")]),t._v("("),a("code",[t._v("mouseY")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mouseY")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1580",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1580"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: Element.tooltipPosition")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=_.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/89.58797237.js b/docs/3.1.0/assets/js/89.58797237.js deleted file mode 100644 index 169ccd9a03..0000000000 --- a/docs/3.1.0/assets/js/89.58797237.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[89],{415:function(r,o,t){"use strict";t.r(o);var e=t(7),n=Object(e.a)({},(function(){var r=this,o=r.$createElement,t=r._self._c||o;return t("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[t("h1",{attrs:{id:"interface-pointhoveroptions"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointhoveroptions"}},[r._v("#")]),r._v(" Interface: PointHoverOptions")]),r._v(" "),t("h2",{attrs:{id:"hierarchy"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[r._v("#")]),r._v(" Hierarchy")]),r._v(" "),t("ul",[t("li",[t("p",[t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[t("em",[r._v("CommonHoverOptions")])])],1),r._v(" "),t("p",[r._v("↳ "),t("strong",[r._v("PointHoverOptions")])])])]),r._v(" "),t("h2",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),t("h3",{attrs:{id:"hoverbackgroundcolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[r._v("#")]),r._v(" hoverBackgroundColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBackgroundColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbackgroundcolor"}},[r._v("hoverBackgroundColor")])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1594"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverbordercolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[r._v("#")]),r._v(" hoverBorderColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbordercolor"}},[r._v("hoverBorderColor")])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1593"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverborderwidth"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[r._v("#")]),r._v(" hoverBorderWidth")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverBorderWidth")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("Inherited from: "),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),t("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverborderwidth"}},[r._v("hoverBorderWidth")])],1),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1592"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"hoverradius"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#hoverradius"}},[r._v("#")]),r._v(" hoverRadius")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("hoverRadius")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("Point radius when hovered.")]),r._v(" "),t("p",[t("strong",[t("code",[r._v("default")])]),r._v(" 4")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1776",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1776"),t("OutboundLink")],1)])])}),[],!1,null,null,null);o.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/89.f6686130.js b/docs/3.1.0/assets/js/89.f6686130.js new file mode 100644 index 0000000000..904b94324c --- /dev/null +++ b/docs/3.1.0/assets/js/89.f6686130.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[89],{414:function(r,e,o){"use strict";o.r(e);var t=o(7),n=Object(t.a)({},(function(){var r=this,e=r.$createElement,o=r._self._c||e;return o("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[o("h1",{attrs:{id:"interface-pointhoveroptions"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointhoveroptions"}},[r._v("#")]),r._v(" Interface: PointHoverOptions")]),r._v(" "),o("h2",{attrs:{id:"hierarchy"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[r._v("#")]),r._v(" Hierarchy")]),r._v(" "),o("ul",[o("li",[o("p",[o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[o("em",[r._v("CommonHoverOptions")])])],1),r._v(" "),o("p",[r._v("↳ "),o("strong",[r._v("PointHoverOptions")])])])]),r._v(" "),o("h2",{attrs:{id:"properties"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),o("h3",{attrs:{id:"hoverbackgroundcolor"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[r._v("#")]),r._v(" hoverBackgroundColor")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverBackgroundColor")]),r._v(": "),o("RouterLink",{attrs:{to:"/api/#color"}},[o("em",[r._v("Color")])])],1),r._v(" "),o("p",[r._v("Inherited from: "),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbackgroundcolor"}},[r._v("hoverBackgroundColor")])],1),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1594"),o("OutboundLink")],1)]),r._v(" "),o("hr"),r._v(" "),o("h3",{attrs:{id:"hoverbordercolor"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[r._v("#")]),r._v(" hoverBorderColor")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverBorderColor")]),r._v(": "),o("RouterLink",{attrs:{to:"/api/#color"}},[o("em",[r._v("Color")])])],1),r._v(" "),o("p",[r._v("Inherited from: "),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverbordercolor"}},[r._v("hoverBorderColor")])],1),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1593"),o("OutboundLink")],1)]),r._v(" "),o("hr"),r._v(" "),o("h3",{attrs:{id:"hoverborderwidth"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[r._v("#")]),r._v(" hoverBorderWidth")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverBorderWidth")]),r._v(": "),o("em",[r._v("number")])]),r._v(" "),o("p",[r._v("Inherited from: "),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[r._v("CommonHoverOptions")]),r._v("."),o("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html#hoverborderwidth"}},[r._v("hoverBorderWidth")])],1),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1592"),o("OutboundLink")],1)]),r._v(" "),o("hr"),r._v(" "),o("h3",{attrs:{id:"hoverradius"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#hoverradius"}},[r._v("#")]),r._v(" hoverRadius")]),r._v(" "),o("p",[r._v("• "),o("strong",[r._v("hoverRadius")]),r._v(": "),o("em",[r._v("number")])]),r._v(" "),o("p",[r._v("Point radius when hovered.")]),r._v(" "),o("p",[o("strong",[o("code",[r._v("default")])]),r._v(" 4")]),r._v(" "),o("p",[r._v("Defined in: "),o("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1776",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1776"),o("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/9.97a769a4.js b/docs/3.1.0/assets/js/9.97a769a4.js new file mode 100644 index 0000000000..d1c9c5284c --- /dev/null +++ b/docs/3.1.0/assets/js/9.97a769a4.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{336:function(t,e,a){"use strict";a.r(e);var r=a(7),i=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"chart-js-v3-1-0"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-js-v3-1-0"}},[t._v("#")]),t._v(" Chart.js - v3.1.0")]),t._v(" "),a("h2",{attrs:{id:"table-of-contents"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),a("h3",{attrs:{id:"enumerations"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enumerations"}},[t._v("#")]),t._v(" Enumerations")]),t._v(" "),a("ul",[a("li",[a("RouterLink",{attrs:{to:"/api/enums/decimationalgorithm.html"}},[t._v("DecimationAlgorithm")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/enums/updatemodeenum.html"}},[t._v("UpdateModeEnum")])],1)]),t._v(" "),a("h3",{attrs:{id:"classes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#classes"}},[t._v("#")]),t._v(" Classes")]),t._v(" "),a("ul",[a("li",[a("RouterLink",{attrs:{to:"/api/classes/animation.html"}},[t._v("Animation")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/animations.html"}},[t._v("Animations")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/animator.html"}},[t._v("Animator")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/basicplatform.html"}},[t._v("BasicPlatform")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[t._v("Chart")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/domplatform.html"}},[t._v("DomPlatform")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1)]),t._v(" "),a("h3",{attrs:{id:"interfaces"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interfaces"}},[t._v("#")]),t._v(" Interfaces")]),t._v(" "),a("ul",[a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[t._v("ActiveDataPoint")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[t._v("ActiveElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[t._v("AnimationEvent")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/arcborderradius.html"}},[t._v("ArcBorderRadius")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/arcelement.html"}},[t._v("ArcElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/archoveroptions.html"}},[t._v("ArcHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[t._v("ArcOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/arcprops.html"}},[t._v("ArcProps")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/barcontrollerchartoptions.html"}},[t._v("BarControllerChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/barcontrollerdatasetoptions.html"}},[t._v("BarControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/barelement.html"}},[t._v("BarElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/barhoveroptions.html"}},[t._v("BarHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[t._v("BarOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/barprops.html"}},[t._v("BarProps")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/borderradius.html"}},[t._v("BorderRadius")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/bubblecontrollerdatasetoptions.html"}},[t._v("BubbleControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[t._v("BubbleDataPoint")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[t._v("CartesianScaleOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[t._v("ChartArea")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartconfiguration.html"}},[t._v("ChartConfiguration")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[t._v("ChartData")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartdatasetproperties.html"}},[t._v("ChartDatasetProperties")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[t._v("ChartMeta")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[t._v("ChartTypeRegistry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[t._v("CommonHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/complexfilltarget.html"}},[t._v("ComplexFillTarget")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[t._v("CoreInteractionOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/datasetcontrollerchartcomponent.html"}},[t._v("DatasetControllerChartComponent")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/dateadapter.html"}},[t._v("DateAdapter")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[t._v("Defaults")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutanimationoptions.html"}},[t._v("DoughnutAnimationOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontroller.html"}},[t._v("DoughnutController")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerchartoptions.html"}},[t._v("DoughnutControllerChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/element.html"}},[t._v("Element")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[t._v("ElementChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/elementoptionsbytype.html"}},[t._v("ElementOptionsByType")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/extendedplugin.html"}},[t._v("ExtendedPlugin")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/fillercontrollerdatasetoptions.html"}},[t._v("FillerControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/filleroptions.html"}},[t._v("FillerOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[t._v("FontSpec")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/gridlineoptions.html"}},[t._v("GridLineOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[t._v("InteractionItem")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/interactionmodemap.html"}},[t._v("InteractionModeMap")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[t._v("InteractionOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[t._v("LegendElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[t._v("LegendItem")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/legendoptions.html"}},[t._v("LegendOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[t._v("LineControllerChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerdatasetoptions.html"}},[t._v("LineControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/lineelement.html"}},[t._v("LineElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/linehoveroptions.html"}},[t._v("LineHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[t._v("LineOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/lineprops.html"}},[t._v("LineProps")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[t._v("ParsingOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[t._v("Plugin")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[t._v("PluginChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pluginoptionsbytype.html"}},[t._v("PluginOptionsByType")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[t._v("Point")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointelement.html"}},[t._v("PointElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointhoveroptions.html"}},[t._v("PointHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[t._v("PointOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointprefixedhoveroptions.html"}},[t._v("PointPrefixedHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointprefixedoptions.html"}},[t._v("PointPrefixedOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[t._v("PointProps")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/polarareacontroller.html"}},[t._v("PolarAreaController")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/polarareacontrollerchartoptions.html"}},[t._v("PolarAreaControllerChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/polarareacontrollerdatasetoptions.html"}},[t._v("PolarAreaControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/radarcontrollerdatasetoptions.html"}},[t._v("RadarControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/radiallinearscale.html"}},[t._v("RadialLinearScale")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/radialscaletyperegistry.html"}},[t._v("RadialScaleTypeRegistry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/registry.html"}},[t._v("Registry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scaletyperegistry.html"}},[t._v("ScaleTypeRegistry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[t._v("ScatterDataPoint")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[t._v("ScriptableContext")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[t._v("ScriptableLineSegmentContext")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[t._v("ScriptableScaleContext")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[t._v("ScriptableTooltipContext")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/segment.html"}},[t._v("Segment")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[t._v("Tick")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tickoptions.html"}},[t._v("TickOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/timescale.html"}},[t._v("TimeScale")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/titleoptions.html"}},[t._v("TitleOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipcallbacks.html"}},[t._v("TooltipCallbacks")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[t._v("TooltipItem")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tooltiplabelstyle.html"}},[t._v("TooltipLabelStyle")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[t._v("TooltipModel")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipoptions.html"}},[t._v("TooltipOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/typedregistry.html"}},[t._v("TypedRegistry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1)]),t._v(" "),a("h2",{attrs:{id:"type-aliases"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-aliases"}},[t._v("#")]),t._v(" Type aliases")]),t._v(" "),a("h3",{attrs:{id:"animationoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animationoptions"}},[t._v("#")]),t._v(" AnimationOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("AnimationOptions")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animation")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/#animationspec"}},[a("em",[t._v("AnimationSpec")])]),t._v(" & { "),a("code",[t._v("onComplete?")]),t._v(": ("),a("code",[t._v("this")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v(", "),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v(" ; "),a("code",[t._v("onProgress?")]),t._v(": ("),a("code",[t._v("this")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v(", "),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v(" }")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animations")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#animationsspec"}},[a("em",[t._v("AnimationsSpec")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("transitions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[a("em",[t._v("TransitionsSpec")])]),t._v("")],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1532",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1532"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"animationspec"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animationspec"}},[t._v("#")]),t._v(" AnimationSpec")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("AnimationSpec")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("delay")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Delay before starting the animations. "),a("strong",[a("code",[t._v("default")])]),t._v(" 0")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("duration")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The number of milliseconds an animation takes. "),a("strong",[a("code",[t._v("default")])]),t._v(" 1000")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("easing")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#easingfunction"}},[a("em",[t._v("EasingFunction")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[a("em",[t._v("ScriptableContext")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Easing function to use "),a("strong",[a("code",[t._v("default")])]),t._v(" 'easeOutQuart'")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("loop")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("If set to true, the animations loop endlessly. "),a("strong",[a("code",[t._v("default")])]),t._v(" false")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1476",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1476"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"animationsspec"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animationsspec"}},[t._v("#")]),t._v(" AnimationsSpec")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("AnimationsSpec")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-3"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1501",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1501"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"barcontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barcontroller"}},[t._v("#")]),t._v(" BarController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("BarController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L139",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:139"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bubblecontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bubblecontroller"}},[t._v("#")]),t._v(" BubbleController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("BubbleController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L167",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:167"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"categoryscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#categoryscale"}},[t._v("#")]),t._v(" CategoryScale")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("CategoryScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#categoryscaleoptions"}},[a("em",[t._v("CategoryScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#categoryscaleoptions"}},[a("em",[t._v("CategoryScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2852",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2852"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"categoryscaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#categoryscaleoptions"}},[t._v("#")]),t._v(" CategoryScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("CategoryScaleOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[a("em",[t._v("CartesianScaleOptions")])]),t._v(" & { "),a("code",[t._v("labels")]),t._v(": "),a("em",[t._v("string")]),t._v("[] | "),a("em",[t._v("string")]),t._v("[][] ; "),a("code",[t._v("max")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("min")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2846",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2846"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chartcomponentlike"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chartcomponentlike"}},[t._v("#")]),t._v(" ChartComponentLike")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ChartComponentLike")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v("[] | { [key: string]: "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v("; }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1034",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1034"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chartdataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chartdataset"}},[t._v("#")]),t._v(" ChartDataset")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ChartDataset")]),t._v(": "),a("em",[t._v("DeepPartial")]),t._v('<{ [key in ChartType]: object & ChartTypeRegistry[key]["datasetOptions"]}[TType]> & '),a("RouterLink",{attrs:{to:"/api/interfaces/chartdatasetproperties.html"}},[a("em",[t._v("ChartDatasetProperties")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TType[]")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3341",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3341"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chartitem"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chartitem"}},[t._v("#")]),t._v(" ChartItem")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ChartItem")]),t._v(": "),a("em",[t._v("string")]),t._v(" | CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D | HTMLCanvasElement | OffscreenCanvas | { "),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement | OffscreenCanvas } | "),a("em",[t._v("ArrayLike")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L506",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:506"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chartoptions"}},[t._v("#")]),t._v(" ChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ChartOptions")]),t._v(": "),a("em",[t._v("DeepPartial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[a("em",[t._v("CoreChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[a("em",[t._v("ElementChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[a("em",[t._v("PluginChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#datasetchartoptions"}},[a("em",[t._v("DatasetChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#scalechartoptions"}},[a("em",[t._v("ScaleChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("chartOptions")]),t._v("]>")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3323",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3323"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"charttype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#charttype"}},[t._v("#")]),t._v(" ChartType")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ChartType")]),t._v(": keyof "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3302",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3302"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"color"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[t._v("#")]),t._v(" Color")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("Color")]),t._v(": "),a("em",[t._v("string")]),t._v(" | CanvasGradient | CanvasPattern")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/color.d.ts#L1",target:"_blank",rel:"noopener noreferrer"}},[t._v("color.d.ts:1"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"datasetchartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasetchartoptions"}},[t._v("#")]),t._v(" DatasetChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("DatasetChartOptions")]),t._v(": { [key in TType]: object}")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-7"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3311",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3311"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"decimationoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#decimationoptions"}},[t._v("#")]),t._v(" DecimationOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("DecimationOptions")]),t._v(": LttbDecimationOptions | MinMaxDecimationOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1972",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1972"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"defaultdatapoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defaultdatapoint"}},[t._v("#")]),t._v(" DefaultDataPoint")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("DefaultDataPoint")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("defaultDataPoint")]),t._v("][]")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-8"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3332",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3332"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"doughnutdatapoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#doughnutdatapoint"}},[t._v("#")]),t._v(" DoughnutDataPoint")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("DoughnutDataPoint")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L300",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:300"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"easingfunction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#easingfunction"}},[t._v("#")]),t._v(" EasingFunction")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("EasingFunction")]),t._v(": "),a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("easeInQuad")]),t._v(" | "),a("em",[t._v("easeOutQuad")]),t._v(" | "),a("em",[t._v("easeInOutQuad")]),t._v(" | "),a("em",[t._v("easeInCubic")]),t._v(" | "),a("em",[t._v("easeOutCubic")]),t._v(" | "),a("em",[t._v("easeInOutCubic")]),t._v(" | "),a("em",[t._v("easeInQuart")]),t._v(" | "),a("em",[t._v("easeOutQuart")]),t._v(" | "),a("em",[t._v("easeInOutQuart")]),t._v(" | "),a("em",[t._v("easeInQuint")]),t._v(" | "),a("em",[t._v("easeOutQuint")]),t._v(" | "),a("em",[t._v("easeInOutQuint")]),t._v(" | "),a("em",[t._v("easeInSine")]),t._v(" | "),a("em",[t._v("easeOutSine")]),t._v(" | "),a("em",[t._v("easeInOutSine")]),t._v(" | "),a("em",[t._v("easeInExpo")]),t._v(" | "),a("em",[t._v("easeOutExpo")]),t._v(" | "),a("em",[t._v("easeInOutExpo")]),t._v(" | "),a("em",[t._v("easeInCirc")]),t._v(" | "),a("em",[t._v("easeOutCirc")]),t._v(" | "),a("em",[t._v("easeInOutCirc")]),t._v(" | "),a("em",[t._v("easeInElastic")]),t._v(" | "),a("em",[t._v("easeOutElastic")]),t._v(" | "),a("em",[t._v("easeInOutElastic")]),t._v(" | "),a("em",[t._v("easeInBack")]),t._v(" | "),a("em",[t._v("easeOutBack")]),t._v(" | "),a("em",[t._v("easeInOutBack")]),t._v(" | "),a("em",[t._v("easeInBounce")]),t._v(" | "),a("em",[t._v("easeOutBounce")]),t._v(" | "),a("em",[t._v("easeInOutBounce")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1443",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1443"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"filltarget"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#filltarget"}},[t._v("#")]),t._v(" FillTarget")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("FillTarget")]),t._v(": "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("string")]),t._v(" | { "),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v(" } | "),a("em",[t._v("start")]),t._v(" | "),a("em",[t._v("end")]),t._v(" | "),a("em",[t._v("origin")]),t._v(" | "),a("em",[t._v("stack")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1980",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1980"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"interactionmode"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactionmode"}},[t._v("#")]),t._v(" InteractionMode")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("InteractionMode")]),t._v(": keyof "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionmodemap.html"}},[a("em",[t._v("InteractionModeMap")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L701",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:701"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"interactionmodefunction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactionmodefunction"}},[t._v("#")]),t._v(" InteractionModeFunction")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("InteractionModeFunction")]),t._v(": ("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v(", "),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("options")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[a("em",[t._v("InteractionOptions")])]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v(") => "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[a("em",[t._v("InteractionItem")])]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"type-declaration-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-4"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("▸ ("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v(", "),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("options")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[a("em",[t._v("InteractionOptions")])]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[a("em",[t._v("InteractionItem")])]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("e")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[a("em",[t._v("InteractionOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[a("em",[t._v("InteractionItem")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L663",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:663"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"layoutposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#layoutposition"}},[t._v("#")]),t._v(" LayoutPosition")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LayoutPosition")]),t._v(": "),a("em",[t._v("left")]),t._v(" | "),a("em",[t._v("top")]),t._v(" | "),a("em",[t._v("right")]),t._v(" | "),a("em",[t._v("bottom")]),t._v(" | "),a("em",[t._v("center")]),t._v(" | "),a("em",[t._v("chartArea")]),t._v(" | { [scaleId: string]: "),a("em",[t._v("number")]),t._v("; }")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L3",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:3"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linecontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linecontroller"}},[t._v("#")]),t._v(" LineController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LineController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L211",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:211"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linearscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linearscale"}},[t._v("#")]),t._v(" LinearScale")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LinearScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-9"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#linearscaleoptions"}},[a("em",[t._v("LinearScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#linearscaleoptions"}},[a("em",[t._v("LinearScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2907",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2907"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linearscaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linearscaleoptions"}},[t._v("#")]),t._v(" LinearScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LinearScaleOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[a("em",[t._v("CartesianScaleOptions")])]),t._v(" & { "),a("code",[t._v("beginAtZero")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("grace?")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("suggestedMax?")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("suggestedMin?")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("ticks")]),t._v(": { "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("format")]),t._v(": Intl.NumberFormatOptions ; "),a("code",[t._v("maxTicksLimit")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("precision")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("stepSize")]),t._v(": "),a("em",[t._v("number")]),t._v(" } }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2858",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2858"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"logarithmicscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#logarithmicscale"}},[t._v("#")]),t._v(" LogarithmicScale")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LogarithmicScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-10"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#logarithmicscaleoptions"}},[a("em",[t._v("LogarithmicScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#logarithmicscaleoptions"}},[a("em",[t._v("LogarithmicScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2932",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2932"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"logarithmicscaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#logarithmicscaleoptions"}},[t._v("#")]),t._v(" LogarithmicScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LogarithmicScaleOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[a("em",[t._v("CartesianScaleOptions")])]),t._v(" & { "),a("code",[t._v("suggestedMax?")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("suggestedMin?")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("ticks")]),t._v(": { "),a("code",[t._v("format")]),t._v(": Intl.NumberFormatOptions } }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2913",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2913"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"overrides"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#overrides"}},[t._v("#")]),t._v(" Overrides")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("Overrides")]),t._v(': { [key in ChartType]: CoreChartOptions & ElementChartOptions & PluginChartOptions & DatasetChartOptions & ScaleChartOptions & ChartTypeRegistry[key]["chartOptions"]}')]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L641",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:641"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseddatatype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseddatatype"}},[t._v("#")]),t._v(" ParsedDataType")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ParsedDataType")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("parsedDataType")]),t._v("]")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-11"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3334",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3334"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"pieanimationoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pieanimationoptions"}},[t._v("#")]),t._v(" PieAnimationOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PieAnimationOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/doughnutanimationoptions.html"}},[a("em",[t._v("DoughnutAnimationOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L319",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:319"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"piecontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#piecontroller"}},[t._v("#")]),t._v(" PieController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PieController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#doughnutcontroller"}},[a("em",[t._v("DoughnutController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L323",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:323"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"piecontrollerchartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#piecontrollerchartoptions"}},[t._v("#")]),t._v(" PieControllerChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PieControllerChartOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerchartoptions.html"}},[a("em",[t._v("DoughnutControllerChartOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L318",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:318"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"piecontrollerdatasetoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#piecontrollerdatasetoptions"}},[t._v("#")]),t._v(" PieControllerDatasetOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PieControllerDatasetOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[a("em",[t._v("DoughnutControllerDatasetOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L317",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:317"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"piedatapoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#piedatapoint"}},[t._v("#")]),t._v(" PieDataPoint")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PieDataPoint")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#doughnutdatapoint"}},[a("em",[t._v("DoughnutDataPoint")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L321",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:321"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"pointstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" PointStyle")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PointStyle")]),t._v(": "),a("em",[t._v("circle")]),t._v(" | "),a("em",[t._v("cross")]),t._v(" | "),a("em",[t._v("crossRot")]),t._v(" | "),a("em",[t._v("dash")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("rect")]),t._v(" | "),a("em",[t._v("rectRounded")]),t._v(" | "),a("em",[t._v("rectRot")]),t._v(" | "),a("em",[t._v("star")]),t._v(" | "),a("em",[t._v("triangle")]),t._v(" | HTMLImageElement | HTMLCanvasElement")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1734",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1734"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"polarareaanimationoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#polarareaanimationoptions"}},[t._v("#")]),t._v(" PolarAreaAnimationOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PolarAreaAnimationOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/doughnutanimationoptions.html"}},[a("em",[t._v("DoughnutAnimationOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L337",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:337"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radarcontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radarcontroller"}},[t._v("#")]),t._v(" RadarController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("RadarController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L386",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:386"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radarcontrollerchartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radarcontrollerchartoptions"}},[t._v("#")]),t._v(" RadarControllerChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("RadarControllerChartOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[a("em",[t._v("LineControllerChartOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L384",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:384"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radiallinearscaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radiallinearscaleoptions"}},[t._v("#")]),t._v(" RadialLinearScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("RadialLinearScaleOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(" & { "),a("code",[t._v("angleLines")]),t._v(": { "),a("code",[t._v("borderDash")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(" ; "),a("code",[t._v("borderDashOffset")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(" ; "),a("code",[t._v("color")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[a("em",[t._v("ScriptableScaleContext")])]),t._v("> ; "),a("code",[t._v("display")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("lineWidth")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(" } ; "),a("code",[t._v("animate")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("beginAtZero")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("grid")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/gridlineoptions.html"}},[a("em",[t._v("GridLineOptions")])]),t._v(" ; "),a("code",[t._v("max")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("min")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("pointLabels")]),t._v(": { "),a("code",[t._v("backdropColor")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[a("em",[t._v("ScriptableScaleContext")])]),t._v("> ; "),a("code",[t._v("backdropPadding")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(" ; "),a("code",[t._v("callback")]),t._v(": ("),a("code",[t._v("label")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(") => "),a("em",[t._v("string")]),t._v(" ; "),a("code",[t._v("color")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[a("em",[t._v("ScriptableScaleContext")])]),t._v("> ; "),a("code",[t._v("display")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("font")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[a("em",[t._v("FontSpec")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[a("em",[t._v("ScriptableScaleContext")])]),t._v("> } ; "),a("code",[t._v("suggestedMax")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("suggestedMin")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tickoptions.html"}},[a("em",[t._v("TickOptions")])]),t._v(" & { "),a("code",[t._v("backdropColor")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[a("em",[t._v("ScriptableScaleContext")])]),t._v("> ; "),a("code",[t._v("backdropPadding")]),t._v(": "),a("em",[t._v("number")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v(" ; "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("format")]),t._v(": Intl.NumberFormatOptions ; "),a("code",[t._v("maxTicksLimit")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("precision")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("showLabelBackdrop")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(" ; "),a("code",[t._v("stepSize")]),t._v(": "),a("em",[t._v("number")]),t._v(" } }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3029",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3029"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scalechartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scalechartoptions"}},[t._v("#")]),t._v(" ScaleChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScaleChartOptions")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-12"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-5"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3317",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3317"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scaleoptions"}},[t._v("#")]),t._v(" ScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScaleOptions")]),t._v(": "),a("em",[t._v("DeepPartial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#scaleoptionsbytype"}},[a("em",[t._v("ScaleOptionsByType")])]),t._v(">")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-13"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TScale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scaletype"}},[a("em",[t._v("ScaleType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scaletype"}},[a("em",[t._v("ScaleType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3309",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3309"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scaleoptionsbytype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scaleoptionsbytype"}},[t._v("#")]),t._v(" ScaleOptionsByType")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScaleOptionsByType")]),t._v(': { [key in ScaleType]: object & ScaleTypeRegistry[key]["options"]}[TScale]')]),t._v(" "),a("h4",{attrs:{id:"type-parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-14"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TScale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scaletype"}},[a("em",[t._v("ScaleType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scaletype"}},[a("em",[t._v("ScaleType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3304",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3304"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scaletype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scaletype"}},[t._v("#")]),t._v(" ScaleType")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScaleType")]),t._v(": keyof "),a("RouterLink",{attrs:{to:"/api/interfaces/scaletyperegistry.html"}},[a("em",[t._v("ScaleTypeRegistry")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3206",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3206"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scattercontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scattercontroller"}},[t._v("#")]),t._v(" ScatterController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScatterController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#linecontroller"}},[a("em",[t._v("LineController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L226",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:226"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scattercontrollerchartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scattercontrollerchartoptions"}},[t._v("#")]),t._v(" ScatterControllerChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScatterControllerChartOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[a("em",[t._v("LineControllerChartOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L224",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:224"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scattercontrollerdatasetoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scattercontrollerdatasetoptions"}},[t._v("#")]),t._v(" ScatterControllerDatasetOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScatterControllerDatasetOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerdatasetoptions.html"}},[a("em",[t._v("LineControllerDatasetOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L217",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:217"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scriptable"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scriptable"}},[t._v("#")]),t._v(" Scriptable")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("Scriptable")]),t._v(": T | ("),a("code",[t._v("ctx")]),t._v(": TContext) => T")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-15"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TContext")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L34",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:34"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scriptableandarray"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scriptableandarray"}},[t._v("#")]),t._v(" ScriptableAndArray")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScriptableAndArray")]),t._v(": readonly T[] | "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-16"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TContext")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L36",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:36"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scriptableandarrayoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scriptableandarrayoptions"}},[t._v("#")]),t._v(" ScriptableAndArrayOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScriptableAndArrayOptions")]),t._v(": { [P in keyof T]: ScriptableAndArray}")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-17"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TContext")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:37"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scriptableoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scriptableoptions"}},[t._v("#")]),t._v(" ScriptableOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScriptableOptions")]),t._v(": { [P in keyof T]: Scriptable}")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-18"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TContext")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L35",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:35"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"textalign"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#textalign"}},[t._v("#")]),t._v(" TextAlign")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TextAlign")]),t._v(": "),a("em",[t._v("left")]),t._v(" | "),a("em",[t._v("center")]),t._v(" | "),a("em",[t._v("right")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1574",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1574"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timescaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timescaleoptions"}},[t._v("#")]),t._v(" TimeScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TimeScaleOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[a("em",[t._v("CartesianScaleOptions")])]),t._v(" & { "),a("code",[t._v("adapters")]),t._v(": { "),a("code",[t._v("date")]),t._v(": "),a("em",[t._v("unknown")]),t._v(" } ; "),a("code",[t._v("bounds")]),t._v(": "),a("em",[t._v("ticks")]),t._v(" | "),a("em",[t._v("data")]),t._v(" ; "),a("code",[t._v("ticks")]),t._v(": { "),a("code",[t._v("source")]),t._v(": "),a("em",[t._v("labels")]),t._v(" | "),a("em",[t._v("auto")]),t._v(" | "),a("em",[t._v("data")]),t._v(" } ; "),a("code",[t._v("time")]),t._v(": { "),a("code",[t._v("displayFormats")]),t._v(": { [key: string]: "),a("em",[t._v("string")]),t._v("; } ; "),a("code",[t._v("isoWeekday")]),t._v(": "),a("em",[t._v("false")]),t._v(" | "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("minUnit")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v(" ; "),a("code",[t._v("parser")]),t._v(": "),a("em",[t._v("string")]),t._v(" | ("),a("code",[t._v("v")]),t._v(": "),a("em",[t._v("unknown")]),t._v(") => "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("round")]),t._v(": "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v(" ; "),a("code",[t._v("stepSize")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("tooltipFormat")]),t._v(": "),a("em",[t._v("string")]),t._v(" ; "),a("code",[t._v("unit")]),t._v(": "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v(" } }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2938",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2938"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timeseriesscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timeseriesscale"}},[t._v("#")]),t._v(" TimeSeriesScale")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TimeSeriesScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timescale"}},[a("em",[t._v("TimeScale")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-19"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3023",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3023"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timeunit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timeunit"}},[t._v("#")]),t._v(" TimeUnit")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TimeUnit")]),t._v(": "),a("em",[t._v("millisecond")]),t._v(" | "),a("em",[t._v("second")]),t._v(" | "),a("em",[t._v("minute")]),t._v(" | "),a("em",[t._v("hour")]),t._v(" | "),a("em",[t._v("day")]),t._v(" | "),a("em",[t._v("week")]),t._v(" | "),a("em",[t._v("month")]),t._v(" | "),a("em",[t._v("quarter")]),t._v(" | "),a("em",[t._v("year")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/adapters.d.ts#L1",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:1"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipxalignment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipxalignment"}},[t._v("#")]),t._v(" TooltipXAlignment")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TooltipXAlignment")]),t._v(": "),a("em",[t._v("left")]),t._v(" | "),a("em",[t._v("center")]),t._v(" | "),a("em",[t._v("right")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2253",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2253"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipyalignment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipyalignment"}},[t._v("#")]),t._v(" TooltipYAlignment")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TooltipYAlignment")]),t._v(": "),a("em",[t._v("top")]),t._v(" | "),a("em",[t._v("center")]),t._v(" | "),a("em",[t._v("bottom")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2254",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2254"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"transitionspec"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#transitionspec"}},[t._v("#")]),t._v(" TransitionSpec")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TransitionSpec")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-20"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-6"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animation")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#animationspec"}},[a("em",[t._v("AnimationSpec")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animations")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#animationsspec"}},[a("em",[t._v("AnimationsSpec")])]),t._v("")],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1523",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1523"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"transitionsspec"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#transitionsspec"}},[t._v("#")]),t._v(" TransitionsSpec")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TransitionsSpec")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-21"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-7"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1528",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1528"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatemode"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatemode"}},[t._v("#")]),t._v(" UpdateMode")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("UpdateMode")]),t._v(": keyof "),a("em",[t._v("typeof")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/enums/updatemodeenum.html"}},[a("em",[t._v("UpdateModeEnum")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L525",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:525"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"variables"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#variables"}},[t._v("#")]),t._v(" Variables")]),t._v(" "),a("h3",{attrs:{id:"arcelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#arcelement"}},[t._v("#")]),t._v(" ArcElement")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ArcElement")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#arcelement"}},[a("em",[t._v("ArcElement")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/arcprops.html"}},[a("em",[t._v("ArcProps")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[a("em",[t._v("ArcOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1644",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1644"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"barcontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barcontroller-2"}},[t._v("#")]),t._v(" BarController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("BarController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#barcontroller"}},[a("em",[t._v("BarController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L140",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:140"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"barelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barelement"}},[t._v("#")]),t._v(" BarElement")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("BarElement")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#barelement"}},[a("em",[t._v("BarElement")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/barprops.html"}},[a("em",[t._v("BarProps")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[a("em",[t._v("BarOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1885",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1885"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bubblecontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bubblecontroller-2"}},[t._v("#")]),t._v(" BubbleController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("BubbleController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#bubblecontroller"}},[a("em",[t._v("BubbleController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L168",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:168"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"categoryscale-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#categoryscale-2"}},[t._v("#")]),t._v(" CategoryScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("CategoryScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#categoryscale"}},[a("em",[t._v("CategoryScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#categoryscaleoptions"}},[a("em",[t._v("CategoryScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2853",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2853"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"doughnutcontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#doughnutcontroller"}},[t._v("#")]),t._v(" DoughnutController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("DoughnutController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#doughnutcontroller"}},[a("em",[t._v("DoughnutController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L312",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:312"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"element"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#element"}},[t._v("#")]),t._v(" Element")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("Element")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-8"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("prototype")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L27",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:27"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"filler"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#filler"}},[t._v("#")]),t._v(" Filler")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Filler")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1974",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1974"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"interaction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interaction"}},[t._v("#")]),t._v(" Interaction")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Interaction")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-9"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("modes")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/interactionmodemap.html"}},[a("em",[t._v("InteractionModeMap")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L703",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:703"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"legend"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#legend"}},[t._v("#")]),t._v(" Legend")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Legend")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2004",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2004"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linecontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linecontroller-2"}},[t._v("#")]),t._v(" LineController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("LineController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#linecontroller"}},[a("em",[t._v("LineController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L212",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:212"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"lineelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#lineelement"}},[t._v("#")]),t._v(" LineElement")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("LineElement")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#lineelement"}},[a("em",[t._v("LineElement")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/lineprops.html"}},[a("em",[t._v("LineProps")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[a("em",[t._v("LineOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1724",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1724"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linearscale-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linearscale-2"}},[t._v("#")]),t._v(" LinearScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("LinearScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#linearscale"}},[a("em",[t._v("LinearScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#linearscaleoptions"}},[a("em",[t._v("LinearScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2908",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2908"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"logarithmicscale-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#logarithmicscale-2"}},[t._v("#")]),t._v(" LogarithmicScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("LogarithmicScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#logarithmicscale"}},[a("em",[t._v("LogarithmicScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#logarithmicscaleoptions"}},[a("em",[t._v("LogarithmicScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2933",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2933"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"piecontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#piecontroller-2"}},[t._v("#")]),t._v(" PieController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("PieController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#doughnutcontroller"}},[a("em",[t._v("DoughnutController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L324",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:324"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"pointelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pointelement"}},[t._v("#")]),t._v(" PointElement")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("PointElement")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#pointelement"}},[a("em",[t._v("PointElement")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[a("em",[t._v("PointProps")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[a("em",[t._v("PointOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1836",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1836"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"polarareacontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#polarareacontroller"}},[t._v("#")]),t._v(" PolarAreaController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("PolarAreaController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#polarareacontroller"}},[a("em",[t._v("PolarAreaController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L352",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:352"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radarcontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radarcontroller-2"}},[t._v("#")]),t._v(" RadarController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("RadarController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#radarcontroller"}},[a("em",[t._v("RadarController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L387",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:387"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radiallinearscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radiallinearscale"}},[t._v("#")]),t._v(" RadialLinearScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("RadialLinearScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#radiallinearscale"}},[a("em",[t._v("RadialLinearScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#radiallinearscaleoptions"}},[a("em",[t._v("RadialLinearScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3174",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3174"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scattercontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scattercontroller-2"}},[t._v("#")]),t._v(" ScatterController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ScatterController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#linecontroller"}},[a("em",[t._v("LineController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L227",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:227"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[t._v("#")]),t._v(" Ticks")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Ticks")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-10"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("formatters")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("formatters.logarithmic")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[object Object]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("formatters.numeric")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[object Object]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("formatters.values")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[object Object]")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1268",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1268"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timescale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timescale"}},[t._v("#")]),t._v(" TimeScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("TimeScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timescale"}},[a("em",[t._v("TimeScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3018",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3018"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timeseriesscale-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timeseriesscale-2"}},[t._v("#")]),t._v(" TimeSeriesScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("TimeSeriesScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeseriesscale"}},[a("em",[t._v("TimeSeriesScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3024",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3024"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"title"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" Title")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Title")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2212",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2212"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltip"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltip"}},[t._v("#")]),t._v(" Tooltip")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Tooltip")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])]),t._v(" & { "),a("code",[t._v("positioners")]),t._v(": { [key: string]: ("),a("code",[t._v("items")]),t._v(": readonly "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("[], "),a("code",[t._v("eventPosition")]),t._v(": { "),a("code",[t._v("x")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("y")]),t._v(": "),a("em",[t._v("number")]),t._v(" }) => { "),a("code",[t._v("x")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("y")]),t._v(": "),a("em",[t._v("number")]),t._v(" }; } ; "),a("code",[t._v("getActiveElements")]),t._v(": () => "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[] ; "),a("code",[t._v("setActiveElements")]),t._v(": ("),a("code",[t._v("active")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[a("em",[t._v("ActiveDataPoint")])]),t._v("[], "),a("code",[t._v("eventPosition")]),t._v(": { "),a("code",[t._v("x")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("y")]),t._v(": "),a("em",[t._v("number")]),t._v(" }) => "),a("em",[t._v("void")]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L2332",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2332"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"adapters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#adapters"}},[t._v("#")]),t._v(" _adapters")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("_adapters")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-11"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("_date")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/dateadapter.html"}},[a("em",[t._v("DateAdapter")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/adapters.d.ts#L61",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:61"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"defaults"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defaults"}},[t._v("#")]),t._v(" defaults")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("defaults")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[a("em",[t._v("Defaults")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L651",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:651"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"layouts"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#layouts"}},[t._v("#")]),t._v(" layouts")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("layouts")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-12"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("addBox")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("item")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])]),t._v(") => "),a("em",[t._v("void")])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("configure")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("item")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])]),t._v(", "),a("code",[t._v("options")]),t._v(": { "),a("code",[t._v("fullSize?")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("position?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])]),t._v(" ; "),a("code",[t._v("weight?")]),t._v(": "),a("em",[t._v("number")]),t._v(" }) => "),a("em",[t._v("void")])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("removeBox")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("layoutItem")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])]),t._v(") => "),a("em",[t._v("void")])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("update")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(") => "),a("em",[t._v("void")])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L707",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:707"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"registerables"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#registerables"}},[t._v("#")]),t._v(" registerables")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("registerables")]),t._v(": readonly "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L504",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:504"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"registry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#registry"}},[t._v("#")]),t._v(" registry")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("registry")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/registry.html"}},[a("em",[t._v("Registry")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1060",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1060"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/9.e5e73499.js b/docs/3.1.0/assets/js/9.e5e73499.js deleted file mode 100644 index ba9725f33e..0000000000 --- a/docs/3.1.0/assets/js/9.e5e73499.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{336:function(t,e,a){"use strict";a.r(e);var r=a(7),i=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"chart-js-v3-1-0"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart-js-v3-1-0"}},[t._v("#")]),t._v(" Chart.js - v3.1.0")]),t._v(" "),a("h2",{attrs:{id:"table-of-contents"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#table-of-contents"}},[t._v("#")]),t._v(" Table of contents")]),t._v(" "),a("h3",{attrs:{id:"enumerations"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enumerations"}},[t._v("#")]),t._v(" Enumerations")]),t._v(" "),a("ul",[a("li",[a("RouterLink",{attrs:{to:"/api/enums/decimationalgorithm.html"}},[t._v("DecimationAlgorithm")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/enums/updatemodeenum.html"}},[t._v("UpdateModeEnum")])],1)]),t._v(" "),a("h3",{attrs:{id:"classes"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#classes"}},[t._v("#")]),t._v(" Classes")]),t._v(" "),a("ul",[a("li",[a("RouterLink",{attrs:{to:"/api/classes/animation.html"}},[t._v("Animation")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/animations.html"}},[t._v("Animations")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/animator.html"}},[t._v("Animator")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/baseplatform.html"}},[t._v("BasePlatform")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/basicplatform.html"}},[t._v("BasicPlatform")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[t._v("Chart")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[t._v("DatasetController")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/domplatform.html"}},[t._v("DomPlatform")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1)]),t._v(" "),a("h3",{attrs:{id:"interfaces"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interfaces"}},[t._v("#")]),t._v(" Interfaces")]),t._v(" "),a("ul",[a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[t._v("ActiveDataPoint")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[t._v("ActiveElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[t._v("AnimationEvent")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/arcborderradius.html"}},[t._v("ArcBorderRadius")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/arcelement.html"}},[t._v("ArcElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/archoveroptions.html"}},[t._v("ArcHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[t._v("ArcOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/arcprops.html"}},[t._v("ArcProps")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/barcontrollerchartoptions.html"}},[t._v("BarControllerChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/barcontrollerdatasetoptions.html"}},[t._v("BarControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/barelement.html"}},[t._v("BarElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/barhoveroptions.html"}},[t._v("BarHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[t._v("BarOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/barprops.html"}},[t._v("BarProps")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/borderradius.html"}},[t._v("BorderRadius")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/bubblecontrollerdatasetoptions.html"}},[t._v("BubbleControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[t._v("BubbleDataPoint")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[t._v("CartesianScaleOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaletyperegistry.html"}},[t._v("CartesianScaleTypeRegistry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[t._v("ChartArea")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[t._v("ChartComponent")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartconfiguration.html"}},[t._v("ChartConfiguration")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartdata.html"}},[t._v("ChartData")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartdatasetproperties.html"}},[t._v("ChartDatasetProperties")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[t._v("ChartEvent")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[t._v("ChartMeta")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[t._v("ChartTypeRegistry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/commonhoveroptions.html"}},[t._v("CommonHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/complexfilltarget.html"}},[t._v("ComplexFillTarget")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[t._v("CoreChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/coreinteractionoptions.html"}},[t._v("CoreInteractionOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[t._v("CoreScaleOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/datasetcontrollerchartcomponent.html"}},[t._v("DatasetControllerChartComponent")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/dateadapter.html"}},[t._v("DateAdapter")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[t._v("Defaults")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutanimationoptions.html"}},[t._v("DoughnutAnimationOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontroller.html"}},[t._v("DoughnutController")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerchartoptions.html"}},[t._v("DoughnutControllerChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/element.html"}},[t._v("Element")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[t._v("ElementChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/elementoptionsbytype.html"}},[t._v("ElementOptionsByType")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/extendedplugin.html"}},[t._v("ExtendedPlugin")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/fillercontrollerdatasetoptions.html"}},[t._v("FillerControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/filleroptions.html"}},[t._v("FillerOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[t._v("FontSpec")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/gridlineoptions.html"}},[t._v("GridLineOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[t._v("InteractionItem")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/interactionmodemap.html"}},[t._v("InteractionModeMap")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[t._v("InteractionOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[t._v("LayoutItem")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/legendelement.html"}},[t._v("LegendElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/legenditem.html"}},[t._v("LegendItem")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/legendoptions.html"}},[t._v("LegendOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[t._v("LineControllerChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerdatasetoptions.html"}},[t._v("LineControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/lineelement.html"}},[t._v("LineElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/linehoveroptions.html"}},[t._v("LineHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[t._v("LineOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/lineprops.html"}},[t._v("LineProps")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/parsingoptions.html"}},[t._v("ParsingOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[t._v("Plugin")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[t._v("PluginChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pluginoptionsbytype.html"}},[t._v("PluginOptionsByType")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[t._v("Point")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointelement.html"}},[t._v("PointElement")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointhoveroptions.html"}},[t._v("PointHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[t._v("PointOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointprefixedhoveroptions.html"}},[t._v("PointPrefixedHoverOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointprefixedoptions.html"}},[t._v("PointPrefixedOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[t._v("PointProps")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/polarareacontroller.html"}},[t._v("PolarAreaController")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/polarareacontrollerchartoptions.html"}},[t._v("PolarAreaControllerChartOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/polarareacontrollerdatasetoptions.html"}},[t._v("PolarAreaControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/radarcontrollerdatasetoptions.html"}},[t._v("RadarControllerDatasetOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/radiallinearscale.html"}},[t._v("RadialLinearScale")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/radialscaletyperegistry.html"}},[t._v("RadialScaleTypeRegistry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/registry.html"}},[t._v("Registry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scaletyperegistry.html"}},[t._v("ScaleTypeRegistry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[t._v("ScatterDataPoint")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[t._v("ScriptableContext")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[t._v("ScriptableLineSegmentContext")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[t._v("ScriptableScaleContext")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/scriptabletooltipcontext.html"}},[t._v("ScriptableTooltipContext")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/segment.html"}},[t._v("Segment")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[t._v("Tick")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tickoptions.html"}},[t._v("TickOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/timescale.html"}},[t._v("TimeScale")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/titleoptions.html"}},[t._v("TitleOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipcallbacks.html"}},[t._v("TooltipCallbacks")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipitem.html"}},[t._v("TooltipItem")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tooltiplabelstyle.html"}},[t._v("TooltipLabelStyle")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipmodel.html"}},[t._v("TooltipModel")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/tooltipoptions.html"}},[t._v("TooltipOptions")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/typedregistry.html"}},[t._v("TypedRegistry")])],1),t._v(" "),a("li",[a("RouterLink",{attrs:{to:"/api/interfaces/visualelement.html"}},[t._v("VisualElement")])],1)]),t._v(" "),a("h2",{attrs:{id:"type-aliases"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-aliases"}},[t._v("#")]),t._v(" Type aliases")]),t._v(" "),a("h3",{attrs:{id:"animationoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animationoptions"}},[t._v("#")]),t._v(" AnimationOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("AnimationOptions")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animation")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/#animationspec"}},[a("em",[t._v("AnimationSpec")])]),t._v(" & { "),a("code",[t._v("onComplete?")]),t._v(": ("),a("code",[t._v("this")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v(", "),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v(" ; "),a("code",[t._v("onProgress?")]),t._v(": ("),a("code",[t._v("this")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v(", "),a("code",[t._v("event")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[a("em",[t._v("AnimationEvent")])]),t._v(") => "),a("em",[t._v("void")]),t._v(" }")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animations")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#animationsspec"}},[a("em",[t._v("AnimationsSpec")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("transitions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[a("em",[t._v("TransitionsSpec")])]),t._v("")],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1532",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1532"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"animationspec"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animationspec"}},[t._v("#")]),t._v(" AnimationSpec")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("AnimationSpec")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-2"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Description")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("delay")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Delay before starting the animations. "),a("strong",[a("code",[t._v("default")])]),t._v(" 0")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("duration")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("The number of milliseconds an animation takes. "),a("strong",[a("code",[t._v("default")])]),t._v(" 1000")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("easing")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#easingfunction"}},[a("em",[t._v("EasingFunction")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[a("em",[t._v("ScriptableContext")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("Easing function to use "),a("strong",[a("code",[t._v("default")])]),t._v(" 'easeOutQuart'")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("loop")]),t._v("?")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("If set to true, the animations loop endlessly. "),a("strong",[a("code",[t._v("default")])]),t._v(" false")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1476",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1476"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"animationsspec"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#animationsspec"}},[t._v("#")]),t._v(" AnimationsSpec")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("AnimationsSpec")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-3"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1501",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1501"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"barcontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barcontroller"}},[t._v("#")]),t._v(" BarController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("BarController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L139",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:139"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bubblecontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bubblecontroller"}},[t._v("#")]),t._v(" BubbleController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("BubbleController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L167",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:167"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"categoryscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#categoryscale"}},[t._v("#")]),t._v(" CategoryScale")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("CategoryScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#categoryscaleoptions"}},[a("em",[t._v("CategoryScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#categoryscaleoptions"}},[a("em",[t._v("CategoryScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2852",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2852"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"categoryscaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#categoryscaleoptions"}},[t._v("#")]),t._v(" CategoryScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("CategoryScaleOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[a("em",[t._v("CartesianScaleOptions")])]),t._v(" & { "),a("code",[t._v("labels")]),t._v(": "),a("em",[t._v("string")]),t._v("[] | "),a("em",[t._v("string")]),t._v("[][] ; "),a("code",[t._v("max")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("min")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2846",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2846"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chartcomponentlike"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chartcomponentlike"}},[t._v("#")]),t._v(" ChartComponentLike")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ChartComponentLike")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v("[] | { [key: string]: "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v("; }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1034",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1034"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chartdataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chartdataset"}},[t._v("#")]),t._v(" ChartDataset")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ChartDataset")]),t._v(": "),a("em",[t._v("DeepPartial")]),t._v('<{ [key in ChartType]: object & ChartTypeRegistry[key]["datasetOptions"]}[TType]> & '),a("RouterLink",{attrs:{to:"/api/interfaces/chartdatasetproperties.html"}},[a("em",[t._v("ChartDatasetProperties")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TData")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("-")]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("TType[]")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3341",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3341"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chartitem"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chartitem"}},[t._v("#")]),t._v(" ChartItem")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ChartItem")]),t._v(": "),a("em",[t._v("string")]),t._v(" | CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D | HTMLCanvasElement | OffscreenCanvas | { "),a("code",[t._v("canvas")]),t._v(": HTMLCanvasElement | OffscreenCanvas } | "),a("em",[t._v("ArrayLike")]),t._v("")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L506",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:506"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chartoptions"}},[t._v("#")]),t._v(" ChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ChartOptions")]),t._v(": "),a("em",[t._v("DeepPartial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corechartoptions.html"}},[a("em",[t._v("CoreChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/elementchartoptions.html"}},[a("em",[t._v("ElementChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/pluginchartoptions.html"}},[a("em",[t._v("PluginChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#datasetchartoptions"}},[a("em",[t._v("DatasetChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/#scalechartoptions"}},[a("em",[t._v("ScaleChartOptions")])]),t._v(" & "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("chartOptions")]),t._v("]>")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3323",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3323"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"charttype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#charttype"}},[t._v("#")]),t._v(" ChartType")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ChartType")]),t._v(": keyof "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3302",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3302"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"color"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#color"}},[t._v("#")]),t._v(" Color")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("Color")]),t._v(": "),a("em",[t._v("string")]),t._v(" | CanvasGradient | CanvasPattern")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/color.d.ts#L1",target:"_blank",rel:"noopener noreferrer"}},[t._v("color.d.ts:1"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"datasetchartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#datasetchartoptions"}},[t._v("#")]),t._v(" DatasetChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("DatasetChartOptions")]),t._v(": { [key in TType]: object}")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-7"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3311",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3311"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"decimationoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#decimationoptions"}},[t._v("#")]),t._v(" DecimationOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("DecimationOptions")]),t._v(": LttbDecimationOptions | MinMaxDecimationOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1972",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1972"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"defaultdatapoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defaultdatapoint"}},[t._v("#")]),t._v(" DefaultDataPoint")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("DefaultDataPoint")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("defaultDataPoint")]),t._v("][]")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-8"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3332",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3332"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"doughnutdatapoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#doughnutdatapoint"}},[t._v("#")]),t._v(" DoughnutDataPoint")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("DoughnutDataPoint")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L300",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:300"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"easingfunction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#easingfunction"}},[t._v("#")]),t._v(" EasingFunction")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("EasingFunction")]),t._v(": "),a("em",[t._v("linear")]),t._v(" | "),a("em",[t._v("easeInQuad")]),t._v(" | "),a("em",[t._v("easeOutQuad")]),t._v(" | "),a("em",[t._v("easeInOutQuad")]),t._v(" | "),a("em",[t._v("easeInCubic")]),t._v(" | "),a("em",[t._v("easeOutCubic")]),t._v(" | "),a("em",[t._v("easeInOutCubic")]),t._v(" | "),a("em",[t._v("easeInQuart")]),t._v(" | "),a("em",[t._v("easeOutQuart")]),t._v(" | "),a("em",[t._v("easeInOutQuart")]),t._v(" | "),a("em",[t._v("easeInQuint")]),t._v(" | "),a("em",[t._v("easeOutQuint")]),t._v(" | "),a("em",[t._v("easeInOutQuint")]),t._v(" | "),a("em",[t._v("easeInSine")]),t._v(" | "),a("em",[t._v("easeOutSine")]),t._v(" | "),a("em",[t._v("easeInOutSine")]),t._v(" | "),a("em",[t._v("easeInExpo")]),t._v(" | "),a("em",[t._v("easeOutExpo")]),t._v(" | "),a("em",[t._v("easeInOutExpo")]),t._v(" | "),a("em",[t._v("easeInCirc")]),t._v(" | "),a("em",[t._v("easeOutCirc")]),t._v(" | "),a("em",[t._v("easeInOutCirc")]),t._v(" | "),a("em",[t._v("easeInElastic")]),t._v(" | "),a("em",[t._v("easeOutElastic")]),t._v(" | "),a("em",[t._v("easeInOutElastic")]),t._v(" | "),a("em",[t._v("easeInBack")]),t._v(" | "),a("em",[t._v("easeOutBack")]),t._v(" | "),a("em",[t._v("easeInOutBack")]),t._v(" | "),a("em",[t._v("easeInBounce")]),t._v(" | "),a("em",[t._v("easeOutBounce")]),t._v(" | "),a("em",[t._v("easeInOutBounce")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1443",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1443"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"filltarget"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#filltarget"}},[t._v("#")]),t._v(" FillTarget")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("FillTarget")]),t._v(": "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("string")]),t._v(" | { "),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v(" } | "),a("em",[t._v("start")]),t._v(" | "),a("em",[t._v("end")]),t._v(" | "),a("em",[t._v("origin")]),t._v(" | "),a("em",[t._v("stack")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1980",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1980"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"interactionmode"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactionmode"}},[t._v("#")]),t._v(" InteractionMode")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("InteractionMode")]),t._v(": keyof "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionmodemap.html"}},[a("em",[t._v("InteractionModeMap")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L701",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:701"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"interactionmodefunction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interactionmodefunction"}},[t._v("#")]),t._v(" InteractionModeFunction")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("InteractionModeFunction")]),t._v(": ("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v(", "),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("options")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[a("em",[t._v("InteractionOptions")])]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v(") => "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[a("em",[t._v("InteractionItem")])]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"type-declaration-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-4"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("▸ ("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v(", "),a("code",[t._v("e")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])]),t._v(", "),a("code",[t._v("options")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[a("em",[t._v("InteractionOptions")])]),t._v(", "),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[a("em",[t._v("InteractionItem")])]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chart")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("e")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartevent.html"}},[a("em",[t._v("ChartEvent")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/interactionoptions.html"}},[a("em",[t._v("InteractionOptions")])])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/interactionitem.html"}},[a("em",[t._v("InteractionItem")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L663",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:663"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"layoutposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#layoutposition"}},[t._v("#")]),t._v(" LayoutPosition")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LayoutPosition")]),t._v(": "),a("em",[t._v("left")]),t._v(" | "),a("em",[t._v("top")]),t._v(" | "),a("em",[t._v("right")]),t._v(" | "),a("em",[t._v("bottom")]),t._v(" | "),a("em",[t._v("center")]),t._v(" | "),a("em",[t._v("chartArea")]),t._v(" | { [scaleId: string]: "),a("em",[t._v("number")]),t._v("; }")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L3",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:3"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linecontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linecontroller"}},[t._v("#")]),t._v(" LineController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LineController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L211",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:211"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linearscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linearscale"}},[t._v("#")]),t._v(" LinearScale")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LinearScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-9"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#linearscaleoptions"}},[a("em",[t._v("LinearScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#linearscaleoptions"}},[a("em",[t._v("LinearScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2907",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2907"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linearscaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linearscaleoptions"}},[t._v("#")]),t._v(" LinearScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LinearScaleOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[a("em",[t._v("CartesianScaleOptions")])]),t._v(" & { "),a("code",[t._v("beginAtZero")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("grace?")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("suggestedMax?")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("suggestedMin?")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("ticks")]),t._v(": { "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("format")]),t._v(": Intl.NumberFormatOptions ; "),a("code",[t._v("maxTicksLimit")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("precision")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("stepSize")]),t._v(": "),a("em",[t._v("number")]),t._v(" } }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2858",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2858"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"logarithmicscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#logarithmicscale"}},[t._v("#")]),t._v(" LogarithmicScale")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LogarithmicScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-10"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#logarithmicscaleoptions"}},[a("em",[t._v("LogarithmicScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#logarithmicscaleoptions"}},[a("em",[t._v("LogarithmicScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2932",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2932"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"logarithmicscaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#logarithmicscaleoptions"}},[t._v("#")]),t._v(" LogarithmicScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("LogarithmicScaleOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[a("em",[t._v("CartesianScaleOptions")])]),t._v(" & { "),a("code",[t._v("suggestedMax?")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("suggestedMin?")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("ticks")]),t._v(": { "),a("code",[t._v("format")]),t._v(": Intl.NumberFormatOptions } }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2913",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2913"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"overrides"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#overrides"}},[t._v("#")]),t._v(" Overrides")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("Overrides")]),t._v(': { [key in ChartType]: CoreChartOptions & ElementChartOptions & PluginChartOptions & DatasetChartOptions & ScaleChartOptions & ChartTypeRegistry[key]["chartOptions"]}')]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L641",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:641"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseddatatype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseddatatype"}},[t._v("#")]),t._v(" ParsedDataType")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ParsedDataType")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/charttyperegistry.html"}},[a("em",[t._v("ChartTypeRegistry")])]),t._v("[TType]["),a("em",[t._v("parsedDataType")]),t._v("]")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-11"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3334",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3334"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"pieanimationoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pieanimationoptions"}},[t._v("#")]),t._v(" PieAnimationOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PieAnimationOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/doughnutanimationoptions.html"}},[a("em",[t._v("DoughnutAnimationOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L319",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:319"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"piecontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#piecontroller"}},[t._v("#")]),t._v(" PieController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PieController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#doughnutcontroller"}},[a("em",[t._v("DoughnutController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L323",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:323"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"piecontrollerchartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#piecontrollerchartoptions"}},[t._v("#")]),t._v(" PieControllerChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PieControllerChartOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerchartoptions.html"}},[a("em",[t._v("DoughnutControllerChartOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L318",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:318"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"piecontrollerdatasetoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#piecontrollerdatasetoptions"}},[t._v("#")]),t._v(" PieControllerDatasetOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PieControllerDatasetOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[a("em",[t._v("DoughnutControllerDatasetOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L317",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:317"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"piedatapoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#piedatapoint"}},[t._v("#")]),t._v(" PieDataPoint")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PieDataPoint")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#doughnutdatapoint"}},[a("em",[t._v("DoughnutDataPoint")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L321",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:321"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"pointstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" PointStyle")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PointStyle")]),t._v(": "),a("em",[t._v("circle")]),t._v(" | "),a("em",[t._v("cross")]),t._v(" | "),a("em",[t._v("crossRot")]),t._v(" | "),a("em",[t._v("dash")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("rect")]),t._v(" | "),a("em",[t._v("rectRounded")]),t._v(" | "),a("em",[t._v("rectRot")]),t._v(" | "),a("em",[t._v("star")]),t._v(" | "),a("em",[t._v("triangle")]),t._v(" | HTMLImageElement | HTMLCanvasElement")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1734",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1734"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"polarareaanimationoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#polarareaanimationoptions"}},[t._v("#")]),t._v(" PolarAreaAnimationOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("PolarAreaAnimationOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/doughnutanimationoptions.html"}},[a("em",[t._v("DoughnutAnimationOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L337",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:337"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radarcontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radarcontroller"}},[t._v("#")]),t._v(" RadarController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("RadarController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/datasetcontroller.html"}},[a("em",[t._v("DatasetController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L386",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:386"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radarcontrollerchartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radarcontrollerchartoptions"}},[t._v("#")]),t._v(" RadarControllerChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("RadarControllerChartOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[a("em",[t._v("LineControllerChartOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L384",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:384"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radiallinearscaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radiallinearscaleoptions"}},[t._v("#")]),t._v(" RadialLinearScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("RadialLinearScaleOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(" & { "),a("code",[t._v("angleLines")]),t._v(": { "),a("code",[t._v("borderDash")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(" ; "),a("code",[t._v("borderDashOffset")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(" ; "),a("code",[t._v("color")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[a("em",[t._v("ScriptableScaleContext")])]),t._v("> ; "),a("code",[t._v("display")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("lineWidth")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(" } ; "),a("code",[t._v("animate")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("beginAtZero")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("grid")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/gridlineoptions.html"}},[a("em",[t._v("GridLineOptions")])]),t._v(" ; "),a("code",[t._v("max")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("min")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("pointLabels")]),t._v(": { "),a("code",[t._v("backdropColor")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[a("em",[t._v("ScriptableScaleContext")])]),t._v("> ; "),a("code",[t._v("backdropPadding")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(" ; "),a("code",[t._v("callback")]),t._v(": ("),a("code",[t._v("label")]),t._v(": "),a("em",[t._v("string")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(") => "),a("em",[t._v("string")]),t._v(" ; "),a("code",[t._v("color")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[a("em",[t._v("ScriptableScaleContext")])]),t._v("> ; "),a("code",[t._v("display")]),t._v(": "),a("em",[t._v("boolean")]),t._v(" ; "),a("code",[t._v("font")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/fontspec.html"}},[a("em",[t._v("FontSpec")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[a("em",[t._v("ScriptableScaleContext")])]),t._v("> } ; "),a("code",[t._v("suggestedMax")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("suggestedMin")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tickoptions.html"}},[a("em",[t._v("TickOptions")])]),t._v(" & { "),a("code",[t._v("backdropColor")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#color"}},[a("em",[t._v("Color")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/scriptablescalecontext.html"}},[a("em",[t._v("ScriptableScaleContext")])]),t._v("> ; "),a("code",[t._v("backdropPadding")]),t._v(": "),a("em",[t._v("number")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v(" ; "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("format")]),t._v(": Intl.NumberFormatOptions ; "),a("code",[t._v("maxTicksLimit")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("precision")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("showLabelBackdrop")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v(" ; "),a("code",[t._v("stepSize")]),t._v(": "),a("em",[t._v("number")]),t._v(" } }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3029",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3029"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scalechartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scalechartoptions"}},[t._v("#")]),t._v(" ScaleChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScaleChartOptions")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-12"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-5"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scales")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3317",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3317"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scaleoptions"}},[t._v("#")]),t._v(" ScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScaleOptions")]),t._v(": "),a("em",[t._v("DeepPartial")]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#scaleoptionsbytype"}},[a("em",[t._v("ScaleOptionsByType")])]),t._v(">")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-13"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TScale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scaletype"}},[a("em",[t._v("ScaleType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scaletype"}},[a("em",[t._v("ScaleType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3309",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3309"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scaleoptionsbytype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scaleoptionsbytype"}},[t._v("#")]),t._v(" ScaleOptionsByType")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScaleOptionsByType")]),t._v(': { [key in ScaleType]: object & ScaleTypeRegistry[key]["options"]}[TScale]')]),t._v(" "),a("h4",{attrs:{id:"type-parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-14"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TScale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scaletype"}},[a("em",[t._v("ScaleType")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#scaletype"}},[a("em",[t._v("ScaleType")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3304",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3304"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scaletype"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scaletype"}},[t._v("#")]),t._v(" ScaleType")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScaleType")]),t._v(": keyof "),a("RouterLink",{attrs:{to:"/api/interfaces/scaletyperegistry.html"}},[a("em",[t._v("ScaleTypeRegistry")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3206",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3206"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scattercontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scattercontroller"}},[t._v("#")]),t._v(" ScatterController")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScatterController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#linecontroller"}},[a("em",[t._v("LineController")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L226",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:226"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scattercontrollerchartoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scattercontrollerchartoptions"}},[t._v("#")]),t._v(" ScatterControllerChartOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScatterControllerChartOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerchartoptions.html"}},[a("em",[t._v("LineControllerChartOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L224",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:224"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scattercontrollerdatasetoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scattercontrollerdatasetoptions"}},[t._v("#")]),t._v(" ScatterControllerDatasetOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScatterControllerDatasetOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/linecontrollerdatasetoptions.html"}},[a("em",[t._v("LineControllerDatasetOptions")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L217",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:217"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scriptable"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scriptable"}},[t._v("#")]),t._v(" Scriptable")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("Scriptable")]),t._v(": T | ("),a("code",[t._v("ctx")]),t._v(": TContext) => T")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-15"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TContext")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L34",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:34"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scriptableandarray"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scriptableandarray"}},[t._v("#")]),t._v(" ScriptableAndArray")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScriptableAndArray")]),t._v(": readonly T[] | "),a("RouterLink",{attrs:{to:"/api/#scriptable"}},[a("em",[t._v("Scriptable")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-16"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TContext")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L36",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:36"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scriptableandarrayoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scriptableandarrayoptions"}},[t._v("#")]),t._v(" ScriptableAndArrayOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScriptableAndArrayOptions")]),t._v(": { [P in keyof T]: ScriptableAndArray}")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-17"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TContext")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:37"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scriptableoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scriptableoptions"}},[t._v("#")]),t._v(" ScriptableOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("ScriptableOptions")]),t._v(": { [P in keyof T]: Scriptable}")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-18"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("T")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TContext")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L35",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:35"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"textalign"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#textalign"}},[t._v("#")]),t._v(" TextAlign")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TextAlign")]),t._v(": "),a("em",[t._v("left")]),t._v(" | "),a("em",[t._v("center")]),t._v(" | "),a("em",[t._v("right")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1574",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1574"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timescaleoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timescaleoptions"}},[t._v("#")]),t._v(" TimeScaleOptions")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TimeScaleOptions")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/cartesianscaleoptions.html"}},[a("em",[t._v("CartesianScaleOptions")])]),t._v(" & { "),a("code",[t._v("adapters")]),t._v(": { "),a("code",[t._v("date")]),t._v(": "),a("em",[t._v("unknown")]),t._v(" } ; "),a("code",[t._v("bounds")]),t._v(": "),a("em",[t._v("ticks")]),t._v(" | "),a("em",[t._v("data")]),t._v(" ; "),a("code",[t._v("ticks")]),t._v(": { "),a("code",[t._v("source")]),t._v(": "),a("em",[t._v("labels")]),t._v(" | "),a("em",[t._v("auto")]),t._v(" | "),a("em",[t._v("data")]),t._v(" } ; "),a("code",[t._v("time")]),t._v(": { "),a("code",[t._v("displayFormats")]),t._v(": { [key: string]: "),a("em",[t._v("string")]),t._v("; } ; "),a("code",[t._v("isoWeekday")]),t._v(": "),a("em",[t._v("false")]),t._v(" | "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("minUnit")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v(" ; "),a("code",[t._v("parser")]),t._v(": "),a("em",[t._v("string")]),t._v(" | ("),a("code",[t._v("v")]),t._v(": "),a("em",[t._v("unknown")]),t._v(") => "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("round")]),t._v(": "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v(" ; "),a("code",[t._v("stepSize")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("tooltipFormat")]),t._v(": "),a("em",[t._v("string")]),t._v(" ; "),a("code",[t._v("unit")]),t._v(": "),a("em",[t._v("false")]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/#timeunit"}},[a("em",[t._v("TimeUnit")])]),t._v(" } }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2938",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2938"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timeseriesscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timeseriesscale"}},[t._v("#")]),t._v(" TimeSeriesScale")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TimeSeriesScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timescale"}},[a("em",[t._v("TimeScale")])]),t._v("")],1),t._v(" "),a("h4",{attrs:{id:"type-parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-19"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3023",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3023"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timeunit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timeunit"}},[t._v("#")]),t._v(" TimeUnit")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TimeUnit")]),t._v(": "),a("em",[t._v("millisecond")]),t._v(" | "),a("em",[t._v("second")]),t._v(" | "),a("em",[t._v("minute")]),t._v(" | "),a("em",[t._v("hour")]),t._v(" | "),a("em",[t._v("day")]),t._v(" | "),a("em",[t._v("week")]),t._v(" | "),a("em",[t._v("month")]),t._v(" | "),a("em",[t._v("quarter")]),t._v(" | "),a("em",[t._v("year")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/adapters.d.ts#L1",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:1"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipxalignment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipxalignment"}},[t._v("#")]),t._v(" TooltipXAlignment")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TooltipXAlignment")]),t._v(": "),a("em",[t._v("left")]),t._v(" | "),a("em",[t._v("center")]),t._v(" | "),a("em",[t._v("right")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2253",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2253"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipyalignment"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipyalignment"}},[t._v("#")]),t._v(" TooltipYAlignment")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TooltipYAlignment")]),t._v(": "),a("em",[t._v("top")]),t._v(" | "),a("em",[t._v("center")]),t._v(" | "),a("em",[t._v("bottom")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2254",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2254"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"transitionspec"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#transitionspec"}},[t._v("#")]),t._v(" TransitionSpec")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TransitionSpec")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-20"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-6"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animation")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#animationspec"}},[a("em",[t._v("AnimationSpec")])]),t._v("")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("animations")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#animationsspec"}},[a("em",[t._v("AnimationsSpec")])]),t._v("")],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1523",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1523"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"transitionsspec"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#transitionsspec"}},[t._v("#")]),t._v(" TransitionsSpec")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("TransitionsSpec")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-21"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("TType")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#charttype"}},[a("em",[t._v("ChartType")])])],1)])])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-7"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1528",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1528"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatemode"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatemode"}},[t._v("#")]),t._v(" UpdateMode")]),t._v(" "),a("p",[t._v("Ƭ "),a("strong",[t._v("UpdateMode")]),t._v(": keyof "),a("em",[t._v("typeof")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/enums/updatemodeenum.html"}},[a("em",[t._v("UpdateModeEnum")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L525",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:525"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"variables"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#variables"}},[t._v("#")]),t._v(" Variables")]),t._v(" "),a("h3",{attrs:{id:"arcelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#arcelement"}},[t._v("#")]),t._v(" ArcElement")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ArcElement")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#arcelement"}},[a("em",[t._v("ArcElement")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/arcprops.html"}},[a("em",[t._v("ArcProps")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/arcoptions.html"}},[a("em",[t._v("ArcOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1644",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1644"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"barcontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barcontroller-2"}},[t._v("#")]),t._v(" BarController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("BarController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#barcontroller"}},[a("em",[t._v("BarController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L140",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:140"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"barelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#barelement"}},[t._v("#")]),t._v(" BarElement")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("BarElement")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#barelement"}},[a("em",[t._v("BarElement")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/barprops.html"}},[a("em",[t._v("BarProps")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/baroptions.html"}},[a("em",[t._v("BarOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1885",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1885"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bubblecontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bubblecontroller-2"}},[t._v("#")]),t._v(" BubbleController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("BubbleController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#bubblecontroller"}},[a("em",[t._v("BubbleController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L168",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:168"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"categoryscale-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#categoryscale-2"}},[t._v("#")]),t._v(" CategoryScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("CategoryScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#categoryscale"}},[a("em",[t._v("CategoryScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#categoryscaleoptions"}},[a("em",[t._v("CategoryScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2853",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2853"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"doughnutcontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#doughnutcontroller"}},[t._v("#")]),t._v(" DoughnutController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("DoughnutController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#doughnutcontroller"}},[a("em",[t._v("DoughnutController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L312",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:312"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"element"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#element"}},[t._v("#")]),t._v(" Element")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("Element")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-8"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("prototype")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L27",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:27"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"filler"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#filler"}},[t._v("#")]),t._v(" Filler")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Filler")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1974",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1974"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"interaction"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interaction"}},[t._v("#")]),t._v(" Interaction")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Interaction")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-9"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("modes")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/interactionmodemap.html"}},[a("em",[t._v("InteractionModeMap")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L703",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:703"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"legend"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#legend"}},[t._v("#")]),t._v(" Legend")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Legend")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2004",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2004"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linecontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linecontroller-2"}},[t._v("#")]),t._v(" LineController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("LineController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#linecontroller"}},[a("em",[t._v("LineController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L212",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:212"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"lineelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#lineelement"}},[t._v("#")]),t._v(" LineElement")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("LineElement")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#lineelement"}},[a("em",[t._v("LineElement")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/lineprops.html"}},[a("em",[t._v("LineProps")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/lineoptions.html"}},[a("em",[t._v("LineOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1724",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1724"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linearscale-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linearscale-2"}},[t._v("#")]),t._v(" LinearScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("LinearScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#linearscale"}},[a("em",[t._v("LinearScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#linearscaleoptions"}},[a("em",[t._v("LinearScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2908",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2908"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"logarithmicscale-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#logarithmicscale-2"}},[t._v("#")]),t._v(" LogarithmicScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("LogarithmicScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#logarithmicscale"}},[a("em",[t._v("LogarithmicScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#logarithmicscaleoptions"}},[a("em",[t._v("LogarithmicScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2933",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2933"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"piecontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#piecontroller-2"}},[t._v("#")]),t._v(" PieController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("PieController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#doughnutcontroller"}},[a("em",[t._v("DoughnutController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L324",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:324"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"pointelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#pointelement"}},[t._v("#")]),t._v(" PointElement")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("PointElement")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#pointelement"}},[a("em",[t._v("PointElement")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/pointprops.html"}},[a("em",[t._v("PointProps")])]),t._v(", "),a("RouterLink",{attrs:{to:"/api/interfaces/pointoptions.html"}},[a("em",[t._v("PointOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1836",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1836"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"polarareacontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#polarareacontroller"}},[t._v("#")]),t._v(" PolarAreaController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("PolarAreaController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#polarareacontroller"}},[a("em",[t._v("PolarAreaController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L352",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:352"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radarcontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radarcontroller-2"}},[t._v("#")]),t._v(" RadarController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("RadarController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#radarcontroller"}},[a("em",[t._v("RadarController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L387",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:387"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"radiallinearscale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radiallinearscale"}},[t._v("#")]),t._v(" RadialLinearScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("RadialLinearScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#radiallinearscale"}},[a("em",[t._v("RadialLinearScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#radiallinearscaleoptions"}},[a("em",[t._v("RadialLinearScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3174",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3174"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"scattercontroller-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#scattercontroller-2"}},[t._v("#")]),t._v(" ScatterController")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ScatterController")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#linecontroller"}},[a("em",[t._v("LineController")])]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L227",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:227"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[t._v("#")]),t._v(" Ticks")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Ticks")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-10"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("formatters")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("formatters.logarithmic")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[object Object]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("formatters.numeric")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[object Object]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("formatters.values")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[object Object]")])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1268",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1268"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timescale"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timescale"}},[t._v("#")]),t._v(" TimeScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("TimeScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timescale"}},[a("em",[t._v("TimeScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3018",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3018"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"timeseriesscale-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#timeseriesscale-2"}},[t._v("#")]),t._v(" TimeSeriesScale")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("TimeSeriesScale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartcomponent.html"}},[a("em",[t._v("ChartComponent")])]),t._v(" & { "),a("code",[t._v("prototype")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#timeseriesscale"}},[a("em",[t._v("TimeSeriesScale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#timescaleoptions"}},[a("em",[t._v("TimeScaleOptions")])]),t._v("> }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3024",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3024"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"title"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#title"}},[t._v("#")]),t._v(" Title")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Title")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2212",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2212"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltip"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltip"}},[t._v("#")]),t._v(" Tooltip")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("Tooltip")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/plugin.html"}},[a("em",[t._v("Plugin")])]),t._v(" & { "),a("code",[t._v("positioners")]),t._v(": { [key: string]: ("),a("code",[t._v("items")]),t._v(": readonly "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("[], "),a("code",[t._v("eventPosition")]),t._v(": { "),a("code",[t._v("x")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("y")]),t._v(": "),a("em",[t._v("number")]),t._v(" }) => { "),a("code",[t._v("x")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("y")]),t._v(": "),a("em",[t._v("number")]),t._v(" }; } ; "),a("code",[t._v("getActiveElements")]),t._v(": () => "),a("RouterLink",{attrs:{to:"/api/interfaces/activeelement.html"}},[a("em",[t._v("ActiveElement")])]),t._v("[] ; "),a("code",[t._v("setActiveElements")]),t._v(": ("),a("code",[t._v("active")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/activedatapoint.html"}},[a("em",[t._v("ActiveDataPoint")])]),t._v("[], "),a("code",[t._v("eventPosition")]),t._v(": { "),a("code",[t._v("x")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("y")]),t._v(": "),a("em",[t._v("number")]),t._v(" }) => "),a("em",[t._v("void")]),t._v(" }")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L2332",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:2332"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"adapters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#adapters"}},[t._v("#")]),t._v(" _adapters")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("_adapters")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-11"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("_date")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/dateadapter.html"}},[a("em",[t._v("DateAdapter")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/adapters.d.ts#L61",target:"_blank",rel:"noopener noreferrer"}},[t._v("adapters.d.ts:61"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"defaults"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#defaults"}},[t._v("#")]),t._v(" defaults")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("defaults")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/defaults.html"}},[a("em",[t._v("Defaults")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L651",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:651"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"layouts"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#layouts"}},[t._v("#")]),t._v(" layouts")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("layouts")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration-12"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("addBox")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("item")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])]),t._v(") => "),a("em",[t._v("void")])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("configure")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("item")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])]),t._v(", "),a("code",[t._v("options")]),t._v(": { "),a("code",[t._v("fullSize?")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("position?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])]),t._v(" ; "),a("code",[t._v("weight?")]),t._v(": "),a("em",[t._v("number")]),t._v(" }) => "),a("em",[t._v("void")])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("removeBox")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("layoutItem")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/layoutitem.html"}},[a("em",[t._v("LayoutItem")])]),t._v(") => "),a("em",[t._v("void")])],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("update")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("("),a("code",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>, "),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(") => "),a("em",[t._v("void")])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L707",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:707"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"registerables"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#registerables"}},[t._v("#")]),t._v(" registerables")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("registerables")]),t._v(": readonly "),a("RouterLink",{attrs:{to:"/api/#chartcomponentlike"}},[a("em",[t._v("ChartComponentLike")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L504",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:504"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"registry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#registry"}},[t._v("#")]),t._v(" registry")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Const")]),t._v(" "),a("strong",[t._v("registry")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/registry.html"}},[a("em",[t._v("Registry")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1060",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1060"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/90.71dfc67f.js b/docs/3.1.0/assets/js/90.71dfc67f.js new file mode 100644 index 0000000000..49c3de7858 --- /dev/null +++ b/docs/3.1.0/assets/js/90.71dfc67f.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[90],{413:function(t,e,r){"use strict";r.r(e);var o=r(7),n=Object(o.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-pointoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointoptions"}},[t._v("#")]),t._v(" Interface: PointOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[r("em",[t._v("CommonElementOptions")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("PointOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#backgroundcolor"}},[t._v("backgroundColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#bordercolor"}},[t._v("borderColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#borderwidth"}},[t._v("borderWidth")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hitradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hitradius"}},[t._v("#")]),t._v(" hitRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hitRadius")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Extra radius added to point radius for hit detection.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 1")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1758",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1758"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])])],1),t._v(" "),r("p",[t._v("Point style")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'circle;")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1763",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1763"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"radius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#radius"}},[t._v("#")]),t._v(" radius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("radius")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Point radius")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 3")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1753",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1753"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[t._v("#")]),t._v(" rotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rotation")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Point rotation (in degrees).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1768",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1768"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/90.d8d0c996.js b/docs/3.1.0/assets/js/90.d8d0c996.js deleted file mode 100644 index a546a47cd0..0000000000 --- a/docs/3.1.0/assets/js/90.d8d0c996.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[90],{416:function(t,e,r){"use strict";r.r(e);var o=r(7),n=Object(o.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-pointoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointoptions"}},[t._v("#")]),t._v(" Interface: PointOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[r("em",[t._v("CommonElementOptions")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("PointOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#backgroundcolor"}},[t._v("backgroundColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#bordercolor"}},[t._v("borderColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html"}},[t._v("CommonElementOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/commonelementoptions.html#borderwidth"}},[t._v("borderWidth")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hitradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hitradius"}},[t._v("#")]),t._v(" hitRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hitRadius")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Extra radius added to point radius for hit detection.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 1")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1758",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1758"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])])],1),t._v(" "),r("p",[t._v("Point style")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'circle;")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1763",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1763"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"radius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#radius"}},[t._v("#")]),t._v(" radius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("radius")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Point radius")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 3")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1753",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1753"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[t._v("#")]),t._v(" rotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rotation")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Point rotation (in degrees).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1768",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1768"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/91.2a2bd3d2.js b/docs/3.1.0/assets/js/91.2a2bd3d2.js new file mode 100644 index 0000000000..c379918eed --- /dev/null +++ b/docs/3.1.0/assets/js/91.2a2bd3d2.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[91],{415:function(r,e,t){"use strict";t.r(e);var o=t(7),n=Object(o.a)({},(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[t("h1",{attrs:{id:"interface-pointprefixedhoveroptions"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointprefixedhoveroptions"}},[r._v("#")]),r._v(" Interface: PointPrefixedHoverOptions")]),r._v(" "),t("h2",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),t("h3",{attrs:{id:"pointhoverbackgroundcolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbackgroundcolor"}},[r._v("#")]),r._v(" pointHoverBackgroundColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("pointHoverBackgroundColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Point background color when hovered.")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1814",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1814"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"pointhoverbordercolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbordercolor"}},[r._v("#")]),r._v(" pointHoverBorderColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("pointHoverBorderColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Point border color when hovered.")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1818",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1818"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"pointhoverborderwidth"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverborderwidth"}},[r._v("#")]),r._v(" pointHoverBorderWidth")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("pointHoverBorderWidth")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("Border width of point when hovered.")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1822",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1822"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"pointhoverradius"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverradius"}},[r._v("#")]),r._v(" pointHoverRadius")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("pointHoverRadius")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("The radius of the point when hovered.")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1826",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1826"),t("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/91.a1147597.js b/docs/3.1.0/assets/js/91.a1147597.js deleted file mode 100644 index 04d2c499d5..0000000000 --- a/docs/3.1.0/assets/js/91.a1147597.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[91],{417:function(r,e,t){"use strict";t.r(e);var o=t(7),n=Object(o.a)({},(function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[t("h1",{attrs:{id:"interface-pointprefixedhoveroptions"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointprefixedhoveroptions"}},[r._v("#")]),r._v(" Interface: PointPrefixedHoverOptions")]),r._v(" "),t("h2",{attrs:{id:"properties"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[r._v("#")]),r._v(" Properties")]),r._v(" "),t("h3",{attrs:{id:"pointhoverbackgroundcolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbackgroundcolor"}},[r._v("#")]),r._v(" pointHoverBackgroundColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("pointHoverBackgroundColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Point background color when hovered.")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1814",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1814"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"pointhoverbordercolor"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbordercolor"}},[r._v("#")]),r._v(" pointHoverBorderColor")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("pointHoverBorderColor")]),r._v(": "),t("RouterLink",{attrs:{to:"/api/#color"}},[t("em",[r._v("Color")])])],1),r._v(" "),t("p",[r._v("Point border color when hovered.")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1818",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1818"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"pointhoverborderwidth"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverborderwidth"}},[r._v("#")]),r._v(" pointHoverBorderWidth")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("pointHoverBorderWidth")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("Border width of point when hovered.")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1822",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1822"),t("OutboundLink")],1)]),r._v(" "),t("hr"),r._v(" "),t("h3",{attrs:{id:"pointhoverradius"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverradius"}},[r._v("#")]),r._v(" pointHoverRadius")]),r._v(" "),t("p",[r._v("• "),t("strong",[r._v("pointHoverRadius")]),r._v(": "),t("em",[r._v("number")])]),r._v(" "),t("p",[r._v("The radius of the point when hovered.")]),r._v(" "),t("p",[r._v("Defined in: "),t("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1826",target:"_blank",rel:"noopener noreferrer"}},[r._v("index.esm.d.ts:1826"),t("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/92.1906a5fc.js b/docs/3.1.0/assets/js/92.1906a5fc.js new file mode 100644 index 0000000000..7c7378322a --- /dev/null +++ b/docs/3.1.0/assets/js/92.1906a5fc.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[92],{416:function(t,e,r){"use strict";r.r(e);var o=r(7),n=Object(o.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-pointprefixedoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointprefixedoptions"}},[t._v("#")]),t._v(" Interface: PointPrefixedOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"pointbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbackgroundcolor"}},[t._v("#")]),t._v(" pointBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("The fill color for points.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1783",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1783"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbordercolor"}},[t._v("#")]),t._v(" pointBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("The border color for points.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1787",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1787"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointborderwidth"}},[t._v("#")]),t._v(" pointBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderWidth")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The width of the point border in pixels.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1791",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1791"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhitradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhitradius"}},[t._v("#")]),t._v(" pointHitRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHitRadius")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The pixel size of the non-displayed point that reacts to mouse events.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1795",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1795"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointradius"}},[t._v("#")]),t._v(" pointRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRadius")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The radius of the point shape. If set to 0, the point is not rendered.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1799",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1799"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointrotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointrotation"}},[t._v("#")]),t._v(" pointRotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRotation")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The rotation of the point in degrees.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1803",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1803"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])])],1),t._v(" "),r("p",[t._v("Style of the point.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1807",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1807"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/92.210e2a60.js b/docs/3.1.0/assets/js/92.210e2a60.js deleted file mode 100644 index 1d0ebc6b78..0000000000 --- a/docs/3.1.0/assets/js/92.210e2a60.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[92],{418:function(t,e,r){"use strict";r.r(e);var o=r(7),n=Object(o.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-pointprefixedoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointprefixedoptions"}},[t._v("#")]),t._v(" Interface: PointPrefixedOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"pointbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbackgroundcolor"}},[t._v("#")]),t._v(" pointBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("The fill color for points.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1783",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1783"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbordercolor"}},[t._v("#")]),t._v(" pointBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])])],1),t._v(" "),r("p",[t._v("The border color for points.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1787",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1787"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointborderwidth"}},[t._v("#")]),t._v(" pointBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderWidth")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The width of the point border in pixels.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1791",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1791"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhitradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhitradius"}},[t._v("#")]),t._v(" pointHitRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHitRadius")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The pixel size of the non-displayed point that reacts to mouse events.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1795",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1795"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointradius"}},[t._v("#")]),t._v(" pointRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRadius")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The radius of the point shape. If set to 0, the point is not rendered.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1799",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1799"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointrotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointrotation"}},[t._v("#")]),t._v(" pointRotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRotation")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The rotation of the point in degrees.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1803",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1803"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])])],1),t._v(" "),r("p",[t._v("Style of the point.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1807",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1807"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/93.7195b379.js b/docs/3.1.0/assets/js/93.040a325e.js similarity index 50% rename from docs/3.1.0/assets/js/93.7195b379.js rename to docs/3.1.0/assets/js/93.040a325e.js index a7986dada3..fe7eb5522b 100644 --- a/docs/3.1.0/assets/js/93.7195b379.js +++ b/docs/3.1.0/assets/js/93.040a325e.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[93],{419:function(t,e,r){"use strict";r.r(e);var s=r(7),a=Object(s.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-pointprops"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointprops"}},[t._v("#")]),t._v(" Interface: PointProps")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("x")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1730",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1730"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("y")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1731",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1731"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[93],{417:function(t,e,r){"use strict";r.r(e);var s=r(7),a=Object(s.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-pointprops"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-pointprops"}},[t._v("#")]),t._v(" Interface: PointProps")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"x"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("x")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1730",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1730"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"y"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("y")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1731",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1731"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/94.432699f0.js b/docs/3.1.0/assets/js/94.432699f0.js deleted file mode 100644 index 0b5004e5f4..0000000000 --- a/docs/3.1.0/assets/js/94.432699f0.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[94],{420:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-polarareacontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-polarareacontroller"}},[t._v("#")]),t._v(" Interface: PolarAreaController")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#doughnutcontroller"}},[a("em",[t._v("DoughnutController")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("PolarAreaController")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"cachedmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cachedmeta"}},[t._v("#")]),t._v(" _cachedMeta")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("_cachedMeta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Inherited from: DoughnutController._cachedMeta")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L537",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:537"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.chart")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L535",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:535"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"enableoptionsharing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enableoptionsharing"}},[t._v("#")]),t._v(" enableOptionSharing")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("enableOptionSharing")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.enableOptionSharing")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L538",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:538"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"index"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("index")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.index")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L536",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:536"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"innerradius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#innerradius"}},[t._v("#")]),t._v(" innerRadius")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("innerRadius")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.innerRadius")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L303",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:303"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"offsetx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offsetx"}},[t._v("#")]),t._v(" offsetX")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("offsetX")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.offsetX")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L305",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:305"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"offsety"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offsety"}},[t._v("#")]),t._v(" offsetY")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("offsetY")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.offsetY")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L306",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:306"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"outerradius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#outerradius"}},[t._v("#")]),t._v(" outerRadius")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("outerRadius")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.outerRadius")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L304",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:304"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"addelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addelements"}},[t._v("#")]),t._v(" addElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addElements")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.addElements")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L554",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:554"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"applystack"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#applystack"}},[t._v("#")]),t._v(" applyStack")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("applyStack")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[]): "),a("em",[t._v("number")])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.applyStack")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L590",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:590"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildorupdateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildorupdateelements"}},[t._v("#")]),t._v(" buildOrUpdateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildOrUpdateElements")]),t._v("("),a("code",[t._v("resetNewElements?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("resetNewElements?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.buildOrUpdateElements")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L555",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:555"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatecircumference"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatecircumference"}},[t._v("#")]),t._v(" calculateCircumference")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateCircumference")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.calculateCircumference")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L309",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:309"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatetotal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatetotal"}},[t._v("#")]),t._v(" calculateTotal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateTotal")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.calculateTotal")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L308",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:308"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.configure")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L552",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:552"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"countvisibleelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#countvisibleelements"}},[t._v("#")]),t._v(" countVisibleElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("countVisibleElements")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L350",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:350"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.draw")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L547",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:547"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getallparsedvalues"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getallparsedvalues"}},[t._v("#")]),t._v(" getAllParsedValues")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getAllParsedValues")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("number")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getAllParsedValues")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L541",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:541"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdataset"}},[t._v("#")]),t._v(" getDataset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDataset")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getDataset")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L549",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:549"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelandvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelandvalue"}},[t._v("#")]),t._v(" getLabelAndValue")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getLabelAndValue")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("label")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getLabelAndValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L542",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:542"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaxoverflow"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaxoverflow"}},[t._v("#")]),t._v(" getMaxOverflow")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMaxOverflow")]),t._v("(): "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getMaxOverflow")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L546",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:546"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmeta"}},[t._v("#")]),t._v(" getMeta")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMeta")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getMeta")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L550",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:550"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("canStack?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getMinMax")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L597",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:597"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getparsed"}},[t._v("#")]),t._v(" getParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getParsed")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")]),t._v(" | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v(" | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getParsed")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L589",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:589"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getscaleforid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getscaleforid"}},[t._v("#")]),t._v(" getScaleForId")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getScaleForId")]),t._v("("),a("code",[t._v("scaleID")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scaleID")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getScaleForId")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L551",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:551"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getsharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getsharedoptions"}},[t._v("#")]),t._v(" getSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getSharedOptions")]),t._v("("),a("code",[t._v("options")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Utility for checking if the options are shared and should be animated separately.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getSharedOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L564",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:564"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getstyle"}},[t._v("#")]),t._v(" getStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getStyle")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getStyle")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L557",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:557"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"includeoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#includeoptions"}},[t._v("#")]),t._v(" includeOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("includeOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Utility for determining if "),a("code",[t._v("options")]),t._v(" should be included in the updated properties")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.includeOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L569",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:569"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"initialize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#initialize"}},[t._v("#")]),t._v(" initialize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("initialize")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.initialize")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L553",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:553"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linkscales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linkscales"}},[t._v("#")]),t._v(" linkScales")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("linkScales")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.linkScales")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L540",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:540"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.parse")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L585",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:585"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsearraydata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsearraydata"}},[t._v("#")]),t._v(" parseArrayData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseArrayData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.parseArrayData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:587"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseobjectdata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseobjectdata"}},[t._v("#")]),t._v(" parseObjectData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseObjectData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.parseObjectData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:588"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseprimitivedata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseprimitivedata"}},[t._v("#")]),t._v(" parsePrimitiveData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parsePrimitiveData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.parsePrimitiveData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:586"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removehoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removehoverstyle"}},[t._v("#")]),t._v(" removeHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.removeHoverStyle")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" reset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("reset")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.reset")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L548",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:548"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedataelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedataelementoptions"}},[t._v("#")]),t._v(" resolveDataElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDataElementOptions")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.resolveDataElementOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L559",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:559"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedatasetelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedatasetelementoptions"}},[t._v("#")]),t._v(" resolveDatasetElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDatasetElementOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.resolveDatasetElementOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L558",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:558"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"sethoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#sethoverstyle"}},[t._v("#")]),t._v(" setHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.setHoverStyle")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L583",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:583"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.update")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:544"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelement"}},[t._v("#")]),t._v(" updateElement")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateElement")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("properties")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Utility for updating an element with new properties, using animations when appropriate.")]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("properties")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.updateElement")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L575",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:575"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelements"}},[t._v("#")]),t._v(" updateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateElements")]),t._v("("),a("code",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>[]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.updateElements")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:543"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateindex"}},[t._v("#")]),t._v(" updateIndex")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateIndex")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.updateIndex")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L545",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:545"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updaterangefromparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updaterangefromparsed"}},[t._v("#")]),t._v(" updateRangeFromParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateRangeFromParsed")]),t._v("("),a("code",[t._v("range")]),t._v(": { "),a("code",[t._v("max")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("min")]),t._v(": "),a("em",[t._v("number")]),t._v(" }, "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[], "),a("code",[t._v("stack")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("stack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.updateRangeFromParsed")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L591",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:591"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatesharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatesharedoptions"}},[t._v("#")]),t._v(" updateSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateSharedOptions")]),t._v("("),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("newOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Utility to animate the shared options, that are potentially affecting multiple elements.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("newOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.updateSharedOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:581"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/94.e69ba595.js b/docs/3.1.0/assets/js/94.e69ba595.js new file mode 100644 index 0000000000..c22b464b9f --- /dev/null +++ b/docs/3.1.0/assets/js/94.e69ba595.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[94],{418:function(t,e,a){"use strict";a.r(e);var r=a(7),v=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-polarareacontroller"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-polarareacontroller"}},[t._v("#")]),t._v(" Interface: PolarAreaController")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/#doughnutcontroller"}},[a("em",[t._v("DoughnutController")])])],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("PolarAreaController")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"cachedmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#cachedmeta"}},[t._v("#")]),t._v(" _cachedMeta")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("_cachedMeta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Inherited from: DoughnutController._cachedMeta")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L537",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:537"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.chart")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L535",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:535"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"enableoptionsharing"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#enableoptionsharing"}},[t._v("#")]),t._v(" enableOptionSharing")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("enableOptionSharing")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.enableOptionSharing")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L538",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:538"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"index"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#index"}},[t._v("#")]),t._v(" index")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("index")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.index")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L536",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:536"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"innerradius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#innerradius"}},[t._v("#")]),t._v(" innerRadius")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("innerRadius")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.innerRadius")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L303",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:303"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"offsetx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offsetx"}},[t._v("#")]),t._v(" offsetX")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("offsetX")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.offsetX")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L305",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:305"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"offsety"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#offsety"}},[t._v("#")]),t._v(" offsetY")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("offsetY")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.offsetY")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L306",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:306"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"outerradius"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#outerradius"}},[t._v("#")]),t._v(" outerRadius")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("outerRadius")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.outerRadius")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L304",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:304"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"addelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#addelements"}},[t._v("#")]),t._v(" addElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("addElements")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.addElements")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L554",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:554"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"applystack"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#applystack"}},[t._v("#")]),t._v(" applyStack")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("applyStack")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[]): "),a("em",[t._v("number")])],1),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.applyStack")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L590",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:590"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildorupdateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildorupdateelements"}},[t._v("#")]),t._v(" buildOrUpdateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildOrUpdateElements")]),t._v("("),a("code",[t._v("resetNewElements?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("resetNewElements?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.buildOrUpdateElements")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L555",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:555"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatecircumference"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatecircumference"}},[t._v("#")]),t._v(" calculateCircumference")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateCircumference")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.calculateCircumference")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L309",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:309"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatetotal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatetotal"}},[t._v("#")]),t._v(" calculateTotal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateTotal")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.calculateTotal")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L308",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:308"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.configure")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L552",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:552"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"countvisibleelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#countvisibleelements"}},[t._v("#")]),t._v(" countVisibleElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("countVisibleElements")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L350",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:350"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.draw")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L547",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:547"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getallparsedvalues"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getallparsedvalues"}},[t._v("#")]),t._v(" getAllParsedValues")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getAllParsedValues")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">): "),a("em",[t._v("number")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getAllParsedValues")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L541",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:541"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdataset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdataset"}},[t._v("#")]),t._v(" getDataset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDataset")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/#chartdataset"}},[a("em",[t._v("ChartDataset")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[]>")],1),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getDataset")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L549",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:549"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelandvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelandvalue"}},[t._v("#")]),t._v(" getLabelAndValue")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getLabelAndValue")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("label")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getLabelAndValue")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L542",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:542"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmaxoverflow"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmaxoverflow"}},[t._v("#")]),t._v(" getMaxOverflow")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMaxOverflow")]),t._v("(): "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v(" | "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getMaxOverflow")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L546",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:546"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmeta"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmeta"}},[t._v("#")]),t._v(" getMeta")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMeta")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getMeta")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L550",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:550"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("canStack?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getMinMax")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L597",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:597"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getparsed"}},[t._v("#")]),t._v(" getParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getParsed")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")]),t._v(" | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData")]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")]),t._v(" | BarParsedData | CartesianParsedData | BubbleParsedData | RadialParsedData")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getParsed")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L589",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:589"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getscaleforid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getscaleforid"}},[t._v("#")]),t._v(" getScaleForId")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getScaleForId")]),t._v("("),a("code",[t._v("scaleID")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scaleID")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getScaleForId")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L551",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:551"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getsharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getsharedoptions"}},[t._v("#")]),t._v(" getSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("getSharedOptions")]),t._v("("),a("code",[t._v("options")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Utility for checking if the options are shared and should be animated separately.")]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getSharedOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L564",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:564"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getstyle"}},[t._v("#")]),t._v(" getStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getStyle")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("active")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.getStyle")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L557",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:557"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"includeoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#includeoptions"}},[t._v("#")]),t._v(" includeOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("includeOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Utility for determining if "),a("code",[t._v("options")]),t._v(" should be included in the updated properties")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.includeOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L569",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:569"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"initialize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#initialize"}},[t._v("#")]),t._v(" initialize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("initialize")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.initialize")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L553",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:553"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"linkscales"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#linkscales"}},[t._v("#")]),t._v(" linkScales")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("linkScales")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.linkScales")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L540",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:540"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.parse")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L585",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:585"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parsearraydata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parsearraydata"}},[t._v("#")]),t._v(" parseArrayData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseArrayData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.parseArrayData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:587"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseobjectdata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseobjectdata"}},[t._v("#")]),t._v(" parseObjectData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parseObjectData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.parseObjectData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:588"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parseprimitivedata"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parseprimitivedata"}},[t._v("#")]),t._v(" parsePrimitiveData")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("parsePrimitiveData")]),t._v("("),a("code",[t._v("meta")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>, "),a("code",[t._v("data")]),t._v(": "),a("em",[t._v("Record")]),t._v("[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("Record")]),t._v("[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("meta")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("data")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.parsePrimitiveData")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:586"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"removehoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#removehoverstyle"}},[t._v("#")]),t._v(" removeHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("removeHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.removeHoverStyle")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L582",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:582"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"reset"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#reset"}},[t._v("#")]),t._v(" reset")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("reset")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.reset")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L548",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:548"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedataelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedataelementoptions"}},[t._v("#")]),t._v(" resolveDataElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDataElementOptions")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.resolveDataElementOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L559",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:559"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"resolvedatasetelementoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#resolvedatasetelementoptions"}},[t._v("#")]),t._v(" resolveDatasetElementOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("resolveDatasetElementOptions")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Record")]),t._v("")]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.resolveDatasetElementOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L558",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:558"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"sethoverstyle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#sethoverstyle"}},[t._v("#")]),t._v(" setHoverStyle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setHoverStyle")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.setHoverStyle")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L583",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:583"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.update")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:544"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelement"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelement"}},[t._v("#")]),t._v(" updateElement")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateElement")]),t._v("("),a("code",[t._v("element")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("properties")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Utility for updating an element with new properties, using animations when appropriate.")]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("element")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("properties")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.updateElement")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L575",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:575"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateelements"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateelements"}},[t._v("#")]),t._v(" updateElements")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateElements")]),t._v("("),a("code",[t._v("elements")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>[], "),a("code",[t._v("start")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("count")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("elements")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>[]")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("start")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("count")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.updateElements")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:543"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updateindex"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updateindex"}},[t._v("#")]),t._v(" updateIndex")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("updateIndex")]),t._v("("),a("code",[t._v("datasetIndex")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("datasetIndex")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.updateIndex")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L545",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:545"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updaterangefromparsed"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updaterangefromparsed"}},[t._v("#")]),t._v(" updateRangeFromParsed")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateRangeFromParsed")]),t._v("("),a("code",[t._v("range")]),t._v(": { "),a("code",[t._v("max")]),t._v(": "),a("em",[t._v("number")]),t._v(" ; "),a("code",[t._v("min")]),t._v(": "),a("em",[t._v("number")]),t._v(" }, "),a("code",[t._v("scale")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">, "),a("code",[t._v("parsed")]),t._v(": "),a("em",[t._v("unknown")]),t._v("[], "),a("code",[t._v("stack")]),t._v(": "),a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("object")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("range.min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("scale")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/interfaces/corescaleoptions.html"}},[a("em",[t._v("CoreScaleOptions")])]),t._v(">")],1)]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("parsed")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("stack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")]),t._v(" | "),a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.updateRangeFromParsed")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L591",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:591"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"updatesharedoptions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#updatesharedoptions"}},[t._v("#")]),t._v(" updateSharedOptions")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Protected")]),a("strong",[t._v("updateSharedOptions")]),t._v("("),a("code",[t._v("sharedOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v(", "),a("code",[t._v("mode")]),t._v(": "),a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")]),t._v(", "),a("code",[t._v("newOptions")]),t._v(": "),a("em",[t._v("Record")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Utility to animate the shared options, that are potentially affecting multiple elements.")]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("sharedOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("mode")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("resize")]),t._v(" | "),a("em",[t._v("reset")]),t._v(" | "),a("em",[t._v("none")]),t._v(" | "),a("em",[t._v("hide")]),t._v(" | "),a("em",[t._v("show")]),t._v(" | "),a("em",[t._v("normal")]),t._v(" | "),a("em",[t._v("active")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("newOptions")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("Record")]),t._v("")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: DoughnutController.updateSharedOptions")]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L581",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:581"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=v.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/95.9d59b30f.js b/docs/3.1.0/assets/js/95.9d59b30f.js new file mode 100644 index 0000000000..94b69912e6 --- /dev/null +++ b/docs/3.1.0/assets/js/95.9d59b30f.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[95],{419:function(t,e,r){"use strict";r.r(e);var a=r(7),n=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-polarareacontrollerchartoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-polarareacontrollerchartoptions"}},[t._v("#")]),t._v(" Interface: PolarAreaControllerChartOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutanimationoptions.html"}},[r("em",[t._v("DoughnutAnimationOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L346",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:346"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"startangle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#startangle"}},[t._v("#")]),t._v(" startAngle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("startAngle")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Starting angle to draw arcs for the first item in a dataset. In degrees, 0 is at top.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L344",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:344"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/95.a2e1a5ff.js b/docs/3.1.0/assets/js/95.a2e1a5ff.js deleted file mode 100644 index 2501fba54e..0000000000 --- a/docs/3.1.0/assets/js/95.a2e1a5ff.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[95],{421:function(t,e,r){"use strict";r.r(e);var a=r(7),n=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-polarareacontrollerchartoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-polarareacontrollerchartoptions"}},[t._v("#")]),t._v(" Interface: PolarAreaControllerChartOptions")]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutanimationoptions.html"}},[r("em",[t._v("DoughnutAnimationOptions")])])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L346",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:346"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"startangle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#startangle"}},[t._v("#")]),t._v(" startAngle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("startAngle")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Starting angle to draw arcs for the first item in a dataset. In degrees, 0 is at top.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L344",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:344"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=n.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/96.281b52d0.js b/docs/3.1.0/assets/js/96.281b52d0.js new file mode 100644 index 0000000000..16c0123e18 --- /dev/null +++ b/docs/3.1.0/assets/js/96.281b52d0.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[96],{420:function(t,e,r){"use strict";r.r(e);var o=r(7),a=Object(o.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-polarareacontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-polarareacontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: PolarAreaControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[r("em",[t._v("DoughnutControllerDatasetOptions")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("PolarAreaControllerDatasetOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"angle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#angle"}},[t._v("#")]),t._v(" angle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("angle")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Arc angle to cover. - for polar only")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" circumference / (arc count)")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L334",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:334"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("em",[t._v("false")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v("> & { "),r("code",[t._v("onComplete?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" ; "),r("code",[t._v("onProgress?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" }")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#animation"}},[t._v("animation")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#animations"}},[t._v("animations")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#backgroundcolor"}},[t._v("backgroundColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderalign"}},[t._v("#")]),t._v(" borderAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("em",[t._v("center")]),t._v(" | "),r("em",[t._v("inner")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Arc stroke alignment.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#borderalign"}},[t._v("borderAlign")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1624",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1624"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#bordercolor"}},[t._v("borderColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[t._v("#")]),t._v(" borderRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Sets the border radius for arcs")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#borderradius"}},[t._v("borderRadius")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1633",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1633"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#borderwidth"}},[t._v("borderWidth")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"circumference"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#circumference"}},[t._v("#")]),t._v(" circumference")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("circumference")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Sweep to allow arcs to cover.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 360")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#circumference"}},[t._v("circumference")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L242",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:242"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#hoverbackgroundcolor"}},[t._v("hoverBackgroundColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#hoverbordercolor"}},[t._v("hoverBorderColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#hoverborderwidth"}},[t._v("hoverBorderWidth")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoveroffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoveroffset"}},[t._v("#")]),t._v(" hoverOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#hoveroffset"}},[t._v("hoverOffset")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1637",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1637"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"offset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#offset"}},[t._v("#")]),t._v(" offset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("offset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Arc offset (in pixels).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#offset"}},[t._v("offset")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1628",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1628"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[t._v("#")]),t._v(" rotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rotation")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Starting angle to draw this dataset from.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#rotation"}},[t._v("rotation")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L248",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:248"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"transitions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("transitions")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[r("em",[t._v("TransitionsSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#transitions"}},[t._v("transitions")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"weight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("weight")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The relative thickness of the dataset. Providing a value for weight will cause the pie or doughnut dataset to be drawn with a thickness relative to the sum of all the dataset weight values.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 1")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#weight"}},[t._v("weight")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L254",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:254"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/96.4d8361de.js b/docs/3.1.0/assets/js/96.4d8361de.js deleted file mode 100644 index 875838d7df..0000000000 --- a/docs/3.1.0/assets/js/96.4d8361de.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[96],{422:function(t,e,r){"use strict";r.r(e);var o=r(7),a=Object(o.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-polarareacontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-polarareacontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: PolarAreaControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[r("em",[t._v("DoughnutControllerDatasetOptions")])])],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("PolarAreaControllerDatasetOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"angle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#angle"}},[t._v("#")]),t._v(" angle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("angle")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Arc angle to cover. - for polar only")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" circumference / (arc count)")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L334",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:334"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("em",[t._v("false")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v("> & { "),r("code",[t._v("onComplete?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" ; "),r("code",[t._v("onProgress?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" }")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#animation"}},[t._v("animation")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#animations"}},[t._v("animations")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#backgroundcolor"}},[t._v("backgroundColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderalign"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderalign"}},[t._v("#")]),t._v(" borderAlign")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderAlign")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("em",[t._v("center")]),t._v(" | "),r("em",[t._v("inner")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Arc stroke alignment.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#borderalign"}},[t._v("borderAlign")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1624",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1624"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#bordercolor"}},[t._v("borderColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderradius"}},[t._v("#")]),t._v(" borderRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Sets the border radius for arcs")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#borderradius"}},[t._v("borderRadius")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1633",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1633"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#borderwidth"}},[t._v("borderWidth")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"circumference"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#circumference"}},[t._v("#")]),t._v(" circumference")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("circumference")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Sweep to allow arcs to cover.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 360")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#circumference"}},[t._v("circumference")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L242",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:242"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#hoverbackgroundcolor"}},[t._v("hoverBackgroundColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#hoverbordercolor"}},[t._v("hoverBorderColor")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#hoverborderwidth"}},[t._v("hoverBorderWidth")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoveroffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoveroffset"}},[t._v("#")]),t._v(" hoverOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#hoveroffset"}},[t._v("hoverOffset")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1637",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1637"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"offset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#offset"}},[t._v("#")]),t._v(" offset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("offset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptableandarray"}},[r("em",[t._v("ScriptableAndArray")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Arc offset (in pixels).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#offset"}},[t._v("offset")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1628",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1628"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"rotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#rotation"}},[t._v("#")]),t._v(" rotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("rotation")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("Starting angle to draw this dataset from.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#rotation"}},[t._v("rotation")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L248",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:248"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"transitions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("transitions")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[r("em",[t._v("TransitionsSpec")])]),t._v("<"),r("em",[t._v("doughnut")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#transitions"}},[t._v("transitions")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"weight"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("weight")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The relative thickness of the dataset. Providing a value for weight will cause the pie or doughnut dataset to be drawn with a thickness relative to the sum of all the dataset weight values.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 1")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html"}},[t._v("DoughnutControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/doughnutcontrollerdatasetoptions.html#weight"}},[t._v("weight")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L254",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:254"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/97.0f2a709e.js b/docs/3.1.0/assets/js/97.0f2a709e.js deleted file mode 100644 index 1a8d07efe0..0000000000 --- a/docs/3.1.0/assets/js/97.0f2a709e.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[97],{423:function(t,e,r){"use strict";r.r(e);var a=r(7),o=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-radarcontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-radarcontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: RadarControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[r("em",[t._v("ControllerDatasetOptions")])])],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableoptions"}},[r("em",[t._v("ScriptableOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/pointprefixedoptions.html"}},[r("em",[t._v("PointPrefixedOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#animationoptions"}},[r("em",[t._v("AnimationOptions")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">")],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("RadarControllerDatasetOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("em",[t._v("false")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("<"),r("em",[t._v("radar")]),t._v("> & { "),r("code",[t._v("onComplete?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" ; "),r("code",[t._v("onProgress?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" }")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animations")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.backgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercapstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercapstyle"}},[t._v("#")]),t._v(" borderCapStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line cap style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'butt'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderCapStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1656",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1656"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdash"}},[t._v("#")]),t._v(" borderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line dash. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" []")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderDash")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1661",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1661"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdashoffset"}},[t._v("#")]),t._v(" borderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line dash offset. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0.0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderDashOffset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1666",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1666"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderjoinstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderjoinstyle"}},[t._v("#")]),t._v(" borderJoinStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line join style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'miter'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderJoinStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1671",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1671"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"capbezierpoints"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#capbezierpoints"}},[t._v("#")]),t._v(" capBezierPoints")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("capBezierPoints")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("true to keep Bézier control inside the chart, false for no restriction.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.capBezierPoints")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1676",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1676"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"cubicinterpolationmode"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#cubicinterpolationmode"}},[t._v("#")]),t._v(" cubicInterpolationMode")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("cubicInterpolationMode")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("em",[t._v("default")]),t._v(" | "),r("em",[t._v("monotone")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Interpolation mode to apply.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'default'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.cubicInterpolationMode")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1681",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1681"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercapstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercapstyle"}},[t._v("#")]),t._v(" hoverBorderCapStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderCapStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1705",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1705"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdash"}},[t._v("#")]),t._v(" hoverBorderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderDash")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1706",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1706"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdashoffset"}},[t._v("#")]),t._v(" hoverBorderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderDashOffset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1707",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1707"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderjoinstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderjoinstyle"}},[t._v("#")]),t._v(" hoverBorderJoinStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderJoinStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1708",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1708"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbackgroundcolor"}},[t._v("#")]),t._v(" pointBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("The fill color for points.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1783",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1783"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbordercolor"}},[t._v("#")]),t._v(" pointBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("The border color for points.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1787",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1787"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointborderwidth"}},[t._v("#")]),t._v(" pointBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The width of the point border in pixels.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1791",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1791"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhitradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhitradius"}},[t._v("#")]),t._v(" pointHitRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHitRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The pixel size of the non-displayed point that reacts to mouse events.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointHitRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1795",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1795"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbackgroundcolor"}},[t._v("#")]),t._v(" pointHoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Point background color when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointHoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1814",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1814"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbordercolor"}},[t._v("#")]),t._v(" pointHoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Point border color when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointHoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1818",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1818"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverborderwidth"}},[t._v("#")]),t._v(" pointHoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Border width of point when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointHoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1822",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1822"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverradius"}},[t._v("#")]),t._v(" pointHoverRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The radius of the point when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointHoverRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1826",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1826"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointradius"}},[t._v("#")]),t._v(" pointRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The radius of the point shape. If set to 0, the point is not rendered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1799",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1799"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointrotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointrotation"}},[t._v("#")]),t._v(" pointRotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRotation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The rotation of the point in degrees.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointRotation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1803",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1803"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Style of the point.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1807",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1807"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"segment"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#segment"}},[t._v("#")]),t._v(" segment")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("segment")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<{ "),r("code",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v("> ; "),r("code",[t._v("borderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v("> ; "),r("code",[t._v("borderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" }, "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.segment")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1693",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1693"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"showline"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#showline"}},[t._v("#")]),t._v(" showLine")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("showLine")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("If false, the line is not drawn for this dataset.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L381",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:381"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"spangaps"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#spangaps"}},[t._v("#")]),t._v(" spanGaps")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("spanGaps")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("If true, lines will be drawn between points with no or null data. If false, points with NaN data will create a break in the line. Can also be a number specifying the maximum gap length to span. The unit of the value depends on the scale used.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L376",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:376"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stepped"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stepped"}},[t._v("#")]),t._v(" stepped")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stepped")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("true to show the line as a stepped line (tension will be ignored).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.stepped")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1691",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1691"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tension"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tension"}},[t._v("#")]),t._v(" tension")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tension")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Bézier curve tension (0 for no Bézier curves).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.tension")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1686",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1686"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"transitions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("transitions")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[r("em",[t._v("TransitionsSpec")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.transitions")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"xaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xaxisid"}},[t._v("#")]),t._v(" xAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("xAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the x axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L367",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:367"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"yaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yaxisid"}},[t._v("#")]),t._v(" yAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("yAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the y axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L371",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:371"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/97.5181339d.js b/docs/3.1.0/assets/js/97.5181339d.js new file mode 100644 index 0000000000..83451bb596 --- /dev/null +++ b/docs/3.1.0/assets/js/97.5181339d.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[97],{421:function(t,e,r){"use strict";r.r(e);var a=r(7),o=Object(a.a)({},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[r("h1",{attrs:{id:"interface-radarcontrollerdatasetoptions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#interface-radarcontrollerdatasetoptions"}},[t._v("#")]),t._v(" Interface: RadarControllerDatasetOptions")]),t._v(" "),r("h2",{attrs:{id:"hierarchy"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),r("ul",[r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[r("em",[t._v("ControllerDatasetOptions")])])],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#scriptableoptions"}},[r("em",[t._v("ScriptableOptions")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/interfaces/pointprefixedoptions.html"}},[r("em",[t._v("PointPrefixedOptions")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1)]),t._v(" "),r("li",[r("p",[r("RouterLink",{attrs:{to:"/api/#animationoptions"}},[r("em",[t._v("AnimationOptions")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">")],1),t._v(" "),r("p",[t._v("↳ "),r("strong",[t._v("RadarControllerDatasetOptions")])])])]),t._v(" "),r("h2",{attrs:{id:"properties"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),r("h3",{attrs:{id:"animation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animation"}},[t._v("#")]),t._v(" animation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animation")]),t._v(": "),r("em",[t._v("false")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/#animationspec"}},[r("em",[t._v("AnimationSpec")])]),t._v("<"),r("em",[t._v("radar")]),t._v("> & { "),r("code",[t._v("onComplete?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" ; "),r("code",[t._v("onProgress?")]),t._v(": ("),r("code",[t._v("event")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/interfaces/animationevent.html"}},[r("em",[t._v("AnimationEvent")])]),t._v(") => "),r("em",[t._v("void")]),t._v(" }")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1533",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1533"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"animations"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#animations"}},[t._v("#")]),t._v(" animations")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("animations")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#animationsspec"}},[r("em",[t._v("AnimationsSpec")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.animations")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1543",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1543"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"backgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#backgroundcolor"}},[t._v("#")]),t._v(" backgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.backgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1588",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1588"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercapstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercapstyle"}},[t._v("#")]),t._v(" borderCapStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line cap style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'butt'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderCapStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1656",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1656"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"bordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#bordercolor"}},[t._v("#")]),t._v(" borderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1587",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1587"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdash"}},[t._v("#")]),t._v(" borderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line dash. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" []")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderDash")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1661",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1661"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderdashoffset"}},[t._v("#")]),t._v(" borderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line dash offset. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0.0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderDashOffset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1666",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1666"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderjoinstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderjoinstyle"}},[t._v("#")]),t._v(" borderJoinStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Line join style. See MDN.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'miter'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderJoinStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1671",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1671"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"borderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#borderwidth"}},[t._v("#")]),t._v(" borderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.borderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1586",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1586"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"capbezierpoints"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#capbezierpoints"}},[t._v("#")]),t._v(" capBezierPoints")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("capBezierPoints")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("true to keep Bézier control inside the chart, false for no restriction.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" true")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.capBezierPoints")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1676",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1676"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"clip"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#clip"}},[t._v("#")]),t._v(" clip")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("clip")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[r("em",[t._v("ChartArea")])])],1),t._v(" "),r("p",[t._v("How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#clip"}},[t._v("clip")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:64"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"cubicinterpolationmode"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#cubicinterpolationmode"}},[t._v("#")]),t._v(" cubicInterpolationMode")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("cubicInterpolationMode")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("em",[t._v("default")]),t._v(" | "),r("em",[t._v("monotone")]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Interpolation mode to apply.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'default'")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.cubicInterpolationMode")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1681",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1681"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hidden"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hidden"}},[t._v("#")]),t._v(" hidden")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hidden")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#hidden"}},[t._v("hidden")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L82",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:82"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbackgroundcolor"}},[t._v("#")]),t._v(" hoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1594",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1594"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercapstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercapstyle"}},[t._v("#")]),t._v(" hoverBorderCapStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderCapStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1705",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1705"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverbordercolor"}},[t._v("#")]),t._v(" hoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1593",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1593"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderdash"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdash"}},[t._v("#")]),t._v(" hoverBorderDash")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderDash")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1706",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1706"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderdashoffset"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderdashoffset"}},[t._v("#")]),t._v(" hoverBorderDashOffset")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderDashOffset")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1707",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1707"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderjoinstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderjoinstyle"}},[t._v("#")]),t._v(" hoverBorderJoinStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderJoinStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1708",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1708"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"hoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#hoverborderwidth"}},[t._v("#")]),t._v(" hoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("hoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.hoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1592",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1592"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"indexaxis"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#indexaxis"}},[t._v("#")]),t._v(" indexAxis")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("indexAxis")]),t._v(": "),r("em",[t._v("x")]),t._v(" | "),r("em",[t._v("y")])]),t._v(" "),r("p",[t._v("The base axis of the chart. 'x' for vertical charts and 'y' for horizontal charts.")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 'x'")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#indexaxis"}},[t._v("indexAxis")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L60",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:60"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"label"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#label"}},[t._v("#")]),t._v(" label")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("label")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The label for the dataset which appears in the legend and tooltips.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#label"}},[t._v("label")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L68",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:68"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"normalized"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#normalized"}},[t._v("#")]),t._v(" normalized")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("normalized")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#normalized"}},[t._v("normalized")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L52",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:52"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"order"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#order"}},[t._v("#")]),t._v(" order")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("order")]),t._v(": "),r("em",[t._v("number")])]),t._v(" "),r("p",[t._v("The drawing order of dataset. Also affects order for stacking, tooltip and legend.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#order"}},[t._v("order")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L72",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:72"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"parsing"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#parsing"}},[t._v("#")]),t._v(" parsing")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("parsing")]),t._v(": "),r("em",[t._v("false")]),t._v(" | { [key: string]: "),r("em",[t._v("string")]),t._v("; }")]),t._v(" "),r("p",[t._v("How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#parsing"}},[t._v("parsing")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L43",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:43"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbackgroundcolor"}},[t._v("#")]),t._v(" pointBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("The fill color for points.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1783",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1783"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointbordercolor"}},[t._v("#")]),t._v(" pointBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("The border color for points.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1787",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1787"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointborderwidth"}},[t._v("#")]),t._v(" pointBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The width of the point border in pixels.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1791",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1791"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhitradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhitradius"}},[t._v("#")]),t._v(" pointHitRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHitRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The pixel size of the non-displayed point that reacts to mouse events.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointHitRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1795",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1795"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverbackgroundcolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbackgroundcolor"}},[t._v("#")]),t._v(" pointHoverBackgroundColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBackgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Point background color when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointHoverBackgroundColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1814",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1814"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverbordercolor"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverbordercolor"}},[t._v("#")]),t._v(" pointHoverBorderColor")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBorderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Point border color when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointHoverBorderColor")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1818",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1818"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverborderwidth"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverborderwidth"}},[t._v("#")]),t._v(" pointHoverBorderWidth")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverBorderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Border width of point when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointHoverBorderWidth")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1822",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1822"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointhoverradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointhoverradius"}},[t._v("#")]),t._v(" pointHoverRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointHoverRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The radius of the point when hovered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointHoverRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1826",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1826"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointradius"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointradius"}},[t._v("#")]),t._v(" pointRadius")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRadius")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The radius of the point shape. If set to 0, the point is not rendered.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointRadius")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1799",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1799"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointrotation"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointrotation"}},[t._v("#")]),t._v(" pointRotation")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointRotation")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("The rotation of the point in degrees.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointRotation")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1803",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1803"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"pointstyle"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#pointstyle"}},[t._v("#")]),t._v(" pointStyle")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("pointStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#pointstyle"}},[r("em",[t._v("PointStyle")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Style of the point.")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.pointStyle")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1807",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1807"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"segment"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#segment"}},[t._v("#")]),t._v(" segment")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("segment")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<{ "),r("code",[t._v("backgroundColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v("> ; "),r("code",[t._v("borderCapStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderColor")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v("<"),r("RouterLink",{attrs:{to:"/api/#color"}},[r("em",[t._v("Color")])]),t._v(", "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablelinesegmentcontext.html"}},[r("em",[t._v("ScriptableLineSegmentContext")])]),t._v("> ; "),r("code",[t._v("borderDash")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderDashOffset")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderJoinStyle")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" ; "),r("code",[t._v("borderWidth")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(" }, "),r("RouterLink",{attrs:{to:"/api/interfaces/scriptablecontext.html"}},[r("em",[t._v("ScriptableContext")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">>")],1),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.segment")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1693",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1693"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"showline"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#showline"}},[t._v("#")]),t._v(" showLine")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("showLine")]),t._v(": "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("If false, the line is not drawn for this dataset.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L381",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:381"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"spangaps"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#spangaps"}},[t._v("#")]),t._v(" spanGaps")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("spanGaps")]),t._v(": "),r("em",[t._v("number")]),t._v(" | "),r("em",[t._v("boolean")])]),t._v(" "),r("p",[t._v("If true, lines will be drawn between points with no or null data. If false, points with NaN data will create a break in the line. Can also be a number specifying the maximum gap length to span. The unit of the value depends on the scale used.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L376",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:376"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stack"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stack"}},[t._v("#")]),t._v(" stack")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stack")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).")]),t._v(" "),r("p",[t._v("Inherited from: "),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html"}},[t._v("ControllerDatasetOptions")]),t._v("."),r("RouterLink",{attrs:{to:"/api/interfaces/controllerdatasetoptions.html#stack"}},[t._v("stack")])],1),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L77",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:77"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"stepped"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#stepped"}},[t._v("#")]),t._v(" stepped")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("stepped")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("true to show the line as a stepped line (tension will be ignored).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" false")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.stepped")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1691",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1691"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"tension"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#tension"}},[t._v("#")]),t._v(" tension")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("tension")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#scriptable"}},[r("em",[t._v("Scriptable")])]),t._v(">")],1),t._v(" "),r("p",[t._v("Bézier curve tension (0 for no Bézier curves).")]),t._v(" "),r("p",[r("strong",[r("code",[t._v("default")])]),t._v(" 0")]),t._v(" "),r("p",[t._v("Inherited from: ScriptableOptions.tension")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1686",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1686"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"transitions"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#transitions"}},[t._v("#")]),t._v(" transitions")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("transitions")]),t._v(": "),r("RouterLink",{attrs:{to:"/api/#transitionsspec"}},[r("em",[t._v("TransitionsSpec")])]),t._v("<"),r("em",[t._v("radar")]),t._v(">")],1),t._v(" "),r("p",[t._v("Inherited from: AnimationOptions.transitions")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1544",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1544"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"xaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#xaxisid"}},[t._v("#")]),t._v(" xAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("xAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the x axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L367",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:367"),r("OutboundLink")],1)]),t._v(" "),r("hr"),t._v(" "),r("h3",{attrs:{id:"yaxisid"}},[r("a",{staticClass:"header-anchor",attrs:{href:"#yaxisid"}},[t._v("#")]),t._v(" yAxisID")]),t._v(" "),r("p",[t._v("• "),r("strong",[t._v("yAxisID")]),t._v(": "),r("em",[t._v("string")])]),t._v(" "),r("p",[t._v("The ID of the y axis to plot this dataset on.")]),t._v(" "),r("p",[t._v("Defined in: "),r("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L371",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:371"),r("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=o.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/98.b599422a.js b/docs/3.1.0/assets/js/98.b599422a.js deleted file mode 100644 index cf45ff22ba..0000000000 --- a/docs/3.1.0/assets/js/98.b599422a.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[98],{424:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-radiallinearscale-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-radiallinearscale-o"}},[t._v("#")]),t._v(" Interface: RadialLinearScale")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#radiallinearscaleoptions"}},[a("em",[t._v("RadialLinearScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#radiallinearscaleoptions"}},[a("em",[t._v("RadialLinearScaleOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("RadialLinearScale")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#active"}},[t._v("active")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"axis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("axis")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#axis"}},[t._v("axis")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1160",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1160"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Bottom edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#bottom"}},[t._v("bottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L41",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:41"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#chart"}},[t._v("chart")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1150",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1150"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ctx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ctx"}},[t._v("#")]),t._v(" ctx")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("ctx")]),t._v(": CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#ctx"}},[t._v("ctx")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1149",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1149"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("fullSize")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("if true, and the item is horizontal, then push vertical boxes down")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#fullsize"}},[t._v("fullSize")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"height"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("height")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Height of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#height"}},[t._v("height")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"id"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("id")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#id"}},[t._v("id")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1147",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1147"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labelrotation"}},[t._v("#")]),t._v(" labelRotation")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("labelRotation")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#labelrotation"}},[t._v("labelRotation")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1161",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1161"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"left"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("left")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Left edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#left"}},[t._v("left")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:29"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"max"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#max"}},[t._v("#")]),t._v(" max")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("max")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#max"}},[t._v("max")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1163",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1163"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxheight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxheight"}},[t._v("#")]),t._v(" maxHeight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxHeight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#maxheight"}},[t._v("maxHeight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1153",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1153"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxwidth"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxwidth"}},[t._v("#")]),t._v(" maxWidth")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxWidth")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#maxwidth"}},[t._v("maxWidth")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1152",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1152"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"min"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#min"}},[t._v("#")]),t._v(" min")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("min")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#min"}},[t._v("min")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1162",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1162"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#options"}},[t._v("options")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingbottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingbottom"}},[t._v("#")]),t._v(" paddingBottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingBottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingbottom"}},[t._v("paddingBottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1156",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1156"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingleft"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingleft"}},[t._v("#")]),t._v(" paddingLeft")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingLeft")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingleft"}},[t._v("paddingLeft")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1157",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1157"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingright"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingright"}},[t._v("#")]),t._v(" paddingRight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingRight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingright"}},[t._v("paddingRight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1158",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1158"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingtop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingtop"}},[t._v("#")]),t._v(" paddingTop")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingTop")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingtop"}},[t._v("paddingTop")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1155",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1155"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])])],1),t._v(" "),a("p",[t._v("The position of the item in the chart layout. Possible values are")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#position"}},[t._v("position")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"right"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("right")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Right edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#right"}},[t._v("right")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:37"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[t._v("#")]),t._v(" ticks")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#ticks"}},[t._v("ticks")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1164",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1164"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"top"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("top")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Top edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#top"}},[t._v("top")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:33"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("type")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#type"}},[t._v("type")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1148",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1148"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the item. Higher weights are further away from the chart area")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#weight"}},[t._v("weight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"width"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("width")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Width of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#width"}},[t._v("width")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#x"}},[t._v("x")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#y"}},[t._v("y")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1244",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1244"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftercalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftercalculatelabelrotation"}},[t._v("#")]),t._v(" afterCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1250",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1250"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1241",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1241"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfit"}},[t._v("#")]),t._v(" afterFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1253",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1253"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftersetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftersetdimensions"}},[t._v("#")]),t._v(" afterSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1238",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1238"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterticktolabelconversion"}},[t._v("#")]),t._v(" afterTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1247",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1247"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1235",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1235"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1242",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1242"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforecalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforecalculatelabelrotation"}},[t._v("#")]),t._v(" beforeCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1248",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1248"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1239",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1239"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefit"}},[t._v("#")]),t._v(" beforeFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1251",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1251"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforelayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeLayout")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Called before the layout process starts")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L46",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:46"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforesetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforesetdimensions"}},[t._v("#")]),t._v(" beforeSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1236",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1236"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeticktolabelconversion"}},[t._v("#")]),t._v(" beforeTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1245",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1245"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1233",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1233"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildticks"}},[t._v("#")]),t._v(" buildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1243",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1243"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatelabelrotation"}},[t._v("#")]),t._v(" calculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1249",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1249"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1234",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1234"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"determinedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#determinedatalimits"}},[t._v("#")]),t._v(" determineDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("determineDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1240",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1240"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Draws the element")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L50",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:50"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawgrid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawgrid"}},[t._v("#")]),t._v(" drawGrid")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawGrid")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1169",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1169"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawlabels"}},[t._v("#")]),t._v(" drawLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawLabels")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1168",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1168"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawtitle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawtitle"}},[t._v("#")]),t._v(" drawTitle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawTitle")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1167",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1167"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fit"}},[t._v("#")]),t._v(" fit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("fit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1252",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1252"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"generateticklabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#generateticklabels"}},[t._v("#")]),t._v(" generateTickLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("generateTickLabels")]),t._v("("),a("code",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ticks")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1246",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1246"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasepixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasepixel"}},[t._v("#")]),t._v(" getBasePixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBasePixel")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the pixel for the minimum chart value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1225",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1225"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbaseposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbaseposition"}},[t._v("#")]),t._v(" getBasePosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBasePosition")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("angle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3172",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3172"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasevalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasevalue"}},[t._v("#")]),t._v(" getBaseValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBaseValue")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1219",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1219"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdecimalforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdecimalforpixel"}},[t._v("#")]),t._v(" getDecimalForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDecimalForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1175",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1175"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdistancefromcenterforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdistancefromcenterforvalue"}},[t._v("#")]),t._v(" getDistanceFromCenterForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDistanceFromCenterForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3167",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3167"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getindexangle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getindexangle"}},[t._v("#")]),t._v(" getIndexAngle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getIndexAngle")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3166",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3166"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelforvalue"}},[t._v("#")]),t._v(" getLabelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Used to get the label to display in the tooltip for the given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1195",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1195"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabels"}},[t._v("#")]),t._v(" getLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabels")]),t._v("(): "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1232",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1232"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlinewidthforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlinewidthforvalue"}},[t._v("#")]),t._v(" getLineWidthForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLineWidthForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the grid line width at given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1200",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1200"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmatchingvisiblemetas"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmatchingvisiblemetas"}},[t._v("#")]),t._v(" getMatchingVisibleMetas")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMatchingVisibleMetas")]),t._v("("),a("code",[t._v("type?")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1165",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1165"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("canStack")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1230",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1230"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpadding"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpadding"}},[t._v("#")]),t._v(" getPadding")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getPadding")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Returns an object with padding on the edges")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L54",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:54"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfordecimal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfordecimal"}},[t._v("#")]),t._v(" getPixelForDecimal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForDecimal")]),t._v("("),a("code",[t._v("decimal")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Utility for getting the pixel location of a percentage of scale\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("decimal")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1182",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1182"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfortick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfortick"}},[t._v("#")]),t._v(" getPixelForTick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForTick")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the tick at the given index\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1189",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1189"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelforvalue"}},[t._v("#")]),t._v(" getPixelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the given data point. Value can either be an index or a numerical value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1209",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1209"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpointlabelposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpointlabelposition"}},[t._v("#")]),t._v(" getPointLabelPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPointLabelPosition")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3171",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3171"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpointposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpointposition"}},[t._v("#")]),t._v(" getPointPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPointPosition")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("distanceFromCenter")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("distanceFromCenter")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("angle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3169",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3169"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpointpositionforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpointpositionforvalue"}},[t._v("#")]),t._v(" getPointPositionForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPointPositionForValue")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("angle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3170",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3170"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": "),a("em",[t._v("never")]),t._v("[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getticks"}},[t._v("#")]),t._v(" getTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1231",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1231"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getuserbounds"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getuserbounds"}},[t._v("#")]),t._v(" getUserBounds")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getUserBounds")]),t._v("(): "),a("em",[t._v("object")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("maxDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("minDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1229",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1229"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getvaluefordistancefromcenter"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getvaluefordistancefromcenter"}},[t._v("#")]),t._v(" getValueForDistanceFromCenter")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getValueForDistanceFromCenter")]),t._v("("),a("code",[t._v("distance")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-26"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-26"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("distance")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3168",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3168"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getvalueforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getvalueforpixel"}},[t._v("#")]),t._v(" getValueForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getValueForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Used to get the data value from a given pixel. This is the inverse of getPixelForValue\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-27"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-27"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1217",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1217"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"init"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#init"}},[t._v("#")]),t._v(" init")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("init")]),t._v("("),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-28"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-28"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1227",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1227"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isfullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isfullsize"}},[t._v("#")]),t._v(" isFullSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isFullSize")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1255",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1255"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ishorizontal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ishorizontal"}},[t._v("#")]),t._v(" isHorizontal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isHorizontal")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("returns true if the layout item is horizontal (ie. top or bottom)")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("raw")]),t._v(": "),a("em",[t._v("unknown")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("unknown")])]),t._v(" "),a("h4",{attrs:{id:"parameters-29"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-29"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("raw")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("unknown")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1228",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1228"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setcenterpoint"}},[t._v("#")]),t._v(" setCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setCenterPoint")]),t._v("("),a("code",[t._v("leftMovement")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("rightMovement")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("topMovement")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("bottomMovement")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-30"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-30"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("leftMovement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("rightMovement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("topMovement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("bottomMovement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3165",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3165"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setdimensions"}},[t._v("#")]),t._v(" setDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L1237",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1237"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-31"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-31"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("margins?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Takes two parameters: width and height.")]),t._v(" "),a("h4",{attrs:{id:"parameters-32"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-32"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("margins?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/layout.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:64"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/98.c10d3dd8.js b/docs/3.1.0/assets/js/98.c10d3dd8.js new file mode 100644 index 0000000000..323de6a419 --- /dev/null +++ b/docs/3.1.0/assets/js/98.c10d3dd8.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[98],{422:function(t,e,a){"use strict";a.r(e);var r=a(7),s=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-radiallinearscale-o"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-radiallinearscale-o"}},[t._v("#")]),t._v(" Interface: RadialLinearScale")]),t._v(" "),a("h2",{attrs:{id:"type-parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters"}},[t._v("#")]),t._v(" Type parameters")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Default")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("O")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#radiallinearscaleoptions"}},[a("em",[t._v("RadialLinearScaleOptions")])])],1),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#radiallinearscaleoptions"}},[a("em",[t._v("RadialLinearScaleOptions")])])],1)])])]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[a("em",[t._v("Scale")])]),t._v("")],1),t._v(" "),a("p",[t._v("↳ "),a("strong",[t._v("RadialLinearScale")])])])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"active"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#active"}},[t._v("#")]),t._v(" active")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("active")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#active"}},[t._v("active")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L6",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:6"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"axis"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#axis"}},[t._v("#")]),t._v(" axis")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("axis")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#axis"}},[t._v("axis")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1160",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1160"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"bottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#bottom"}},[t._v("#")]),t._v(" bottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("bottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Bottom edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#bottom"}},[t._v("bottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L41",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:41"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"chart"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#chart"}},[t._v("#")]),t._v(" chart")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("chart")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/classes/chart.html"}},[a("em",[t._v("Chart")])]),t._v("<"),a("em",[t._v("bar")]),t._v(" | "),a("em",[t._v("line")]),t._v(" | "),a("em",[t._v("scatter")]),t._v(" | "),a("em",[t._v("bubble")]),t._v(" | "),a("em",[t._v("pie")]),t._v(" | "),a("em",[t._v("doughnut")]),t._v(" | "),a("em",[t._v("polarArea")]),t._v(" | "),a("em",[t._v("radar")]),t._v(", (number | "),a("RouterLink",{attrs:{to:"/api/interfaces/scatterdatapoint.html"}},[a("em",[t._v("ScatterDataPoint")])]),t._v(" | "),a("RouterLink",{attrs:{to:"/api/interfaces/bubbledatapoint.html"}},[a("em",[t._v("BubbleDataPoint")])]),t._v(")[], unknown>")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#chart"}},[t._v("chart")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1150",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1150"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ctx"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ctx"}},[t._v("#")]),t._v(" ctx")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("ctx")]),t._v(": CanvasRenderingContext2D")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#ctx"}},[t._v("ctx")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1149",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1149"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fullsize"}},[t._v("#")]),t._v(" fullSize")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("fullSize")]),t._v(": "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("if true, and the item is horizontal, then push vertical boxes down")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#fullsize"}},[t._v("fullSize")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"height"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#height"}},[t._v("#")]),t._v(" height")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("height")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Height of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#height"}},[t._v("height")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"id"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#id"}},[t._v("#")]),t._v(" id")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("id")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#id"}},[t._v("id")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1147",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1147"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"labelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#labelrotation"}},[t._v("#")]),t._v(" labelRotation")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("labelRotation")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#labelrotation"}},[t._v("labelRotation")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1161",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1161"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"left"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#left"}},[t._v("#")]),t._v(" left")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("left")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Left edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#left"}},[t._v("left")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L29",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:29"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"max"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#max"}},[t._v("#")]),t._v(" max")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("max")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#max"}},[t._v("max")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1163",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1163"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxheight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxheight"}},[t._v("#")]),t._v(" maxHeight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxHeight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#maxheight"}},[t._v("maxHeight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1153",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1153"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"maxwidth"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#maxwidth"}},[t._v("#")]),t._v(" maxWidth")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("maxWidth")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#maxwidth"}},[t._v("maxWidth")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1152",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1152"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"min"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#min"}},[t._v("#")]),t._v(" min")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("min")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#min"}},[t._v("min")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1162",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1162"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"options"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#options"}},[t._v("#")]),t._v(" options")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("options")]),t._v(": O")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#options"}},[t._v("options")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L7",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:7"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingbottom"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingbottom"}},[t._v("#")]),t._v(" paddingBottom")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingBottom")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingbottom"}},[t._v("paddingBottom")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1156",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1156"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingleft"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingleft"}},[t._v("#")]),t._v(" paddingLeft")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingLeft")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingleft"}},[t._v("paddingLeft")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1157",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1157"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingright"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingright"}},[t._v("#")]),t._v(" paddingRight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingRight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingright"}},[t._v("paddingRight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1158",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1158"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"paddingtop"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#paddingtop"}},[t._v("#")]),t._v(" paddingTop")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("paddingTop")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#paddingtop"}},[t._v("paddingTop")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1155",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1155"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"position"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#position"}},[t._v("#")]),t._v(" position")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("position")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/#layoutposition"}},[a("em",[t._v("LayoutPosition")])])],1),t._v(" "),a("p",[t._v("The position of the item in the chart layout. Possible values are")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#position"}},[t._v("position")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"right"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#right"}},[t._v("#")]),t._v(" right")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("right")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Right edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#right"}},[t._v("right")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L37",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:37"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ticks"}},[t._v("#")]),t._v(" ticks")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#ticks"}},[t._v("ticks")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1164",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1164"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"top"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#top"}},[t._v("#")]),t._v(" top")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("top")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Top edge of the item. Set by layout system and cannot be used in update")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#top"}},[t._v("top")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L33",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:33"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"type"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type"}},[t._v("#")]),t._v(" type")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("type")]),t._v(": "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#type"}},[t._v("type")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1148",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1148"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"weight"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#weight"}},[t._v("#")]),t._v(" weight")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("weight")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("The weight used to sort the item. Higher weights are further away from the chart area")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#weight"}},[t._v("weight")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"width"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#width"}},[t._v("#")]),t._v(" width")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("width")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Width of item. Must be valid after update()")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#width"}},[t._v("width")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"x"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#x"}},[t._v("#")]),t._v(" x")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("x")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#x"}},[t._v("x")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L4",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:4"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"y"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#y"}},[t._v("#")]),t._v(" y")]),t._v(" "),a("p",[t._v("• "),a("code",[t._v("Readonly")]),t._v(" "),a("strong",[t._v("y")]),t._v(": "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")]),t._v("."),a("RouterLink",{attrs:{to:"/api/classes/scale.html#y"}},[t._v("y")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L5",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:5"),a("OutboundLink")],1)]),t._v(" "),a("h2",{attrs:{id:"methods"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#methods"}},[t._v("#")]),t._v(" Methods")]),t._v(" "),a("h3",{attrs:{id:"afterbuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterbuildticks"}},[t._v("#")]),t._v(" afterBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1244",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1244"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftercalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftercalculatelabelrotation"}},[t._v("#")]),t._v(" afterCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1250",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1250"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterdatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterdatalimits"}},[t._v("#")]),t._v(" afterDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1241",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1241"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterfit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterfit"}},[t._v("#")]),t._v(" afterFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1253",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1253"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"aftersetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#aftersetdimensions"}},[t._v("#")]),t._v(" afterSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1238",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1238"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterticktolabelconversion"}},[t._v("#")]),t._v(" afterTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1247",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1247"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"afterupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#afterupdate"}},[t._v("#")]),t._v(" afterUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("afterUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1235",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1235"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforebuildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforebuildticks"}},[t._v("#")]),t._v(" beforeBuildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeBuildTicks")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1242",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1242"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforecalculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforecalculatelabelrotation"}},[t._v("#")]),t._v(" beforeCalculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeCalculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1248",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1248"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforedatalimits"}},[t._v("#")]),t._v(" beforeDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1239",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1239"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforefit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforefit"}},[t._v("#")]),t._v(" beforeFit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeFit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1251",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1251"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforelayout"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforelayout"}},[t._v("#")]),t._v(" beforeLayout")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("beforeLayout")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Called before the layout process starts")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L46",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:46"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforesetdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforesetdimensions"}},[t._v("#")]),t._v(" beforeSetDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeSetDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1236",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1236"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeticktolabelconversion"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeticktolabelconversion"}},[t._v("#")]),t._v(" beforeTickToLabelConversion")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeTickToLabelConversion")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1245",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1245"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"beforeupdate"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#beforeupdate"}},[t._v("#")]),t._v(" beforeUpdate")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("beforeUpdate")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1233",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1233"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"buildticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#buildticks"}},[t._v("#")]),t._v(" buildTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("buildTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1243",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1243"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"calculatelabelrotation"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#calculatelabelrotation"}},[t._v("#")]),t._v(" calculateLabelRotation")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("calculateLabelRotation")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1249",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1249"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"configure"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#configure"}},[t._v("#")]),t._v(" configure")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("configure")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1234",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1234"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"determinedatalimits"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#determinedatalimits"}},[t._v("#")]),t._v(" determineDataLimits")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("determineDataLimits")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1240",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1240"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"draw"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#draw"}},[t._v("#")]),t._v(" draw")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("draw")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Draws the element")]),t._v(" "),a("h4",{attrs:{id:"parameters"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L50",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:50"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawgrid"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawgrid"}},[t._v("#")]),t._v(" drawGrid")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawGrid")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-2"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1169",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1169"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawlabels"}},[t._v("#")]),t._v(" drawLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawLabels")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-3"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1168",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1168"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"drawtitle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#drawtitle"}},[t._v("#")]),t._v(" drawTitle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("drawTitle")]),t._v("("),a("code",[t._v("chartArea")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-4"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("chartArea")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1167",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1167"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"fit"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#fit"}},[t._v("#")]),t._v(" fit")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("fit")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1252",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1252"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"generateticklabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#generateticklabels"}},[t._v("#")]),t._v(" generateTickLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("generateTickLabels")]),t._v("("),a("code",[t._v("ticks")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]): "),a("em",[t._v("void")])],1),t._v(" "),a("h4",{attrs:{id:"parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-5"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("ticks")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1246",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1246"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasepixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasepixel"}},[t._v("#")]),t._v(" getBasePixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBasePixel")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the pixel for the minimum chart value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1225",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1225"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbaseposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbaseposition"}},[t._v("#")]),t._v(" getBasePosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBasePosition")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-6"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("angle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3172",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3172"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getbasevalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getbasevalue"}},[t._v("#")]),t._v(" getBaseValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getBaseValue")]),t._v("(): "),a("em",[t._v("number")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1219",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1219"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdecimalforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdecimalforpixel"}},[t._v("#")]),t._v(" getDecimalForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDecimalForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-7"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-7"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1175",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1175"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getdistancefromcenterforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getdistancefromcenterforvalue"}},[t._v("#")]),t._v(" getDistanceFromCenterForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getDistanceFromCenterForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-8"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-8"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3167",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3167"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getindexangle"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getindexangle"}},[t._v("#")]),t._v(" getIndexAngle")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getIndexAngle")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-9"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-9"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3166",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3166"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabelforvalue"}},[t._v("#")]),t._v(" getLabelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Used to get the label to display in the tooltip for the given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-10"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-10"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1195",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1195"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlabels"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlabels"}},[t._v("#")]),t._v(" getLabels")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLabels")]),t._v("(): "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("string")]),t._v("[]")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1232",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1232"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getlinewidthforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getlinewidthforvalue"}},[t._v("#")]),t._v(" getLineWidthForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getLineWidthForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the grid line width at given value")]),t._v(" "),a("h4",{attrs:{id:"parameters-11"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-11"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1200",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1200"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getmatchingvisiblemetas"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getmatchingvisiblemetas"}},[t._v("#")]),t._v(" getMatchingVisibleMetas")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMatchingVisibleMetas")]),t._v("("),a("code",[t._v("type?")]),t._v(": "),a("em",[t._v("string")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("h4",{attrs:{id:"parameters-12"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-12"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("type?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("string")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartmeta.html"}},[a("em",[t._v("ChartMeta")])]),t._v("<"),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>, "),a("RouterLink",{attrs:{to:"/api/#element"}},[a("em",[t._v("Element")])]),t._v("<{}, {}>>[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1165",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1165"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getminmax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getminmax"}},[t._v("#")]),t._v(" getMinMax")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getMinMax")]),t._v("("),a("code",[t._v("canStack")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-13"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-13"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("canStack")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1230",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1230"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpadding"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpadding"}},[t._v("#")]),t._v(" getPadding")]),t._v(" "),a("p",[t._v("▸ "),a("code",[t._v("Optional")]),a("strong",[t._v("getPadding")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Returns an object with padding on the edges")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L54",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:54"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfordecimal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfordecimal"}},[t._v("#")]),t._v(" getPixelForDecimal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForDecimal")]),t._v("("),a("code",[t._v("decimal")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Utility for getting the pixel location of a percentage of scale\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-14"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-14"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("decimal")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1182",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1182"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelfortick"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelfortick"}},[t._v("#")]),t._v(" getPixelForTick")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForTick")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the tick at the given index\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-15"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-15"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1189",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1189"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpixelforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpixelforvalue"}},[t._v("#")]),t._v(" getPixelForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPixelForValue")]),t._v("("),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Returns the location of the given data point. Value can either be an index or a numerical value\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-16"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-16"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1209",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1209"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpointlabelposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpointlabelposition"}},[t._v("#")]),t._v(" getPointLabelPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPointLabelPosition")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-17"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-17"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3171",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3171"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpointposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpointposition"}},[t._v("#")]),t._v(" getPointPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPointPosition")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("distanceFromCenter")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-18"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-18"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("distanceFromCenter")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("angle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3169",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3169"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getpointpositionforvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getpointpositionforvalue"}},[t._v("#")]),t._v(" getPointPositionForValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getPointPositionForValue")]),t._v("("),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("value")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-19"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-19"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("value")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("angle")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("x")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("y")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3170",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3170"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getprops"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getprops"}},[t._v("#")]),t._v(" getProps")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("

("),a("code",[t._v("props")]),t._v(": [P], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-2"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-2"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-20"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-20"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L11",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:11"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-3"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-3"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-21"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-21"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L12",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:12"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-4"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-4"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-22"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-22"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L13",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:13"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-5"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-5"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-23"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-23"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L17",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:17"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": [P, P2, P3, P4, P5], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("h4",{attrs:{id:"type-parameters-6"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-parameters-6"}},[t._v("#")]),t._v(" Type parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P2")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P3")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P4")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("P5")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")])])])])]),t._v(" "),a("h4",{attrs:{id:"parameters-24"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-24"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("[P, P2, P3, P4, P5]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("Pick")]),t._v("<{}, P | P2 | P3 | P4 | P5>")]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L21",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:21"),a("OutboundLink")],1)]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getProps")]),t._v("("),a("code",[t._v("props")]),t._v(": "),a("em",[t._v("never")]),t._v("[], "),a("code",[t._v("final?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"parameters-25"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-25"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("props")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("never")]),t._v("[]")])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("final?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L25",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:25"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getticks"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getticks"}},[t._v("#")]),t._v(" getTicks")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getTicks")]),t._v("(): "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/tick.html"}},[a("em",[t._v("Tick")])]),t._v("[]")],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1231",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1231"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getuserbounds"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getuserbounds"}},[t._v("#")]),t._v(" getUserBounds")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getUserBounds")]),t._v("(): "),a("em",[t._v("object")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("object")])]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("max")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("maxDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("min")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("minDefined")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1229",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1229"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getvaluefordistancefromcenter"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getvaluefordistancefromcenter"}},[t._v("#")]),t._v(" getValueForDistanceFromCenter")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getValueForDistanceFromCenter")]),t._v("("),a("code",[t._v("distance")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("h4",{attrs:{id:"parameters-26"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-26"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("distance")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3168",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3168"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"getvalueforpixel"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#getvalueforpixel"}},[t._v("#")]),t._v(" getValueForPixel")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("getValueForPixel")]),t._v("("),a("code",[t._v("pixel")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Used to get the data value from a given pixel. This is the inverse of getPixelForValue\nThe coordinate (0, 0) is at the upper-left corner of the canvas")]),t._v(" "),a("h4",{attrs:{id:"parameters-27"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-27"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("pixel")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("number")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1217",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1217"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"hasvalue"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hasvalue"}},[t._v("#")]),t._v(" hasValue")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("hasValue")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L10",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:10"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"init"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#init"}},[t._v("#")]),t._v(" init")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("init")]),t._v("("),a("code",[t._v("options")]),t._v(": O): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-28"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-28"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[t._v("O")])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1227",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1227"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"isfullsize"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#isfullsize"}},[t._v("#")]),t._v(" isFullSize")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isFullSize")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1255",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1255"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"ishorizontal"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#ishorizontal"}},[t._v("#")]),t._v(" isHorizontal")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("isHorizontal")]),t._v("(): "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("returns true if the layout item is horizontal (ie. top or bottom)")]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("boolean")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L58",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:58"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"parse"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parse"}},[t._v("#")]),t._v(" parse")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("parse")]),t._v("("),a("code",[t._v("raw")]),t._v(": "),a("em",[t._v("unknown")]),t._v(", "),a("code",[t._v("index")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("unknown")])]),t._v(" "),a("h4",{attrs:{id:"parameters-29"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-29"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("raw")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("unknown")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("index")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("unknown")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1228",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1228"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setcenterpoint"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setcenterpoint"}},[t._v("#")]),t._v(" setCenterPoint")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setCenterPoint")]),t._v("("),a("code",[t._v("leftMovement")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("rightMovement")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("topMovement")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("bottomMovement")]),t._v(": "),a("em",[t._v("number")]),t._v("): "),a("em",[t._v("void")])]),t._v(" "),a("h4",{attrs:{id:"parameters-30"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-30"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("leftMovement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("rightMovement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("topMovement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("bottomMovement")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3165",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3165"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"setdimensions"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#setdimensions"}},[t._v("#")]),t._v(" setDimensions")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("setDimensions")]),t._v("(): "),a("em",[t._v("void")])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L1237",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:1237"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"tooltipposition"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#tooltipposition"}},[t._v("#")]),t._v(" tooltipPosition")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("tooltipPosition")]),t._v("("),a("code",[t._v("useFinalPosition?")]),t._v(": "),a("em",[t._v("boolean")]),t._v("): "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("h4",{attrs:{id:"parameters-31"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-31"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("useFinalPosition?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("boolean")])])])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("RouterLink",{attrs:{to:"/api/interfaces/point.html"}},[a("em",[t._v("Point")])])],1),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/element.d.ts#L9",target:"_blank",rel:"noopener noreferrer"}},[t._v("element.d.ts:9"),a("OutboundLink")],1)]),t._v(" "),a("hr"),t._v(" "),a("h3",{attrs:{id:"update"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" update")]),t._v(" "),a("p",[t._v("▸ "),a("strong",[t._v("update")]),t._v("("),a("code",[t._v("width")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("height")]),t._v(": "),a("em",[t._v("number")]),t._v(", "),a("code",[t._v("margins?")]),t._v(": "),a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])]),t._v("): "),a("em",[t._v("void")])],1),t._v(" "),a("p",[t._v("Takes two parameters: width and height.")]),t._v(" "),a("h4",{attrs:{id:"parameters-32"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#parameters-32"}},[t._v("#")]),t._v(" Parameters:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("width")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("height")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("em",[t._v("number")])])]),t._v(" "),a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("margins?")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/interfaces/chartarea.html"}},[a("em",[t._v("ChartArea")])])],1)])])]),t._v(" "),a("p",[a("strong",[t._v("Returns:")]),t._v(" "),a("em",[t._v("void")])]),t._v(" "),a("p",[t._v("Inherited from: "),a("RouterLink",{attrs:{to:"/api/classes/scale.html"}},[t._v("Scale")])],1),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/layout.d.ts#L64",target:"_blank",rel:"noopener noreferrer"}},[t._v("layout.d.ts:64"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=s.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/99.ca867651.js b/docs/3.1.0/assets/js/99.43c1ef40.js similarity index 84% rename from docs/3.1.0/assets/js/99.ca867651.js rename to docs/3.1.0/assets/js/99.43c1ef40.js index 4cbd847189..8eb3602983 100644 --- a/docs/3.1.0/assets/js/99.ca867651.js +++ b/docs/3.1.0/assets/js/99.43c1ef40.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[99],{425:function(t,e,a){"use strict";a.r(e);var r=a(7),i=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-radialscaletyperegistry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-radialscaletyperegistry"}},[t._v("#")]),t._v(" Interface: RadialScaleTypeRegistry")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("RadialScaleTypeRegistry")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/scaletyperegistry.html"}},[a("em",[t._v("ScaleTypeRegistry")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"radiallinear"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radiallinear"}},[t._v("#")]),t._v(" radialLinear")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("radialLinear")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#radiallinearscaleoptions"}},[a("em",[t._v("RadialLinearScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/chartjs/Chart.js/blob/981eff5/types/index.esm.d.ts#L3198",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3198"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[99],{423:function(t,e,a){"use strict";a.r(e);var r=a(7),i=Object(r.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"interface-radialscaletyperegistry"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#interface-radialscaletyperegistry"}},[t._v("#")]),t._v(" Interface: RadialScaleTypeRegistry")]),t._v(" "),a("h2",{attrs:{id:"hierarchy"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#hierarchy"}},[t._v("#")]),t._v(" Hierarchy")]),t._v(" "),a("ul",[a("li",[a("p",[a("strong",[t._v("RadialScaleTypeRegistry")])]),t._v(" "),a("p",[t._v("↳ "),a("RouterLink",{attrs:{to:"/api/interfaces/scaletyperegistry.html"}},[a("em",[t._v("ScaleTypeRegistry")])])],1)])]),t._v(" "),a("h2",{attrs:{id:"properties"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#properties"}},[t._v("#")]),t._v(" Properties")]),t._v(" "),a("h3",{attrs:{id:"radiallinear"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#radiallinear"}},[t._v("#")]),t._v(" radialLinear")]),t._v(" "),a("p",[t._v("• "),a("strong",[t._v("radialLinear")]),t._v(": "),a("em",[t._v("object")])]),t._v(" "),a("h4",{attrs:{id:"type-declaration"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#type-declaration"}},[t._v("#")]),t._v(" Type declaration:")]),t._v(" "),a("table",[a("thead",[a("tr",[a("th",{staticStyle:{"text-align":"left"}},[t._v("Name")]),t._v(" "),a("th",{staticStyle:{"text-align":"left"}},[t._v("Type")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{staticStyle:{"text-align":"left"}},[a("code",[t._v("options")])]),t._v(" "),a("td",{staticStyle:{"text-align":"left"}},[a("RouterLink",{attrs:{to:"/api/#radiallinearscaleoptions"}},[a("em",[t._v("RadialLinearScaleOptions")])])],1)])])]),t._v(" "),a("p",[t._v("Defined in: "),a("a",{attrs:{href:"https://github.com/etimberg/Chart.js/blob/981eff5/types/index.esm.d.ts#L3198",target:"_blank",rel:"noopener noreferrer"}},[t._v("index.esm.d.ts:3198"),a("OutboundLink")],1)])])}),[],!1,null,null,null);e.default=i.exports}}]); \ No newline at end of file diff --git a/docs/3.1.0/assets/js/app.0ddc5917.js b/docs/3.1.0/assets/js/app.0ddc5917.js new file mode 100644 index 0000000000..7f9f7b18f1 --- /dev/null +++ b/docs/3.1.0/assets/js/app.0ddc5917.js @@ -0,0 +1,35 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[]]);!function(e){function n(n){for(var a,o,s=n[0],l=n[1],d=n[2],u=0,h=[];uArray.prototype.slice.call(e));let r=!1,o=[];return function(...t){o=i(t),r||(r=!0,a.call(window,()=>{r=!1,e.apply(n,o)}))}}function r(e,n){let t;return function(){return n?(clearTimeout(t),t=setTimeout(e,n)):e(),n}}const o=e=>"start"===e?"left":"end"===e?"right":"center",s=(e,n,t)=>"start"===e?n:"end"===e?t:(n+t)/2,l=(e,n,t)=>"right"===e?t:"center"===e?(n+t)/2:n;function d(){}const c=function(){let e=0;return function(){return e++}}();function u(e){return null==e}function h(e){if(Array.isArray&&Array.isArray(e))return!0;const n=Object.prototype.toString.call(e);return"[object"===n.substr(0,7)&&"Array]"===n.substr(-6)}function p(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}const m=e=>("number"==typeof e||e instanceof Number)&&isFinite(+e);function f(e,n){return m(e)?e:n}function g(e,n){return void 0===e?n:e}const b=(e,n)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:e/n,v=(e,n)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*n:+e;function y(e,n,t){if(e&&"function"==typeof e.call)return e.apply(t,n)}function x(e,n,t,a){let i,r,o;if(h(e))if(r=e.length,a)for(i=r-1;i>=0;i--)n.call(t,e[i],i);else for(i=0;it;)e=e[n.substr(t,a-t)],t=a+1,a=O(n,t);return e}function R(e){return e.charAt(0).toUpperCase()+e.slice(1)}const I=e=>void 0!==e,_=e=>"function"==typeof e,E=Math.PI,L=2*E,M=L+E,j=Number.POSITIVE_INFINITY,N=E/180,B=E/2,U=E/4,z=2*E/3,F=Math.log10,H=Math.sign;function V(e){const n=Math.pow(10,Math.floor(F(e))),t=e/n;return(t<=1?1:t<=2?2:t<=5?5:10)*n}function W(e){const n=[],t=Math.sqrt(e);let a;for(a=1;ae-n).pop(),n}function Y(e){return!isNaN(parseFloat(e))&&isFinite(e)}function $(e,n,t){return Math.abs(e-n)=e}function q(e,n,t){let a,i,r;for(a=0,i=e.length;as&&l0===e||1===e,oe=(e,n,t)=>-Math.pow(2,10*(e-=1))*Math.sin((e-n)*L/t),se=(e,n,t)=>Math.pow(2,-10*e)*Math.sin((e-n)*L/t)+1,le={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*B),easeOutSine:e=>Math.sin(e*B),easeInOutSine:e=>-.5*(Math.cos(E*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>re(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>re(e)?e:oe(e,.075,.3),easeOutElastic:e=>re(e)?e:se(e,.075,.3),easeInOutElastic(e){const n=.1125;return re(e)?e:e<.5?.5*oe(2*e,n,.45):.5+.5*se(2*e-1,n,.45)},easeInBack(e){const n=1.70158;return e*e*((n+1)*e-n)},easeOutBack(e){const n=1.70158;return(e-=1)*e*((n+1)*e+n)+1},easeInOutBack(e){let n=1.70158;return(e/=.5)<1?e*e*((1+(n*=1.525))*e-n)*.5:.5*((e-=2)*e*((1+(n*=1.525))*e+n)+2)},easeInBounce:e=>1-le.easeOutBounce(1-e),easeOutBounce(e){const n=7.5625,t=2.75;return e<1/t?n*e*e:e<2/t?n*(e-=1.5/t)*e+.75:e<2.5/t?n*(e-=2.25/t)*e+.9375:n*(e-=2.625/t)*e+.984375},easeInOutBounce:e=>e<.5?.5*le.easeInBounce(2*e):.5*le.easeOutBounce(2*e-1)+.5},de={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ce="0123456789ABCDEF",ue=e=>ce[15&e],he=e=>ce[(240&e)>>4]+ce[15&e],pe=e=>(240&e)>>4==(15&e);function me(e){var n=function(e){return pe(e.r)&&pe(e.g)&&pe(e.b)&&pe(e.a)}(e)?ue:he;return e?"#"+n(e.r)+n(e.g)+n(e.b)+(e.a<255?n(e.a):""):e}function fe(e){return e+.5|0}const ge=(e,n,t)=>Math.max(Math.min(e,t),n);function be(e){return ge(fe(2.55*e),0,255)}function ve(e){return ge(fe(255*e),0,255)}function ye(e){return ge(fe(e/2.55)/100,0,1)}function xe(e){return ge(fe(100*e),0,100)}const Ce=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const we=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function De(e,n,t){const a=n*Math.min(t,1-t),i=(n,i=(n+e/30)%12)=>t-a*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function Te(e,n,t){const a=(a,i=(a+e/60)%6)=>t-t*n*Math.max(Math.min(i,4-i,1),0);return[a(5),a(3),a(1)]}function Pe(e,n,t){const a=De(e,1,.5);let i;for(n+t>1&&(i=1/(n+t),n*=i,t*=i),i=0;i<3;i++)a[i]*=1-n-t,a[i]+=n;return a}function ke(e){const n=e.r/255,t=e.g/255,a=e.b/255,i=Math.max(n,t,a),r=Math.min(n,t,a),o=(i+r)/2;let s,l,d;return i!==r&&(d=i-r,l=o>.5?d/(2-i-r):d/(i+r),s=i===n?(t-a)/d+(t>16&255,r>>8&255,255&r]}return e}(),Ee.transparent=[0,0,0,0]);const n=Ee[e.toLowerCase()];return n&&{r:n[0],g:n[1],b:n[2],a:4===n.length?n[3]:255}}function Me(e,n,t){if(e){let a=ke(e);a[n]=Math.max(0,Math.min(a[n]+a[n]*t,0===n?360:1)),a=Oe(a),e.r=a[0],e.g=a[1],e.b=a[2]}}function je(e,n){return e?Object.assign(n||{},e):e}function Ne(e){var n={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(n={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(n.a=ve(e[3]))):(n=je(e,{r:0,g:0,b:0,a:1})).a=ve(n.a),n}function Be(e){return"r"===e.charAt(0)?function(e){const n=Ce.exec(e);let t,a,i,r=255;if(n){if(n[7]!==t){const e=+n[7];r=255&(n[8]?be(e):255*e)}return t=+n[1],a=+n[3],i=+n[5],t=255&(n[2]?be(t):t),a=255&(n[4]?be(a):a),i=255&(n[6]?be(i):i),{r:t,g:a,b:i,a:r}}}(e):Re(e)}class Ue{constructor(e){if(e instanceof Ue)return e;const n=typeof e;let t;var a,i,r;"object"===n?t=Ne(e):"string"===n&&(r=(a=e).length,"#"===a[0]&&(4===r||5===r?i={r:255&17*de[a[1]],g:255&17*de[a[2]],b:255&17*de[a[3]],a:5===r?17*de[a[4]]:255}:7!==r&&9!==r||(i={r:de[a[1]]<<4|de[a[2]],g:de[a[3]]<<4|de[a[4]],b:de[a[5]]<<4|de[a[6]],a:9===r?de[a[7]]<<4|de[a[8]]:255})),t=i||Le(e)||Be(e)),this._rgb=t,this._valid=!!t}get valid(){return this._valid}get rgb(){var e=je(this._rgb);return e&&(e.a=ye(e.a)),e}set rgb(e){this._rgb=Ne(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${ye(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):this._rgb;var e}hexString(){return this._valid?me(this._rgb):this._rgb}hslString(){return this._valid?function(e){if(!e)return;const n=ke(e),t=n[0],a=xe(n[1]),i=xe(n[2]);return e.a<255?`hsla(${t}, ${a}%, ${i}%, ${ye(e.a)})`:`hsl(${t}, ${a}%, ${i}%)`}(this._rgb):this._rgb}mix(e,n){const t=this;if(e){const a=t.rgb,i=e.rgb;let r;const o=n===r?.5:n,s=2*o-1,l=a.a-i.a,d=((s*l==-1?s:(s+l)/(1+s*l))+1)/2;r=1-d,a.r=255&d*a.r+r*i.r+.5,a.g=255&d*a.g+r*i.g+.5,a.b=255&d*a.b+r*i.b+.5,a.a=o*a.a+(1-o)*i.a,t.rgb=a}return t}clone(){return new Ue(this.rgb)}alpha(e){return this._rgb.a=ve(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,n=fe(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=n,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Me(this._rgb,2,e),this}darken(e){return Me(this._rgb,2,-e),this}saturate(e){return Me(this._rgb,1,e),this}desaturate(e){return Me(this._rgb,1,-e),this}rotate(e){return function(e,n){var t=ke(e);t[0]=Ae(t[0]+n),t=Oe(t),e.r=t[0],e.g=t[1],e.b=t[2]}(this._rgb,e),this}}function ze(e){return new Ue(e)}const Fe=e=>e instanceof CanvasGradient||e instanceof CanvasPattern;function He(e){return Fe(e)?e:ze(e)}function Ve(e){return Fe(e)?e:ze(e).saturate(.5).darken(.1).hexString()}const We=Object.create(null),Ye=Object.create(null);function $e(e,n){if(!n)return e;const t=n.split(".");for(let n=0,a=t.length;ne.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,n)=>Ve(n.backgroundColor),this.hoverBorderColor=(e,n)=>Ve(n.borderColor),this.hoverColor=(e,n)=>Ve(n.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.describe(e)}set(e,n){return Ge(this,e,n)}get(e){return $e(this,e)}describe(e,n){return Ge(Ye,e,n)}override(e,n){return Ge(We,e,n)}route(e,n,t,a){const i=$e(this,e),r=$e(this,t),o="_"+n;Object.defineProperties(i,{[o]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const e=this[o],n=r[a];return p(e)?Object.assign({},n,e):g(e,n)},set(e){this[o]=e}}})}}({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Xe(e,n,t,a,i){let r=n[i];return r||(r=n[i]=e.measureText(i).width,t.push(i)),r>a&&(a=r),a}function Je(e,n,t,a){let i=(a=a||{}).data=a.data||{},r=a.garbageCollect=a.garbageCollect||[];a.font!==n&&(i=a.data={},r=a.garbageCollect=[],a.font=n),e.save(),e.font=n;let o=0;const s=t.length;let l,d,c,u,p;for(l=0;lt.length){for(l=0;l0&&e.stroke()}}function en(e,n,t){return t=t||.5,e&&e.x>n.left-t&&e.xn.top-t&&e.y0&&""!==r.strokeColor;let l,d;for(e.save(),r.translation&&e.translate(r.translation[0],r.translation[1]),u(r.rotation)||e.rotate(r.rotation),e.font=i.string,r.color&&(e.fillStyle=r.color),r.textAlign&&(e.textAlign=r.textAlign),r.textBaseline&&(e.textBaseline=r.textBaseline),l=0;lg(e[t],e[n[t]]):n=>e[n]:()=>e;for(const e of i)t[e]=+r(e)||0;return t}function hn(e){return un(e,{top:"y",right:"x",bottom:"y",left:"x"})}function pn(e){return un(e,["topLeft","topRight","bottomLeft","bottomRight"])}function mn(e){const n=hn(e);return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function fn(e,n){e=e||{},n=n||qe.font;let t=g(e.size,n.size);"string"==typeof t&&(t=parseInt(t,10));let a=g(e.style,n.style);a&&!(""+a).match(dn)&&(console.warn('Invalid font style specified: "'+a+'"'),a="");const i={family:g(e.family,n.family),lineHeight:cn(g(e.lineHeight,n.lineHeight),t),size:t,style:a,weight:g(e.weight,n.weight),string:""};return i.string=function(e){return!e||u(e.size)||u(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(i),i}function gn(e,n,t,a){let i,r,o,s=!0;for(i=0,r=e.length;ie[t]1;)a=r+i>>1,t(a)?r=a:i=a;return{lo:r,hi:i}}const yn=(e,n,t)=>vn(e,t,a=>e[a][n]vn(e,t,a=>e[a][n]>=t);function Cn(e,n,t){let a=0,i=e.length;for(;aa&&e[i-1]>t;)i--;return a>0||i{const t="_onData"+R(n),a=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...n){const i=a.apply(this,n);return e._chartjs.listeners.forEach(e=>{"function"==typeof e[t]&&e[t](...n)}),i}})}))}function Tn(e,n){const t=e._chartjs;if(!t)return;const a=t.listeners,i=a.indexOf(n);-1!==i&&a.splice(i,1),a.length>0||(wn.forEach(n=>{delete e[n]}),delete e._chartjs)}function Pn(e){const n=new Set;let t,a;for(t=0,a=e.length;t{i.push(e)}),i}function kn(e,n=[""],t=e,a,i=(()=>e[0])){I(a)||(a=Nn("_fallback",e));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:t,_fallback:a,_getTarget:i,override:i=>kn([i,...e],n,t,a)};return new Proxy(r,{deleteProperty:(n,t)=>(delete n[t],delete n._keys,delete e[0][t],!0),get:(t,a)=>In(t,a,()=>function(e,n,t,a){let i;for(const r of n)if(i=Nn(An(r,e),t),I(i))return Rn(e,i)?Mn(t,a,e,i):i}(a,n,e,t)),getOwnPropertyDescriptor:(e,n)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],n),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,n)=>Bn(e).includes(n),ownKeys:e=>Bn(e),set:(e,n,t)=>((e._storage||(e._storage=i()))[n]=t,delete e[n],delete e._keys,!0)})}function Sn(e,n,t,a){const i={_cacheable:!1,_proxy:e,_context:n,_subProxy:t,_stack:new Set,_descriptors:On(e,a),setContext:n=>Sn(e,n,t,a),override:i=>Sn(e.override(i),n,t,a)};return new Proxy(i,{deleteProperty:(n,t)=>(delete n[t],delete e[t],!0),get:(e,n,t)=>In(e,n,()=>function(e,n,t){const{_proxy:a,_context:i,_subProxy:r,_descriptors:o}=e;let s=a[n];_(s)&&o.isScriptable(n)&&(s=function(e,n,t,a){const{_proxy:i,_context:r,_subProxy:o,_stack:s}=t;if(s.has(e))throw new Error("Recursion detected: "+[...s].join("->")+"->"+e);s.add(e),n=n(r,o||a),s.delete(e),p(n)&&(n=Mn(i._scopes,i,e,n));return n}(n,s,e,t));h(s)&&s.length&&(s=function(e,n,t,a){const{_proxy:i,_context:r,_subProxy:o,_descriptors:s}=t;if(I(r.index)&&a(e))n=n[r.index%n.length];else if(p(n[0])){const t=n,a=i._scopes.filter(e=>e!==t);n=[];for(const l of t){const t=Mn(a,i,e,l);n.push(Sn(t,r,o&&o[e],s))}}return n}(n,s,e,o.isIndexable));Rn(n,s)&&(s=Sn(s,i,r&&r[n],o));return s}(e,n,t)),getOwnPropertyDescriptor:(n,t)=>n._descriptors.allKeys?Reflect.has(e,t)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,t),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(n,t)=>Reflect.has(e,t),ownKeys:()=>Reflect.ownKeys(e),set:(n,t,a)=>(e[t]=a,delete n[t],!0)})}function On(e,n={scriptable:!0,indexable:!0}){const{_scriptable:t=n.scriptable,_indexable:a=n.indexable,_allKeys:i=n.allKeys}=e;return{allKeys:i,scriptable:t,indexable:a,isScriptable:_(t)?t:()=>t,isIndexable:_(a)?a:()=>a}}const An=(e,n)=>e?e+R(n):n,Rn=(e,n)=>p(n)&&"adapters"!==e;function In(e,n,t){let a=e[n];return I(a)||(a=t(),I(a)&&(e[n]=a)),a}function _n(e,n,t){return _(e)?e(n,t):e}const En=(e,n)=>!0===e?n:"string"==typeof e?A(n,e):void 0;function Ln(e,n,t,a){for(const i of n){const n=En(t,i);if(n){e.add(n);const i=_n(n._fallback,t,n);if(I(i)&&i!==t&&i!==a)return i}else if(!1===n&&I(a)&&t!==a)return null}return!1}function Mn(e,n,t,a){const i=n._rootScopes,r=_n(n._fallback,t,a),o=[...e,...i],s=new Set;s.add(a);let l=jn(s,o,t,r||t);return null!==l&&((!I(r)||r===t||(l=jn(s,o,r,l),null!==l))&&kn([...s],[""],i,r,()=>{const e=n._getTarget();return t in e||(e[t]={}),e[t]}))}function jn(e,n,t,a){for(;t;)t=Ln(e,n,t,a);return t}function Nn(e,n){for(const t of n){if(!t)continue;const n=t[e];if(I(n))return n}}function Bn(e){let n=e._keys;return n||(n=e._keys=function(e){const n=new Set;for(const t of e)for(const e of Object.keys(t).filter(e=>!e.startsWith("_")))n.add(e);return[...n]}(e._scopes)),n}const Un=Number.EPSILON||1e-14,zn=(e,n)=>n!e.skip)),"monotone"===n.cubicInterpolationMode)Hn(e);else{let t=a?e[e.length-1]:e[0];for(i=0,r=e.length;iwindow.getComputedStyle(e,null);const qn=["top","right","bottom","left"];function Xn(e,n,t){const a={};t=t?"-"+t:"";for(let i=0;i<4;i++){const r=qn[i];a[r]=parseFloat(e[n+"-"+r+t])||0}return a.width=a.left+a.right,a.height=a.top+a.bottom,a}function Jn(e,n){const{canvas:t,currentDevicePixelRatio:a}=n,i=Gn(t),r="border-box"===i.boxSizing,o=Xn(i,"padding"),s=Xn(i,"border","width"),{x:l,y:d,box:c}=function(e,n){const t=e.native||e,a=t.touches,i=a&&a.length?a[0]:t,{offsetX:r,offsetY:o}=i;let s,l,d=!1;if(((e,n,t)=>(e>0||n>0)&&(!t||!t.shadowRoot))(r,o,t.target))s=r,l=o;else{const e=n.getBoundingClientRect();s=i.clientX-e.left,l=i.clientY-e.top,d=!0}return{x:s,y:l,box:d}}(e,t),u=o.left+(c&&s.left),h=o.top+(c&&s.top);let{width:p,height:m}=n;return r&&(p-=o.width+s.width,m-=o.height+s.height),{x:Math.round((l-u)/p*t.width/a),y:Math.round((d-h)/m*t.height/a)}}const Zn=e=>Math.round(10*e)/10;function Kn(e,n,t,a){const i=Gn(e),r=Xn(i,"margin"),o=$n(i.maxWidth,e,"clientWidth")||j,s=$n(i.maxHeight,e,"clientHeight")||j,l=function(e,n,t){let a,i;if(void 0===n||void 0===t){const r=Yn(e);if(r){const e=r.getBoundingClientRect(),o=Gn(r),s=Xn(o,"border","width"),l=Xn(o,"padding");n=e.width-l.width-s.width,t=e.height-l.height-s.height,a=$n(o.maxWidth,r,"clientWidth"),i=$n(o.maxHeight,r,"clientHeight")}else n=e.clientWidth,t=e.clientHeight}return{width:n,height:t,maxWidth:a||j,maxHeight:i||j}}(e,n,t);let{width:d,height:c}=l;if("content-box"===i.boxSizing){const e=Xn(i,"border","width"),n=Xn(i,"padding");d-=n.width+e.width,c-=n.height+e.height}return d=Math.max(0,d-r.width),c=Math.max(0,a?Math.floor(d/a):c-r.height),d=Zn(Math.min(d,o,l.maxWidth)),c=Zn(Math.min(c,s,l.maxHeight)),d&&!c&&(c=Zn(d/2)),{width:d,height:c}}function Qn(e,n,t){const a=e.currentDevicePixelRatio=n||1,{canvas:i,width:r,height:o}=e;i.height=o*a,i.width=r*a,e.ctx.setTransform(a,0,0,a,0,0),i.style&&(t||!i.style.height&&!i.style.width)&&(i.style.height=o+"px",i.style.width=r+"px")}const et=function(){let e=!1;try{const n={get passive(){return e=!0,!1}};window.addEventListener("test",null,n),window.removeEventListener("test",null,n)}catch(e){}return e}();function nt(e,n){const t=function(e,n){return Gn(e).getPropertyValue(n)}(e,n),a=t&&t.match(/^(\d+)(\.\d+)?px$/);return a?+a[1]:void 0}function tt(e,n,t,a){return{x:e.x+t*(n.x-e.x),y:e.y+t*(n.y-e.y)}}function at(e,n,t,a){return{x:e.x+t*(n.x-e.x),y:"middle"===a?t<.5?e.y:n.y:"after"===a?t<1?e.y:n.y:t>0?n.y:e.y}}function it(e,n,t,a){const i={x:e.cp2x,y:e.cp2y},r={x:n.cp1x,y:n.cp1y},o=tt(e,i,t),s=tt(i,r,t),l=tt(r,n,t),d=tt(o,s,t),c=tt(s,l,t);return tt(d,c,t)}const rt=new Map;function ot(e,n,t){return function(e,n){n=n||{};const t=e+JSON.stringify(n);let a=rt.get(t);return a||(a=new Intl.NumberFormat(e,n),rt.set(t,a)),a}(n,t).format(e)}function st(e,n,t){return e?function(e,n){return{x:t=>e+e+n-t,setWidth(e){n=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,n)=>e-n,leftForLtr:(e,n)=>e-n}}(n,t):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,n)=>e+n,leftForLtr:(e,n)=>e}}function lt(e,n){let t,a;"ltr"!==n&&"rtl"!==n||(t=e.canvas.style,a=[t.getPropertyValue("direction"),t.getPropertyPriority("direction")],t.setProperty("direction",n,"important"),e.prevTextDirection=a)}function dt(e,n){void 0!==n&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",n[0],n[1]))}function ct(e){return"angle"===e?{between:te,compare:ee,normalize:ne}:{between:(e,n,t)=>e>=Math.min(n,t)&&e<=Math.max(t,n),compare:(e,n)=>e-n,normalize:e=>e}}function ut({start:e,end:n,count:t,loop:a,style:i}){return{start:e%t,end:n%t,loop:a&&(n-e+1)%t==0,style:i}}function ht(e,n,t){if(!t)return[e];const{property:a,start:i,end:r}=t,o=n.length,{compare:s,between:l,normalize:d}=ct(a),{start:c,end:u,loop:h,style:p}=function(e,n,t){const{property:a,start:i,end:r}=t,{between:o,normalize:s}=ct(a),l=n.length;let d,c,{start:u,end:h,loop:p}=e;if(p){for(u+=l,h+=l,d=0,c=l;dv||l(i,b,f)&&0!==s(i,b),C=()=>!v||0===s(r,f)||l(r,b,f);for(let e=c,t=c;e<=u;++e)g=n[e%o],g.skip||(f=d(g[a]),v=l(f,i,r),null===y&&x()&&(y=0===s(f,i)?e:t),null!==y&&C()&&(m.push(ut({start:y,end:e,loop:h,count:o,style:p})),y=null),t=e,b=f);return null!==y&&m.push(ut({start:y,end:u,loop:h,count:o,style:p})),m}function pt(e,n){const t=[],a=e.segments;for(let i=0;ii&&e[r%n].skip;)r--;return r%=n,{start:i,end:r}}(t,i,r,a);if(!0===a)return ft([{start:o,end:s,loop:r}],t,n);return ft(function(e,n,t,a){const i=e.length,r=[];let o,s=n,l=e[n];for(o=n+1;o<=t;++o){const t=e[o%i];t.skip||t.stop?l.skip||(a=!1,r.push({start:n%i,end:(o-1)%i,loop:a}),n=s=t.stop?o:null):(s=o,l.skip&&(n=o)),l=t}return null!==s&&r.push({start:n%i,end:s%i,loop:a}),r}(t,o,s=0&&Math.floor(n)===n&&isFinite(e)}function p(e){return r(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function m(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===d?JSON.stringify(e,null,2):String(e)}function f(e){var n=parseFloat(e);return isNaN(n)?e:n}function g(e,n){for(var t=Object.create(null),a=e.split(","),i=0;i-1)return e.splice(t,1)}}var y=Object.prototype.hasOwnProperty;function x(e,n){return y.call(e,n)}function C(e){var n=Object.create(null);return function(t){return n[t]||(n[t]=e(t))}}var w=/-(\w)/g,D=C((function(e){return e.replace(w,(function(e,n){return n?n.toUpperCase():""}))})),T=C((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),P=/\B([A-Z])/g,k=C((function(e){return e.replace(P,"-$1").toLowerCase()}));var S=Function.prototype.bind?function(e,n){return e.bind(n)}:function(e,n){function t(t){var a=arguments.length;return a?a>1?e.apply(n,arguments):e.call(n,t):e.call(n)}return t._length=e.length,t};function O(e,n){n=n||0;for(var t=e.length-n,a=new Array(t);t--;)a[t]=e[t+n];return a}function A(e,n){for(var t in n)e[t]=n[t];return e}function R(e){for(var n={},t=0;t0,Z=q&&q.indexOf("edge/")>0,K=(q&&q.indexOf("android"),q&&/iphone|ipad|ipod|ios/.test(q)||"ios"===G),Q=(q&&/chrome\/\d+/.test(q),q&&/phantomjs/.test(q),q&&q.match(/firefox\/(\d+)/)),ee={}.watch,ne=!1;if(Y)try{var te={};Object.defineProperty(te,"passive",{get:function(){ne=!0}}),window.addEventListener("test-passive",null,te)}catch(e){}var ae=function(){return void 0===V&&(V=!Y&&!$&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),V},ie=Y&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function re(e){return"function"==typeof e&&/native code/.test(e.toString())}var oe,se="undefined"!=typeof Symbol&&re(Symbol)&&"undefined"!=typeof Reflect&&re(Reflect.ownKeys);oe="undefined"!=typeof Set&&re(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var le=I,de=0,ce=function(){this.id=de++,this.subs=[]};ce.prototype.addSub=function(e){this.subs.push(e)},ce.prototype.removeSub=function(e){v(this.subs,e)},ce.prototype.depend=function(){ce.target&&ce.target.addDep(this)},ce.prototype.notify=function(){var e=this.subs.slice();for(var n=0,t=e.length;n-1)if(r&&!x(i,"default"))o=!1;else if(""===o||o===k(e)){var l=Fe(String,i.type);(l<0||s0&&(un((l=e(l,(t||"")+"_"+a))[0])&&un(c)&&(u[d]=be(c.text+l[0].text),l.shift()),u.push.apply(u,l)):s(l)?un(c)?u[d]=be(c.text+l):""!==l&&u.push(be(l)):un(l)&&un(c)?u[d]=be(c.text+l.text):(o(n._isVList)&&r(l.tag)&&i(l.key)&&r(t)&&(l.key="__vlist"+t+"_"+a+"__"),u.push(l)));return u}(e):void 0}function un(e){return r(e)&&r(e.text)&&!1===e.isComment}function hn(e,n){if(e){for(var t=Object.create(null),a=se?Reflect.ownKeys(e):Object.keys(e),i=0;i0,o=e?!!e.$stable:!r,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&t&&t!==a&&s===t.$key&&!r&&!t.$hasNormal)return t;for(var l in i={},e)e[l]&&"$"!==l[0]&&(i[l]=gn(n,l,e[l]))}else i={};for(var d in n)d in i||(i[d]=bn(n,d));return e&&Object.isExtensible(e)&&(e._normalized=i),F(i,"$stable",o),F(i,"$key",s),F(i,"$hasNormal",r),i}function gn(e,n,t){var a=function(){var e=arguments.length?t.apply(null,arguments):t({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:cn(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return t.proxy&&Object.defineProperty(e,n,{get:a,enumerable:!0,configurable:!0}),a}function bn(e,n){return function(){return e[n]}}function vn(e,n){var t,a,i,o,s;if(Array.isArray(e)||"string"==typeof e)for(t=new Array(e.length),a=0,i=e.length;adocument.createEvent("Event").timeStamp&&(lt=function(){return dt.now()})}function ct(){var e,n;for(st=lt(),rt=!0,nt.sort((function(e,n){return e.id-n.id})),ot=0;otot&&nt[t].id>e.id;)t--;nt.splice(t+1,0,e)}else nt.push(e);it||(it=!0,nn(ct))}}(this)},ht.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||l(e)||this.deep){var n=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,n)}catch(e){He(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,n)}}},ht.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ht.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},ht.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var pt={enumerable:!0,configurable:!0,get:I,set:I};function mt(e,n,t){pt.get=function(){return this[n][t]},pt.set=function(e){this[n][t]=e},Object.defineProperty(e,t,pt)}function ft(e){e._watchers=[];var n=e.$options;n.props&&function(e,n){var t=e.$options.propsData||{},a=e._props={},i=e.$options._propKeys=[];e.$parent&&De(!1);var r=function(r){i.push(r);var o=Be(r,n,t,e);ke(a,r,o),r in e||mt(e,"_props",r)};for(var o in n)r(o);De(!0)}(e,n.props),n.methods&&function(e,n){e.$options.props;for(var t in n)e[t]="function"!=typeof n[t]?I:S(n[t],e)}(e,n.methods),n.data?function(e){var n=e.$options.data;c(n=e._data="function"==typeof n?function(e,n){he();try{return e.call(n,n)}catch(e){return He(e,n,"data()"),{}}finally{pe()}}(n,e):n||{})||(n={});var t=Object.keys(n),a=e.$options.props,i=(e.$options.methods,t.length);for(;i--;){var r=t[i];0,a&&x(a,r)||(o=void 0,36!==(o=(r+"").charCodeAt(0))&&95!==o&&mt(e,"_data",r))}var o;Pe(n,!0)}(e):Pe(e._data={},!0),n.computed&&function(e,n){var t=e._computedWatchers=Object.create(null),a=ae();for(var i in n){var r=n[i],o="function"==typeof r?r:r.get;0,a||(t[i]=new ht(e,o||I,I,gt)),i in e||bt(e,i,r)}}(e,n.computed),n.watch&&n.watch!==ee&&function(e,n){for(var t in n){var a=n[t];if(Array.isArray(a))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(n)>-1:!!u(e)&&e.test(n)}function St(e,n){var t=e.cache,a=e.keys,i=e._vnode;for(var r in t){var o=t[r];if(o){var s=Pt(o.componentOptions);s&&!n(s)&&Ot(t,r,a,i)}}}function Ot(e,n,t,a){var i=e[n];!i||a&&i.tag===a.tag||i.componentInstance.$destroy(),e[n]=null,v(t,n)}!function(e){e.prototype._init=function(e){var n=this;n._uid=Ct++,n._isVue=!0,e&&e._isComponent?function(e,n){var t=e.$options=Object.create(e.constructor.options),a=n._parentVnode;t.parent=n.parent,t._parentVnode=a;var i=a.componentOptions;t.propsData=i.propsData,t._parentListeners=i.listeners,t._renderChildren=i.children,t._componentTag=i.tag,n.render&&(t.render=n.render,t.staticRenderFns=n.staticRenderFns)}(n,e):n.$options=je(wt(n.constructor),e||{},n),n._renderProxy=n,n._self=n,function(e){var n=e.$options,t=n.parent;if(t&&!n.abstract){for(;t.$options.abstract&&t.$parent;)t=t.$parent;t.$children.push(e)}e.$parent=t,e.$root=t?t.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(n),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var n=e.$options._parentListeners;n&&Xn(e,n)}(n),function(e){e._vnode=null,e._staticTrees=null;var n=e.$options,t=e.$vnode=n._parentVnode,i=t&&t.context;e.$slots=pn(n._renderChildren,i),e.$scopedSlots=a,e._c=function(n,t,a,i){return zn(e,n,t,a,i,!1)},e.$createElement=function(n,t,a,i){return zn(e,n,t,a,i,!0)};var r=t&&t.data;ke(e,"$attrs",r&&r.attrs||a,null,!0),ke(e,"$listeners",n._parentListeners||a,null,!0)}(n),et(n,"beforeCreate"),function(e){var n=hn(e.$options.inject,e);n&&(De(!1),Object.keys(n).forEach((function(t){ke(e,t,n[t])})),De(!0))}(n),ft(n),function(e){var n=e.$options.provide;n&&(e._provided="function"==typeof n?n.call(e):n)}(n),et(n,"created"),n.$options.el&&n.$mount(n.$options.el)}}(Dt),function(e){var n={get:function(){return this._data}},t={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",n),Object.defineProperty(e.prototype,"$props",t),e.prototype.$set=Se,e.prototype.$delete=Oe,e.prototype.$watch=function(e,n,t){if(c(n))return xt(this,e,n,t);(t=t||{}).user=!0;var a=new ht(this,e,n,t);if(t.immediate)try{n.call(this,a.value)}catch(e){He(e,this,'callback for immediate watcher "'+a.expression+'"')}return function(){a.teardown()}}}(Dt),function(e){var n=/^hook:/;e.prototype.$on=function(e,t){var a=this;if(Array.isArray(e))for(var i=0,r=e.length;i1?O(t):t;for(var a=O(arguments,1),i='event handler for "'+e+'"',r=0,o=t.length;rparseInt(this.max)&&Ot(o,s[0],s,this._vnode)),n.data.keepAlive=!0}return n||e&&e[0]}}};!function(e){var n={get:function(){return U}};Object.defineProperty(e,"config",n),e.util={warn:le,extend:A,mergeOptions:je,defineReactive:ke},e.set=Se,e.delete=Oe,e.nextTick=nn,e.observable=function(e){return Pe(e),e},e.options=Object.create(null),N.forEach((function(n){e.options[n+"s"]=Object.create(null)})),e.options._base=e,A(e.options.components,Rt),function(e){e.use=function(e){var n=this._installedPlugins||(this._installedPlugins=[]);if(n.indexOf(e)>-1)return this;var t=O(arguments,1);return t.unshift(this),"function"==typeof e.install?e.install.apply(e,t):"function"==typeof e&&e.apply(null,t),n.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=je(this.options,e),this}}(e),Tt(e),function(e){N.forEach((function(n){e[n]=function(e,t){return t?("component"===n&&c(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),"directive"===n&&"function"==typeof t&&(t={bind:t,update:t}),this.options[n+"s"][e]=t,t):this.options[n+"s"][e]}}))}(e)}(Dt),Object.defineProperty(Dt.prototype,"$isServer",{get:ae}),Object.defineProperty(Dt.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Dt,"FunctionalRenderContext",{value:En}),Dt.version="2.6.12";var It=g("style,class"),_t=g("input,textarea,option,select,progress"),Et=g("contenteditable,draggable,spellcheck"),Lt=g("events,caret,typing,plaintext-only"),Mt=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),jt="http://www.w3.org/1999/xlink",Nt=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Bt=function(e){return Nt(e)?e.slice(6,e.length):""},Ut=function(e){return null==e||!1===e};function zt(e){for(var n=e.data,t=e,a=e;r(a.componentInstance);)(a=a.componentInstance._vnode)&&a.data&&(n=Ft(a.data,n));for(;r(t=t.parent);)t&&t.data&&(n=Ft(n,t.data));return function(e,n){if(r(e)||r(n))return Ht(e,Vt(n));return""}(n.staticClass,n.class)}function Ft(e,n){return{staticClass:Ht(e.staticClass,n.staticClass),class:r(e.class)?[e.class,n.class]:n.class}}function Ht(e,n){return e?n?e+" "+n:e:n||""}function Vt(e){return Array.isArray(e)?function(e){for(var n,t="",a=0,i=e.length;a-1?ha(e,n,t):Mt(n)?Ut(t)?e.removeAttribute(n):(t="allowfullscreen"===n&&"EMBED"===e.tagName?"true":n,e.setAttribute(n,t)):Et(n)?e.setAttribute(n,function(e,n){return Ut(n)||"false"===n?"false":"contenteditable"===e&&Lt(n)?n:"true"}(n,t)):Nt(n)?Ut(t)?e.removeAttributeNS(jt,Bt(n)):e.setAttributeNS(jt,n,t):ha(e,n,t)}function ha(e,n,t){if(Ut(t))e.removeAttribute(n);else{if(X&&!J&&"TEXTAREA"===e.tagName&&"placeholder"===n&&""!==t&&!e.__ieph){var a=function(n){n.stopImmediatePropagation(),e.removeEventListener("input",a)};e.addEventListener("input",a),e.__ieph=!0}e.setAttribute(n,t)}}var pa={create:ca,update:ca};function ma(e,n){var t=n.elm,a=n.data,o=e.data;if(!(i(a.staticClass)&&i(a.class)&&(i(o)||i(o.staticClass)&&i(o.class)))){var s=zt(n),l=t._transitionClasses;r(l)&&(s=Ht(s,Vt(l))),s!==t._prevClass&&(t.setAttribute("class",s),t._prevClass=s)}}var fa,ga={create:ma,update:ma};function ba(e,n,t){var a=fa;return function i(){var r=n.apply(null,arguments);null!==r&&xa(e,i,t,a)}}var va=Ge&&!(Q&&Number(Q[1])<=53);function ya(e,n,t,a){if(va){var i=st,r=n;n=r._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return r.apply(this,arguments)}}fa.addEventListener(e,n,ne?{capture:t,passive:a}:t)}function xa(e,n,t,a){(a||fa).removeEventListener(e,n._wrapper||n,t)}function Ca(e,n){if(!i(e.data.on)||!i(n.data.on)){var t=n.data.on||{},a=e.data.on||{};fa=n.elm,function(e){if(r(e.__r)){var n=X?"change":"input";e[n]=[].concat(e.__r,e[n]||[]),delete e.__r}r(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(t),sn(t,a,ya,xa,ba,n.context),fa=void 0}}var wa,Da={create:Ca,update:Ca};function Ta(e,n){if(!i(e.data.domProps)||!i(n.data.domProps)){var t,a,o=n.elm,s=e.data.domProps||{},l=n.data.domProps||{};for(t in r(l.__ob__)&&(l=n.data.domProps=A({},l)),s)t in l||(o[t]="");for(t in l){if(a=l[t],"textContent"===t||"innerHTML"===t){if(n.children&&(n.children.length=0),a===s[t])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===t&&"PROGRESS"!==o.tagName){o._value=a;var d=i(a)?"":String(a);Pa(o,d)&&(o.value=d)}else if("innerHTML"===t&&$t(o.tagName)&&i(o.innerHTML)){(wa=wa||document.createElement("div")).innerHTML=""+a+"";for(var c=wa.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;c.firstChild;)o.appendChild(c.firstChild)}else if(a!==s[t])try{o[t]=a}catch(e){}}}}function Pa(e,n){return!e.composing&&("OPTION"===e.tagName||function(e,n){var t=!0;try{t=document.activeElement!==e}catch(e){}return t&&e.value!==n}(e,n)||function(e,n){var t=e.value,a=e._vModifiers;if(r(a)){if(a.number)return f(t)!==f(n);if(a.trim)return t.trim()!==n.trim()}return t!==n}(e,n))}var ka={create:Ta,update:Ta},Sa=C((function(e){var n={},t=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var a=e.split(t);a.length>1&&(n[a[0].trim()]=a[1].trim())}})),n}));function Oa(e){var n=Aa(e.style);return e.staticStyle?A(e.staticStyle,n):n}function Aa(e){return Array.isArray(e)?R(e):"string"==typeof e?Sa(e):e}var Ra,Ia=/^--/,_a=/\s*!important$/,Ea=function(e,n,t){if(Ia.test(n))e.style.setProperty(n,t);else if(_a.test(t))e.style.setProperty(k(n),t.replace(_a,""),"important");else{var a=Ma(n);if(Array.isArray(t))for(var i=0,r=t.length;i-1?n.split(Ba).forEach((function(n){return e.classList.add(n)})):e.classList.add(n);else{var t=" "+(e.getAttribute("class")||"")+" ";t.indexOf(" "+n+" ")<0&&e.setAttribute("class",(t+n).trim())}}function za(e,n){if(n&&(n=n.trim()))if(e.classList)n.indexOf(" ")>-1?n.split(Ba).forEach((function(n){return e.classList.remove(n)})):e.classList.remove(n),e.classList.length||e.removeAttribute("class");else{for(var t=" "+(e.getAttribute("class")||"")+" ",a=" "+n+" ";t.indexOf(a)>=0;)t=t.replace(a," ");(t=t.trim())?e.setAttribute("class",t):e.removeAttribute("class")}}function Fa(e){if(e){if("object"==typeof e){var n={};return!1!==e.css&&A(n,Ha(e.name||"v")),A(n,e),n}return"string"==typeof e?Ha(e):void 0}}var Ha=C((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Va=Y&&!J,Wa="transition",Ya="transitionend",$a="animation",Ga="animationend";Va&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Wa="WebkitTransition",Ya="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&($a="WebkitAnimation",Ga="webkitAnimationEnd"));var qa=Y?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Xa(e){qa((function(){qa(e)}))}function Ja(e,n){var t=e._transitionClasses||(e._transitionClasses=[]);t.indexOf(n)<0&&(t.push(n),Ua(e,n))}function Za(e,n){e._transitionClasses&&v(e._transitionClasses,n),za(e,n)}function Ka(e,n,t){var a=ei(e,n),i=a.type,r=a.timeout,o=a.propCount;if(!i)return t();var s="transition"===i?Ya:Ga,l=0,d=function(){e.removeEventListener(s,c),t()},c=function(n){n.target===e&&++l>=o&&d()};setTimeout((function(){l0&&(t="transition",c=o,u=r.length):"animation"===n?d>0&&(t="animation",c=d,u=l.length):u=(t=(c=Math.max(o,d))>0?o>d?"transition":"animation":null)?"transition"===t?r.length:l.length:0,{type:t,timeout:c,propCount:u,hasTransform:"transition"===t&&Qa.test(a[Wa+"Property"])}}function ni(e,n){for(;e.length1}function si(e,n){!0!==n.data.show&&ai(n)}var li=function(e){var n,t,a={},l=e.modules,d=e.nodeOps;for(n=0;nm?y(e,i(t[b+1])?null:t[b+1].elm,t,p,b,a):p>b&&C(n,h,m)}(h,g,b,t,c):r(b)?(r(e.text)&&d.setTextContent(h,""),y(h,null,b,0,b.length-1,t)):r(g)?C(g,0,g.length-1):r(e.text)&&d.setTextContent(h,""):e.text!==n.text&&d.setTextContent(h,n.text),r(m)&&r(p=m.hook)&&r(p=p.postpatch)&&p(e,n)}}}function P(e,n,t){if(o(t)&&r(e.parent))e.parent.data.pendingInsert=n;else for(var a=0;a-1,o.selected!==r&&(o.selected=r);else if(L(pi(o),a))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function hi(e,n){return n.every((function(n){return!L(n,e)}))}function pi(e){return"_value"in e?e._value:e.value}function mi(e){e.target.composing=!0}function fi(e){e.target.composing&&(e.target.composing=!1,gi(e.target,"input"))}function gi(e,n){var t=document.createEvent("HTMLEvents");t.initEvent(n,!0,!0),e.dispatchEvent(t)}function bi(e){return!e.componentInstance||e.data&&e.data.transition?e:bi(e.componentInstance._vnode)}var vi={model:di,show:{bind:function(e,n,t){var a=n.value,i=(t=bi(t)).data&&t.data.transition,r=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;a&&i?(t.data.show=!0,ai(t,(function(){e.style.display=r}))):e.style.display=a?r:"none"},update:function(e,n,t){var a=n.value;!a!=!n.oldValue&&((t=bi(t)).data&&t.data.transition?(t.data.show=!0,a?ai(t,(function(){e.style.display=e.__vOriginalDisplay})):ii(t,(function(){e.style.display="none"}))):e.style.display=a?e.__vOriginalDisplay:"none")},unbind:function(e,n,t,a,i){i||(e.style.display=e.__vOriginalDisplay)}}},yi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function xi(e){var n=e&&e.componentOptions;return n&&n.Ctor.options.abstract?xi(Yn(n.children)):e}function Ci(e){var n={},t=e.$options;for(var a in t.propsData)n[a]=e[a];var i=t._parentListeners;for(var r in i)n[D(r)]=i[r];return n}function wi(e,n){if(/\d-keep-alive$/.test(n.tag))return e("keep-alive",{props:n.componentOptions.propsData})}var Di=function(e){return e.tag||Wn(e)},Ti=function(e){return"show"===e.name},Pi={name:"transition",props:yi,abstract:!0,render:function(e){var n=this,t=this.$slots.default;if(t&&(t=t.filter(Di)).length){0;var a=this.mode;0;var i=t[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var r=xi(i);if(!r)return i;if(this._leaving)return wi(e,i);var o="__transition-"+this._uid+"-";r.key=null==r.key?r.isComment?o+"comment":o+r.tag:s(r.key)?0===String(r.key).indexOf(o)?r.key:o+r.key:r.key;var l=(r.data||(r.data={})).transition=Ci(this),d=this._vnode,c=xi(d);if(r.data.directives&&r.data.directives.some(Ti)&&(r.data.show=!0),c&&c.data&&!function(e,n){return n.key===e.key&&n.tag===e.tag}(r,c)&&!Wn(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var u=c.data.transition=A({},l);if("out-in"===a)return this._leaving=!0,ln(u,"afterLeave",(function(){n._leaving=!1,n.$forceUpdate()})),wi(e,i);if("in-out"===a){if(Wn(r))return d;var h,p=function(){h()};ln(l,"afterEnter",p),ln(l,"enterCancelled",p),ln(u,"delayLeave",(function(e){h=e}))}}return i}}},ki=A({tag:String,moveClass:String},yi);function Si(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Oi(e){e.data.newPos=e.elm.getBoundingClientRect()}function Ai(e){var n=e.data.pos,t=e.data.newPos,a=n.left-t.left,i=n.top-t.top;if(a||i){e.data.moved=!0;var r=e.elm.style;r.transform=r.WebkitTransform="translate("+a+"px,"+i+"px)",r.transitionDuration="0s"}}delete ki.mode;var Ri={Transition:Pi,TransitionGroup:{props:ki,beforeMount:function(){var e=this,n=this._update;this._update=function(t,a){var i=Zn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),n.call(e,t,a)}},render:function(e){for(var n=this.tag||this.$vnode.data.tag||"span",t=Object.create(null),a=this.prevChildren=this.children,i=this.$slots.default||[],r=this.children=[],o=Ci(this),s=0;s-1?qt[e]=n.constructor===window.HTMLUnknownElement||n.constructor===window.HTMLElement:qt[e]=/HTMLUnknownElement/.test(n.toString())},A(Dt.options.directives,vi),A(Dt.options.components,Ri),Dt.prototype.__patch__=Y?li:I,Dt.prototype.$mount=function(e,n){return function(e,n,t){var a;return e.$el=n,e.$options.render||(e.$options.render=ge),et(e,"beforeMount"),a=function(){e._update(e._render(),t)},new ht(e,a,I,{before:function(){e._isMounted&&!e._isDestroyed&&et(e,"beforeUpdate")}},!0),t=!1,null==e.$vnode&&(e._isMounted=!0,et(e,"mounted")),e}(this,e=e&&Y?function(e){if("string"==typeof e){var n=document.querySelector(e);return n||document.createElement("div")}return e}(e):void 0,n)},Y&&setTimeout((function(){U.devtools&&ie&&ie.emit("init",Dt)}),0),n.a=Dt},function(e,n){var t=function(e){return e&&e.Math==Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||Function("return this")()},function(e,n,t){"use strict";t.d(n,"a",(function(){return P})),t.d(n,"b",(function(){return Je})),t.d(n,"c",(function(){return pt})),t.d(n,"d",(function(){return ke})),t.d(n,"e",(function(){return lt})),t.d(n,"f",(function(){return M})),t.d(n,"g",(function(){return Et}));t(94);var a=t(0);var i=new +/*! + * Chart.js v3.1.0 + * https://www.chartjs.org + * (c) 2021 Chart.js Contributors + * Released under the MIT License + */ +class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,t,a){const i=n.listeners[a],r=n.duration;i.forEach(a=>a({chart:e,numSteps:r,currentStep:Math.min(t-n.start,r)}))}_refresh(){const e=this;e._request||(e._running=!0,e._request=a.Kb.call(window,()=>{e._update(),e._request=null,e._running&&e._refresh()}))}_update(e=Date.now()){const n=this;let t=0;n._charts.forEach((a,i)=>{if(!a.running||!a.items.length)return;const r=a.items;let o,s=r.length-1,l=!1;for(;s>=0;--s)o=r[s],o._active?(o._total>a.duration&&(a.duration=o._total),o.tick(e),l=!0):(r[s]=r[r.length-1],r.pop());l&&(i.draw(),n._notify(i,a,e,"progress")),r.length||(a.running=!1,n._notify(i,a,e,"complete")),t+=r.length}),n._lastDate=e,0===t&&(n._running=!1)}_getAnims(e){const n=this._charts;let t=n.get(e);return t||(t={running:!1,items:[],listeners:{complete:[],progress:[]}},n.set(e,t)),t}listen(e,n,t){this._getAnims(e).listeners[n].push(t)}add(e,n){n&&n.length&&this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((e,n)=>Math.max(e,n._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!!(n&&n.running&&n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const t=n.items;let a=t.length-1;for(;a>=0;--a)t[a].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}};const r={boolean:(e,n,t)=>t>.5?n:e,color(e,n,t){const i=Object(a.vb)(e||"transparent"),r=i.valid&&Object(a.vb)(n||"transparent");return r&&r.valid?r.mix(i,t).hexString():n},number:(e,n,t)=>e+(n-e)*t};class o{constructor(e,n,t,i){const o=n[t];i=Object(a.C)([e.to,i,o,e.from]);const s=Object(a.C)([e.from,o,i]);this._active=!0,this._fn=e.fn||r[e.type||typeof s],this._easing=a.xb[e.easing]||a.xb.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=t,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(e,n,t){const i=this;if(i._active){i._notify(!1);const r=i._target[i._prop],o=t-i._start,s=i._duration-o;i._start=t,i._duration=Math.floor(Math.max(s,e.duration)),i._total+=o,i._loop=!!e.loop,i._to=Object(a.C)([e.to,n,r,e.from]),i._from=Object(a.C)([e.from,r,n])}}cancel(){const e=this;e._active&&(e.tick(Date.now()),e._active=!1,e._notify(!1))}tick(e){const n=this,t=e-n._start,a=n._duration,i=n._prop,r=n._from,o=n._loop,s=n._to;let l;if(n._active=r!==s&&(o||t1?2-l:l,l=n._easing(Math.min(1,Math.max(0,l))),n._target[i]=n._fn(r,s,l))}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,t)=>{e.push({res:n,rej:t})})}_notify(e){const n=e?"res":"rej",t=this._promises||[];for(let e=0;e"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),a.wb.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),a.wb.describe("animations",{_fallback:"animation"}),a.wb.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}});class l{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!Object(a.Bb)(e))return;const n=this._properties;Object.getOwnPropertyNames(e).forEach(t=>{const i=e[t];if(!Object(a.Bb)(i))return;const r={};for(const e of s)r[e]=i[e];(Object(a.ub)(i.properties)&&i.properties||[t]).forEach(e=>{e!==t&&n.has(e)||n.set(e,r)})})}_animateOptions(e,n){const t=n.options,a=function(e,n){if(!n)return;let t=e.options;if(!t)return void(e.options=n);t.$shared&&(e.options=t=Object.assign({},t,{$shared:!1,$animations:{}}));return t}(e,t);if(!a)return[];const i=this._createAnimations(a,t);return t.$shared&&function(e,n){const t=[],a=Object.keys(n);for(let n=0;n{e.options=t},()=>{}),i}_createAnimations(e,n){const t=this._properties,a=[],i=e.$animations||(e.$animations={}),r=Object.keys(n),s=Date.now();let l;for(l=r.length-1;l>=0;--l){const d=r[l];if("$"===d.charAt(0))continue;if("options"===d){a.push(...this._animateOptions(e,n));continue}const c=n[d];let u=i[d];const h=t.get(d);if(u){if(h&&u.active()){u.update(h,c,s);continue}u.cancel()}h&&h.duration?(i[d]=u=new o(h,e,d,c),a.push(u)):e[d]=c}return a}update(e,n){if(0===this._properties.size)return void Object.assign(e,n);const t=this._createAnimations(e,n);return t.length?(i.add(this._chart,t),!0):void 0}}function d(e,n){const t=e&&e.options||{},a=t.reverse,i=void 0===t.min?n:0,r=void 0===t.max?n:0;return{start:a?r:i,end:a?i:r}}function c(e,n){const t=[],a=e._getSortedDatasetMetas(n);let i,r;for(i=0,r=a.length;it[e].axis===n).shift()}function g(e,n){n=n||e._parsed;for(const t of n){const n=t._stacks;if(!n||void 0===n[e.vScale.id]||void 0===n[e.vScale.id][e.index])return;delete n[e.vScale.id][e.index]}}const b=e=>"reset"===e||"none"===e,v=(e,n)=>n?e:Object.assign({},e);class y{constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.$context=void 0,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=h(e.vScale,e),this.addElements()}updateIndex(e){this.index=e}linkScales(){const e=this,n=e.chart,t=e._cachedMeta,i=e.getDataset(),r=(e,n,t,a)=>"x"===e?n:"r"===e?a:t,o=t.xAxisID=Object(a.Ob)(i.xAxisID,f(n,"x")),s=t.yAxisID=Object(a.Ob)(i.yAxisID,f(n,"y")),l=t.rAxisID=Object(a.Ob)(i.rAxisID,f(n,"r")),d=t.indexAxis,c=t.iAxisID=r(d,o,s,l),u=t.vAxisID=r(d,s,o,l);t.xScale=e.getScaleForId(o),t.yScale=e.getScaleForId(s),t.rScale=e.getScaleForId(l),t.iScale=e.getScaleForId(c),t.vScale=e.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Object(a.Nb)(this._data,this),e._stacked&&g(e)}_dataCheck(){const e=this,n=e.getDataset(),t=n.data||(n.data=[]);Object(a.Bb)(t)?e._data=function(e){const n=Object.keys(e),t=new Array(n.length);let a,i,r;for(a=0,i=n.length;a0&&i._parsed[e-1];if(!1===t._parsing)i._parsed=r,i._sorted=!0;else{u=Object(a.ub)(r[e])?t.parseArrayData(i,r,e,n):Object(a.Bb)(r[e])?t.parseObjectData(i,r,e,n):t.parsePrimitiveData(i,r,e,n);const o=()=>null===c[l]||p&&c[l]b||p=0;--m)if(!v()){t.updateRangeFromParsed(u,e,g,d);break}return u}getAllParsedValues(e){const n=this._cachedMeta._parsed,t=[];let i,r,o;for(i=0,r=n.length;i=0&&ei.getContext(t,r),h);return f.$shared&&(f.$shared=d,o[s]=Object.freeze(v(f,d))),f}_resolveAnimations(e,n,t){const a=this,i=a.chart,r=a._cachedDataOpts,o="animation-"+n,s=r[o];if(s)return s;let d;if(!1!==i.options.animation){const i=a.chart.config,r=i.datasetAnimationScopeKeys(a._type,n),o=i.getOptionScopes(a.getDataset(),r);d=i.createResolver(o,a.getContext(e,t,n))}const c=new l(i,d&&d.animations);return d&&d._cacheable&&(r[o]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||b(e)||this.chart._animationsDisabled}updateElement(e,n,t,a){b(a)?Object.assign(e,t):this._resolveAnimations(n,a).update(e,t)}updateSharedOptions(e,n,t){e&&!b(n)&&this._resolveAnimations(void 0,n).update(e,t)}_setStyle(e,n,t,a){e.active=a;const i=this.getStyle(n,a);this._resolveAnimations(n,t,a).update(e,{options:!a&&this.getSharedOptions(i)||i})}removeHoverStyle(e,n,t){this._setStyle(e,t,"active",!1)}setHoverStyle(e,n,t){this._setStyle(e,t,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this,t=n._cachedMeta.data.length,a=n._data.length;a>t?n._insertElements(t,a-t,e):a{for(e.length+=n,s=e.length-1;s>=o;s--)e[s]=e[s-n]};for(l(r),s=e;se-n))}return e._cache.$bar}(e);let t,i,r,o,s=e._length;const l=()=>{s=Math.min(s,t&&Math.abs(r-o)||s),o=r};for(t=0,i=n.length;tMath.abs(s)&&(l=s,d=o),n[t.axis]=d,n._custom={barStart:l,barEnd:d,start:i,end:r,min:o,max:s}}(e,n,t,i):n[t.axis]=t.parse(e,i),n}function w(e,n,t,a){const i=e.iScale,r=e.vScale,o=i.getLabels(),s=i===r,l=[];let d,c,u,h;for(d=t,c=t+a;d0?(f+=e,c-=e):c<0&&(f-=e,c+=e)}return{size:c,base:f,head:d,center:d+c/2}}_calculateBarIndexPixels(e,n){const t=this,i=n.scale,r=t.options,o=Object(a.Ob)(r.maxBarThickness,1/0);let s,l;if(n.grouped){const i=r.skipNull?t._getStackCount(e):n.stackCount,d="flex"===r.barThickness?function(e,n,t,a){const i=n.pixels,r=i[e];let o=e>0?i[e-1]:null,s=e=0;--a)t=Math.max(t,e[a].size()/2,n[a]._custom);return t>0&&t}getLabelAndValue(e){const n=this._cachedMeta,{xScale:t,yScale:a}=n,i=this.getParsed(e),r=t.getLabelForValue(i.x),o=a.getLabelForValue(i.y),s=i._custom;return{label:n.label,value:"("+r+", "+o+(s?", "+s:"")+")"}}update(e){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,e)}updateElements(e,n,t,a){const i=this,r="reset"===a,{xScale:o,yScale:s}=i._cachedMeta,l=i.resolveDataElementOptions(n,a),d=i.getSharedOptions(l),c=i.includeOptions(a,d);for(let l=n;l""}}}};class k extends y{constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const t=this.getDataset().data,a=this._cachedMeta;let i,r;for(i=e,r=e+n;iObject(a.Jb)(e,l,d)?1:Math.max(n,n*t,i,i*t),f=(e,n,i)=>Object(a.Jb)(e,l,d)?-1:Math.min(n,n*t,i,i*t),g=m(0,c,h),b=m(a.i,u,p),v=f(a.q,c,h),y=f(a.q+a.i,u,p);i=(g-v)/2,r=(b-y)/2,o=-(g+v)/2,s=-(b+y)/2}return{ratioX:i,ratioY:r,offsetX:o,offsetY:s}}(h,u,d),b=(i.width-s)/p,v=(i.height-s)/m,y=Math.max(Math.min(b,v)/2,0),x=Object(a.Hb)(n.options.radius,y),C=(x-Math.max(x*d,0))/n._getVisibleDatasetWeightTotal();n.offsetX=f*x,n.offsetY=g*x,r.total=n.calculateTotal(),n.outerRadius=x-C*n._getRingWeightOffset(n.index),n.innerRadius=Math.max(n.outerRadius-C*c,0),n.updateElements(o,0,o.length,e)}_circumference(e,n){const t=this.options,i=this._cachedMeta,r=this._getCircumference();return n&&t.animation.animateRotate||!this.chart.getDataVisibility(e)||null===i._parsed[e]?0:this.calculateCircumference(i._parsed[e]*r/a.u)}updateElements(e,n,t,a){const i=this,r="reset"===a,o=i.chart,s=o.chartArea,l=o.options.animation,d=(s.left+s.right)/2,c=(s.top+s.bottom)/2,u=r&&l.animateScale,h=u?0:i.innerRadius,p=u?0:i.outerRadius,m=i.resolveDataElementOptions(n,a),f=i.getSharedOptions(m),g=i.includeOptions(a,f);let b,v=i._getRotation();for(b=0;b0&&!isNaN(e)?a.u*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,t=this.chart,i=t.data.labels||[],r=Object(a.Ib)(n._parsed[e],t.options.locale);return{label:i[e]||"",value:r}}getMaxBorderWidth(e){const n=this;let t=0;const a=n.chart;let i,r,o,s,l;if(!e)for(i=0,r=a.data.datasets.length;i{const a=e.getDatasetMeta(0).controller.getStyle(t);return{text:n,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,hidden:!e.getDataVisibility(t),index:t}}):[]}},onClick(e,n,t){t.chart.toggleDataVisibility(n.index),t.chart.update()}},tooltip:{callbacks:{title:()=>"",label(e){let n=e.label;const t=": "+e.formattedValue;return Object(a.ub)(n)?(n=n.slice(),n[0]+=t):n+=t,n}}}}};class S extends y{initialize(){this.enableOptionSharing=!0,super.initialize()}update(e){const n=this,t=n._cachedMeta,{dataset:i,data:r=[],_dataset:o}=t,s=n.chart._animationsDisabled;let{start:l,count:d}=function(e,n,t){const i=n.length;let r=0,o=i;if(e._sorted){const{iScale:s,_parsed:l}=e,d=s.axis,{min:c,max:u,minDefined:h,maxDefined:p}=s.getUserBounds();h&&(r=Object(a.Qb)(Math.min(Object(a.Rb)(l,s.axis,c).lo,t?i:Object(a.Rb)(n,d,s.getPixelForValue(c)).lo),0,i-1)),o=p?Object(a.Qb)(Math.max(Object(a.Rb)(l,s.axis,u).hi+1,t?0:Object(a.Rb)(n,d,s.getPixelForValue(u)).hi+1),r,i)-r:i-r}return{start:r,count:o}}(t,r,s);n._drawStart=l,n._drawCount=d,function(e){const{xScale:n,yScale:t,_scaleRanges:a}=e,i={xmin:n.min,xmax:n.max,ymin:t.min,ymax:t.max};if(!a)return e._scaleRanges=i,!0;const r=a.xmin!==n.min||a.xmax!==n.max||a.ymin!==t.min||a.ymax!==t.max;return Object.assign(a,i),r}(t)&&(l=0,d=r.length),i._decimated=!!o._decimated,i.points=r;const c=n.resolveDatasetElementOptions(e);n.options.showLine||(c.borderWidth=0),c.segment=n.options.segment,n.updateElement(i,void 0,{animated:!s,options:c},e),n.updateElements(r,l,d,e)}updateElements(e,n,t,i){const r=this,o="reset"===i,{xScale:s,yScale:l,_stacked:d}=r._cachedMeta,c=r.resolveDataElementOptions(n,i),u=r.getSharedOptions(c),h=r.includeOptions(i,u),p=r.options.spanGaps,m=Object(a.Pb)(p)?p:Number.POSITIVE_INFINITY,f=r.chart._animationsDisabled||o||"none"===i;let g=n>0&&r.getParsed(n-1);for(let c=n;c0&&t.x-g.x>m,p.parsed=t,h&&(p.options=u||r.resolveDataElementOptions(c,i)),f||r.updateElement(n,c,p,i),g=t}r.updateSharedOptions(u,i,c)}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,t=n.options&&n.options.borderWidth||0,a=e.data||[];if(!a.length)return t;const i=a[0].size(this.resolveDataElementOptions(0)),r=a[a.length-1].size(this.resolveDataElementOptions(a.length-1));return Math.max(t,i,r)/2}draw(){this._cachedMeta.dataset.updateControlPoints(this.chart.chartArea),super.draw()}}S.id="line",S.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},S.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class O extends y{constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}_updateRadius(){const e=this,n=e.chart,t=n.chartArea,a=n.options,i=Math.min(t.right-t.left,t.bottom-t.top),r=Math.max(i/2,0),o=(r-Math.max(a.cutoutPercentage?r/100*a.cutoutPercentage:1,0))/n.getVisibleDatasetCount();e.outerRadius=r-o*e.index,e.innerRadius=e.outerRadius-o}updateElements(e,n,t,i){const r=this,o="reset"===i,s=r.chart,l=r.getDataset(),d=s.options.animation,c=r._cachedMeta.rScale,u=c.xCenter,h=c.yCenter,p=c.getIndexAngle(0)-.5*a.q;let m,f=p;const g=360/r.countVisibleElements();for(m=0;m{!isNaN(e.data[a])&&this.chart.getDataVisibility(a)&&t++}),t}_computeAngle(e,n,t){return this.chart.getDataVisibility(e)?Object(a.Mb)(this.resolveDataElementOptions(e,n).angle||t):0}}O.id="polarArea",O.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},O.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;return n.labels.length&&n.datasets.length?n.labels.map((n,t)=>{const a=e.getDatasetMeta(0).controller.getStyle(t);return{text:n,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,hidden:!e.getDataVisibility(t),index:t}}):[]}},onClick(e,n,t){t.chart.toggleDataVisibility(n.index),t.chart.update()}},tooltip:{callbacks:{title:()=>"",label:e=>e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class A extends k{}A.id="pie",A.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class R extends y{getLabelAndValue(e){const n=this._cachedMeta.vScale,t=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(t[n.axis])}}update(e){const n=this,t=n._cachedMeta,a=t.dataset,i=t.data||[],r=t.iScale.getLabels();if(a.points=i,"resize"!==e){const t=n.resolveDatasetElementOptions(e);n.options.showLine||(t.borderWidth=0);const o={_loop:!0,_fullLoop:r.length===i.length,options:t};n.updateElement(a,void 0,o,e)}n.updateElements(i,0,i.length,e)}updateElements(e,n,t,a){const i=this,r=i.getDataset(),o=i._cachedMeta.rScale,s="reset"===a;for(let l=n;l"",label:e=>"("+e.label+", "+e.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var _=Object.freeze({__proto__:null,BarController:T,BubbleController:P,DoughnutController:k,LineController:S,PolarAreaController:O,PieController:A,RadarController:R,ScatterController:I});function E(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}class L{constructor(e){this.options=e||{}}formats(){return E()}parse(e,n){return E()}format(e,n){return E()}add(e,n,t){return E()}diff(e,n,t){return E()}startOf(e,n,t){return E()}endOf(e,n){return E()}}L.override=function(e){Object.assign(L.prototype,e)};var M={_date:L};function j(e,n){return"native"in e?{x:e.x,y:e.y}:Object(a.Sb)(e,n)}function N(e,n,t,i){const{controller:r,data:o,_sorted:s}=e,l=r._cachedMeta.iScale;if(l&&n===l.axis&&s&&o.length){const e=l._reversePixels?a.c:a.Rb;if(!i)return e(o,n,t);if(r._sharedOptions){const a=o[0],i="function"==typeof a.getRange&&a.getRange(n);if(i){const a=e(o,n,t-i),r=e(o,n,t+i);return{lo:a.lo,hi:r.hi}}}}return{lo:0,hi:o.length-1}}function B(e,n,t,a,i){const r=e.getSortedVisibleDatasetMetas(),o=t[n];for(let e=0,t=r.length;e{e[s](i[o],a)&&r.push({element:e,datasetIndex:n,index:t}),e.inRange(i.x,i.y,a)&&(l=!0)}),t.intersect&&!l?[]:r}var H={modes:{index(e,n,t,a){const i=j(n,e),r=t.axis||"x",o=t.intersect?U(e,i,r,a):z(e,i,r,!1,a),s=[];return o.length?(e.getSortedVisibleDatasetMetas().forEach(e=>{const n=o[0].index,t=e.data[n];t&&!t.skip&&s.push({element:t,datasetIndex:e.index,index:n})}),s):[]},dataset(e,n,t,a){const i=j(n,e),r=t.axis||"xy";let o=t.intersect?U(e,i,r,a):z(e,i,r,!1,a);if(o.length>0){const n=o[0].datasetIndex,t=e.getDatasetMeta(n).data;o=[];for(let e=0;eU(e,j(n,e),t.axis||"xy",a),nearest:(e,n,t,a)=>z(e,j(n,e),t.axis||"xy",t.intersect,a),x:(e,n,t,a)=>(t.axis="x",F(e,n,t,a)),y:(e,n,t,a)=>(t.axis="y",F(e,n,t,a))}};const V=["left","top","right","bottom"];function W(e,n){return e.filter(e=>e.pos===n)}function Y(e,n){return e.filter(e=>-1===V.indexOf(e.pos)&&e.box.axis===n)}function $(e,n){return e.sort((e,t)=>{const a=n?t:e,i=n?e:t;return a.weight===i.weight?a.index-i.index:a.weight-i.weight})}function G(e,n,t,a){return Math.max(e[t],n[t])+Math.max(e[a],n[a])}function q(e,n){e.top=Math.max(e.top,n.top),e.left=Math.max(e.left,n.left),e.bottom=Math.max(e.bottom,n.bottom),e.right=Math.max(e.right,n.right)}function X(e,n,t){const i=t.box,r=e.maxPadding;Object(a.Bb)(t.pos)||(t.size&&(e[t.pos]-=t.size),t.size=t.horizontal?i.height:i.width,e[t.pos]+=t.size),i.getPadding&&q(r,i.getPadding());const o=Math.max(0,n.outerWidth-G(r,e,"left","right")),s=Math.max(0,n.outerHeight-G(r,e,"top","bottom")),l=o!==e.w,d=s!==e.h;return e.w=o,e.h=s,t.horizontal?{same:l,other:d}:{same:d,other:l}}function J(e,n){const t=n.maxPadding;function a(e){const a={left:0,top:0,right:0,bottom:0};return e.forEach(e=>{a[e]=Math.max(n[e],t[e])}),a}return a(e?["left","right"]:["top","bottom"])}function Z(e,n,t){const a=[];let i,r,o,s,l,d;for(i=0,r=e.length,l=0;ie.box.fullSize),!0),a=$(W(n,"left"),!0),i=$(W(n,"right")),r=$(W(n,"top"),!0),o=$(W(n,"bottom")),s=Y(n,"x"),l=Y(n,"y");return{fullSize:t,leftAndTop:a.concat(r),rightAndBottom:i.concat(l).concat(o).concat(s),chartArea:W(n,"chartArea"),vertical:a.concat(i).concat(l),horizontal:r.concat(o).concat(s)}}(e.boxes),d=l.vertical,c=l.horizontal;Object(a.e)(e.boxes,e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()});const u=d.reduce((e,n)=>n.box.options&&!1===n.box.options.display?e:e+1,0)||1,h=Object.freeze({outerWidth:n,outerHeight:t,padding:r,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/u,hBoxMaxHeight:s/2}),p=Object.assign({},r);q(p,Object(a.d)(i));const m=Object.assign({maxPadding:p,w:o,h:s,x:r.left,y:r.top},r);!function(e,n){let t,a,i;for(t=0,a=e.length;t{const t=n.box;Object.assign(t,e.chartArea),t.update(m.w,m.h)})}};class ee{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,t){}removeEventListener(e,n,t){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,t,a){return n=Math.max(0,n||e.width),t=t||e.height,{width:n,height:Math.max(0,a?Math.floor(n/a):t)}}isAttached(e){return!0}}class ne extends ee{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}}const te={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ae=e=>null===e||""===e;const ie=!!a.k&&{passive:!0};function re(e,n,t){e.canvas.removeEventListener(n,t,ie)}function oe(e,n,t){const i=e.canvas,r=i&&Object(a.g)(i)||i,o=new MutationObserver(e=>{const n=Object(a.g)(r);e.forEach(e=>{for(let a=0;a{e.forEach(e=>{for(let n=0;n{t.currentDevicePixelRatio!==e&&n()}))}function ue(e,n,t){const i=e.canvas,r=i&&Object(a.g)(i);if(!r)return;const o=Object(a.j)((e,n)=>{const a=r.clientWidth;t(e,n),a{const n=e[0],t=n.contentRect.width,a=n.contentRect.height;0===t&&0===a||o(t,a)});return s.observe(r),function(e,n){le.size||window.addEventListener("resize",ce),le.set(e,n)}(e,o),s}function he(e,n,t){t&&t.disconnect(),"resize"===n&&function(e){le.delete(e),le.size||window.removeEventListener("resize",ce)}(e)}function pe(e,n,t){const i=e.canvas,r=Object(a.j)(n=>{null!==e.ctx&&t(function(e,n){const t=te[e.type]||e.type,{x:i,y:r}=Object(a.Sb)(e,n);return{type:t,chart:n,native:e,x:void 0!==i?i:null,y:void 0!==r?r:null}}(n,e))},e,e=>{const n=e[0];return[n,n.offsetX,n.offsetY]});return function(e,n,t){e.addEventListener(n,t,ie)}(i,n,r),r}class me extends ee{acquireContext(e,n){const t=e&&e.getContext&&e.getContext("2d");return t&&t.canvas===e?(function(e,n){const t=e.style,i=e.getAttribute("height"),r=e.getAttribute("width");if(e.$chartjs={initial:{height:i,width:r,style:{display:t.display,height:t.height,width:t.width}}},t.display=t.display||"block",t.boxSizing=t.boxSizing||"border-box",ae(r)){const n=Object(a.h)(e,"width");void 0!==n&&(e.width=n)}if(ae(i))if(""===e.style.height)e.height=e.width/(n||2);else{const n=Object(a.h)(e,"height");void 0!==n&&(e.height=n)}}(e,n),t):null}releaseContext(e){const n=e.canvas;if(!n.$chartjs)return!1;const t=n.$chartjs.initial;["height","width"].forEach(e=>{const i=t[e];Object(a.Cb)(i)?n.removeAttribute(e):n.setAttribute(e,i)});const i=t.style||{};return Object.keys(i).forEach(e=>{n.style[e]=i[e]}),n.width=n.width,delete n.$chartjs,!0}addEventListener(e,n,t){this.removeEventListener(e,n);const a=e.$proxies||(e.$proxies={}),i={attach:oe,detach:se,resize:ue}[n]||pe;a[n]=i(e,n,t)}removeEventListener(e,n){const t=e.$proxies||(e.$proxies={}),a=t[n];if(!a)return;({attach:he,detach:he,resize:he}[n]||re)(e,n,a),t[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,t,i){return Object(a.f)(e,n,t,i)}isAttached(e){const n=Object(a.g)(e);return!(!n||!Object(a.g)(n))}}class fe{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(e){const{x:n,y:t}=this.getProps(["x","y"],e);return{x:n,y:t}}hasValue(){return Object(a.Pb)(this.x)&&Object(a.Pb)(this.y)}getProps(e,n){const t=this,a=this.$animations;if(!n||!a)return t;const i={};return e.forEach(e=>{i[e]=a[e]&&a[e].active()?a[e]._to:t[e]}),i}}fe.defaults={},fe.defaultRoutes=void 0;const ge={values:e=>Object(a.ub)(e)?e:""+e,numeric(e,n,t){if(0===e)return"0";const i=this.chart.options.locale;let r,o=e;if(t.length>1){const n=Math.max(Math.abs(t[0].value),Math.abs(t[t.length-1].value));(n<1e-4||n>1e15)&&(r="scientific"),o=function(e,n){let t=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value;Math.abs(t)>1&&e!==Math.floor(e)&&(t=e-Math.floor(e));return t}(e,t)}const s=Object(a.l)(Math.abs(o)),l=Math.max(Math.min(-1*Math.floor(s),20),0),d={notation:r,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(d,this.options.ticks.format),Object(a.Ib)(e,i,d)},logarithmic(e,n,t){if(0===e)return"0";const i=e/Math.pow(10,Math.floor(Object(a.l)(e)));return 1===i||2===i||5===i?ge.numeric.call(this,e,n,t):""}};var be={formatters:ge};function ve(e,n){const t=e.options.ticks,i=t.maxTicksLimit||function(e){const n=e.options.offset,t=e._tickSize(),a=e._length/t+(n?0:1),i=e._maxLength/t;return Math.floor(Math.min(a,i))}(e),r=t.major.enabled?function(e){const n=[];let t,a;for(t=0,a=e.length;ti)return function(e,n,t,a){let i,r=0,o=t[0];for(a=Math.ceil(a),i=0;ir)return n}return Math.max(r,1)}(r,n,i);if(o>0){let e,t;const i=o>1?Math.round((l-s)/(o-1)):null;for(ye(n,d,c,Object(a.Cb)(i)?0:s-i,s),e=0,t=o-1;en.lineWidth,tickColor:(e,n)=>n.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:be.formatters.values,minor:{},major:{},align:"center",crossAlign:"near"}}),a.wb.route("scale.ticks","color","","color"),a.wb.route("scale.grid","color","","borderColor"),a.wb.route("scale.grid","borderColor","","borderColor"),a.wb.route("scale.title","color","","color"),a.wb.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e}),a.wb.describe("scales",{_fallback:"scale"});const xe=(e,n,t)=>"top"===n||"left"===n?e[n]+t:e[n]-t;function Ce(e,n){const t=[],a=e.length/n,i=e.length;let r=0;for(;ro+1e-6)))return l}function De(e){return e.drawTicks?e.tickLength:0}function Te(e,n){if(!e.display)return 0;const t=Object(a.w)(e.font,n),i=Object(a.d)(e.padding);return(Object(a.ub)(e.text)?e.text.length:1)*t.lineHeight+i.height}function Pe(e,n,t){let i=Object(a.x)(e);return(t&&"right"!==n||!t&&"right"===n)&&(i=(e=>"left"===e?"right":"right"===e?"left":e)(i)),i}class ke extends fe{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){const n=this;n.options=e.setContext(n.getContext()),n.axis=e.axis,n._userMin=n.parse(e.min),n._userMax=n.parse(e.max),n._suggestedMin=n.parse(e.suggestedMin),n._suggestedMax=n.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:t,_suggestedMax:i}=this;return e=Object(a.n)(e,Number.POSITIVE_INFINITY),n=Object(a.n)(n,Number.NEGATIVE_INFINITY),t=Object(a.n)(t,Number.POSITIVE_INFINITY),i=Object(a.n)(i,Number.NEGATIVE_INFINITY),{min:Object(a.n)(e,t),max:Object(a.n)(n,i),minDefined:Object(a.zb)(e),maxDefined:Object(a.zb)(n)}}getMinMax(e){const n=this;let t,{min:i,max:r,minDefined:o,maxDefined:s}=n.getUserBounds();if(o&&s)return{min:i,max:r};const l=n.getMatchingVisibleMetas();for(let a=0,d=l.length;a=o||i<=1||!e.isHorizontal())return void(e.labelRotation=r);const u=e._getLabelSizes(),h=u.widest.width,p=u.highest.height,m=Object(a.Qb)(e.chart.width-h,0,e.maxWidth);s=n.offset?e.maxWidth/i:m/(i-1),h+6>s&&(s=m/(i-(n.offset?.5:1)),l=e.maxHeight-De(n.grid)-t.padding-Te(n.title,e.chart.options.font),d=Math.sqrt(h*h+p*p),c=Object(a.p)(Math.min(Math.asin(Math.min((u.highest.height+6)/s,1)),Math.asin(Math.min(l/d,1))-Math.asin(p/d))),c=Math.max(r,Math.min(o,c))),e.labelRotation=c}afterCalculateLabelRotation(){Object(a.o)(this.options.afterCalculateLabelRotation,[this])}beforeFit(){Object(a.o)(this.options.beforeFit,[this])}fit(){const e=this,n={width:0,height:0},{chart:t,options:{ticks:i,title:r,grid:o}}=e,s=e._isVisible(),l=e.isHorizontal();if(s){const s=Te(r,t.options.font);if(l?(n.width=e.maxWidth,n.height=De(o)+s):(n.height=e.maxHeight,n.width=De(o)+s),i.display&&e.ticks.length){const{first:t,last:r,widest:o,highest:s}=e._getLabelSizes(),d=2*i.padding,c=Object(a.Mb)(e.labelRotation),u=Math.cos(c),h=Math.sin(c);if(l){const t=i.mirror?0:h*o.width+u*s.height;n.height=Math.min(e.maxHeight,n.height+t+d)}else{const t=i.mirror?0:u*o.width+h*s.height;n.width=Math.min(e.maxWidth,n.width+t+d)}e._calculatePadding(t,r,h,u)}}e._handleMargins(),l?(e.width=e._length=t.width-e._margins.left-e._margins.right,e.height=n.height):(e.width=n.width,e.height=e._length=t.height-e._margins.top-e._margins.bottom)}_calculatePadding(e,n,t,a){const i=this,{ticks:{align:r,padding:o},position:s}=i.options,l=0!==i.labelRotation,d="top"!==s&&"x"===i.axis;if(i.isHorizontal()){const s=i.getPixelForTick(0)-i.left,c=i.right-i.getPixelForTick(i.ticks.length-1);let u=0,h=0;l?d?(u=a*e.width,h=t*n.height):(u=t*e.height,h=a*n.width):"start"===r?h=n.width:"end"===r?u=e.width:(u=e.width/2,h=n.width/2),i.paddingLeft=Math.max((u-s+o)*i.width/(i.width-s),0),i.paddingRight=Math.max((h-c+o)*i.width/(i.width-c),0)}else{let t=n.height/2,a=e.height/2;"start"===r?(t=0,a=e.height):"end"===r&&(t=n.height,a=0),i.paddingTop=t+o,i.paddingBottom=a+o}}_handleMargins(){const e=this;e._margins&&(e._margins.left=Math.max(e.paddingLeft,e._margins.left),e._margins.top=Math.max(e.paddingTop,e._margins.top),e._margins.right=Math.max(e.paddingRight,e._margins.right),e._margins.bottom=Math.max(e.paddingBottom,e._margins.bottom))}afterFit(){Object(a.o)(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return"top"===n||"bottom"===n||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e),this.afterTickToLabelConversion()}_getLabelSizes(){const e=this;let n=e._labelSizes;if(!n){const t=e.options.ticks.sampleSize;let a=e.ticks;t{const t=e.gc,a=t.length/2;let i;if(a>n){for(i=0;i({width:r[e]||0,height:o[e]||0});return{first:w(0),last:w(n-1),widest:w(x),highest:w(C)}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){const n=this;n._reversePixels&&(e=1-e);const t=n._startPixel+e*n._length;return Object(a.s)(n._alignToPixels?Object(a.t)(n.chart,t,0):t)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this,t=n.ticks||[];if(e>=0&&es*i?s/t:l/i:l*i0}_computeGridLineItems(e){const n=this,t=n.axis,i=n.chart,r=n.options,{grid:o,position:s}=r,l=o.offset,d=n.isHorizontal(),c=n.ticks.length+(l?1:0),u=De(o),h=[],p=o.setContext(n.getContext(0)),m=p.drawBorder?p.borderWidth:0,f=m/2,g=function(e){return Object(a.t)(i,e,m)};let b,v,y,x,C,w,D,T,P,k,S,O;if("top"===s)b=g(n.bottom),w=n.bottom-u,T=b-f,k=g(e.top)+f,O=e.bottom;else if("bottom"===s)b=g(n.top),k=e.top,O=g(e.bottom)-f,w=b+f,T=n.top+u;else if("left"===s)b=g(n.right),C=n.right-u,D=b-f,P=g(e.left)+f,S=e.right;else if("right"===s)b=g(n.left),P=e.left,S=g(e.right)-f,C=b+f,D=n.left+u;else if("x"===t){if("center"===s)b=g((e.top+e.bottom)/2+.5);else if(Object(a.Bb)(s)){const e=Object.keys(s)[0],t=s[e];b=g(n.chart.scales[e].getPixelForValue(t))}k=e.top,O=e.bottom,w=b+f,T=w+u}else if("y"===t){if("center"===s)b=g((e.left+e.right)/2);else if(Object(a.Bb)(s)){const e=Object.keys(s)[0],t=s[e];b=g(n.chart.scales[e].getPixelForValue(t))}C=b-f,D=C-u,P=e.left,S=e.right}for(v=0;vn.value===e);if(a>=0){return t.setContext(n.getContext(a)).lineWidth}return 0}drawGrid(e){const n=this,t=n.options.grid,i=n.ctx,r=n.chart,o=t.setContext(n.getContext()),s=t.drawBorder?o.borderWidth:0,l=n._gridLineItems||(n._gridLineItems=n._computeGridLineItems(e));let d,c;const u=(e,n,t)=>{t.width&&t.color&&(i.save(),i.lineWidth=t.width,i.strokeStyle=t.color,i.setLineDash(t.borderDash||[]),i.lineDashOffset=t.borderDashOffset,i.beginPath(),i.moveTo(e.x,e.y),i.lineTo(n.x,n.y),i.stroke(),i.restore())};if(t.display)for(d=0,c=l.length;d{const i=t.split("."),r=i.pop(),o=[e].concat(i).join("."),s=n[t].split("."),l=s.pop(),d=s.join(".");a.wb.route(o,r,d,l)})}(n,e.defaultRoutes);e.descriptors&&a.wb.describe(n,e.descriptors)}(e,s,i),n.override&&a.wb.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const n=this.items,t=e.id,i=this.scope;t in n&&delete n[t],i&&t in a.wb[i]&&(delete a.wb[i][t],this.override&&delete a.z[t])}}var Oe=new class{constructor(){this.controllers=new Se(y,"datasets",!0),this.elements=new Se(fe,"elements"),this.plugins=new Se(Object,"plugins"),this.scales=new Se(ke,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,t){const i=this;[...n].forEach(n=>{const r=t||i._getRegistryForType(n);t||r.isForType(n)||r===i.plugins&&n.id?i._exec(e,r,n):Object(a.e)(n,n=>{const a=t||i._getRegistryForType(n);i._exec(e,a,n)})})}_exec(e,n,t){const i=Object(a.a)(e);Object(a.o)(t["before"+i],[],t),n[e](t),Object(a.o)(t["after"+i],[],t)}_getRegistryForType(e){for(let n=0;ne.filter(e=>!n.some(n=>e.plugin.id===n.plugin.id));this._notify(a(n,t),e,"stop"),this._notify(a(t,n),e,"start")}}function Re(e,n){return n||!1!==e?!0===e?{}:e:null}function Ie(e,n,t,a){const i=e.pluginScopeKeys(n),r=e.getOptionScopes(t,i);return e.createResolver(r,a,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function _e(e,n){const t=a.wb.datasets[e]||{};return((n.datasets||{})[e]||{}).indexAxis||n.indexAxis||t.indexAxis||"x"}function Ee(e,n){return"x"===e||"y"===e?e:n.axis||("top"===(t=n.position)||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0)||e.charAt(0).toLowerCase();var t}function Le(e){const n=e.options||(e.options={});n.plugins=Object(a.Ob)(n.plugins,{}),n.scales=function(e,n){const t=a.z[e.type]||{scales:{}},i=n.scales||{},r=_e(e.type,n),o=Object.create(null),s=Object.create(null);return Object.keys(i).forEach(e=>{const n=i[e],l=Ee(e,n),d=function(e,n){return e===n?"_index_":"_value_"}(l,r),c=t.scales||{};o[l]=o[l]||e,s[e]=Object(a.I)(Object.create(null),[{axis:l},n,c[l],c[d]])}),e.data.datasets.forEach(t=>{const r=t.type||e.type,l=t.indexAxis||_e(r,n),d=(a.z[r]||{}).scales||{};Object.keys(d).forEach(e=>{const n=function(e,n){let t=e;return"_index_"===e?t=n:"_value_"===e&&(t="x"===n?"y":"x"),t}(e,l),r=t[n+"AxisID"]||o[n]||n;s[r]=s[r]||Object.create(null),Object(a.I)(s[r],[{axis:n},i[r],d[e]])})}),Object.keys(s).forEach(e=>{const n=s[e];Object(a.I)(n,[a.wb.scales[n.type],a.wb.scale])}),s}(e,n)}const Me=new Map,je=new Set;function Ne(e,n){let t=Me.get(e);return t||(t=n(),Me.set(e,t),je.add(t)),t}const Be=(e,n,t)=>{const i=Object(a.yb)(n,t);void 0!==i&&e.add(i)};class Ue{constructor(e){this._config=function(e){const n=(e=e||{}).data=e.data||{datasets:[],labels:[]};return n.datasets=n.datasets||[],n.labels=n.labels||[],Le(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=e}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Le(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Ne(e,()=>[["datasets."+e,""]])}datasetAnimationScopeKeys(e,n){return Ne(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,"transitions."+n],["datasets."+e,""]])}datasetElementScopeKeys(e,n){return Ne(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,"datasets."+e,"elements."+n,""]])}pluginScopeKeys(e){const n=e.id;return Ne(`${this.type}-plugin-${n}`,()=>[["plugins."+n,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const t=this._scopeCache;let a=t.get(e);return a&&!n||(a=new Map,t.set(e,a)),a}getOptionScopes(e,n,t){const{options:i,type:r}=this,o=this._cachedScopes(e,t),s=o.get(n);if(s)return s;const l=new Set;n.forEach(n=>{e&&(l.add(e),n.forEach(n=>Be(l,e,n))),n.forEach(e=>Be(l,i,e)),n.forEach(e=>Be(l,a.z[r]||{},e)),n.forEach(e=>Be(l,a.wb,e)),n.forEach(e=>Be(l,a.D,e))});const d=[...l];return je.has(n)&&o.set(n,d),d}chartOptionScopes(){const{options:e,type:n}=this;return[e,a.z[n]||{},a.wb.datasets[n]||{},{type:n},a.wb,a.D]}resolveNamedOptions(e,n,t,i=[""]){const r={$shared:!0},{resolver:o,subPrefixes:s}=ze(this._resolverCache,e,i);let l=o;if(function(e,n){const{isScriptable:t,isIndexable:i}=Object(a.H)(e);for(const r of n)if(t(r)&&Object(a.E)(e[r])||i(r)&&Object(a.ub)(e[r]))return!0;return!1}(o,n)){r.$shared=!1,t=Object(a.E)(t)?t():t;const n=this.createResolver(e,t,s);l=Object(a.F)(o,t,n)}for(const e of n)r[e]=l[e];return r}createResolver(e,n,t=[""],i){const{resolver:r}=ze(this._resolverCache,e,t);return Object(a.Bb)(n)?Object(a.F)(r,n,void 0,i):r}}function ze(e,n,t){let i=e.get(n);i||(i=new Map,e.set(n,i));const r=t.join();let o=i.get(r);if(!o){o={resolver:Object(a.G)(n,t),subPrefixes:t.filter(e=>!e.toLowerCase().includes("hover"))},i.set(r,o)}return o}const Fe=["top","bottom","left","right","chartArea"];function He(e,n){return"top"===e||"bottom"===e||-1===Fe.indexOf(e)&&"x"===n}function Ve(e,n){return function(t,a){return t[e]===a[e]?t[n]-a[n]:t[e]-a[e]}}function We(e){const n=e.chart,t=n.options.animation;n.notifyPlugins("afterRender"),Object(a.o)(t&&t.onComplete,[e],n)}function Ye(e){const n=e.chart,t=n.options.animation;Object(a.o)(t&&t.onProgress,[e],n)}function $e(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Ge(e){return $e()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const qe={},Xe=e=>{const n=Ge(e);return Object.values(qe).filter(e=>e.canvas===n).pop()};class Je{constructor(e,n){const t=this;this.config=n=new Ue(n);const r=Ge(e),o=Xe(r);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas can be reused.");const s=n.createResolver(n.chartOptionScopes(),t.getContext());this.platform=t._initializePlatform(r,n);const l=t.platform.acquireContext(r,s.aspectRatio),d=l&&l.canvas,c=d&&d.height,u=d&&d.width;this.id=Object(a.J)(),this.ctx=l,this.canvas=d,this.width=u,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._sortedMetasets=[],this.scales={},this.scale=void 0,this._plugins=new Ae,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Object(a.K)(()=>this.update("resize"),s.resizeDelay||0),qe[t.id]=t,l&&d?(i.listen(t,"complete",We),i.listen(t,"progress",Ye),t._initialize(),t.attached&&t.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:t,height:i,_aspectRatio:r}=this;return Object(a.Cb)(e)?n&&r?r:i?t/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}_initialize(){const e=this;return e.notifyPlugins("beforeInit"),e.options.responsive?e.resize():Object(a.L)(e,e.options.devicePixelRatio),e.bindEvents(),e.notifyPlugins("afterInit"),e}_initializePlatform(e,n){return n.platform?new n.platform:!$e()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?new ne:new me}clear(){return Object(a.M)(this.canvas,this.ctx),this}stop(){return i.stop(this),this}resize(e,n){i.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const t=this,i=t.options,r=t.canvas,o=i.maintainAspectRatio&&t.aspectRatio,s=t.platform.getMaximumSize(r,e,n,o),l=t.currentDevicePixelRatio,d=i.devicePixelRatio||t.platform.getDevicePixelRatio();t.width===s.width&&t.height===s.height&&l===d||(t.width=s.width,t.height=s.height,t._aspectRatio=t.aspectRatio,Object(a.L)(t,d,!0),t.notifyPlugins("resize",{size:s}),Object(a.o)(i.onResize,[t,s],t),t.attached&&t._doResize()&&t.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};Object(a.e)(e,(e,n)=>{e.id=n})}buildOrUpdateScales(){const e=this,n=e.options,t=n.scales,i=e.scales,r=Object.keys(i).reduce((e,n)=>(e[n]=!1,e),{});let o=[];t&&(o=o.concat(Object.keys(t).map(e=>{const n=t[e],a=Ee(e,n),i="r"===a,r="x"===a;return{options:n,dposition:i?"chartArea":r?"bottom":"left",dtype:i?"radialLinear":r?"category":"linear"}}))),Object(a.e)(o,t=>{const o=t.options,s=o.id,l=Ee(s,o),d=Object(a.Ob)(o.type,t.dtype);void 0!==o.position&&He(o.position,l)===He(t.dposition)||(o.position=t.dposition),r[s]=!0;let c=null;if(s in i&&i[s].type===d)c=i[s];else{c=new(Oe.getScale(d))({id:s,type:d,ctx:e.ctx,chart:e}),i[c.id]=c}c.init(o,n)}),Object(a.e)(r,(e,n)=>{e||delete i[n]}),Object(a.e)(i,n=>{Q.configure(e,n,n.options),Q.addBox(e,n)})}_updateMetasetIndex(e,n){const t=this._metasets,a=e.index;a!==n&&(t[a]=t[n],t[n]=e,e.index=n)}_updateMetasets(){const e=this,n=e._metasets,t=e.data.datasets.length,a=n.length;if(a>t){for(let n=t;nt.length&&delete e._stacks,n.forEach((n,a)=>{0===t.filter(e=>e===n._dataset).length&&e._destroyDatasetMeta(a)})}buildOrUpdateControllers(){const e=this,n=[],t=e.data.datasets;let i,r;for(e._removeUnreferencedMetasets(),i=0,r=t.length;i{e.getDatasetMeta(t).controller.reset()},e)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this,t=n.config;t.update(),n._options=t.createResolver(t.chartOptionScopes(),n.getContext()),Object(a.e)(n.scales,e=>{Q.removeBox(n,e)});const i=n._animationsDisabled=!n.options.animation;if(n.ensureScalesHaveIDs(),n.buildOrUpdateScales(),n._plugins.invalidate(),!1===n.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const r=n.buildOrUpdateControllers();n.notifyPlugins("beforeElementsUpdate");let o=0;for(let e=0,t=n.data.datasets.length;e{e.reset()}),n._updateDatasets(e),n.notifyPlugins("afterUpdate",{mode:e}),n._layers.sort(Ve("z","_idx")),n._lastEvent&&n._eventHandler(n._lastEvent,!0),n.render()}_updateLayout(e){const n=this;if(!1===n.notifyPlugins("beforeLayout",{cancelable:!0}))return;Q.update(n,n.width,n.height,e);const t=n.chartArea,i=t.width<=0||t.height<=0;n._layers=[],Object(a.e)(n.boxes,e=>{i&&"chartArea"===e.position||(e.configure&&e.configure(),n._layers.push(...e._layers()))},n),n._layers.forEach((e,n)=>{e._idx=n}),n.notifyPlugins("afterLayout")}_updateDatasets(e){const n=this,t="function"==typeof e;if(!1!==n.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let a=0,i=n.data.datasets.length;a=0;--t)e._drawDataset(n[t]);e.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this,t=n.ctx,i=e._clip,r=n.chartArea,o={meta:e,index:e.index,cancelable:!0};!1!==n.notifyPlugins("beforeDatasetDraw",o)&&(Object(a.Db)(t,{left:!1===i.left?0:r.left-i.left,right:!1===i.right?n.width:r.right+i.right,top:!1===i.top?0:r.top-i.top,bottom:!1===i.bottom?n.height:r.bottom+i.bottom}),e.controller.draw(),Object(a.Fb)(t),o.cancelable=!1,n.notifyPlugins("afterDatasetDraw",o))}getElementsAtEventForMode(e,n,t,a){const i=H.modes[n];return"function"==typeof i?i(this,e,t,a):[]}getDatasetMeta(e){const n=this.data.datasets[e],t=this._metasets;let a=t.filter(e=>e&&e._dataset===n).pop();return a||(a=t[e]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1}),a}getContext(){return this.$context||(this.$context={chart:this,type:"chart"})}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!n.hidden}setDatasetVisibility(e,n){this.getDatasetMeta(e).hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateDatasetVisibility(e,n){const t=n?"show":"hide",a=this.getDatasetMeta(e),i=a.controller._resolveAnimations(void 0,t);this.setDatasetVisibility(e,n),i.update(a,{visible:n}),this.update(n=>n.datasetIndex===e?t:void 0)}hide(e){this._updateDatasetVisibility(e,!1)}show(e){this._updateDatasetVisibility(e,!0)}_destroyDatasetMeta(e){const n=this,t=n._metasets&&n._metasets[e];t&&t.controller&&(t.controller._destroy(),delete n._metasets[e])}destroy(){const e=this,{canvas:n,ctx:t}=e;let r,o;for(e.stop(),i.remove(e),r=0,o=e.data.datasets.length;r{t.addEventListener(e,a,i),n[a]=i},r=(a,i)=>{n[a]&&(t.removeEventListener(e,a,i),delete n[a])};let o=function(n,t,a){n.offsetX=t,n.offsetY=a,e._eventHandler(n)};if(Object(a.e)(e.options.events,e=>i(e,o)),e.options.responsive){let n;o=(n,t)=>{e.canvas&&e.resize(n,t)};const a=()=>{r("attach",a),e.attached=!0,e.resize(),i("resize",o),i("detach",n)};n=()=>{e.attached=!1,r("resize",o),i("attach",a)},t.isAttached(e.canvas)?a():n()}else e.attached=!0}unbindEvents(){const e=this,n=e._listeners;n&&(delete e._listeners,Object(a.e)(n,(n,t)=>{e.platform.removeEventListener(e,t,n)}))}updateHoverStyle(e,n,t){const a=t?"set":"remove";let i,r,o,s;for("dataset"===n&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+a+"DatasetHoverStyle"]()),o=0,s=e.length;o{const a=n.getDatasetMeta(e);if(!a)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:a.data[t],index:t}});!Object(a.U)(i,t)&&(n._active=i,n._updateHoverStyles(i,t))}notifyPlugins(e,n,t){return this._plugins.notify(this,e,n,t)}_updateHoverStyles(e,n,t){const a=this,i=a.options.hover,r=(e,n)=>e.filter(e=>!n.some(n=>e.datasetIndex===n.datasetIndex&&e.index===n.index)),o=r(n,e),s=t?e:r(e,n);o.length&&a.updateHoverStyle(o,i.mode,!1),s.length&&i.mode&&a.updateHoverStyle(s,i.mode,!0)}_eventHandler(e,n){const t=this,a={event:e,replay:n,cancelable:!0},i=n=>(n.options.events||this.options.events).includes(e.type);if(!1===t.notifyPlugins("beforeEvent",a,i))return;const r=t._handleEvent(e,n);return a.cancelable=!1,t.notifyPlugins("afterEvent",a,i),(r||a.changed)&&t.render(),t}_handleEvent(e,n){const t=this,{_active:i=[],options:r}=t,o=r.hover,s=n;let l=[],d=!1,c=null;return"mouseout"!==e.type&&(l=t.getElementsAtEventForMode(e,o.mode,o,s),c="click"===e.type?t._lastEvent:e),t._lastEvent=null,Object(a.b)(e,t.chartArea,t._minPadding)&&(Object(a.o)(r.onHover,[e,l,t],t),"mouseup"!==e.type&&"click"!==e.type&&"contextmenu"!==e.type||Object(a.o)(r.onClick,[e,l,t],t)),d=!Object(a.U)(l,i),(d||n)&&(t._active=l,t._updateHoverStyles(l,i,n)),t._lastEvent=c,d}}const Ze=()=>Object(a.e)(Je.instances,e=>e._plugins.invalidate());function Ke(e,n){const{startAngle:t,endAngle:i,pixelMargin:r,x:o,y:s,outerRadius:l,innerRadius:d}=n;let c=r/l;e.beginPath(),e.arc(o,s,l,t-c,i+c),d>r?(c=r/d,e.arc(o,s,d,i+c,t-c,!0)):e.arc(o,s,r,i+a.i,t-a.i),e.closePath(),e.clip()}function Qe(e,n,t,i){const r=(o=e.options.borderRadius,Object(a.W)(o,["outerStart","outerEnd","innerStart","innerEnd"]));var o;const s=(t-n)/2,l=Math.min(s,i*n/2),d=e=>{const n=(t-Math.min(s,e))*i/2;return Object(a.Qb)(e,0,Math.min(s,n))};return{outerStart:d(r.outerStart),outerEnd:d(r.outerEnd),innerStart:Object(a.Qb)(r.innerStart,0,l),innerEnd:Object(a.Qb)(r.innerEnd,0,l)}}function en(e,n,t,a){return{x:t+e*Math.cos(n),y:a+e*Math.sin(n)}}function nn(e,n){const{x:t,y:i,startAngle:r,endAngle:o,pixelMargin:s}=n,l=Math.max(n.outerRadius-s,0),d=n.innerRadius+s,{outerStart:c,outerEnd:u,innerStart:h,innerEnd:p}=Qe(n,d,l,o-r),m=l-c,f=l-u,g=r+c/m,b=o-u/f,v=d+h,y=d+p,x=r+h/v,C=o-p/y;if(e.beginPath(),e.arc(t,i,l,g,b),u>0){const n=en(f,b,t,i);e.arc(n.x,n.y,u,b,o+a.i)}const w=en(y,o,t,i);if(e.lineTo(w.x,w.y),p>0){const n=en(y,C,t,i);e.arc(n.x,n.y,p,o+a.i,C+Math.PI)}if(e.arc(t,i,d,o-p/d,r+h/d,!0),h>0){const n=en(v,x,t,i);e.arc(n.x,n.y,h,x+Math.PI,r-a.i)}const D=en(m,r,t,i);if(e.lineTo(D.x,D.y),c>0){const n=en(m,g,t,i);e.arc(n.x,n.y,c,r-a.i,g)}e.closePath()}function tn(e,n){const{options:t}=n,i="inner"===t.borderAlign;t.borderWidth&&(i?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&function(e,n,t){const{x:i,y:r,startAngle:o,endAngle:s,pixelMargin:l}=n,d=Math.max(n.outerRadius-l,0),c=n.innerRadius+l;let u;for(t&&(n.endAngle=n.startAngle+a.u,Ke(e,n),n.endAngle=s,n.endAngle===n.startAngle&&(n.endAngle+=a.u,n.fullCircles--)),e.beginPath(),e.arc(i,r,c,o+a.u,o,!0),u=0;u{Oe.add(...e),Ze()}},unregister:{enumerable:!0,value:(...e)=>{Oe.remove(...e),Ze()}}});class an extends fe{constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,n,t){const i=this.getProps(["x","y"],t),{angle:r,distance:o}=Object(a.V)(i,{x:e,y:n}),{startAngle:s,endAngle:l,innerRadius:d,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],t);return(u>=a.u||Object(a.Jb)(r,s,l))&&(o>=d&&o<=c)}getCenterPoint(e){const{x:n,y:t,startAngle:a,endAngle:i,innerRadius:r,outerRadius:o}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),s=(a+i)/2,l=(r+o)/2;return{x:n+Math.cos(s)*l,y:t+Math.sin(s)*l}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const n=this,t=n.options,i=t.offset||0;if(n.pixelMargin="inner"===t.borderAlign?.33:0,n.fullCircles=Math.floor(n.circumference/a.u),!(0===n.circumference||n.innerRadius<0||n.outerRadius<0)){if(e.save(),i&&n.circumference(o+(d?s-e:e))%r,y=()=>{p!==m&&(e.lineTo(g,m),e.lineTo(g,p),e.lineTo(g,f))};for(l&&(u=i[v(0)],e.moveTo(u.x,u.y)),c=0;c<=s;++c){if(u=i[v(c)],u.skip)continue;const n=u.x,t=u.y,a=0|n;a===h?(tm&&(m=t),g=(b*g+n)/++b):(y(),e.lineTo(n,t),h=a,b=0,p=m=t),f=t}y()}function cn(e){const n=e.options,t=n.borderDash&&n.borderDash.length;return!(e._decimated||e._loop||n.tension||n.stepped||t)?dn:ln}an.id="arc",an.defaults={borderAlign:"center",borderColor:"#fff",borderRadius:0,borderWidth:2,offset:0,angle:void 0},an.defaultRoutes={backgroundColor:"backgroundColor"};const un="function"==typeof Path2D;function hn(e,n,t,a){un&&1===n.segments.length?function(e,n,t,a){let i=n._path;i||(i=n._path=new Path2D,n.path(i,t,a)&&i.closePath()),rn(e,n.options),e.stroke(i)}(e,n,t,a):function(e,n,t,a){const{segments:i,options:r}=n,o=cn(n);for(const s of i)rn(e,r,s.style),e.beginPath(),o(e,n,s,{start:t,end:t+a-1})&&e.closePath(),e.stroke()}(e,n,t,a)}class pn extends fe{constructor(e){super(),this.animated=!0,this.options=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,e&&Object.assign(this,e)}updateControlPoints(e){const n=this,t=n.options;if(t.tension&&!t.stepped&&!n._pointsUpdated){const i=t.spanGaps?n._loop:n._fullLoop;Object(a.X)(n._points,t,e,i),n._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Object(a.Y)(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,t=e.length;return t&&n[e[t-1].end]}interpolate(e,n){const t=this.options,i=e[n],r=this.points,o=Object(a.Z)(this,{property:n,start:i,end:i});if(!o.length)return;const s=[],l=function(e){return e.stepped?a.ab:e.tension?a.bb:a.cb}(t);let d,c;for(d=0,c=o.length;d"borderDash"!==e&&"fill"!==e};class fn extends fe{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,n,t){const a=this.options,{x:i,y:r}=this.getProps(["x","y"],t);return Math.pow(e-i,2)+Math.pow(n-r,2)e.x):vn(n,"bottom","top",e.base=o.left&&n<=o.right)&&(r||t>=o.top&&t<=o.bottom)}function Dn(e,n){e.rect(n.x,n.y,n.w,n.h)}fn.id="point",fn.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},fn.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Tn extends fe{constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,e&&Object.assign(this,e)}draw(e){const n=this.options,{inner:t,outer:i}=Cn(this),r=(o=i.radius).topLeft||o.topRight||o.bottomLeft||o.bottomRight?a.gb:Dn;var o;e.save(),i.w===t.w&&i.h===t.h||(e.beginPath(),r(e,i),e.clip(),r(e,t),e.fillStyle=n.borderColor,e.fill("evenodd")),e.beginPath(),r(e,t),e.fillStyle=n.backgroundColor,e.fill(),e.restore()}inRange(e,n,t){return wn(this,e,n,t)}inXRange(e,n){return wn(this,e,null,n)}inYRange(e,n){return wn(this,null,e,n)}getCenterPoint(e){const{x:n,y:t,base:a,horizontal:i}=this.getProps(["x","y","base","horizontal"],e);return{x:i?(n+a)/2:n,y:i?t:(t+a)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}Tn.id="bar",Tn.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,pointStyle:void 0},Tn.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Pn=Object.freeze({__proto__:null,ArcElement:an,LineElement:pn,PointElement:fn,BarElement:Tn});function kn(e){e.data.datasets.forEach(e=>{if(e._decimated){const n=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:n})}})}var Sn={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,n,t)=>{if(!t.enabled)return void kn(e);const i=e.width;e.data.datasets.forEach((n,r)=>{const{_data:o,indexAxis:s}=n,l=e.getDatasetMeta(r),d=o||n.data;if("y"===Object(a.C)([s,e.options.indexAxis]))return;if("line"!==l.type)return;const c=e.scales[l.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(e.options.parsing)return;let u,{start:h,count:p}=function(e,n){const t=n.length;let i,r=0;const{iScale:o}=e,{min:s,max:l,minDefined:d,maxDefined:c}=o.getUserBounds();return d&&(r=Object(a.Qb)(Object(a.Rb)(n,o.axis,s).lo,0,t-1)),i=c?Object(a.Qb)(Object(a.Rb)(n,o.axis,l).hi+1,r,t)-r:t-r,{start:r,count:i}}(l,d);if(!(p<=4*i)){switch(Object(a.Cb)(o)&&(n._data=d,delete n.data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),t.algorithm){case"lttb":u=function(e,n,t,a,i){const r=i.samples||a;if(r>=t)return e.slice(n,n+t);const o=[],s=(t-2)/(r-2);let l=0;const d=n+t-1;let c,u,h,p,m,f=n;for(o[l++]=e[f],c=0;ch&&(h=p,u=e[a],m=a);o[l++]=u,f=m}return o[l++]=e[d],o}(d,h,p,i,t);break;case"min-max":u=function(e,n,t,i){let r,o,s,l,d,c,u,h,p,m,f=0,g=0;const b=[],v=n+t-1,y=e[n].x,x=e[v].x-y;for(r=n;rm&&(m=l,u=r),f=(g*f+o.x)/++g;else{const t=r-1;if(!Object(a.Cb)(c)&&!Object(a.Cb)(u)){const n=Math.min(c,u),a=Math.max(c,u);n!==h&&n!==t&&b.push({...e[n],x:f}),a!==h&&a!==t&&b.push({...e[a],x:f})}r>0&&t!==h&&b.push(e[t]),b.push(o),d=n,g=0,p=m=l,c=u=h=r}}return b}(d,h,p,i);break;default:throw new Error(`Unsupported decimation algorithm '${t.algorithm}'`)}n._decimated=u}})},destroy(e){kn(e)}};function On(e,n,t){const i=function(e){const n=e.options,t=n.fill;let i=Object(a.Ob)(t&&t.target,t);return void 0===i&&(i=!!n.backgroundColor),!1!==i&&null!==i&&(!0===i?"origin":i)}(e);if(Object(a.Bb)(i))return!isNaN(i.value)&&i;let r=parseFloat(i);return Object(a.zb)(r)&&Math.floor(r)===r?("-"!==i[0]&&"+"!==i[0]||(r=n+r),!(r===n||r<0||r>=t)&&r):["origin","start","end","stack"].indexOf(i)>=0&&i}class An{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,n,t){const{x:i,y:r,radius:o}=this;return n=n||{start:0,end:a.u},e.arc(i,r,o,n.end,n.start,!0),!t.bounds}interpolate(e){const{x:n,y:t,radius:a}=this,i=e.angle;return{x:n+Math.cos(i)*a,y:t+Math.sin(i)*a,angle:i}}}function Rn(e){return(e.scale||{}).getPointPositionForValue?function(e){const{scale:n,fill:t}=e,i=n.options,r=n.getLabels().length,o=[],s=i.reverse?n.max:n.min,l=i.reverse?n.min:n.max;let d,c,u;if(u="start"===t?s:"end"===t?l:Object(a.Bb)(t)?t.value:n.getBaseValue(),i.grid.circular)return c=n.getPointPositionForValue(0,s),new An({x:c.x,y:c.y,radius:n.getDistanceFromCenterForValue(u)});for(d=0;d"line"===e.type&&!e.hidden;function En(e,n,t){const a=[];for(let i=0;i=a&&i<=d){s=i===a,l=i===d;break}}return{first:s,last:l,point:a}}function Mn(e,n){let t=[],i=!1;return Object(a.ub)(e)?(i=!0,t=e):t=function(e,n){const{x:t=null,y:a=null}=e||{},i=n.points,r=[];return n.segments.forEach(e=>{const n=i[e.start],o=i[e.end];null!==a?(r.push({x:n.x,y:a}),r.push({x:o.x,y:a})):null!==t&&(r.push({x:t,y:n.y}),r.push({x:t,y:o.y}))}),r}(e,n),t.length?new pn({points:t,options:{tension:0},_loop:i,_fullLoop:i}):null}function jn(e,n,t){let i=e[n].fill;const r=[n];let o;if(!t)return i;for(;!1!==i&&-1===r.indexOf(i);){if(!Object(a.zb)(i))return i;if(o=e[i],!o)return!1;if(o.visible)return i;r.push(i),i=o.fill}return!1}function Nn(e,n,t){e.beginPath(),n.path(e),e.lineTo(n.last().x,t),e.lineTo(n.first().x,t),e.closePath(),e.clip()}function Bn(e,n,t,i){if(i)return;let r=n[e],o=t[e];return"angle"===e&&(r=Object(a.kb)(r),o=Object(a.kb)(o)),{property:e,start:r,end:o}}function Un(e,n,t,a){return e&&n?a(e[t],n[t]):e?e[t]:n?n[t]:0}function zn(e,n,t){const{top:a,bottom:i}=n.chart.chartArea,{property:r,start:o,end:s}=t||{};"x"===r&&(e.beginPath(),e.rect(o,a,s-o,i-a),e.clip())}function Fn(e,n,t,a){const i=n.interpolate(t,a);i&&e.lineTo(i.x,i.y)}function Hn(e,n){const{line:t,target:i,property:r,color:o,scale:s}=n,l=function(e,n,t){const i=e.segments,r=e.points,o=n.points,s=[];for(const e of i){const i=Bn(t,r[e.start],r[e.end],e.loop);if(!n.segments){s.push({source:e,target:i,start:r[e.start],end:r[e.end]});continue}const l=Object(a.Z)(n,i);for(const n of l){const l=Bn(t,o[n.start],o[n.end],n.loop),d=Object(a.jb)(e,r,l);for(const e of d)s.push({source:e,target:n,start:{[t]:Un(i,l,"start",Math.max)},end:{[t]:Un(i,l,"end",Math.min)}})}}return s}(t,i,r);for(const{source:n,target:a,start:d,end:c}of l){const{style:{backgroundColor:l=o}={}}=n;e.save(),e.fillStyle=l,zn(e,s,Bn(r,d,c)),e.beginPath();const u=!!t.pathSegment(e,n);u?e.closePath():Fn(e,i,c,r);const h=!!i.pathSegment(e,a,{move:u,reverse:!0}),p=u&&h;p||Fn(e,i,d,r),e.closePath(),e.fill(p?"evenodd":"nonzero"),e.restore()}}function Vn(e,n,t){const i=function(e){const{chart:n,fill:t,line:i}=e;if(Object(a.zb)(t))return function(e,n){const t=e.getDatasetMeta(n);return t&&e.isDatasetVisible(n)?t.dataset:null}(n,t);if("stack"===t)return In(e);const r=Rn(e);return r instanceof An?r:Mn(r,i)}(n),{line:r,scale:o}=n,s=r.options,l=s.fill,d=s.backgroundColor,{above:c=d,below:u=d}=l||{};i&&r.points.length&&(Object(a.Db)(e,t),function(e,n){const{line:t,target:a,above:i,below:r,area:o,scale:s}=n,l=t._loop?"angle":"x";e.save(),"x"===l&&r!==i&&(Nn(e,a,o.top),Hn(e,{line:t,target:a,color:i,scale:s,property:l}),e.restore(),e.save(),Nn(e,a,o.bottom)),Hn(e,{line:t,target:a,color:r,scale:s,property:l}),e.restore()}(e,{line:r,target:i,above:c,below:u,area:t,scale:o}),Object(a.Fb)(e))}var Wn={id:"filler",afterDatasetsUpdate(e,n,t){const a=(e.data.datasets||[]).length,i=[];let r,o,s,l;for(o=0;o=0;--n){const r=a[n].$filler;r&&(r.line.updateControlPoints(i),"beforeDatasetsDraw"===t.drawTime&&Vn(e.ctx,r,i))}},beforeDatasetDraw(e,n,t){const a=n.meta.$filler;a&&!1!==a.fill&&"beforeDatasetDraw"===t.drawTime&&Vn(e.ctx,a,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Yn=(e,n)=>{let{boxHeight:t=n,boxWidth:a=n}=e;return e.usePointStyle&&(t=Math.min(t,n),a=Math.min(a,n)),{boxWidth:a,boxHeight:t,itemHeight:Math.max(n,t)}};class $n extends fe{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,t){const a=this;a.maxWidth=e,a.maxHeight=n,a._margins=t,a.setDimensions(),a.buildLabels(),a.fit()}setDimensions(){const e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height)}buildLabels(){const e=this,n=e.options.labels||{};let t=Object(a.o)(n.generateLabels,[e.chart],e)||[];n.filter&&(t=t.filter(t=>n.filter(t,e.chart.data))),n.sort&&(t=t.sort((t,a)=>n.sort(t,a,e.chart.data))),e.options.reverse&&t.reverse(),e.legendItems=t}fit(){const e=this,{options:n,ctx:t}=e;if(!n.display)return void(e.width=e.height=0);const i=n.labels,r=Object(a.w)(i.font),o=r.size,s=e._computeTitleHeight(),{boxWidth:l,itemHeight:d}=Yn(i,o);let c,u;t.font=r.string,e.isHorizontal()?(c=e.maxWidth,u=e._fitRows(s,o,l,d)+10):(u=e.maxHeight,c=e._fitCols(s,o,l,d)+10),e.width=Math.min(c,n.maxWidth||e.maxWidth),e.height=Math.min(u,n.maxHeight||e.maxHeight)}_fitRows(e,n,t,a){const{ctx:i,maxWidth:r,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],d=a+o;let c=e;i.textAlign="left",i.textBaseline="middle";let u=-1,h=-d;return this.legendItems.forEach((e,p)=>{const m=t+n/2+i.measureText(e.text).width;(0===p||l[l.length-1]+m+2*o>r)&&(c+=d,l[l.length-(p>0?0:1)]=0,h+=d,u++),s[p]={left:0,top:h,row:u,width:m,height:a},l[l.length-1]+=m+o}),c}_fitCols(e,n,t,a){const{ctx:i,maxHeight:r,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],d=r-e;let c=o,u=0,h=0,p=0,m=0,f=0;return this.legendItems.forEach((e,r)=>{const g=t+n/2+i.measureText(e.text).width;r>0&&h+n+2*o>d&&(c+=u+o,l.push({width:u,height:h}),p+=u+o,f++,m=0,u=h=0),u=Math.max(u,g),h+=n+o,s[r]={left:p,top:m,col:f,width:g,height:a},m+=a+o}),c+=u,l.push({width:u,height:h}),c}adjustHitBoxes(){const e=this;if(!e.options.display)return;const n=e._computeTitleHeight(),{legendHitBoxes:t,options:{align:i,labels:{padding:r}}}=e;if(this.isHorizontal()){let o=0,s=Object(a.y)(i,e.left+r,e.right-e.lineWidths[o]);for(const l of t)o!==l.row&&(o=l.row,s=Object(a.y)(i,e.left+r,e.right-e.lineWidths[o])),l.top+=e.top+n+r,l.left=s,s+=l.width+r}else{let o=0,s=Object(a.y)(i,e.top+n+r,e.bottom-e.columnSizes[o].height);for(const l of t)l.col!==o&&(o=l.col,s=Object(a.y)(i,e.top+n+r,e.bottom-e.columnSizes[o].height)),l.top=s,l.left+=e.left+r,s+=l.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){const e=this;if(e.options.display){const n=e.ctx;Object(a.Db)(n,e),e._draw(),Object(a.Fb)(n)}}_draw(){const e=this,{options:n,columnSizes:t,lineWidths:i,ctx:r}=e,{align:o,labels:s}=n,l=a.wb.color,d=Object(a.lb)(n.rtl,e.left,e.width),c=Object(a.w)(s.font),{color:u,padding:h}=s,p=c.size,m=p/2;let f;e.drawTitle(),r.textAlign=d.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;const{boxWidth:g,boxHeight:b,itemHeight:v}=Yn(s,p),y=e.isHorizontal(),x=this._computeTitleHeight();f=y?{x:Object(a.y)(o,e.left+h,e.right-i[0]),y:e.top+h+x,line:0}:{x:e.left+h,y:Object(a.y)(o,e.top+x+h,e.bottom-t[0].height),line:0},Object(a.mb)(e.ctx,n.textDirection);const C=v+h;e.legendItems.forEach((n,w)=>{r.strokeStyle=n.fontColor||u,r.fillStyle=n.fontColor||u;const D=r.measureText(n.text).width,T=d.textAlign(n.textAlign||(n.textAlign=s.textAlign)),P=g+p/2+D;let k=f.x,S=f.y;d.setWidth(e.width),y?w>0&&k+P+h>e.right&&(S=f.y+=C,f.line++,k=f.x=Object(a.y)(o,e.left+h,e.right-i[f.line])):w>0&&S+C>e.bottom&&(k=f.x=k+t[f.line].width+h,f.line++,S=f.y=Object(a.y)(o,e.top+x+h,e.bottom-t[f.line].height));!function(e,n,t){if(isNaN(g)||g<=0||isNaN(b)||b<0)return;r.save();const i=Object(a.Ob)(t.lineWidth,1);if(r.fillStyle=Object(a.Ob)(t.fillStyle,l),r.lineCap=Object(a.Ob)(t.lineCap,"butt"),r.lineDashOffset=Object(a.Ob)(t.lineDashOffset,0),r.lineJoin=Object(a.Ob)(t.lineJoin,"miter"),r.lineWidth=i,r.strokeStyle=Object(a.Ob)(t.strokeStyle,l),r.setLineDash(Object(a.Ob)(t.lineDash,[])),s.usePointStyle){const o={radius:g*Math.SQRT2/2,pointStyle:t.pointStyle,rotation:t.rotation,borderWidth:i},s=d.xPlus(e,g/2),l=n+m;Object(a.fb)(r,o,s,l)}else{const o=n+Math.max((p-b)/2,0),s=d.leftForLtr(e,g),l=Object(a.ib)(t.borderRadius);r.beginPath(),Object.values(l).some(e=>0!==e)?Object(a.gb)(r,{x:s,y:o,w:g,h:b,radius:l}):r.rect(s,o,g,b),r.fill(),0!==i&&r.stroke()}r.restore()}(d.x(k),S,n),k=Object(a.nb)(T,k+g+m,e.right),function(e,n,t){Object(a.v)(r,t.text,e,n+v/2,c,{strikethrough:t.hidden,textAlign:t.textAlign})}(d.x(k),S,n),y?f.x+=P+h:f.y+=C}),Object(a.ob)(e.ctx,n.textDirection)}drawTitle(){const e=this,n=e.options,t=n.title,i=Object(a.w)(t.font),r=Object(a.d)(t.padding);if(!t.display)return;const o=Object(a.lb)(n.rtl,e.left,e.width),s=e.ctx,l=t.position,d=i.size/2,c=r.top+d;let u,h=e.left,p=e.width;if(this.isHorizontal())p=Math.max(...e.lineWidths),u=e.top+c,h=Object(a.y)(n.align,h,e.right-p);else{const t=e.columnSizes.reduce((e,n)=>Math.max(e,n.height),0);u=c+Object(a.y)(n.align,e.top,e.bottom-t-n.labels.padding-e._computeTitleHeight())}const m=Object(a.y)(l,h,h+p);s.textAlign=o.textAlign(Object(a.x)(l)),s.textBaseline="middle",s.strokeStyle=t.color,s.fillStyle=t.color,s.font=i.string,Object(a.v)(s,t.text,m,u,i)}_computeTitleHeight(){const e=this.options.title,n=Object(a.w)(e.font),t=Object(a.d)(e.padding);return e.display?n.lineHeight+t.height:0}_getLegendItemAt(e,n){const t=this;let a,i,r;if(e>=t.left&&e<=t.right&&n>=t.top&&n<=t.bottom)for(r=t.legendHitBoxes,a=0;a=i.left&&e<=i.left+i.width&&n>=i.top&&n<=i.top+i.height)return t.legendItems[a];return null}handleEvent(e){const n=this,t=n.options;if(!function(e,n){if("mousemove"===e&&(n.onHover||n.onLeave))return!0;if(n.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t))return;const i=n._getLegendItemAt(e.x,e.y);if("mousemove"===e.type){const s=n._hoveredItem,l=(o=i,null!==(r=s)&&null!==o&&r.datasetIndex===o.datasetIndex&&r.index===o.index);s&&!l&&Object(a.o)(t.onLeave,[e,s,n],n),n._hoveredItem=i,i&&!l&&Object(a.o)(t.onHover,[e,i,n],n)}else i&&Object(a.o)(t.onClick,[e,i,n],n);var r,o}}var Gn={id:"legend",_element:$n,start(e,n,t){const a=e.legend=new $n({ctx:e.ctx,options:t,chart:e});Q.configure(e,a,t),Q.addBox(e,a)},stop(e){Q.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,n,t){const a=e.legend;Q.configure(e,a,t),a.options=t},afterUpdate(e){const n=e.legend;n.buildLabels(),n.adjustHitBoxes()},afterEvent(e,n){n.replay||e.legend.handleEvent(n.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,n,t){const a=n.datasetIndex,i=t.chart;i.isDatasetVisible(a)?(i.hide(a),n.hidden=!0):(i.show(a),n.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const n=e.data.datasets,{labels:{usePointStyle:t,pointStyle:i,textAlign:r,color:o}}=e.legend.options;return e._getSortedDatasetMetas().map(e=>{const s=e.controller.getStyle(t?0:void 0),l=Object(a.d)(s.borderWidth);return{text:n[e.index].label,fillStyle:s.backgroundColor,fontColor:o,hidden:!e.visible,lineCap:s.borderCapStyle,lineDash:s.borderDash,lineDashOffset:s.borderDashOffset,lineJoin:s.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:s.borderColor,pointStyle:i||s.pointStyle,rotation:s.rotation,textAlign:r||s.textAlign,borderRadius:0,datasetIndex:e.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class qn extends fe{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const t=this,i=t.options;if(t.left=0,t.top=0,!i.display)return void(t.width=t.height=t.right=t.bottom=0);t.width=t.right=e,t.height=t.bottom=n;const r=Object(a.ub)(i.text)?i.text.length:1;t._padding=Object(a.d)(i.padding);const o=r*Object(a.w)(i.font).lineHeight+t._padding.height;t.isHorizontal()?t.height=o:t.width=o}isHorizontal(){const e=this.options.position;return"top"===e||"bottom"===e}_drawArgs(e){const{top:n,left:t,bottom:i,right:r,options:o}=this,s=o.align;let l,d,c,u=0;return this.isHorizontal()?(d=Object(a.y)(s,t,r),c=n+e,l=r-t):("left"===o.position?(d=t+e,c=Object(a.y)(s,i,n),u=-.5*a.q):(d=r-e,c=Object(a.y)(s,n,i),u=.5*a.q),l=i-n),{titleX:d,titleY:c,maxWidth:l,rotation:u}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const t=Object(a.w)(n.font),i=t.lineHeight/2+this._padding.top,{titleX:r,titleY:o,maxWidth:s,rotation:l}=this._drawArgs(i);Object(a.v)(e,n.text,0,0,t,{color:n.color,maxWidth:s,rotation:l,textAlign:Object(a.x)(n.align),textBaseline:"middle",translation:[r,o]})}}var Xn={id:"title",_element:qn,start(e,n,t){!function(e,n){const t=new qn({ctx:e.ctx,options:n,chart:e});Q.configure(e,t,n),Q.addBox(e,t),e.titleBlock=t}(e,t)},stop(e){const n=e.titleBlock;Q.removeBox(e,n),delete e.titleBlock},beforeUpdate(e,n,t){const a=e.titleBlock;Q.configure(e,a,t),a.options=t},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Jn={average(e){if(!e.length)return!1;let n,t,a=0,i=0,r=0;for(n=0,t=e.length;n-1?e.split("\n"):e}function Qn(e,n){const{element:t,datasetIndex:a,index:i}=n,r=e.getDatasetMeta(a).controller,{label:o,value:s}=r.getLabelAndValue(i);return{chart:e,label:o,parsed:r.getParsed(i),raw:e.data.datasets[a].data[i],formattedValue:s,dataset:r.getDataset(),dataIndex:i,datasetIndex:a,element:t}}function et(e,n){const t=e._chart.ctx,{body:i,footer:r,title:o}=e,{boxWidth:s,boxHeight:l}=n,d=Object(a.w)(n.bodyFont),c=Object(a.w)(n.titleFont),u=Object(a.w)(n.footerFont),h=o.length,p=r.length,m=i.length,f=Object(a.d)(n.padding);let g=f.height,b=0,v=i.reduce((e,n)=>e+n.before.length+n.lines.length+n.after.length,0);if(v+=e.beforeBody.length+e.afterBody.length,h&&(g+=h*c.lineHeight+(h-1)*n.titleSpacing+n.titleMarginBottom),v){g+=m*(n.displayColors?Math.max(l,d.lineHeight):d.lineHeight)+(v-m)*d.lineHeight+(v-1)*n.bodySpacing}p&&(g+=n.footerMarginTop+p*u.lineHeight+(p-1)*n.footerSpacing);let y=0;const x=function(e){b=Math.max(b,t.measureText(e).width+y)};return t.save(),t.font=c.string,Object(a.e)(e.title,x),t.font=d.string,Object(a.e)(e.beforeBody.concat(e.afterBody),x),y=n.displayColors?s+2:0,Object(a.e)(i,e=>{Object(a.e)(e.before,x),Object(a.e)(e.lines,x),Object(a.e)(e.after,x)}),y=0,t.font=u.string,Object(a.e)(e.footer,x),t.restore(),b+=f.width,{width:b,height:g}}function nt(e,n,t,a){const{x:i,width:r}=t,{width:o,chartArea:{left:s,right:l}}=e;let d="center";return"center"===a?d=i<=(s+l)/2?"left":"right":i<=r/2?d="left":i>=o-r/2&&(d="right"),function(e,n,t,a){const{x:i,width:r}=a,o=t.caretSize+t.caretPadding;return"left"===e&&i+r+o>n.width||("right"===e&&i-r-o<0||void 0)}(d,e,n,t)&&(d="center"),d}function tt(e,n,t){const a=n.yAlign||function(e,n){const{y:t,height:a}=n;return te.height-a/2?"bottom":"center"}(e,t);return{xAlign:n.xAlign||nt(e,n,t,a),yAlign:a}}function at(e,n,t,i){const{caretSize:r,caretPadding:o,cornerRadius:s}=e,{xAlign:l,yAlign:d}=t,c=r+o,u=s+o;let h=function(e,n){let{x:t,width:a}=e;return"right"===n?t-=a:"center"===n&&(t-=a/2),t}(n,l);const p=function(e,n,t){let{y:a,height:i}=e;return"top"===n?a+=t:a-="bottom"===n?i+t:i/2,a}(n,d,c);return"center"===d?"left"===l?h+=c:"right"===l&&(h-=c):"left"===l?h-=u:"right"===l&&(h+=u),{x:Object(a.Qb)(h,0,i.width-n.width),y:Object(a.Qb)(p,0,i.height-n.height)}}function it(e,n,t){const i=Object(a.d)(t.padding);return"center"===n?e.x+e.width/2:"right"===n?e.x+e.width-i.right:e.x+i.left}function rt(e){return Zn([],Kn(e))}function ot(e,n){const t=n&&n.dataset&&n.dataset.tooltip&&n.dataset.tooltip.callbacks;return t?e.override(t):e}class st extends fe{constructor(e){super(),this.opacity=0,this._active=[],this._chart=e._chart,this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this,n=e._cachedAnimations;if(n)return n;const t=e._chart,a=e.options.setContext(e.getContext()),i=a.enabled&&t.options.animation&&a.animations,r=new l(e._chart,i);return i._cacheable&&(e._cachedAnimations=Object.freeze(r)),r}getContext(){const e=this;return e.$context||(e.$context=(n=e._chart.getContext(),t=e,a=e._tooltipItems,Object.assign(Object.create(n),{tooltip:t,tooltipItems:a,type:"tooltip"})));var n,t,a}getTitle(e,n){const{callbacks:t}=n,a=t.beforeTitle.apply(this,[e]),i=t.title.apply(this,[e]),r=t.afterTitle.apply(this,[e]);let o=[];return o=Zn(o,Kn(a)),o=Zn(o,Kn(i)),o=Zn(o,Kn(r)),o}getBeforeBody(e,n){return rt(n.callbacks.beforeBody.apply(this,[e]))}getBody(e,n){const t=this,{callbacks:i}=n,r=[];return Object(a.e)(e,e=>{const n={before:[],lines:[],after:[]},a=ot(i,e);Zn(n.before,Kn(a.beforeLabel.call(t,e))),Zn(n.lines,a.label.call(t,e)),Zn(n.after,Kn(a.afterLabel.call(t,e))),r.push(n)}),r}getAfterBody(e,n){return rt(n.callbacks.afterBody.apply(this,[e]))}getFooter(e,n){const{callbacks:t}=n,a=t.beforeFooter.apply(this,[e]),i=t.footer.apply(this,[e]),r=t.afterFooter.apply(this,[e]);let o=[];return o=Zn(o,Kn(a)),o=Zn(o,Kn(i)),o=Zn(o,Kn(r)),o}_createItems(e){const n=this,t=n._active,i=n._chart.data,r=[],o=[],s=[];let l,d,c=[];for(l=0,d=t.length;le.filter(n,t,a,i))),e.itemSort&&(c=c.sort((n,t)=>e.itemSort(n,t,i))),Object(a.e)(c,t=>{const a=ot(e.callbacks,t);r.push(a.labelColor.call(n,t)),o.push(a.labelPointStyle.call(n,t)),s.push(a.labelTextColor.call(n,t))}),n.labelColors=r,n.labelPointStyles=o,n.labelTextColors=s,n.dataPoints=c,c}update(e,n){const t=this,a=t.options.setContext(t.getContext()),i=t._active;let r,o=[];if(i.length){const e=Jn[a.position].call(t,i,t._eventPosition);o=t._createItems(a),t.title=t.getTitle(o,a),t.beforeBody=t.getBeforeBody(o,a),t.body=t.getBody(o,a),t.afterBody=t.getAfterBody(o,a),t.footer=t.getFooter(o,a);const n=t._size=et(t,a),s=Object.assign({},e,n),l=tt(t._chart,a,s),d=at(a,s,l,t._chart);t.xAlign=l.xAlign,t.yAlign=l.yAlign,r={opacity:1,x:d.x,y:d.y,width:n.width,height:n.height,caretX:e.x,caretY:e.y}}else 0!==t.opacity&&(r={opacity:0});t._tooltipItems=o,t.$context=void 0,r&&t._resolveAnimations().update(t,r),e&&a.external&&a.external.call(t,{chart:t._chart,tooltip:t,replay:n})}drawCaret(e,n,t,a){const i=this.getCaretPosition(e,t,a);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(e,n,t){const{xAlign:a,yAlign:i}=this,{cornerRadius:r,caretSize:o}=t,{x:s,y:l}=e,{width:d,height:c}=n;let u,h,p,m,f,g;return"center"===i?(f=l+c/2,"left"===a?(u=s,h=u-o,m=f+o,g=f-o):(u=s+d,h=u+o,m=f-o,g=f+o),p=u):(h="left"===a?s+r+o:"right"===a?s+d-r-o:this.caretX,"top"===i?(m=l,f=m-o,u=h-o,p=h+o):(m=l+c,f=m+o,u=h+o,p=h-o),g=m),{x1:u,x2:h,x3:p,y1:m,y2:f,y3:g}}drawTitle(e,n,t){const i=this,r=i.title,o=r.length;let s,l,d;if(o){const c=Object(a.lb)(t.rtl,i.x,i.width);for(e.x=it(i,t.titleAlign,t),n.textAlign=c.textAlign(t.titleAlign),n.textBaseline="middle",s=Object(a.w)(t.titleFont),l=t.titleSpacing,n.fillStyle=t.titleColor,n.font=s.string,d=0;d0!==e)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,Object(a.gb)(e,{x:n,y:m,w:d,h:l,radius:s}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),Object(a.gb)(e,{x:t,y:m+1,w:d-2,h:l-2,radius:s}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(n,m,d,l),e.strokeRect(n,m,d,l),e.fillStyle=o.backgroundColor,e.fillRect(t,m+1,d-2,l-2))}e.fillStyle=this.labelTextColors[t]}drawBody(e,n,t){const i=this,{body:r}=i,{bodySpacing:o,bodyAlign:s,displayColors:l,boxHeight:d,boxWidth:c}=t,u=Object(a.w)(t.bodyFont);let h=u.lineHeight,p=0;const m=Object(a.lb)(t.rtl,i.x,i.width),f=function(t){n.fillText(t,m.x(e.x+p),e.y+h/2),e.y+=h+o},g=m.textAlign(s);let b,v,y,x,C,w,D;for(n.textAlign=s,n.textBaseline="middle",n.font=u.string,e.x=it(i,g,t),n.fillStyle=t.bodyColor,Object(a.e)(i.beforeBody,f),p=l&&"right"!==g?"center"===s?c/2+1:c+2:0,x=0,w=r.length;x0&&n.stroke()}_updateAnimationTarget(e){const n=this,t=n._chart,a=n.$animations,i=a&&a.x,r=a&&a.y;if(i||r){const a=Jn[e.position].call(n,n._active,n._eventPosition);if(!a)return;const o=n._size=et(n,e),s=Object.assign({},a,n._size),l=tt(t,e,s),d=at(e,s,l,t);i._to===d.x&&r._to===d.y||(n.xAlign=l.xAlign,n.yAlign=l.yAlign,n.width=o.width,n.height=o.height,n.caretX=a.x,n.caretY=a.y,n._resolveAnimations().update(n,d))}}draw(e){const n=this,t=n.options.setContext(n.getContext());let i=n.opacity;if(!i)return;n._updateAnimationTarget(t);const r={width:n.width,height:n.height},o={x:n.x,y:n.y};i=Math.abs(i)<.001?0:i;const s=Object(a.d)(t.padding),l=n.title.length||n.beforeBody.length||n.body.length||n.afterBody.length||n.footer.length;t.enabled&&l&&(e.save(),e.globalAlpha=i,n.drawBackground(o,e,r,t),Object(a.mb)(e,t.textDirection),o.y+=s.top,n.drawTitle(o,e,t),n.drawBody(o,e,t),n.drawFooter(o,e,t),Object(a.ob)(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const t=this,i=t._active,r=e.map(({datasetIndex:e,index:n})=>{const a=t._chart.getDatasetMeta(e);if(!a)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:a.data[n],index:n}}),o=!Object(a.U)(i,r),s=t._positionChanged(r,n);(o||s)&&(t._active=r,t._eventPosition=n,t.update(!0))}handleEvent(e,n){const t=this,i=t.options,r=t._active||[];let o=!1,s=[];"mouseout"!==e.type&&(s=t._chart.getElementsAtEventForMode(e,i.mode,i,n),i.reverse&&s.reverse());const l=t._positionChanged(s,e);return o=n||!Object(a.U)(s,r)||l,o&&(t._active=s,(i.enabled||i.external)&&(t._eventPosition={x:e.x,y:e.y},t.update(!0,n))),o}_positionChanged(e,n){const t=Jn[this.options.position].call(this,e,n);return this.caretX!==t.x||this.caretY!==t.y}}st.positioners=Jn;var lt={id:"tooltip",_element:st,positioners:Jn,afterInit(e,n,t){t&&(e.tooltip=new st({_chart:e,options:t}))},beforeUpdate(e,n,t){e.tooltip&&e.tooltip.initialize(t)},reset(e,n,t){e.tooltip&&e.tooltip.initialize(t)},afterDraw(e){const n=e.tooltip,t={tooltip:n};!1!==e.notifyPlugins("beforeTooltipDraw",t)&&(n&&n.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",t))},afterEvent(e,n){if(e.tooltip){const t=n.replay;e.tooltip.handleEvent(n.event,t)&&(n.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,n)=>n.bodyFont.size,boxWidth:(e,n)=>n.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:a.pb,title(e){if(e.length>0){const n=e[0],t=n.chart.data.labels,a=t?t.length:0;if(this&&this.options&&"dataset"===this.options.mode)return n.dataset.label||"";if(n.label)return n.label;if(a>0&&n.dataIndex"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},dt=Object.freeze({__proto__:null,Decimation:Sn,Filler:Wn,Legend:Gn,Title:Xn,Tooltip:lt});function ct(e,n,t){const a=e.indexOf(n);if(-1===a)return((e,n,t)=>"string"==typeof n?e.push(n)-1:isNaN(n)?null:t)(e,n,t);return a!==e.lastIndexOf(n)?t:a}class ut extends ke{constructor(e){super(e),this._startValue=void 0,this._valueRange=0}parse(e,n){if(Object(a.Cb)(e))return null;const t=this.getLabels();return((e,n)=>null===e?null:Object(a.Qb)(Math.round(e),0,n))(n=isFinite(n)&&t[n]===e?n:ct(t,e,Object(a.Ob)(n,e)),t.length-1)}determineDataLimits(){const e=this,{minDefined:n,maxDefined:t}=e.getUserBounds();let{min:a,max:i}=e.getMinMax(!0);"ticks"===e.options.bounds&&(n||(a=0),t||(i=e.getLabels().length-1)),e.min=a,e.max=i}buildTicks(){const e=this,n=e.min,t=e.max,a=e.options.offset,i=[];let r=e.getLabels();r=0===n&&t===r.length-1?r:r.slice(n,t+1),e._valueRange=Math.max(r.length-(a?0:1),1),e._startValue=e.min-(a?.5:0);for(let e=n;e<=t;e++)i.push({value:e});return i}getLabelForValue(e){const n=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}ut.id="category",ut.defaults={ticks:{callback:ut.prototype.getLabelForValue}};class ht extends ke{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return Object(a.Cb)(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const e=this,{beginAtZero:n,stacked:t}=e.options,{minDefined:i,maxDefined:r}=e.getUserBounds();let{min:o,max:s}=e;const l=e=>o=i?o:e,d=e=>s=r?s:e;if(n||t){const e=Object(a.Lb)(o),n=Object(a.Lb)(s);e<0&&n<0?d(0):e>0&&n>0&&l(0)}o===s&&(d(s+1),n||l(o-1)),e.min=o,e.max=s}getTickLimit(){const e=this,n=e.options.ticks;let t,{maxTicksLimit:a,stepSize:i}=n;return i?t=Math.ceil(e.max/i)-Math.floor(e.min/i)+1:(t=e.computeTickLimit(),a=a||11),a&&(t=Math.min(a,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this,n=e.options,t=n.ticks;let i=e.getTickLimit();i=Math.max(2,i);const r=function(e,n){const t=[],{step:i,min:r,max:o,precision:s,count:l,maxTicks:d}=e,c=i||1,u=d-1,{min:h,max:p}=n,m=!Object(a.Cb)(r),f=!Object(a.Cb)(o),g=!Object(a.Cb)(l);let b,v,y,x,C=Object(a.tb)((p-h)/u/c)*c;if(C<1e-14&&!m&&!f)return[{value:h},{value:p}];x=Math.ceil(p/C)-Math.floor(h/C),x>u&&(C=Object(a.tb)(x*C/u/c)*c),Object(a.Cb)(s)||(b=Math.pow(10,s),C=Math.ceil(C*b)/b),v=Math.floor(h/C)*C,y=Math.ceil(p/C)*C,m&&f&&i&&Object(a.N)((o-r)/i,C/1e3)?(x=Math.min((o-r)/C,d),C=(o-r)/x,v=r,y=o):g?(v=m?r:v,y=f?o:y,x=l-1,C=(y-v)/x):(x=(y-v)/C,x=Object(a.O)(x,Math.round(x),C/1e3)?Math.round(x):Math.ceil(x)),b=Math.pow(10,Object(a.Cb)(s)?Object(a.P)(C):s),v=Math.round(v*b)/b,y=Math.round(y*b)/b;let w=0;for(m&&(t.push({value:r}),v<=r&&w++,Object(a.O)(Math.round((v+w*C)*b)/b,r,C/10)&&w++);w0?t:null;this._zero=!0}determineDataLimits(){const e=this,{min:n,max:t}=e.getMinMax(!0);e.min=Object(a.zb)(n)?Math.max(0,n):null,e.max=Object(a.zb)(t)?Math.max(0,t):null,e.options.beginAtZero&&(e._zero=!0),e.handleTickRangeOptions()}handleTickRangeOptions(){const e=this,{minDefined:n,maxDefined:t}=e.getUserBounds();let i=e.min,r=e.max;const o=e=>i=n?i:e,s=e=>r=t?r:e,l=(e,n)=>Math.pow(10,Math.floor(Object(a.l)(e))+n);i===r&&(i<=0?(o(1),s(10)):(o(l(i,-1)),s(l(r,1)))),i<=0&&o(l(r,-1)),r<=0&&s(l(i,1)),e._zero&&e.min!==e._suggestedMin&&i===l(e.min,0)&&o(l(i,-1)),e.min=i,e.max=r}buildTicks(){const e=this,n=e.options,t=function(e,n){const t=Math.floor(Object(a.l)(n.max)),i=Math.ceil(n.max/Math.pow(10,t)),r=[];let o=Object(a.n)(e.min,Math.pow(10,Math.floor(Object(a.l)(n.min)))),s=Math.floor(Object(a.l)(o)),l=Math.floor(o/Math.pow(10,s)),d=s<0?Math.pow(10,Math.abs(s)):1;do{r.push({value:o,major:mt(o)}),++l,10===l&&(l=1,++s,d=s>=0?1:d),o=Math.round(l*Math.pow(10,s)*d)/d}while(si?{start:n-t,end:n}:{start:n,end:n+t}}function vt(e){return 0===e||180===e?"center":e<180?"left":"right"}function yt(e,n,t){90===e||270===e?t.y-=n.h/2:(e>270||e<90)&&(t.y-=n.h)}function xt(e,n,t,i){const{ctx:r}=e;if(t)r.arc(e.xCenter,e.yCenter,n,0,a.u);else{let t=e.getPointPosition(0,n);r.moveTo(t.x,t.y);for(let a=1;a{const i=Object(a.o)(n.options.pointLabels.callback,[e,t],n);return i||0===i?i:""})}fit(){const e=this,n=e.options;n.display&&n.pointLabels.display?function(e){const n={l:0,r:e.width,t:0,b:e.height-e.paddingTop},t={};let i,r,o;const s=[],l=[],d=e.getLabels().length;for(i=0;in.r&&(n.r=g.end,t.r=m),b.startn.b&&(n.b=b.end,t.b=m)}var c,u,h;e._setReductions(e.drawingArea,n,t),e._pointLabelItems=[];const p=e.options,m=gt(p),f=e.getDistanceFromCenterForValue(p.ticks.reverse?e.min:e.max);for(i=0;i=0;r--){const n=i.setContext(e.getContext(r)),o=Object(a.w)(n.font),{x:s,y:l,textAlign:d,left:c,top:u,right:h,bottom:p}=e._pointLabelItems[r],{backdropColor:m}=n;if(!Object(a.Cb)(m)){const e=Object(a.d)(n.backdropPadding);t.fillStyle=m,t.fillRect(c-e.left,u-e.top,h-c+e.width,p-u+e.height)}Object(a.v)(t,e._pointLabels[r],s,l+o.lineHeight/2,o,{color:n.color,textAlign:d,textBaseline:"middle"})}}(e,o),r.display&&e.ticks.forEach((n,t)=>{if(0!==t){l=e.getDistanceFromCenterForValue(n.value);const a=r.setContext(e.getContext(t-1));!function(e,n,t,a){const i=e.ctx,r=n.circular,{color:o,lineWidth:s}=n;!r&&!a||!o||!s||t<0||(i.save(),i.strokeStyle=o,i.lineWidth=s,i.setLineDash(n.borderDash),i.lineDashOffset=n.borderDashOffset,i.beginPath(),xt(e,t,r,a),i.closePath(),i.stroke(),i.restore())}(e,a,l,o)}}),i.display){for(n.save(),s=e.getLabels().length-1;s>=0;s--){const a=i.setContext(e.getContext(s)),{color:r,lineWidth:o}=a;o&&r&&(n.lineWidth=o,n.strokeStyle=r,n.setLineDash(a.borderDash),n.lineDashOffset=a.borderDashOffset,l=e.getDistanceFromCenterForValue(t.ticks.reverse?e.min:e.max),d=e.getPointPosition(s,l),n.beginPath(),n.moveTo(e.xCenter,e.yCenter),n.lineTo(d.x,d.y),n.stroke())}n.restore()}}drawLabels(){const e=this,n=e.ctx,t=e.options,i=t.ticks;if(!i.display)return;const r=e.getIndexAngle(0);let o,s;n.save(),n.translate(e.xCenter,e.yCenter),n.rotate(r),n.textAlign="center",n.textBaseline="middle",e.ticks.forEach((r,l)=>{if(0===l&&!t.reverse)return;const d=i.setContext(e.getContext(l)),c=Object(a.w)(d.font);if(o=e.getDistanceFromCenterForValue(e.ticks[l].value),d.showLabelBackdrop){s=n.measureText(r.label).width,n.fillStyle=d.backdropColor;const e=Object(a.d)(d.backdropPadding);n.fillRect(-s/2-e.left,-o-c.size/2-e.top,s+e.width,c.size+e.height)}Object(a.v)(n,r.label,0,-o,c,{color:d.color})}),n.restore()}drawTitle(){}}wt.id="radialLinear",wt.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPadding:2,callback:be.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5}},wt.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},wt.descriptors={angleLines:{_fallback:"grid"}};const Dt={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Tt=Object.keys(Dt);function Pt(e,n){return e-n}function kt(e,n){if(Object(a.Cb)(n))return null;const t=e._adapter,i=e.options.time,{parser:r,round:o,isoWeekday:s}=i;let l=n;return"function"==typeof r&&(l=r(l)),Object(a.zb)(l)||(l="string"==typeof r?t.parse(l,r):t.parse(l)),null===l?null:(o&&(l="week"!==o||!Object(a.Pb)(s)&&!0!==s?t.startOf(l,o):t.startOf(l,"isoWeek",s)),+l)}function St(e,n,t,a){const i=Tt.length;for(let r=Tt.indexOf(e);r=n?t[i]:t[r]]=!0}}else e[n]=!0}function At(e,n,t){const a=[],i={},r=n.length;let o,s;for(o=0;o=0&&(n[l].major=!0);return n}(e,a,i,t):a}class Rt extends ke{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1}init(e,n){const t=e.time||(e.time={}),i=this._adapter=new M._date(e.adapters.date);Object(a.I)(t.displayFormats,i.formats()),super.init(e),this._normalized=n.normalized}parse(e,n){return void 0===e?null:kt(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this,n=e.options,t=e._adapter,i=n.time.unit||"day";let{min:r,max:o,minDefined:s,maxDefined:l}=e.getUserBounds();function d(e){s||isNaN(e.min)||(r=Math.min(r,e.min)),l||isNaN(e.max)||(o=Math.max(o,e.max))}s&&l||(d(e._getLabelBounds()),"ticks"===n.bounds&&"labels"===n.ticks.source||d(e.getMinMax(!1))),r=Object(a.zb)(r)&&!isNaN(r)?r:+t.startOf(Date.now(),i),o=Object(a.zb)(o)&&!isNaN(o)?o:+t.endOf(Date.now(),i)+1,e.min=Math.min(r,o-1),e.max=Math.max(r+1,o)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,t=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],t=e[e.length-1]),{min:n,max:t}}buildTicks(){const e=this,n=e.options,t=n.time,i=n.ticks,r="labels"===i.source?e.getLabelTimestamps():e._generate();"ticks"===n.bounds&&r.length&&(e.min=e._userMin||r[0],e.max=e._userMax||r[r.length-1]);const o=e.min,s=e.max,l=Object(a.R)(r,o,s);return e._unit=t.unit||(i.autoSkip?St(t.minUnit,e.min,e.max,e._getLabelCapacity(o)):function(e,n,t,a,i){for(let r=Tt.length-1;r>=Tt.indexOf(t);r--){const t=Tt[r];if(Dt[t].common&&e._adapter.diff(i,a,t)>=n-1)return t}return Tt[t?Tt.indexOf(t):0]}(e,l.length,t.minUnit,e.min,e.max)),e._majorUnit=i.major.enabled&&"year"!==e._unit?function(e){for(let n=Tt.indexOf(e)+1,t=Tt.length;n1e5*l)throw new Error(t+" and "+i+" are too far apart with stepSize of "+l+" "+s);const f="data"===r.ticks.source&&e.getDataTimestamps();for(h=m,p=0;he-n).map(e=>+e)}getLabelForValue(e){const n=this._adapter,t=this.options.time;return t.tooltipFormat?n.format(e,t.tooltipFormat):n.format(e,t.displayFormats.datetime)}_tickFormatFunction(e,n,t,i){const r=this,o=r.options,s=o.time.displayFormats,l=r._unit,d=r._majorUnit,c=l&&s[l],u=d&&s[d],h=t[n],p=d&&u&&h&&h.major,m=r._adapter.format(e,i||(p?u:c)),f=o.ticks.callback;return f?Object(a.o)(f,[m,n,t],r):m}generateTickLabels(e){let n,t,a;for(n=0,t=e.length;n0?s:1}getDataTimestamps(){const e=this;let n,t,a=e._cache.data||[];if(a.length)return a;const i=e.getMatchingVisibleMetas();if(e._normalized&&i.length)return e._cache.data=i[0].controller.getAllParsedValues(e);for(n=0,t=i.length;nn&&o0&&!Object(a.Cb)(n)?n/t._maxIndex:t.getDecimalForValue(e);return t.getPixelForDecimal((i.start+r)*i.factor)}getDecimalForValue(e){return It(this._table,e)/this._maxIndex}getValueForPixel(e){const n=this._offsets,t=this.getDecimalForPixel(e)/n.factor-n.end;return It(this._table,t*this._maxIndex,!0)}}_t.id="timeseries",_t.defaults=Rt.defaults;const Et=[_,Pn,dt,Object.freeze({__proto__:null,CategoryScale:ut,LinearScale:pt,LogarithmicScale:ft,RadialLinearScale:wt,TimeScale:Rt,TimeSeriesScale:_t})]},function(e,n,t){"use strict";function a(e,n){for(var t=0;te.length)&&(n=e.length);for(var t=0,a=new Array(n);t=e.length?{done:!0}:{done:!1,value:e[n++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}Object.defineProperty(n,"__esModule",{value:!0});var p=function(e){function n(){return e.apply(this,arguments)||this}return r(n,e),n}(c(Error)),m=function(e){function n(n){return e.call(this,"Invalid DateTime: "+n.toMessage())||this}return r(n,e),n}(p),f=function(e){function n(n){return e.call(this,"Invalid Interval: "+n.toMessage())||this}return r(n,e),n}(p),g=function(e){function n(n){return e.call(this,"Invalid Duration: "+n.toMessage())||this}return r(n,e),n}(p),b=function(e){function n(){return e.apply(this,arguments)||this}return r(n,e),n}(p),v=function(e){function n(n){return e.call(this,"Invalid unit "+n)||this}return r(n,e),n}(p),y=function(e){function n(){return e.apply(this,arguments)||this}return r(n,e),n}(p),x=function(e){function n(){return e.call(this,"Zone is an abstract class")||this}return r(n,e),n}(p),C="numeric",w="short",D="long",T={year:C,month:C,day:C},P={year:C,month:w,day:C},k={year:C,month:w,day:C,weekday:w},S={year:C,month:D,day:C},O={year:C,month:D,day:C,weekday:D},A={hour:C,minute:C},R={hour:C,minute:C,second:C},I={hour:C,minute:C,second:C,timeZoneName:w},_={hour:C,minute:C,second:C,timeZoneName:D},E={hour:C,minute:C,hour12:!1},L={hour:C,minute:C,second:C,hour12:!1},M={hour:C,minute:C,second:C,hour12:!1,timeZoneName:w},j={hour:C,minute:C,second:C,hour12:!1,timeZoneName:D},N={year:C,month:C,day:C,hour:C,minute:C},B={year:C,month:C,day:C,hour:C,minute:C,second:C},U={year:C,month:w,day:C,hour:C,minute:C},z={year:C,month:w,day:C,hour:C,minute:C,second:C},F={year:C,month:w,day:C,weekday:w,hour:C,minute:C},H={year:C,month:D,day:C,hour:C,minute:C,timeZoneName:w},V={year:C,month:D,day:C,hour:C,minute:C,second:C,timeZoneName:w},W={year:C,month:D,day:C,weekday:D,hour:C,minute:C,timeZoneName:D},Y={year:C,month:D,day:C,weekday:D,hour:C,minute:C,second:C,timeZoneName:D};function $(e){return void 0===e}function G(e){return"number"==typeof e}function q(e){return"number"==typeof e&&e%1==0}function X(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function J(){return!$(Intl.DateTimeFormat.prototype.formatToParts)}function Z(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function K(e,n,t){if(0!==e.length)return e.reduce((function(e,a){var i=[n(a),a];return e&&t(e[0],i[0])===e[0]?e:i}),null)[1]}function Q(e,n){return n.reduce((function(n,t){return n[t]=e[t],n}),{})}function ee(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function ne(e,n,t){return q(e)&&e>=n&&e<=t}function te(e,n){void 0===n&&(n=2);var t=e<0?"-":"",a=t?-1*e:e;return""+t+(a.toString().length=0&&(n=new Date(n)).setUTCFullYear(n.getUTCFullYear()-1900),+n}function ce(e){var n=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,t=e-1,a=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7;return 4===n||3===a?53:52}function ue(e){return e>99?e:e>60?1900+e:2e3+e}function he(e,n,t,a){void 0===a&&(a=null);var i=new Date(e),r={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};a&&(r.timeZone=a);var o=Object.assign({timeZoneName:n},r),s=X();if(s&&J()){var l=new Intl.DateTimeFormat(t,o).formatToParts(i).find((function(e){return"timezonename"===e.type.toLowerCase()}));return l?l.value:null}if(s){var d=new Intl.DateTimeFormat(t,r).format(i);return new Intl.DateTimeFormat(t,o).format(i).substring(d.length).replace(/^[, \u200e]+/,"")}return null}function pe(e,n){var t=parseInt(e,10);Number.isNaN(t)&&(t=0);var a=parseInt(n,10)||0;return 60*t+(t<0||Object.is(t,-0)?-a:a)}function me(e){var n=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(n))throw new y("Invalid unit value "+e);return n}function fe(e,n,t){var a={};for(var i in e)if(ee(e,i)){if(t.indexOf(i)>=0)continue;var r=e[i];if(null==r)continue;a[n(i)]=me(r)}return a}function ge(e,n){var t=Math.trunc(Math.abs(e/60)),a=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(n){case"short":return""+i+te(t,2)+":"+te(a,2);case"narrow":return""+i+t+(a>0?":"+a:"");case"techie":return""+i+te(t,2)+te(a,2);default:throw new RangeError("Value format "+n+" is out of range for property format")}}function be(e){return Q(e,["hour","minute","second","millisecond"])}var ve=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function ye(e){return JSON.stringify(e,Object.keys(e).sort())}var xe=["January","February","March","April","May","June","July","August","September","October","November","December"],Ce=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],we=["J","F","M","A","M","J","J","A","S","O","N","D"];function De(e){switch(e){case"narrow":return we;case"short":return Ce;case"long":return xe;case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var Te=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Pe=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ke=["M","T","W","T","F","S","S"];function Se(e){switch(e){case"narrow":return ke;case"short":return Pe;case"long":return Te;case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Oe=["AM","PM"],Ae=["Before Christ","Anno Domini"],Re=["BC","AD"],Ie=["B","A"];function _e(e){switch(e){case"narrow":return Ie;case"short":return Re;case"long":return Ae;default:return null}}function Ee(e,n){for(var t,a="",i=h(e);!(t=i()).done;){var r=t.value;r.literal?a+=r.val:a+=n(r.val)}return a}var Le={D:T,DD:P,DDD:S,DDDD:O,t:A,tt:R,ttt:I,tttt:_,T:E,TT:L,TTT:M,TTTT:j,f:N,ff:U,fff:H,ffff:W,F:B,FF:z,FFF:V,FFFF:Y},Me=function(){function e(e,n){this.opts=n,this.loc=e,this.systemLoc=null}e.create=function(n,t){return void 0===t&&(t={}),new e(n,t)},e.parseFormat=function(e){for(var n=null,t="",a=!1,i=[],r=0;r0&&i.push({literal:a,val:t}),n=null,t="",a=!a):a||o===n?t+=o:(t.length>0&&i.push({literal:!1,val:t}),t=o,n=o)}return t.length>0&&i.push({literal:a,val:t}),i},e.macroTokenToFormatOpts=function(e){return Le[e]};var n=e.prototype;return n.formatWithSystemDefault=function(e,n){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,Object.assign({},this.opts,n)).format()},n.formatDateTime=function(e,n){return void 0===n&&(n={}),this.loc.dtFormatter(e,Object.assign({},this.opts,n)).format()},n.formatDateTimeParts=function(e,n){return void 0===n&&(n={}),this.loc.dtFormatter(e,Object.assign({},this.opts,n)).formatToParts()},n.resolvedOptions=function(e,n){return void 0===n&&(n={}),this.loc.dtFormatter(e,Object.assign({},this.opts,n)).resolvedOptions()},n.num=function(e,n){if(void 0===n&&(n=0),this.opts.forceSimple)return te(e,n);var t=Object.assign({},this.opts);return n>0&&(t.padTo=n),this.loc.numberFormatter(t).format(e)},n.formatDateTimeFromString=function(n,t){var a=this,i="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&J(),o=function(e,t){return a.loc.extract(n,e,t)},s=function(e){return n.isOffsetFixed&&0===n.offset&&e.allowZ?"Z":n.isValid?n.zone.formatOffset(n.ts,e.format):""},l=function(){return i?function(e){return Oe[e.hour<12?0:1]}(n):o({hour:"numeric",hour12:!0},"dayperiod")},d=function(e,t){return i?function(e,n){return De(n)[e.month-1]}(n,e):o(t?{month:e}:{month:e,day:"numeric"},"month")},c=function(e,t){return i?function(e,n){return Se(n)[e.weekday-1]}(n,e):o(t?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},u=function(e){return i?function(e,n){return _e(n)[e.year<0?0:1]}(n,e):o({era:e},"era")};return Ee(e.parseFormat(t),(function(t){switch(t){case"S":return a.num(n.millisecond);case"u":case"SSS":return a.num(n.millisecond,3);case"s":return a.num(n.second);case"ss":return a.num(n.second,2);case"m":return a.num(n.minute);case"mm":return a.num(n.minute,2);case"h":return a.num(n.hour%12==0?12:n.hour%12);case"hh":return a.num(n.hour%12==0?12:n.hour%12,2);case"H":return a.num(n.hour);case"HH":return a.num(n.hour,2);case"Z":return s({format:"narrow",allowZ:a.opts.allowZ});case"ZZ":return s({format:"short",allowZ:a.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:a.opts.allowZ});case"ZZZZ":return n.zone.offsetName(n.ts,{format:"short",locale:a.loc.locale});case"ZZZZZ":return n.zone.offsetName(n.ts,{format:"long",locale:a.loc.locale});case"z":return n.zoneName;case"a":return l();case"d":return r?o({day:"numeric"},"day"):a.num(n.day);case"dd":return r?o({day:"2-digit"},"day"):a.num(n.day,2);case"c":return a.num(n.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return a.num(n.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return r?o({month:"numeric",day:"numeric"},"month"):a.num(n.month);case"LL":return r?o({month:"2-digit",day:"numeric"},"month"):a.num(n.month,2);case"LLL":return d("short",!0);case"LLLL":return d("long",!0);case"LLLLL":return d("narrow",!0);case"M":return r?o({month:"numeric"},"month"):a.num(n.month);case"MM":return r?o({month:"2-digit"},"month"):a.num(n.month,2);case"MMM":return d("short",!1);case"MMMM":return d("long",!1);case"MMMMM":return d("narrow",!1);case"y":return r?o({year:"numeric"},"year"):a.num(n.year);case"yy":return r?o({year:"2-digit"},"year"):a.num(n.year.toString().slice(-2),2);case"yyyy":return r?o({year:"numeric"},"year"):a.num(n.year,4);case"yyyyyy":return r?o({year:"numeric"},"year"):a.num(n.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return a.num(n.weekYear.toString().slice(-2),2);case"kkkk":return a.num(n.weekYear,4);case"W":return a.num(n.weekNumber);case"WW":return a.num(n.weekNumber,2);case"o":return a.num(n.ordinal);case"ooo":return a.num(n.ordinal,3);case"q":return a.num(n.quarter);case"qq":return a.num(n.quarter,2);case"X":return a.num(Math.floor(n.ts/1e3));case"x":return a.num(n.ts);default:return function(t){var i=e.macroTokenToFormatOpts(t);return i?a.formatWithSystemDefault(n,i):t}(t)}}))},n.formatDurationFromString=function(n,t){var a,i=this,r=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},o=e.parseFormat(t),s=o.reduce((function(e,n){var t=n.literal,a=n.val;return t?e:e.concat(a)}),[]),l=n.shiftTo.apply(n,s.map(r).filter((function(e){return e})));return Ee(o,(a=l,function(e){var n=r(e);return n?i.num(a.get(n),e.length):e}))},e}(),je=function(){function e(e,n){this.reason=e,this.explanation=n}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Ne=function(){function e(){}var n=e.prototype;return n.offsetName=function(e,n){throw new x},n.formatOffset=function(e,n){throw new x},n.offset=function(e){throw new x},n.equals=function(e){throw new x},i(e,[{key:"type",get:function(){throw new x}},{key:"name",get:function(){throw new x}},{key:"universal",get:function(){throw new x}},{key:"isValid",get:function(){throw new x}}]),e}(),Be=null,Ue=function(e){function n(){return e.apply(this,arguments)||this}r(n,e);var t=n.prototype;return t.offsetName=function(e,n){return he(e,n.format,n.locale)},t.formatOffset=function(e,n){return ge(this.offset(e),n)},t.offset=function(e){return-new Date(e).getTimezoneOffset()},t.equals=function(e){return"local"===e.type},i(n,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return X()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Be&&(Be=new n),Be}}]),n}(Ne),ze=RegExp("^"+ve.source+"$"),Fe={};var He={year:0,month:1,day:2,hour:3,minute:4,second:5};var Ve={},We=function(e){function n(t){var a;return(a=e.call(this)||this).zoneName=t,a.valid=n.isValidZone(t),a}r(n,e),n.create=function(e){return Ve[e]||(Ve[e]=new n(e)),Ve[e]},n.resetCache=function(){Ve={},Fe={}},n.isValidSpecifier=function(e){return!(!e||!e.match(ze))},n.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}},n.parseGMTOffset=function(e){if(e){var n=e.match(/^Etc\/GMT([+-]\d{1,2})$/i);if(n)return-60*parseInt(n[1])}return null};var t=n.prototype;return t.offsetName=function(e,n){return he(e,n.format,n.locale,this.name)},t.formatOffset=function(e,n){return ge(this.offset(e),n)},t.offset=function(e){var n,t=new Date(e),a=(n=this.name,Fe[n]||(Fe[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Fe[n]),i=a.formatToParts?function(e,n){for(var t=e.formatToParts(n),a=[],i=0;i=0?c:1e3+c))/6e4},t.equals=function(e){return"iana"===e.type&&e.name===this.name},i(n,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),n}(Ne),Ye=null,$e=function(e){function n(n){var t;return(t=e.call(this)||this).fixed=n,t}r(n,e),n.instance=function(e){return 0===e?n.utcInstance:new n(e)},n.parseSpecifier=function(e){if(e){var t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new n(pe(t[1],t[2]))}return null},i(n,null,[{key:"utcInstance",get:function(){return null===Ye&&(Ye=new n(0)),Ye}}]);var t=n.prototype;return t.offsetName=function(){return this.name},t.formatOffset=function(e,n){return ge(this.fixed,n)},t.offset=function(){return this.fixed},t.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},i(n,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+ge(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),n}(Ne),Ge=function(e){function n(n){var t;return(t=e.call(this)||this).zoneName=n,t}r(n,e);var t=n.prototype;return t.offsetName=function(){return null},t.formatOffset=function(){return""},t.offset=function(){return NaN},t.equals=function(){return!1},i(n,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),n}(Ne);function qe(e,n){var t;if($(e)||null===e)return n;if(e instanceof Ne)return e;if("string"==typeof e){var a=e.toLowerCase();return"local"===a?n:"utc"===a||"gmt"===a?$e.utcInstance:null!=(t=We.parseGMTOffset(e))?$e.instance(t):We.isValidSpecifier(a)?We.create(e):$e.parseSpecifier(a)||new Ge(e)}return G(e)?$e.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new Ge(e)}var Xe=function(){return Date.now()},Je=null,Ze=null,Ke=null,Qe=null,en=!1,nn=function(){function e(){}return e.resetCaches=function(){pn.resetCache(),We.resetCache()},i(e,null,[{key:"now",get:function(){return Xe},set:function(e){Xe=e}},{key:"defaultZoneName",get:function(){return e.defaultZone.name},set:function(e){Je=e?qe(e):null}},{key:"defaultZone",get:function(){return Je||Ue.instance}},{key:"defaultLocale",get:function(){return Ze},set:function(e){Ze=e}},{key:"defaultNumberingSystem",get:function(){return Ke},set:function(e){Ke=e}},{key:"defaultOutputCalendar",get:function(){return Qe},set:function(e){Qe=e}},{key:"throwOnInvalid",get:function(){return en},set:function(e){en=e}}]),e}(),tn={};function an(e,n){void 0===n&&(n={});var t=JSON.stringify([e,n]),a=tn[t];return a||(a=new Intl.DateTimeFormat(e,n),tn[t]=a),a}var rn={};var on={};function sn(e,n){void 0===n&&(n={});var t=n,a=(t.base,function(e,n){if(null==e)return{};var t,a,i={},r=Object.keys(e);for(a=0;a=0||(i[t]=e[t]);return i}(t,["base"])),i=JSON.stringify([e,a]),r=on[i];return r||(r=new Intl.RelativeTimeFormat(e,n),on[i]=r),r}var ln=null;function dn(e,n,t,a,i){var r=e.listingMode(t);return"error"===r?null:"en"===r?a(n):i(n)}var cn=function(){function e(e,n,t){if(this.padTo=t.padTo||0,this.floor=t.floor||!1,!n&&X()){var a={useGrouping:!1};t.padTo>0&&(a.minimumIntegerDigits=t.padTo),this.inf=function(e,n){void 0===n&&(n={});var t=JSON.stringify([e,n]),a=rn[t];return a||(a=new Intl.NumberFormat(e,n),rn[t]=a),a}(e,a)}}return e.prototype.format=function(e){if(this.inf){var n=this.floor?Math.floor(e):e;return this.inf.format(n)}return te(this.floor?Math.floor(e):re(e,3),this.padTo)},e}(),un=function(){function e(e,n,t){var a;if(this.opts=t,this.hasIntl=X(),e.zone.universal&&this.hasIntl){var i=e.offset/60*-1;i>=-14&&i<=12&&i%1==0?(a=i>=0?"Etc/GMT+"+i:"Etc/GMT"+i,this.dt=e):(a="UTC",t.timeZoneName?this.dt=e:this.dt=0===e.offset?e:ca.fromMillis(e.ts+60*e.offset*1e3))}else"local"===e.zone.type?this.dt=e:(this.dt=e,a=e.zone.name);if(this.hasIntl){var r=Object.assign({},this.opts);a&&(r.timeZone=a),this.dtf=an(n,r)}}var n=e.prototype;return n.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var e=function(e){switch(ye(Q(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case ye(T):return"M/d/yyyy";case ye(P):return"LLL d, yyyy";case ye(k):return"EEE, LLL d, yyyy";case ye(S):return"LLLL d, yyyy";case ye(O):return"EEEE, LLLL d, yyyy";case ye(A):return"h:mm a";case ye(R):return"h:mm:ss a";case ye(I):case ye(_):return"h:mm a";case ye(E):return"HH:mm";case ye(L):return"HH:mm:ss";case ye(M):case ye(j):return"HH:mm";case ye(N):return"M/d/yyyy, h:mm a";case ye(U):return"LLL d, yyyy, h:mm a";case ye(H):return"LLLL d, yyyy, h:mm a";case ye(W):return"EEEE, LLLL d, yyyy, h:mm a";case ye(B):return"M/d/yyyy, h:mm:ss a";case ye(z):return"LLL d, yyyy, h:mm:ss a";case ye(F):return"EEE, d LLL yyyy, h:mm a";case ye(V):return"LLLL d, yyyy, h:mm:ss a";case ye(Y):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return"EEEE, LLLL d, yyyy, h:mm a"}}(this.opts),n=pn.create("en-US");return Me.create(n).formatDateTimeFromString(this.dt,e)},n.formatToParts=function(){return this.hasIntl&&J()?this.dtf.formatToParts(this.dt.toJSDate()):[]},n.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},e}(),hn=function(){function e(e,n,t){this.opts=Object.assign({style:"long"},t),!n&&Z()&&(this.rtf=sn(e,t))}var n=e.prototype;return n.format=function(e,n){return this.rtf?this.rtf.format(e,n):function(e,n,t,a){void 0===t&&(t="always"),void 0===a&&(a=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===t&&r){var o="days"===e;switch(n){case 1:return o?"tomorrow":"next "+i[e][0];case-1:return o?"yesterday":"last "+i[e][0];case 0:return o?"today":"this "+i[e][0]}}var s=Object.is(n,-0)||n<0,l=Math.abs(n),d=1===l,c=i[e],u=a?d?c[1]:c[2]||c[1]:d?i[e][0]:e;return s?l+" "+u+" ago":"in "+l+" "+u}(n,e,this.opts.numeric,"long"!==this.opts.style)},n.formatToParts=function(e,n){return this.rtf?this.rtf.formatToParts(e,n):[]},e}(),pn=function(){function e(e,n,t,a){var i=function(e){var n=e.indexOf("-u-");if(-1===n)return[e];var t,a=e.substring(0,n);try{t=an(e).resolvedOptions()}catch(e){t=an(a).resolvedOptions()}var i=t;return[a,i.numberingSystem,i.calendar]}(e),r=i[0],o=i[1],s=i[2];this.locale=r,this.numberingSystem=n||o||null,this.outputCalendar=t||s||null,this.intl=function(e,n,t){return X()?t||n?(e+="-u",t&&(e+="-ca-"+t),n&&(e+="-nu-"+n),e):e:[]}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}e.fromOpts=function(n){return e.create(n.locale,n.numberingSystem,n.outputCalendar,n.defaultToEN)},e.create=function(n,t,a,i){void 0===i&&(i=!1);var r=n||nn.defaultLocale;return new e(r||(i?"en-US":function(){if(ln)return ln;if(X()){var e=(new Intl.DateTimeFormat).resolvedOptions().locale;return ln=e&&"und"!==e?e:"en-US"}return ln="en-US"}()),t||nn.defaultNumberingSystem,a||nn.defaultOutputCalendar,r)},e.resetCache=function(){ln=null,tn={},rn={},on={}},e.fromObject=function(n){var t=void 0===n?{}:n,a=t.locale,i=t.numberingSystem,r=t.outputCalendar;return e.create(a,i,r)};var n=e.prototype;return n.listingMode=function(e){void 0===e&&(e=!0);var n=X()&&J(),t=this.isEnglish(),a=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return n||t&&a||e?!n||t&&a?"en":"intl":"error"},n.clone=function(n){return n&&0!==Object.getOwnPropertyNames(n).length?e.create(n.locale||this.specifiedLocale,n.numberingSystem||this.numberingSystem,n.outputCalendar||this.outputCalendar,n.defaultToEN||!1):this},n.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!0}))},n.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!1}))},n.months=function(e,n,t){var a=this;return void 0===n&&(n=!1),void 0===t&&(t=!0),dn(this,e,t,De,(function(){var t=n?{month:e,day:"numeric"}:{month:e},i=n?"format":"standalone";return a.monthsCache[i][e]||(a.monthsCache[i][e]=function(e){for(var n=[],t=1;t<=12;t++){var a=ca.utc(2016,t,1);n.push(e(a))}return n}((function(e){return a.extract(e,t,"month")}))),a.monthsCache[i][e]}))},n.weekdays=function(e,n,t){var a=this;return void 0===n&&(n=!1),void 0===t&&(t=!0),dn(this,e,t,Se,(function(){var t=n?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=n?"format":"standalone";return a.weekdaysCache[i][e]||(a.weekdaysCache[i][e]=function(e){for(var n=[],t=1;t<=7;t++){var a=ca.utc(2016,11,13+t);n.push(e(a))}return n}((function(e){return a.extract(e,t,"weekday")}))),a.weekdaysCache[i][e]}))},n.meridiems=function(e){var n=this;return void 0===e&&(e=!0),dn(this,void 0,e,(function(){return Oe}),(function(){if(!n.meridiemCache){var e={hour:"numeric",hour12:!0};n.meridiemCache=[ca.utc(2016,11,13,9),ca.utc(2016,11,13,19)].map((function(t){return n.extract(t,e,"dayperiod")}))}return n.meridiemCache}))},n.eras=function(e,n){var t=this;return void 0===n&&(n=!0),dn(this,e,n,_e,(function(){var n={era:e};return t.eraCache[e]||(t.eraCache[e]=[ca.utc(-40,1,1),ca.utc(2017,1,1)].map((function(e){return t.extract(e,n,"era")}))),t.eraCache[e]}))},n.extract=function(e,n,t){var a=this.dtFormatter(e,n).formatToParts().find((function(e){return e.type.toLowerCase()===t}));return a?a.value:null},n.numberFormatter=function(e){return void 0===e&&(e={}),new cn(this.intl,e.forceSimple||this.fastNumbers,e)},n.dtFormatter=function(e,n){return void 0===n&&(n={}),new un(e,this.intl,n)},n.relFormatter=function(e){return void 0===e&&(e={}),new hn(this.intl,this.isEnglish(),e)},n.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||X()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},n.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},i(e,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||X()&&"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}();function mn(){for(var e=arguments.length,n=new Array(e),t=0;t1?n-1:0),a=1;a3?Te.indexOf(e)+1:Pe.indexOf(e)+1),s}var jn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Nn(e){var n,t=e[1],a=e[2],i=e[3],r=e[4],o=e[5],s=e[6],l=e[7],d=e[8],c=e[9],u=e[10],h=e[11],p=Mn(t,r,i,a,o,s,l);return n=d?Ln[d]:c?0:pe(u,h),[p,new $e(n)]}var Bn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Un=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,zn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Fn(e){var n=e[1],t=e[2],a=e[3];return[Mn(n,e[4],a,t,e[5],e[6],e[7]),$e.utcInstance]}function Hn(e){var n=e[1],t=e[2],a=e[3],i=e[4],r=e[5],o=e[6];return[Mn(n,e[7],t,a,i,r,o),$e.utcInstance]}var Vn=mn(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Cn),Wn=mn(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Cn),Yn=mn(/(\d{4})-?(\d{3})/,Cn),$n=mn(xn),Gn=fn(Sn,On,An),qn=fn(wn,On,An),Xn=fn(Dn,On),Jn=fn(On,An);var Zn=fn(On);var Kn=mn(/(\d{4})-(\d\d)-(\d\d)/,Pn),Qn=mn(Tn),et=fn(Sn,On,An,Rn),nt=fn(On,An,Rn);var tt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},at=Object.assign({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},tt),it=Object.assign({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},tt),rt=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ot=rt.slice(0).reverse();function st(e,n,t){void 0===t&&(t=!1);var a={values:t?n.values:Object.assign({},e.values,n.values||{}),loc:e.loc.clone(n.loc),conversionAccuracy:n.conversionAccuracy||e.conversionAccuracy};return new dt(a)}function lt(e,n,t,a,i){var r=e[i][t],o=n[t]/r,s=!(Math.sign(o)===Math.sign(a[i]))&&0!==a[i]&&Math.abs(o)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(o):Math.trunc(o);a[i]+=s,n[t]-=s*r}var dt=function(){function e(e){var n="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||pn.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n?it:at,this.isLuxonDuration=!0}e.fromMillis=function(n,t){return e.fromObject(Object.assign({milliseconds:n},t))},e.fromObject=function(n){if(null==n||"object"!=typeof n)throw new y("Duration.fromObject: argument expected to be an object, got "+(null===n?"null":typeof n));return new e({values:fe(n,e.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:pn.fromObject(n),conversionAccuracy:n.conversionAccuracy})},e.fromISO=function(n,t){var a=function(e){return gn(e,[_n,En])}(n)[0];if(a){var i=Object.assign(a,t);return e.fromObject(i)}return e.invalid("unparsable",'the input "'+n+"\" can't be parsed as ISO 8601")},e.fromISOTime=function(n,t){var a=function(e){return gn(e,[In,Zn])}(n)[0];if(a){var i=Object.assign(a,t);return e.fromObject(i)}return e.invalid("unparsable",'the input "'+n+"\" can't be parsed as ISO 8601")},e.invalid=function(n,t){if(void 0===t&&(t=null),!n)throw new y("need to specify a reason the Duration is invalid");var a=n instanceof je?n:new je(n,t);if(nn.throwOnInvalid)throw new g(a);return new e({invalid:a})},e.normalizeUnit=function(e){var n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!n)throw new v(e);return n},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var n=e.prototype;return n.toFormat=function(e,n){void 0===n&&(n={});var t=Object.assign({},n,{floor:!1!==n.round&&!1!==n.floor});return this.isValid?Me.create(this.loc,t).formatDurationFromString(this,e):"Invalid Duration"},n.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var n=Object.assign({},this.values);return e.includeConfig&&(n.conversionAccuracy=this.conversionAccuracy,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n},n.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=re(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},n.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var n=this.toMillis();if(n<0||n>=864e5)return null;e=Object.assign({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);var t=this.shiftTo("hours","minutes","seconds","milliseconds"),a="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===t.seconds&&0===t.milliseconds||(a+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===t.milliseconds||(a+=".SSS"));var i=t.toFormat(a);return e.includePrefix&&(i="T"+i),i},n.toJSON=function(){return this.toISO()},n.toString=function(){return this.toISO()},n.toMillis=function(){return this.as("milliseconds")},n.valueOf=function(){return this.toMillis()},n.plus=function(e){if(!this.isValid)return this;for(var n,t=ct(e),a={},i=h(rt);!(n=i()).done;){var r=n.value;(ee(t.values,r)||ee(this.values,r))&&(a[r]=t.get(r)+this.get(r))}return st(this,{values:a},!0)},n.minus=function(e){if(!this.isValid)return this;var n=ct(e);return this.plus(n.negate())},n.mapUnits=function(e){if(!this.isValid)return this;for(var n={},t=0,a=Object.keys(this.values);t=0){i=c;var u=0;for(var p in s)u+=this.matrix[p][c]*s[p],s[p]=0;G(l[c])&&(u+=l[c]);var m=Math.trunc(u);for(var f in o[c]=m,s[c]=u-m,l)rt.indexOf(f)>rt.indexOf(c)&<(this.matrix,l,f,o,c)}else G(l[c])&&(s[c]=l[c])}for(var g in s)0!==s[g]&&(o[i]+=g===i?s[g]:s[g]/this.matrix[i][g]);return st(this,{values:o},!0).normalize()},n.negate=function(){if(!this.isValid)return this;for(var e={},n=0,t=Object.keys(this.values);ne},n.isBefore=function(e){return!!this.isValid&&this.e<=e},n.contains=function(e){return!!this.isValid&&(this.s<=e&&this.e>e)},n.set=function(n){var t=void 0===n?{}:n,a=t.start,i=t.end;return this.isValid?e.fromDateTimes(a||this.s,i||this.e):this},n.splitAt=function(){var n=this;if(!this.isValid)return[];for(var t=arguments.length,a=new Array(t),i=0;i+this.e?this.e:d;o.push(e.fromDateTimes(s,c)),s=c,l+=1}return o},n.splitBy=function(n){var t=ct(n);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];for(var a,i,r=this.s,o=[];r+this.e?this.e:a,o.push(e.fromDateTimes(r,i)),r=i;return o},n.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},n.overlaps=function(e){return this.e>e.s&&this.s=e.e)},n.equals=function(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))},n.intersection=function(n){if(!this.isValid)return this;var t=this.s>n.s?this.s:n.s,a=this.ea?null:e.fromDateTimes(t,a)},n.union=function(n){if(!this.isValid)return this;var t=this.sn.e?this.e:n.e;return e.fromDateTimes(t,a)},e.merge=function(e){var n=e.sort((function(e,n){return e.s-n.s})).reduce((function(e,n){var t=e[0],a=e[1];return a?a.overlaps(n)||a.abutsStart(n)?[t,a.union(n)]:[t.concat([a]),n]:[t,n]}),[[],null]),t=n[0],a=n[1];return a&&t.push(a),t},e.xor=function(n){for(var t,a,i=null,r=0,o=[],s=n.map((function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]})),l=h((t=Array.prototype).concat.apply(t,s).sort((function(e,n){return e.time-n.time})));!(a=l()).done;){var d=a.value;1===(r+="s"===d.type?1:-1)?i=d.time:(i&&+i!=+d.time&&o.push(e.fromDateTimes(i,d.time)),i=null)}return e.merge(o)},n.difference=function(){for(var n=this,t=arguments.length,a=new Array(t),i=0;i=0){var u;a=d;var h,p=c(e,n);if((i=e.plus(((u={})[d]=p,u)))>n)e=e.plus(((h={})[d]=p-1,h)),p-=1;else e=i;r[d]=p}}return[e,r,i,a]}(e,n,t),r=i[0],o=i[1],s=i[2],l=i[3],d=n-r,c=t.filter((function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0}));if(0===c.length){var u;if(s0?(h=dt.fromMillis(d,a)).shiftTo.apply(h,c).plus(p):p}var bt={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},vt={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},yt=bt.hanidec.replace(/[\[|\]]/g,"").split("");function xt(e,n){var t=e.numberingSystem;return void 0===n&&(n=""),new RegExp(""+bt[t||"latn"]+n)}function Ct(e,n){return void 0===n&&(n=function(e){return e}),{regex:e,deser:function(e){var t=e[0];return n(function(e){var n=parseInt(e,10);if(isNaN(n)){n="";for(var t=0;t=o&&a<=s&&(n+=a-o)}}return parseInt(n,10)}return n}(t))}}}var wt="( |"+String.fromCharCode(160)+")",Dt=new RegExp(wt,"g");function Tt(e){return e.replace(/\./g,"\\.?").replace(Dt,wt)}function Pt(e){return e.replace(/\./g,"").replace(Dt," ").toLowerCase()}function kt(e,n){return null===e?null:{regex:RegExp(e.map(Tt).join("|")),deser:function(t){var a=t[0];return e.findIndex((function(e){return Pt(a)===Pt(e)}))+n}}}function St(e,n){return{regex:e,deser:function(e){return pe(e[1],e[2])},groups:n}}function Ot(e){return{regex:e,deser:function(e){return e[0]}}}var At={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};var Rt=null;function It(e,n){if(e.literal)return e;var t=Me.macroTokenToFormatOpts(e.val);if(!t)return e;var a=Me.create(n,t).formatDateTimeParts((Rt||(Rt=ca.fromMillis(1555555555555)),Rt)).map((function(e){return function(e,n,t){var a=e.type,i=e.value;if("literal"===a)return{literal:!0,val:i};var r=t[a],o=At[a];return"object"==typeof o&&(o=o[r]),o?{literal:!1,val:o}:void 0}(e,0,t)}));return a.includes(void 0)?e:a}function _t(e,n,t){var a=function(e,n){var t;return(t=Array.prototype).concat.apply(t,e.map((function(e){return It(e,n)})))}(Me.parseFormat(t),e),i=a.map((function(n){return t=n,i=xt(a=e),r=xt(a,"{2}"),o=xt(a,"{3}"),s=xt(a,"{4}"),l=xt(a,"{6}"),d=xt(a,"{1,2}"),c=xt(a,"{1,3}"),u=xt(a,"{1,6}"),h=xt(a,"{1,9}"),p=xt(a,"{2,4}"),m=xt(a,"{4,6}"),f=function(e){return{regex:RegExp((n=e.val,n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(e){return e[0]},literal:!0};var n},(g=function(e){if(t.literal)return f(e);switch(e.val){case"G":return kt(a.eras("short",!1),0);case"GG":return kt(a.eras("long",!1),0);case"y":return Ct(u);case"yy":return Ct(p,ue);case"yyyy":return Ct(s);case"yyyyy":return Ct(m);case"yyyyyy":return Ct(l);case"M":return Ct(d);case"MM":return Ct(r);case"MMM":return kt(a.months("short",!0,!1),1);case"MMMM":return kt(a.months("long",!0,!1),1);case"L":return Ct(d);case"LL":return Ct(r);case"LLL":return kt(a.months("short",!1,!1),1);case"LLLL":return kt(a.months("long",!1,!1),1);case"d":return Ct(d);case"dd":return Ct(r);case"o":return Ct(c);case"ooo":return Ct(o);case"HH":return Ct(r);case"H":return Ct(d);case"hh":return Ct(r);case"h":return Ct(d);case"mm":return Ct(r);case"m":case"q":return Ct(d);case"qq":return Ct(r);case"s":return Ct(d);case"ss":return Ct(r);case"S":return Ct(c);case"SSS":return Ct(o);case"u":return Ot(h);case"a":return kt(a.meridiems(),0);case"kkkk":return Ct(s);case"kk":return Ct(p,ue);case"W":return Ct(d);case"WW":return Ct(r);case"E":case"c":return Ct(i);case"EEE":return kt(a.weekdays("short",!1,!1),1);case"EEEE":return kt(a.weekdays("long",!1,!1),1);case"ccc":return kt(a.weekdays("short",!0,!1),1);case"cccc":return kt(a.weekdays("long",!0,!1),1);case"Z":case"ZZ":return St(new RegExp("([+-]"+d.source+")(?::("+r.source+"))?"),2);case"ZZZ":return St(new RegExp("([+-]"+d.source+")("+r.source+")?"),2);case"z":return Ot(/[a-z_+-/]{1,256}?/i);default:return f(e)}}(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"}).token=t,g;var t,a,i,r,o,s,l,d,c,u,h,p,m,f,g})),r=i.find((function(e){return e.invalidReason}));if(r)return{input:n,tokens:a,invalidReason:r.invalidReason};var o=function(e){return["^"+e.map((function(e){return e.regex})).reduce((function(e,n){return e+"("+n.source+")"}),"")+"$",e]}(i),s=o[0],l=o[1],d=RegExp(s,"i"),c=function(e,n,t){var a=e.match(n);if(a){var i={},r=1;for(var o in t)if(ee(t,o)){var s=t[o],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(a.slice(r,r+l))),r+=l}return[a,i]}return[a,{}]}(n,d,l),u=c[0],h=c[1],p=h?function(e){var n;return n=$(e.Z)?$(e.z)?null:We.create(e.z):new $e(e.Z),$(e.q)||(e.M=3*(e.q-1)+1),$(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),$(e.u)||(e.S=ie(e.u)),[Object.keys(e).reduce((function(n,t){var a=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(t);return a&&(n[a]=e[t]),n}),{}),n]}(h):[null,null],m=p[0],f=p[1];if(ee(h,"a")&&ee(h,"H"))throw new b("Can't include meridiem when specifying 24-hour format");return{input:n,tokens:a,regex:d,rawMatches:u,matches:h,result:m,zone:f}}var Et=[0,31,59,90,120,151,181,212,243,273,304,334],Lt=[0,31,60,91,121,152,182,213,244,274,305,335];function Mt(e,n){return new je("unit out of range","you specified "+n+" (of type "+typeof n+") as a "+e+", which is invalid")}function jt(e,n,t){var a=new Date(Date.UTC(e,n-1,t)).getUTCDay();return 0===a?7:a}function Nt(e,n,t){return t+(oe(e)?Lt:Et)[n-1]}function Bt(e,n){var t=oe(e)?Lt:Et,a=t.findIndex((function(e){return ece(t)?(n=t+1,s=1):n=t,Object.assign({weekYear:n,weekNumber:s,weekday:o},be(e))}function zt(e){var n,t=e.weekYear,a=e.weekNumber,i=e.weekday,r=jt(t,1,4),o=se(t),s=7*a+i-r-3;s<1?s+=se(n=t-1):s>o?(n=t+1,s-=se(t)):n=t;var l=Bt(n,s),d=l.month,c=l.day;return Object.assign({year:n,month:d,day:c},be(e))}function Ft(e){var n=e.year,t=Nt(n,e.month,e.day);return Object.assign({year:n,ordinal:t},be(e))}function Ht(e){var n=e.year,t=Bt(n,e.ordinal),a=t.month,i=t.day;return Object.assign({year:n,month:a,day:i},be(e))}function Vt(e){var n=q(e.year),t=ne(e.month,1,12),a=ne(e.day,1,le(e.year,e.month));return n?t?!a&&Mt("day",e.day):Mt("month",e.month):Mt("year",e.year)}function Wt(e){var n=e.hour,t=e.minute,a=e.second,i=e.millisecond,r=ne(n,0,23)||24===n&&0===t&&0===a&&0===i,o=ne(t,0,59),s=ne(a,0,59),l=ne(i,0,999);return r?o?s?!l&&Mt("millisecond",i):Mt("second",a):Mt("minute",t):Mt("hour",n)}function Yt(e){return new je("unsupported zone",'the zone "'+e.name+'" is not supported')}function $t(e){return null===e.weekData&&(e.weekData=Ut(e.c)),e.weekData}function Gt(e,n){var t={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ca(Object.assign({},t,n,{old:t}))}function qt(e,n,t){var a=e-60*n*1e3,i=t.offset(a);if(n===i)return[a,n];a-=60*(i-n)*1e3;var r=t.offset(a);return i===r?[a,i]:[e-60*Math.min(i,r)*1e3,Math.max(i,r)]}function Xt(e,n){var t=new Date(e+=60*n*1e3);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function Jt(e,n,t){return qt(de(e),n,t)}function Zt(e,n){var t=e.o,a=e.c.year+Math.trunc(n.years),i=e.c.month+Math.trunc(n.months)+3*Math.trunc(n.quarters),r=Object.assign({},e.c,{year:a,month:i,day:Math.min(e.c.day,le(a,i))+Math.trunc(n.days)+7*Math.trunc(n.weeks)}),o=dt.fromObject({years:n.years-Math.trunc(n.years),quarters:n.quarters-Math.trunc(n.quarters),months:n.months-Math.trunc(n.months),weeks:n.weeks-Math.trunc(n.weeks),days:n.days-Math.trunc(n.days),hours:n.hours,minutes:n.minutes,seconds:n.seconds,milliseconds:n.milliseconds}).as("milliseconds"),s=qt(de(r),t,e.zone),l=s[0],d=s[1];return 0!==o&&(l+=o,d=e.zone.offset(l)),{ts:l,o:d}}function Kt(e,n,t,a,i){var r=t.setZone,o=t.zone;if(e&&0!==Object.keys(e).length){var s=n||o,l=ca.fromObject(Object.assign(e,t,{zone:s,setZone:void 0}));return r?l:l.setZone(o)}return ca.invalid(new je("unparsable",'the input "'+i+"\" can't be parsed as "+a))}function Qt(e,n,t){return void 0===t&&(t=!0),e.isValid?Me.create(pn.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(e,n):null}function ea(e,n){var t=n.suppressSeconds,a=void 0!==t&&t,i=n.suppressMilliseconds,r=void 0!==i&&i,o=n.includeOffset,s=n.includePrefix,l=void 0!==s&&s,d=n.includeZone,c=void 0!==d&&d,u=n.spaceZone,h=void 0!==u&&u,p=n.format,m=void 0===p?"extended":p,f="basic"===m?"HHmm":"HH:mm";a&&0===e.second&&0===e.millisecond||(f+="basic"===m?"ss":":ss",r&&0===e.millisecond||(f+=".SSS")),(c||o)&&h&&(f+=" "),c?f+="z":o&&(f+="basic"===m?"ZZZ":"ZZ");var g=Qt(e,f);return l&&(g="T"+g),g}var na={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ta={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},aa={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ia=["year","month","day","hour","minute","second","millisecond"],ra=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],oa=["year","ordinal","hour","minute","second","millisecond"];function sa(e){var n={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!n)throw new v(e);return n}function la(e,n){for(var t,a=h(ia);!(t=a()).done;){var i=t.value;$(e[i])&&(e[i]=na[i])}var r=Vt(e)||Wt(e);if(r)return ca.invalid(r);var o=nn.now(),s=Jt(e,n.offset(o),n),l=s[0],d=s[1];return new ca({ts:l,zone:n,o:d})}function da(e,n,t){var a=!!$(t.round)||t.round,i=function(e,i){return e=re(e,a||t.calendary?0:2,!0),n.loc.clone(t).relFormatter(t).format(e,i)},r=function(a){return t.calendary?n.hasSame(e,a)?0:n.startOf(a).diff(e.startOf(a),a).get(a):n.diff(e,a).get(a)};if(t.unit)return i(r(t.unit),t.unit);for(var o,s=h(t.units);!(o=s()).done;){var l=o.value,d=r(l);if(Math.abs(d)>=1)return i(d,l)}return i(0,t.units[t.units.length-1])}var ca=function(){function e(e){var n=e.zone||nn.defaultZone,t=e.invalid||(Number.isNaN(e.ts)?new je("invalid input"):null)||(n.isValid?null:Yt(n));this.ts=$(e.ts)?nn.now():e.ts;var a=null,i=null;if(!t)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(n)){var r=[e.old.c,e.old.o];a=r[0],i=r[1]}else{var o=n.offset(this.ts);a=Xt(this.ts,o),a=(t=Number.isNaN(a.year)?new je("invalid input"):null)?null:a,i=t?null:o}this._zone=n,this.loc=e.loc||pn.create(),this.invalid=t,this.weekData=null,this.c=a,this.o=i,this.isLuxonDateTime=!0}e.now=function(){return new e({})},e.local=function(n,t,a,i,r,o,s){return $(n)?new e({}):la({year:n,month:t,day:a,hour:i,minute:r,second:o,millisecond:s},nn.defaultZone)},e.utc=function(n,t,a,i,r,o,s){return $(n)?new e({ts:nn.now(),zone:$e.utcInstance}):la({year:n,month:t,day:a,hour:i,minute:r,second:o,millisecond:s},$e.utcInstance)},e.fromJSDate=function(n,t){void 0===t&&(t={});var a,i=(a=n,"[object Date]"===Object.prototype.toString.call(a)?n.valueOf():NaN);if(Number.isNaN(i))return e.invalid("invalid input");var r=qe(t.zone,nn.defaultZone);return r.isValid?new e({ts:i,zone:r,loc:pn.fromObject(t)}):e.invalid(Yt(r))},e.fromMillis=function(n,t){if(void 0===t&&(t={}),G(n))return n<-864e13||n>864e13?e.invalid("Timestamp out of range"):new e({ts:n,zone:qe(t.zone,nn.defaultZone),loc:pn.fromObject(t)});throw new y("fromMillis requires a numerical input, but received a "+typeof n+" with value "+n)},e.fromSeconds=function(n,t){if(void 0===t&&(t={}),G(n))return new e({ts:1e3*n,zone:qe(t.zone,nn.defaultZone),loc:pn.fromObject(t)});throw new y("fromSeconds requires a numerical input")},e.fromObject=function(n){var t=qe(n.zone,nn.defaultZone);if(!t.isValid)return e.invalid(Yt(t));var a=nn.now(),i=t.offset(a),r=fe(n,sa,["zone","locale","outputCalendar","numberingSystem"]),o=!$(r.ordinal),s=!$(r.year),l=!$(r.month)||!$(r.day),d=s||l,c=r.weekYear||r.weekNumber,u=pn.fromObject(n);if((d||o)&&c)throw new b("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&o)throw new b("Can't mix ordinal dates with month/day");var p,m,f=c||r.weekday&&!d,g=Xt(a,i);f?(p=ra,m=ta,g=Ut(g)):o?(p=oa,m=aa,g=Ft(g)):(p=ia,m=na);for(var v,y=!1,x=h(p);!(v=x()).done;){var C=v.value;$(r[C])?r[C]=y?m[C]:g[C]:y=!0}var w=(f?function(e){var n=q(e.weekYear),t=ne(e.weekNumber,1,ce(e.weekYear)),a=ne(e.weekday,1,7);return n?t?!a&&Mt("weekday",e.weekday):Mt("week",e.week):Mt("weekYear",e.weekYear)}(r):o?function(e){var n=q(e.year),t=ne(e.ordinal,1,se(e.year));return n?!t&&Mt("ordinal",e.ordinal):Mt("year",e.year)}(r):Vt(r))||Wt(r);if(w)return e.invalid(w);var D=Jt(f?zt(r):o?Ht(r):r,i,t),T=new e({ts:D[0],zone:t,o:D[1],loc:u});return r.weekday&&d&&n.weekday!==T.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+r.weekday+" and a date of "+T.toISO()):T},e.fromISO=function(e,n){void 0===n&&(n={});var t=function(e){return gn(e,[Vn,Gn],[Wn,qn],[Yn,Xn],[$n,Jn])}(e);return Kt(t[0],t[1],n,"ISO 8601",e)},e.fromRFC2822=function(e,n){void 0===n&&(n={});var t=function(e){return gn(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[jn,Nn])}(e);return Kt(t[0],t[1],n,"RFC 2822",e)},e.fromHTTP=function(e,n){void 0===n&&(n={});var t=function(e){return gn(e,[Bn,Fn],[Un,Fn],[zn,Hn])}(e);return Kt(t[0],t[1],n,"HTTP",n)},e.fromFormat=function(n,t,a){if(void 0===a&&(a={}),$(n)||$(t))throw new y("fromFormat requires an input string and a format");var i=a,r=i.locale,o=void 0===r?null:r,s=i.numberingSystem,l=void 0===s?null:s,d=function(e,n,t){var a=_t(e,n,t);return[a.result,a.zone,a.invalidReason]}(pn.fromOpts({locale:o,numberingSystem:l,defaultToEN:!0}),n,t),c=d[0],u=d[1],h=d[2];return h?e.invalid(h):Kt(c,u,a,"format "+t,n)},e.fromString=function(n,t,a){return void 0===a&&(a={}),e.fromFormat(n,t,a)},e.fromSQL=function(e,n){void 0===n&&(n={});var t=function(e){return gn(e,[Kn,et],[Qn,nt])}(e);return Kt(t[0],t[1],n,"SQL",e)},e.invalid=function(n,t){if(void 0===t&&(t=null),!n)throw new y("need to specify a reason the DateTime is invalid");var a=n instanceof je?n:new je(n,t);if(nn.throwOnInvalid)throw new m(a);return new e({invalid:a})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var n=e.prototype;return n.get=function(e){return this[e]},n.resolvedLocaleOpts=function(e){void 0===e&&(e={});var n=Me.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:n.locale,numberingSystem:n.numberingSystem,outputCalendar:n.calendar}},n.toUTC=function(e,n){return void 0===e&&(e=0),void 0===n&&(n={}),this.setZone($e.instance(e),n)},n.toLocal=function(){return this.setZone(nn.defaultZone)},n.setZone=function(n,t){var a=void 0===t?{}:t,i=a.keepLocalTime,r=void 0!==i&&i,o=a.keepCalendarTime,s=void 0!==o&&o;if((n=qe(n,nn.defaultZone)).equals(this.zone))return this;if(n.isValid){var l=this.ts;if(r||s){var d=n.offset(this.ts);l=Jt(this.toObject(),d,n)[0]}return Gt(this,{ts:l,zone:n})}return e.invalid(Yt(n))},n.reconfigure=function(e){var n=void 0===e?{}:e,t=n.locale,a=n.numberingSystem,i=n.outputCalendar;return Gt(this,{loc:this.loc.clone({locale:t,numberingSystem:a,outputCalendar:i})})},n.setLocale=function(e){return this.reconfigure({locale:e})},n.set=function(e){if(!this.isValid)return this;var n,t=fe(e,sa,[]);!$(t.weekYear)||!$(t.weekNumber)||!$(t.weekday)?n=zt(Object.assign(Ut(this.c),t)):$(t.ordinal)?(n=Object.assign(this.toObject(),t),$(t.day)&&(n.day=Math.min(le(n.year,n.month),n.day))):n=Ht(Object.assign(Ft(this.c),t));var a=Jt(n,this.o,this.zone);return Gt(this,{ts:a[0],o:a[1]})},n.plus=function(e){return this.isValid?Gt(this,Zt(this,ct(e))):this},n.minus=function(e){return this.isValid?Gt(this,Zt(this,ct(e).negate())):this},n.startOf=function(e){if(!this.isValid)return this;var n={},t=dt.normalizeUnit(e);switch(t){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===t&&(n.weekday=1),"quarters"===t){var a=Math.ceil(this.month/3);n.month=3*(a-1)+1}return this.set(n)},n.endOf=function(e){var n;return this.isValid?this.plus((n={},n[e]=1,n)).startOf(e).minus(1):this},n.toFormat=function(e,n){return void 0===n&&(n={}),this.isValid?Me.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,e):"Invalid DateTime"},n.toLocaleString=function(e){return void 0===e&&(e=T),this.isValid?Me.create(this.loc.clone(e),e).formatDateTime(this):"Invalid DateTime"},n.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Me.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},n.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},n.toISODate=function(e){var n=(void 0===e?{}:e).format,t="basic"===(void 0===n?"extended":n)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(t="+"+t),Qt(this,t)},n.toISOWeekDate=function(){return Qt(this,"kkkk-'W'WW-c")},n.toISOTime=function(e){var n=void 0===e?{}:e,t=n.suppressMilliseconds,a=void 0!==t&&t,i=n.suppressSeconds,r=void 0!==i&&i,o=n.includeOffset,s=void 0===o||o,l=n.includePrefix,d=void 0!==l&&l,c=n.format;return ea(this,{suppressSeconds:r,suppressMilliseconds:a,includeOffset:s,includePrefix:d,format:void 0===c?"extended":c})},n.toRFC2822=function(){return Qt(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},n.toHTTP=function(){return Qt(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},n.toSQLDate=function(){return Qt(this,"yyyy-MM-dd")},n.toSQLTime=function(e){var n=void 0===e?{}:e,t=n.includeOffset,a=void 0===t||t,i=n.includeZone;return ea(this,{includeOffset:a,includeZone:void 0!==i&&i,spaceZone:!0})},n.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},n.toString=function(){return this.isValid?this.toISO():"Invalid DateTime"},n.valueOf=function(){return this.toMillis()},n.toMillis=function(){return this.isValid?this.ts:NaN},n.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},n.toJSON=function(){return this.toISO()},n.toBSON=function(){return this.toJSDate()},n.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var n=Object.assign({},this.c);return e.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n},n.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},n.diff=function(e,n,t){if(void 0===n&&(n="milliseconds"),void 0===t&&(t={}),!this.isValid||!e.isValid)return dt.invalid(this.invalid||e.invalid,"created by diffing an invalid DateTime");var a,i=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},t),r=(a=n,Array.isArray(a)?a:[a]).map(dt.normalizeUnit),o=e.valueOf()>this.valueOf(),s=gt(o?this:e,o?e:this,r,i);return o?s.negate():s},n.diffNow=function(n,t){return void 0===n&&(n="milliseconds"),void 0===t&&(t={}),this.diff(e.now(),n,t)},n.until=function(e){return this.isValid?pt.fromDateTimes(this,e):this},n.hasSame=function(e,n){if(!this.isValid)return!1;var t=e.valueOf(),a=this.setZone(e.zone,{keepLocalTime:!0});return a.startOf(n)<=t&&t<=a.endOf(n)},n.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},n.toRelative=function(n){if(void 0===n&&(n={}),!this.isValid)return null;var t=n.base||e.fromObject({zone:this.zone}),a=n.padding?thisthis.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return oe(this.year)}},{key:"daysInMonth",get:function(){return le(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?se(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?ce(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return T}},{key:"DATE_MED",get:function(){return P}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return k}},{key:"DATE_FULL",get:function(){return S}},{key:"DATE_HUGE",get:function(){return O}},{key:"TIME_SIMPLE",get:function(){return A}},{key:"TIME_WITH_SECONDS",get:function(){return R}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return I}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return _}},{key:"TIME_24_SIMPLE",get:function(){return E}},{key:"TIME_24_WITH_SECONDS",get:function(){return L}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return M}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return j}},{key:"DATETIME_SHORT",get:function(){return N}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return B}},{key:"DATETIME_MED",get:function(){return U}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return z}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return F}},{key:"DATETIME_FULL",get:function(){return H}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return V}},{key:"DATETIME_HUGE",get:function(){return W}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return Y}}]),e}();function ua(e){if(ca.isDateTime(e))return e;if(e&&e.valueOf&&G(e.valueOf()))return ca.fromJSDate(e);if(e&&"object"==typeof e)return ca.fromObject(e);throw new y("Unknown datetime argument: "+e+", of type "+typeof e)}n.DateTime=ca,n.Duration=dt,n.FixedOffsetZone=$e,n.IANAZone=We,n.Info=mt,n.Interval=pt,n.InvalidZone=Ge,n.LocalZone=Ue,n.Settings=nn,n.VERSION="1.26.0",n.Zone=Ne},function(e,n){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,n,t){var a=t(2),i=t(72),r=t(9),o=t(75),s=t(76),l=t(132),d=i("wks"),c=a.Symbol,u=l?c:c&&c.withoutSetter||o;e.exports=function(e){return r(d,e)&&(s||"string"==typeof d[e])||(s&&r(c,e)?d[e]=c[e]:d[e]=u("Symbol."+e)),d[e]}},function(e,n,t){"use strict";function a(e,n,t,a,i,r,o,s){var l,d="function"==typeof e?e.options:e;if(n&&(d.render=n,d.staticRenderFns=t,d._compiled=!0),a&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},d._ssrRegister=l):i&&(l=s?function(){i.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(d.functional){d._injectStyles=l;var c=d.render;d.render=function(e,n){return l.call(n),c(e,n)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,l):[l]}return{exports:e,options:d}}t.d(n,"a",(function(){return a}))},function(e,n,t){var a=t(13);e.exports=function(e){if(!a(e))throw TypeError(String(e)+" is not an object");return e}},function(e,n){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},function(e,n){var t=Array.isArray;e.exports=t},function(e,n,t){var a=t(96),i="object"==typeof self&&self&&self.Object===Object&&self,r=a||i||Function("return this")();e.exports=r},function(e,n,t){var a=t(5);e.exports=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,n){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,n){e.exports={package:"../../package.json",menu:{text:"{{version}}",locations:[".navbar > .home-link::after",".sidebar > .nav-links > :first-child::before"],items:[{text:"Documentation",items:[{text:"Development (master)",link:"/docs/master/"},{type:"versions",text:"{{version}}{{tag|suffix}}",link:"/docs/{{version}}/",exclude:/^[01]\.|2\.[0-5]\./,group:"minor"}]},{text:"Release notes (5 latest)",items:[{type:"versions",limit:5,target:"_blank",group:"patch",link:"https://github.com/chartjs/Chart.js/releases/tag/v{{version}}"}]}]},filters:{suffix:e=>e?` (${e})`:""},base:"/docs/3.1.0/",name:"chart.js",version:"3.1.0",versions:[{tag:null,name:"3.1.0"},{tag:null,name:"3.0.2"},{tag:null,name:"3.0.1"},{tag:null,name:"3.0.0"},{tag:null,name:"3.0.0-rc.7"},{tag:null,name:"3.0.0-rc.6"},{tag:null,name:"3.0.0-rc.5"},{tag:null,name:"3.0.0-rc.4"},{tag:null,name:"3.0.0-rc.3"},{tag:null,name:"3.0.0-rc.2"},{tag:null,name:"3.0.0-rc"},{tag:null,name:"3.0.0-beta.14"},{tag:null,name:"3.0.0-beta.13"},{tag:null,name:"3.0.0-beta.12"},{tag:null,name:"3.0.0-beta.11"},{tag:null,name:"3.0.0-beta.10"},{tag:null,name:"3.0.0-beta.9"},{tag:null,name:"3.0.0-beta.8"},{tag:null,name:"3.0.0-beta.7"},{tag:null,name:"3.0.0-beta.6"},{tag:null,name:"3.0.0-beta.5"},{tag:null,name:"3.0.0-beta.4"},{tag:null,name:"3.0.0-beta.3"},{tag:null,name:"3.0.0-beta.2"},{tag:null,name:"3.0.0-beta"},{tag:null,name:"3.0.0-alpha.2"},{tag:null,name:"3.0.0-alpha"},{tag:null,name:"2.9.4"},{tag:null,name:"2.9.3"},{tag:null,name:"2.9.2"},{tag:null,name:"2.9.1"},{tag:null,name:"2.9.0"},{tag:null,name:"2.8.0"},{tag:null,name:"2.8.0-rc.1"},{tag:null,name:"2.7.3"},{tag:null,name:"2.7.2"},{tag:null,name:"2.7.1"},{tag:null,name:"2.7.0"},{tag:null,name:"2.6.0"},{tag:null,name:"2.5.0"},{tag:null,name:"2.4.0"},{tag:null,name:"2.3.0"},{tag:null,name:"2.3.0-rc.1"},{tag:null,name:"2.2.2"},{tag:null,name:"2.2.1"},{tag:null,name:"2.2.0"},{tag:null,name:"2.2.0-rc.2"},{tag:null,name:"2.2.0-rc.1"},{tag:null,name:"2.1.6"},{tag:null,name:"2.1.5"},{tag:null,name:"2.1.4"},{tag:null,name:"2.1.3"},{tag:null,name:"2.1.2"},{tag:null,name:"2.1.1"},{tag:null,name:"2.1.0"},{tag:null,name:"2.0.2"},{tag:null,name:"2.0.1"},{tag:null,name:"2.0.0"},{tag:null,name:"1.1.1"},{tag:null,name:"1.1.0"},{tag:null,name:"1.0.2"},{tag:null,name:"1.0.1"},{tag:null,name:"1.0.1-beta.2"}]}},function(e,n,t){"use strict";var a=t(164),i=t(8),r=t(35),o=t(36),s=t(34),l=t(168),d=t(170),c=t(171),u=Math.max,h=Math.min;a("replace",2,(function(e,n,t,a){var p=a.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,m=a.REPLACE_KEEPS_$0,f=p?"$":"$0";return[function(t,a){var i=s(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,i,a):n.call(String(i),t,a)},function(e,a){if(!p&&m||"string"==typeof a&&-1===a.indexOf(f)){var s=t(n,e,this,a);if(s.done)return s.value}var g=i(e),b=String(this),v="function"==typeof a;v||(a=String(a));var y=g.global;if(y){var x=g.unicode;g.lastIndex=0}for(var C=[];;){var w=c(g,b);if(null===w)break;if(C.push(w),!y)break;""===String(w[0])&&(g.lastIndex=l(b,r(g.lastIndex),x))}for(var D,T="",P=0,k=0;k=P&&(T+=b.slice(P,O)+E,P=O+S.length)}return T+b.slice(P)}]}))},function(e,n,t){var a=t(12),i=t(17),r=t(48);e.exports=a?function(e,n,t){return i.f(e,n,r(1,t))}:function(e,n,t){return e[n]=t,e}},function(e,n,t){var a=t(12),i=t(73),r=t(8),o=t(74),s=Object.defineProperty;n.f=a?s:function(e,n,t){if(r(e),n=o(n,!0),r(t),i)try{return s(e,n,t)}catch(e){}if("get"in t||"set"in t)throw TypeError("Accessors not supported");return"value"in t&&(e[n]=t.value),e}},function(e,n,t){var a=t(2),i=t(56).f,r=t(16),o=t(23),s=t(46),l=t(82),d=t(84);e.exports=function(e,n){var t,c,u,h,p,m=e.target,f=e.global,g=e.stat;if(t=f?a:g?a[m]||s(m,{}):(a[m]||{}).prototype)for(c in n){if(h=n[c],u=e.noTargetGet?(p=i(t,c))&&p.value:t[c],!d(f?c:m+(g?".":"#")+c,e.forced)&&void 0!==u){if(typeof h==typeof u)continue;l(h,u)}(e.sham||u&&u.sham)&&r(h,"sham",!0),o(t,c,h,e)}}},function(e,n,t){var a=t(190),i=t(193);e.exports=function(e,n){var t=i(e,n);return a(t)?t:void 0}},function(e,n,t){"use strict";t.d(n,"d",(function(){return a})),t.d(n,"a",(function(){return r})),t.d(n,"i",(function(){return o})),t.d(n,"f",(function(){return l})),t.d(n,"g",(function(){return d})),t.d(n,"h",(function(){return c})),t.d(n,"b",(function(){return u})),t.d(n,"e",(function(){return h})),t.d(n,"k",(function(){return p})),t.d(n,"l",(function(){return m})),t.d(n,"c",(function(){return g})),t.d(n,"j",(function(){return b}));t(15);const a=/#.*$/,i=/\.(md|html)$/,r=/\/$/,o=/^[a-z]+:/i;function s(e){return decodeURI(e).replace(a,"").replace(i,"")}function l(e){return o.test(e)}function d(e){return/^mailto:/.test(e)}function c(e){return/^tel:/.test(e)}function u(e){if(l(e))return e;const n=e.match(a),t=n?n[0]:"",i=s(e);return r.test(i)?e:i+".html"+t}function h(e,n){const t=decodeURIComponent(e.hash),i=function(e){const n=e.match(a);if(n)return n[0]}(n);if(i&&t!==i)return!1;return s(e.path)===s(n)}function p(e,n,t){if(l(n))return{type:"external",path:n};t&&(n=function(e,n,t){const a=e.charAt(0);if("/"===a)return e;if("?"===a||"#"===a)return n+e;const i=n.split("/");t&&i[i.length-1]||i.pop();const r=e.replace(/^\//,"").split("/");for(let e=0;efunction e(n,t,a,i=1){if("string"==typeof n)return p(t,n,a);if(Array.isArray(n))return Object.assign(p(t,n[0],a),{title:n[1]});{const r=n.children||[];return 0===r.length&&n.path?Object.assign(p(t,n.path,a),{title:n.title}):{type:"group",path:n.path,title:n.title,sidebarDepth:n.sidebarDepth,initialOpenGroupIndex:n.initialOpenGroupIndex,children:r.map(n=>e(n,t,a,i+1)),collapsable:!1!==n.collapsable}}}(e,i,t)):[]}return[]}function f(e){const n=g(e.headers||[]);return[{type:"group",collapsable:!1,title:e.title,path:null,children:n.map(n=>({type:"auto",title:n.title,basePath:e.path,path:e.path+"#"+n.slug,children:n.children||[]}))}]}function g(e){let n;return(e=e.map(e=>Object.assign({},e))).forEach(e=>{2===e.level?n=e:n&&(n.children||(n.children=[])).push(e)}),e.filter(e=>2===e.level)}function b(e){return Object.assign(e,{type:e.items&&e.items.length?"links":"link"})}},function(e,n){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,n,t){var a=t(131),i=t(2),r=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,n){return arguments.length<2?r(a[e])||r(i[e]):a[e]&&a[e][n]||i[e]&&i[e][n]}},function(e,n,t){var a=t(2),i=t(16),r=t(9),o=t(46),s=t(55),l=t(54),d=l.get,c=l.enforce,u=String(String).split("String");(e.exports=function(e,n,t,s){var l,d=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof t&&("string"!=typeof n||r(t,"name")||i(t,"name",n),(l=c(t)).source||(l.source=u.join("string"==typeof n?n:""))),e!==a?(d?!p&&e[n]&&(h=!0):delete e[n],h?e[n]=t:i(e,n,t)):h?e[n]=t:o(n,t)})(Function.prototype,"toString",(function(){return"function"==typeof this&&d(this).source||s(this)}))},function(e,n,t){var a=t(29),i=t(175),r=t(176),o=a?a.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):r(e)}},function(e,n){e.exports=!1},function(e,n,t){var a=t(33),i=t(2);e.exports="process"==a(i.process)},function(e,n){e.exports={}},function(e,n){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,n,t){var a=t(11).Symbol;e.exports=a},function(e,n,t){t(15);e.exports={resolveTemplate:function(e,n,t){if(!e)return e;for(const[a,i]of Object.entries(n)){const r=new RegExp(`{{\\s*${a}\\s*(\\|\\s*(?\\w+)\\s*)?}}`,"g");e=e.replace(r,(e,a,r)=>{const o=r&&t[r]?t[r](i,n):i;return null==o?"":o})}return e}}},function(e,n,t){const a=t(266),i=/^(?0|[1-9]\d*)\.(?0|[1-9]\d*)\.(?0|[1-9]\d*)(?:-(?(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/,r={major:/^\d\./,minor:/^\d\.\d\./,patch:/^\d\.\d\.\d/};e.exports={collapseVersions:function({group:e},n){const t=[...n].sort((e,n)=>-a(e.name,n.name)),i=r[e],o={};return i?t.filter(e=>{const n=i.exec(e.name),t=n&&n[0];if(t&&!o[t])return o[t]=e,!0}):t},describeVersion:function({name:e,tag:n}){const t=i.exec(e);if(!t)return{};const a=e,r=t.groups,o=`${r.major}.${r.minor}.${r.patch}`;return{...r,version:a,core:o,tag:n}}}},function(e,n,t){var a=t(44),i=t(34);e.exports=function(e){return a(i(e))}},function(e,n){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},function(e,n){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,n,t){var a=t(36),i=Math.min;e.exports=function(e){return e>0?i(a(e),9007199254740991):0}},function(e,n){var t=Math.ceil,a=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?a:t)(e)}},function(e,n,t){var a=t(34);e.exports=function(e){return Object(a(e))}},function(e,n,t){var a=t(180),i=t(181),r=t(182),o=t(183),s=t(184);function l(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n

'};function i(e,n,t){return et?t:e}function r(e){return 100*(-1+e)}t.configure=function(e){var n,t;for(n in e)void 0!==(t=e[n])&&e.hasOwnProperty(n)&&(a[n]=t);return this},t.status=null,t.set=function(e){var n=t.isStarted();e=i(e,a.minimum,1),t.status=1===e?null:e;var l=t.render(!n),d=l.querySelector(a.barSelector),c=a.speed,u=a.easing;return l.offsetWidth,o((function(n){""===a.positionUsing&&(a.positionUsing=t.getPositioningCSS()),s(d,function(e,n,t){var i;return(i="translate3d"===a.positionUsing?{transform:"translate3d("+r(e)+"%,0,0)"}:"translate"===a.positionUsing?{transform:"translate("+r(e)+"%,0)"}:{"margin-left":r(e)+"%"}).transition="all "+n+"ms "+t,i}(e,c,u)),1===e?(s(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout((function(){s(l,{transition:"all "+c+"ms linear",opacity:0}),setTimeout((function(){t.remove(),n()}),c)}),c)):setTimeout(n,c)})),this},t.isStarted=function(){return"number"==typeof t.status},t.start=function(){t.status||t.set(0);var e=function(){setTimeout((function(){t.status&&(t.trickle(),e())}),a.trickleSpeed)};return a.trickle&&e(),this},t.done=function(e){return e||t.status?t.inc(.3+.5*Math.random()).set(1):this},t.inc=function(e){var n=t.status;return n?("number"!=typeof e&&(e=(1-n)*i(Math.random()*n,.1,.95)),n=i(n+e,0,.994),t.set(n)):t.start()},t.trickle=function(){return t.inc(Math.random()*a.trickleRate)},e=0,n=0,t.promise=function(a){return a&&"resolved"!==a.state()?(0===n&&t.start(),e++,n++,a.always((function(){0==--n?(e=0,t.done()):t.set((e-n)/e)})),this):this},t.render=function(e){if(t.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var n=document.createElement("div");n.id="nprogress",n.innerHTML=a.template;var i,o=n.querySelector(a.barSelector),l=e?"-100":r(t.status||0),c=document.querySelector(a.parent);return s(o,{transition:"all 0 linear",transform:"translate3d("+l+"%,0,0)"}),a.showSpinner||(i=n.querySelector(a.spinnerSelector))&&h(i),c!=document.body&&d(c,"nprogress-custom-parent"),c.appendChild(n),n},t.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(a.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&h(e)},t.isRendered=function(){return!!document.getElementById("nprogress")},t.getPositioningCSS=function(){var e=document.body.style,n="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return n+"Perspective"in e?"translate3d":n+"Transform"in e?"translate":"margin"};var o=function(){var e=[];function n(){var t=e.shift();t&&t(n)}return function(t){e.push(t),1==e.length&&n()}}(),s=function(){var e=["Webkit","O","Moz","ms"],n={};function t(t){return t=t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,n){return n.toUpperCase()})),n[t]||(n[t]=function(n){var t=document.body.style;if(n in t)return n;for(var a,i=e.length,r=n.charAt(0).toUpperCase()+n.slice(1);i--;)if((a=e[i]+r)in t)return a;return n}(t))}function a(e,n,a){n=t(n),e.style[n]=a}return function(e,n){var t,i,r=arguments;if(2==r.length)for(t in n)void 0!==(i=n[t])&&n.hasOwnProperty(t)&&a(e,t,i);else a(e,r[1],r[2])}}();function l(e,n){return("string"==typeof e?e:u(e)).indexOf(" "+n+" ")>=0}function d(e,n){var t=u(e),a=t+n;l(t,n)||(e.className=a.substring(1))}function c(e,n){var t,a=u(e);l(e,n)&&(t=a.replace(" "+n+" "," "),e.className=t.substring(1,t.length-1))}function u(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function h(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return t})?a.call(n,t,n,e):a)||(e.exports=i)},function(e,n,t){var a=t(5),i=t(33),r="".split;e.exports=a((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?r.call(e,""):Object(e)}:Object},function(e,n,t){var a=t(2),i=t(46),r=a["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=r},function(e,n,t){var a=t(2),i=t(16);e.exports=function(e,n){try{i(a,e,n)}catch(t){a[e]=n}return n}},function(e,n,t){var a=t(2),i=t(13),r=a.document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},function(e,n){e.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}},function(e,n,t){var a,i,r=t(2),o=t(50),s=r.process,l=s&&s.versions,d=l&&l.v8;d?i=(a=d.split("."))[0]+a[1]:o&&(!(a=o.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=o.match(/Chrome\/(\d+)/))&&(i=a[1]),e.exports=i&&+i},function(e,n,t){var a=t(22);e.exports=a("navigator","userAgent")||""},function(e,n){e.exports={}},function(e,n){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,n,t){var a=t(72),i=t(75),r=a("keys");e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,n,t){var a,i,r,o=t(136),s=t(2),l=t(13),d=t(16),c=t(9),u=t(45),h=t(53),p=t(51),m=s.WeakMap;if(o){var f=u.state||(u.state=new m),g=f.get,b=f.has,v=f.set;a=function(e,n){return n.facade=e,v.call(f,e,n),n},i=function(e){return g.call(f,e)||{}},r=function(e){return b.call(f,e)}}else{var y=h("state");p[y]=!0,a=function(e,n){return n.facade=e,d(e,y,n),n},i=function(e){return c(e,y)?e[y]:{}},r=function(e){return c(e,y)}}e.exports={set:a,get:i,has:r,enforce:function(e){return r(e)?i(e):a(e,{})},getterFor:function(e){return function(n){var t;if(!l(n)||(t=i(n)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return t}}}},function(e,n,t){var a=t(45),i=Function.toString;"function"!=typeof a.inspectSource&&(a.inspectSource=function(e){return i.call(e)}),e.exports=a.inspectSource},function(e,n,t){var a=t(12),i=t(81),r=t(48),o=t(32),s=t(74),l=t(9),d=t(73),c=Object.getOwnPropertyDescriptor;n.f=a?c:function(e,n){if(e=o(e),n=s(n,!0),d)try{return c(e,n)}catch(e){}if(l(e,n))return r(!i.f.call(e,n),e[n])}},function(e,n,t){var a=t(17).f,i=t(9),r=t(6)("toStringTag");e.exports=function(e,n,t){e&&!i(e=t?e:e.prototype,r)&&a(e,r,{configurable:!0,value:n})}},function(e,n,t){"use strict";var a,i,r=t(166),o=t(167),s=RegExp.prototype.exec,l=String.prototype.replace,d=s,c=(a=/a/,i=/b*/g,s.call(a,"a"),s.call(i,"a"),0!==a.lastIndex||0!==i.lastIndex),u=o.UNSUPPORTED_Y||o.BROKEN_CARET,h=void 0!==/()??/.exec("")[1];(c||h||u)&&(d=function(e){var n,t,a,i,o=this,d=u&&o.sticky,p=r.call(o),m=o.source,f=0,g=e;return d&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),g=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(m="(?: "+m+")",g=" "+g,f++),t=new RegExp("^(?:"+m+")",p)),h&&(t=new RegExp("^"+m+"$(?!\\s)",p)),c&&(n=o.lastIndex),a=s.call(d?t:o,g),d?a?(a.input=a.input.slice(f),a[0]=a[0].slice(f),a.index=o.lastIndex,o.lastIndex+=a[0].length):o.lastIndex=0:c&&a&&(o.lastIndex=o.global?a.index+a[0].length:n),h&&a&&a.length>1&&l.call(a[0],t,(function(){for(i=1;i-1&&e%1==0&&e<=9007199254740991}},function(e,n,t){var a=t(10),i=t(66),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,n){if(a(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!i(e))||(o.test(e)||!r.test(e)||null!=n&&e in Object(n))}},function(e,n,t){var a=t(24),i=t(21);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==a(e)}},function(e,n){e.exports=function(e){return e}},function(e,n){e.exports=function(e){var n=null==e?0:e.length;return n?e[n-1]:void 0}},function(e,n){function t(e,n){for(var t=0,a=e.length-1;a>=0;a--){var i=e[a];"."===i?e.splice(a,1):".."===i?(e.splice(a,1),t++):t&&(e.splice(a,1),t--)}if(n)for(;t--;t)e.unshift("..");return e}function a(e,n){if(e.filter)return e.filter(n);for(var t=[],a=0;a=-1&&!n;i--){var r=i>=0?arguments[i]:process.cwd();if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,n="/"===r.charAt(0))}return(n?"/":"")+(e=t(a(e.split("/"),(function(e){return!!e})),!n).join("/"))||"."},n.normalize=function(e){var r=n.isAbsolute(e),o="/"===i(e,-1);return(e=t(a(e.split("/"),(function(e){return!!e})),!r).join("/"))||r||(e="."),e&&o&&(e+="/"),(r?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(a(e,(function(e,n){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},n.relative=function(e,t){function a(e){for(var n=0;n=0&&""===e[t];t--);return n>t?[]:e.slice(n,t-n+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var i=a(e.split("/")),r=a(t.split("/")),o=Math.min(i.length,r.length),s=o,l=0;l=1;--r)if(47===(n=e.charCodeAt(r))){if(!i){a=r;break}}else i=!1;return-1===a?t?"/":".":t&&1===a?"/":e.slice(0,a)},n.basename=function(e,n){var t=function(e){"string"!=typeof e&&(e+="");var n,t=0,a=-1,i=!0;for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!i){t=n+1;break}}else-1===a&&(i=!1,a=n+1);return-1===a?"":e.slice(t,a)}(e);return n&&t.substr(-1*n.length)===n&&(t=t.substr(0,t.length-n.length)),t},n.extname=function(e){"string"!=typeof e&&(e+="");for(var n=-1,t=0,a=-1,i=!0,r=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47!==s)-1===a&&(i=!1,a=o+1),46===s?-1===n?n=o:1!==r&&(r=1):-1!==n&&(r=-1);else if(!i){t=o+1;break}}return-1===n||-1===a||0===r||1===r&&n===a-1&&n===t+1?"":e.slice(n,a)};var i="b"==="ab".substr(-1)?function(e,n,t){return e.substr(n,t)}:function(e,n,t){return n<0&&(n=e.length+n),e.substr(n,t)}},function(e,n){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,n,t){"use strict";var a=t(20),i={name:"NavLink",props:{item:{required:!0}},computed:{link(){return Object(a.b)(this.item.link)},exact(){return this.$site.locales?Object.keys(this.$site.locales).some(e=>e===this.link):"/"===this.link},isNonHttpURI(){return Object(a.g)(this.link)||Object(a.h)(this.link)},isBlankTarget(){return"_blank"===this.target},isInternal(){return!Object(a.f)(this.link)&&!this.isBlankTarget},target(){return this.isNonHttpURI?null:this.item.target?this.item.target:Object(a.f)(this.link)?"_blank":""},rel(){return this.isNonHttpURI||!1===this.item.rel?null:this.item.rel?this.item.rel:this.isBlankTarget?"noopener noreferrer":null}},methods:{focusoutAction(){this.$emit("focusout")}}},r=t(7),o=Object(r.a)(i,(function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.isInternal?t("RouterLink",{staticClass:"nav-link",attrs:{to:e.link,exact:e.exact},nativeOn:{focusout:function(n){return e.focusoutAction(n)}}},[e._v("\n "+e._s(e.item.text)+"\n")]):t("a",{staticClass:"nav-link external",attrs:{href:e.link,target:e.target,rel:e.rel},on:{focusout:e.focusoutAction}},[e._v("\n "+e._s(e.item.text)+"\n "),e.isBlankTarget?t("OutboundLink"):e._e()],1)}),[],!1,null,null,null);n.a=o.exports},function(e,n,t){var a=t(25),i=t(45);(e.exports=function(e,n){return i[e]||(i[e]=void 0!==n?n:{})})("versions",[]).push({version:"3.9.1",mode:a?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,n,t){var a=t(12),i=t(5),r=t(47);e.exports=!a&&!i((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},function(e,n,t){var a=t(13);e.exports=function(e,n){if(!a(e))return e;var t,i;if(n&&"function"==typeof(t=e.toString)&&!a(i=t.call(e)))return i;if("function"==typeof(t=e.valueOf)&&!a(i=t.call(e)))return i;if(!n&&"function"==typeof(t=e.toString)&&!a(i=t.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,n){var t=0,a=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+a).toString(36)}},function(e,n,t){var a=t(26),i=t(49),r=t(5);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!Symbol.sham&&(a?38===i:i>37&&i<41)}))},function(e,n,t){var a,i=t(8),r=t(133),o=t(52),s=t(51),l=t(80),d=t(47),c=t(53),u=c("IE_PROTO"),h=function(){},p=function(e){return" + (opens new window)

# Common options to all axes

Namespace: options.scales[scaleId]

Name Type Default Description
type string Type of scale being employed. Custom scales can be created and registered with a string key. This allows changing the type of an axis for a chart.
alignToPixels boolean false Align pixel values to device pixels.
backgroundColor Color Background color of the scale area.
display boolean|string true Controls the axis global visibility (visible when true, hidden when false). When display: 'auto', the axis is visible only if at least one associated dataset is visible.
grid object Grid line configuration. more...
min number User defined minimum number for the scale, overrides minimum value from data. more...
max number User defined maximum number for the scale, overrides maximum value from data. more...
reverse boolean false Reverse the scale.
stacked boolean|string false Should the data be stacked. more...
suggestedMax number Adjustment used when calculating the maximum data value. more...
suggestedMin number Adjustment used when calculating the minimum data value. more...
ticks object Tick configuration. more...
weight number 0 The weight used to sort the axis. Higher weights are further away from the chart area.
Last Updated: 4/4/2021, 2:19:07 PM
+ diff --git a/docs/3.1.0/axes/_common_ticks.html b/docs/3.1.0/axes/_common_ticks.html index c21df76d38..e3825e6864 100644 --- a/docs/3.1.0/axes/_common_ticks.html +++ b/docs/3.1.0/axes/_common_ticks.html @@ -7,8 +7,8 @@ - - + +
- + (opens new window)

# Common tick options to all axes

Namespace: options.scales[scaleId].ticks

Name Type Scriptable Default Description
callback function Returns the string representation of the tick value as it should be displayed on the chart. See callback.
display boolean true If true, show tick labels.
color Color Yes Chart.defaults.color Color of ticks.
font Font Yes Chart.defaults.font See Fonts
major object {} Major ticks configuration.
padding number 3 Sets the offset of the tick labels from the axis
textStrokeColor Color Yes `` The color of the stroke around the text.
textStrokeWidth number Yes 0 Stroke width around the text.
z number 0 z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top.
Last Updated: 4/4/2021, 2:19:07 PM
+ diff --git a/docs/3.1.0/axes/cartesian/_common.html b/docs/3.1.0/axes/cartesian/_common.html index dafdc936ff..d0db59ab38 100644 --- a/docs/3.1.0/axes/cartesian/_common.html +++ b/docs/3.1.0/axes/cartesian/_common.html @@ -7,8 +7,8 @@ - - + +
- + (opens new window)

# Common options to all cartesian axes

Namespace: options.scales[scaleId]

Name Type Default Description
bounds string 'ticks' Determines the scale bounds. more...
position string Position of the axis. more...
axis string Which type of axis this is. Possible values are: 'x', 'y'. If not set, this is inferred from the first character of the ID which should be 'x' or 'y'.
offset boolean false If true, extra space is added to the both edges and the axis is scaled to fit into the chart area. This is set to true for a bar chart by default.
title object Scale title configuration. more...
Last Updated: 4/2/2021, 7:48:50 AM
+ diff --git a/docs/3.1.0/axes/cartesian/_common_ticks.html b/docs/3.1.0/axes/cartesian/_common_ticks.html index 1fd520dbc2..c51f1f6899 100644 --- a/docs/3.1.0/axes/cartesian/_common_ticks.html +++ b/docs/3.1.0/axes/cartesian/_common_ticks.html @@ -7,8 +7,8 @@ - - + +
- + (opens new window)

# Common tick options to all cartesian axes

Namespace: options.scales[scaleId].ticks

Name Type Default Description
align string 'center' The tick alignment along the axis. Can be 'start', 'center', or 'end'.
crossAlign string 'near' The tick alignment perpendicular to the axis. Can be 'near', 'center', or 'far'. See Tick Alignment
sampleSize number ticks.length The number of ticks to examine when deciding how many labels will fit. Setting a smaller value will be faster, but may be less accurate when there is large variability in label length.
autoSkip boolean true If true, automatically calculates how many labels can be shown and hides labels accordingly. Labels will be rotated up to maxRotation before skipping any. Turn autoSkip off to show all labels no matter what.
autoSkipPadding number 3 Padding between the ticks on the horizontal axis when autoSkip is enabled.
labelOffset number 0 Distance in pixels to offset the label from the centre point of the tick (in the x-direction for the x-axis, and the y-direction for the y-axis). Note: this can cause labels at the edges to be cropped by the edge of the canvas
maxRotation number 50 Maximum rotation for tick labels when rotating to condense labels. Note: Rotation doesn't occur until necessary. Note: Only applicable to horizontal scales.
minRotation number 0 Minimum rotation for tick labels. Note: Only applicable to horizontal scales.
mirror boolean false Flips tick labels around axis, displaying the labels inside the chart instead of outside. Note: Only applicable to vertical scales.
padding number 0 Padding between the tick label and the axis. When set on a vertical axis, this applies in the horizontal (X) direction. When set on a horizontal axis, this applies in the vertical (Y) direction.
Last Updated: 3/30/2021, 10:32:39 AM
+ diff --git a/docs/3.1.0/axes/cartesian/category.html b/docs/3.1.0/axes/cartesian/category.html index c26d9c311a..fc4ad0fca1 100644 --- a/docs/3.1.0/axes/cartesian/category.html +++ b/docs/3.1.0/axes/cartesian/category.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/3.1.0/axes/cartesian/index.html b/docs/3.1.0/axes/cartesian/index.html index c963d362e3..ab10313fc8 100644 --- a/docs/3.1.0/axes/cartesian/index.html +++ b/docs/3.1.0/axes/cartesian/index.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/axes/cartesian/linear.html b/docs/3.1.0/axes/cartesian/linear.html index 6e73f3d1c2..672aae7e73 100644 --- a/docs/3.1.0/axes/cartesian/linear.html +++ b/docs/3.1.0/axes/cartesian/linear.html @@ -7,8 +7,8 @@ - - + +

# Internal data format

Internally, the linear scale uses numeric data

Last Updated: 4/10/2021, 8:13:47 PM

# Internal data format

Internally, the linear scale uses numeric data

Last Updated: 4/7/2021, 4:45:39 PM
- + diff --git a/docs/3.1.0/axes/cartesian/logarithmic.html b/docs/3.1.0/axes/cartesian/logarithmic.html index c23aca5e99..0b21e157b9 100644 --- a/docs/3.1.0/axes/cartesian/logarithmic.html +++ b/docs/3.1.0/axes/cartesian/logarithmic.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/axes/cartesian/time.html b/docs/3.1.0/axes/cartesian/time.html index f8a7a4dd37..29cb52af0a 100644 --- a/docs/3.1.0/axes/cartesian/time.html +++ b/docs/3.1.0/axes/cartesian/time.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/2/2021, 7:48:50 AM
- + diff --git a/docs/3.1.0/axes/cartesian/timeseries.html b/docs/3.1.0/axes/cartesian/timeseries.html index e854d2f634..9462246657 100644 --- a/docs/3.1.0/axes/cartesian/timeseries.html +++ b/docs/3.1.0/axes/cartesian/timeseries.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/2/2021, 7:48:50 AM
- + diff --git a/docs/3.1.0/axes/index.html b/docs/3.1.0/axes/index.html index 873e51fb10..50eeff0508 100644 --- a/docs/3.1.0/axes/index.html +++ b/docs/3.1.0/axes/index.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/3.1.0/axes/labelling.html b/docs/3.1.0/axes/labelling.html index 7486af10df..a567f6ff0b 100644 --- a/docs/3.1.0/axes/labelling.html +++ b/docs/3.1.0/axes/labelling.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/3/2021, 9:34:57 AM
- + diff --git a/docs/3.1.0/axes/radial/index.html b/docs/3.1.0/axes/radial/index.html index db93aeb633..6f8df2f64b 100644 --- a/docs/3.1.0/axes/radial/index.html +++ b/docs/3.1.0/axes/radial/index.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
- +};
Last Updated: 4/2/2021, 7:48:50 AM
+ diff --git a/docs/3.1.0/axes/radial/linear.html b/docs/3.1.0/axes/radial/linear.html index 0bd4607622..4a2714a91c 100644 --- a/docs/3.1.0/axes/radial/linear.html +++ b/docs/3.1.0/axes/radial/linear.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/axes/styling.html b/docs/3.1.0/axes/styling.html index 51c670b251..039f19873f 100644 --- a/docs/3.1.0/axes/styling.html +++ b/docs/3.1.0/axes/styling.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/charts/area.html b/docs/3.1.0/charts/area.html index 951cfa43a7..ce889c1508 100644 --- a/docs/3.1.0/charts/area.html +++ b/docs/3.1.0/charts/area.html @@ -7,8 +7,8 @@ - - + + - + diff --git a/docs/3.1.0/charts/bar.html b/docs/3.1.0/charts/bar.html index 26a4f4383f..4f30ddca73 100644 --- a/docs/3.1.0/charts/bar.html +++ b/docs/3.1.0/charts/bar.html @@ -7,8 +7,8 @@ - - + +

# Horizontal Bar Chart config Options

The configuration options for the horizontal bar chart are the same as for the bar chart. However, any options specified on the x-axis in a bar chart, are applied to the y-axis in a horizontal bar chart.

# Internal data format

{x, y, _custom} where _custom is an optional object defining stacked bar properties: {start, end, barStart, barEnd, min, max}. start and end are the input values. Those two are repeated in barStart (closer to origin), barEnd (further from origin), min and max.

Last Updated: 4/10/2021, 8:13:47 PM

# Horizontal Bar Chart config Options

The configuration options for the horizontal bar chart are the same as for the bar chart. However, any options specified on the x-axis in a bar chart, are applied to the y-axis in a horizontal bar chart.

# Internal data format

{x, y, _custom} where _custom is an optional object defining stacked bar properties: {start, end, barStart, barEnd, min, max}. start and end are the input values. Those two are repeated in barStart (closer to origin), barEnd (further from origin), min and max.

Last Updated: 4/3/2021, 6:08:20 PM
- + diff --git a/docs/3.1.0/charts/bubble.html b/docs/3.1.0/charts/bubble.html index ee6bdd7feb..5a96a6c751 100644 --- a/docs/3.1.0/charts/bubble.html +++ b/docs/3.1.0/charts/bubble.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/3/2021, 6:08:20 PM
- + diff --git a/docs/3.1.0/charts/doughnut.html b/docs/3.1.0/charts/doughnut.html index a99e0fc3ab..68406057e6 100644 --- a/docs/3.1.0/charts/doughnut.html +++ b/docs/3.1.0/charts/doughnut.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/charts/line.html b/docs/3.1.0/charts/line.html index eff432b0a4..bd7e102cf1 100644 --- a/docs/3.1.0/charts/line.html +++ b/docs/3.1.0/charts/line.html @@ -7,8 +7,8 @@ - - + +

# Config Options

The configuration options for the vertical line chart are the same as for the line chart. However, any options specified on the x-axis in a line chart, are applied to the y-axis in a vertical line chart.

# Internal data format

{x, y}

Last Updated: 4/10/2021, 8:13:47 PM

# Config Options

The configuration options for the vertical line chart are the same as for the line chart. However, any options specified on the x-axis in a line chart, are applied to the y-axis in a vertical line chart.

# Internal data format

{x, y}

Last Updated: 4/9/2021, 7:10:48 PM
- + diff --git a/docs/3.1.0/charts/mixed.html b/docs/3.1.0/charts/mixed.html index 9ab7cc3bc1..d31cc136b3 100644 --- a/docs/3.1.0/charts/mixed.html +++ b/docs/3.1.0/charts/mixed.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/charts/polar.html b/docs/3.1.0/charts/polar.html index 889f8a7568..c7c08c5057 100644 --- a/docs/3.1.0/charts/polar.html +++ b/docs/3.1.0/charts/polar.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/charts/radar.html b/docs/3.1.0/charts/radar.html index b454287fa6..dba67cbe9e 100644 --- a/docs/3.1.0/charts/radar.html +++ b/docs/3.1.0/charts/radar.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/3/2021, 6:08:20 PM
- + diff --git a/docs/3.1.0/charts/scatter.html b/docs/3.1.0/charts/scatter.html index e3542e241c..209cd6ec13 100644 --- a/docs/3.1.0/charts/scatter.html +++ b/docs/3.1.0/charts/scatter.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/3/2021, 6:08:20 PM
- + diff --git a/docs/3.1.0/configuration/animations.html b/docs/3.1.0/configuration/animations.html index 90cfd8bbfc..c17b2d1771 100644 --- a/docs/3.1.0/configuration/animations.html +++ b/docs/3.1.0/configuration/animations.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 3/30/2021, 6:19:45 PM
- + diff --git a/docs/3.1.0/configuration/canvas-background.html b/docs/3.1.0/configuration/canvas-background.html index 35b35bc5d9..ad63b18968 100644 --- a/docs/3.1.0/configuration/canvas-background.html +++ b/docs/3.1.0/configuration/canvas-background.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/7/2021, 12:51:45 PM
- + diff --git a/docs/3.1.0/configuration/decimation.html b/docs/3.1.0/configuration/decimation.html index c30f2412dd..0b294a5599 100644 --- a/docs/3.1.0/configuration/decimation.html +++ b/docs/3.1.0/configuration/decimation.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/configuration/device-pixel-ratio.html b/docs/3.1.0/configuration/device-pixel-ratio.html index 2ffeb5f790..3043c7efc8 100644 --- a/docs/3.1.0/configuration/device-pixel-ratio.html +++ b/docs/3.1.0/configuration/device-pixel-ratio.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/configuration/elements.html b/docs/3.1.0/configuration/elements.html index e7e1bb94b0..d92cc93f0a 100644 --- a/docs/3.1.0/configuration/elements.html +++ b/docs/3.1.0/configuration/elements.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/2/2021, 7:48:50 AM
- + diff --git a/docs/3.1.0/configuration/index.html b/docs/3.1.0/configuration/index.html index 5a56ade3e7..bcf1c1b757 100644 --- a/docs/3.1.0/configuration/index.html +++ b/docs/3.1.0/configuration/index.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/configuration/interactions.html b/docs/3.1.0/configuration/interactions.html index 8088b4dd57..6a4b8fa454 100644 --- a/docs/3.1.0/configuration/interactions.html +++ b/docs/3.1.0/configuration/interactions.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/configuration/layout.html b/docs/3.1.0/configuration/layout.html index d5ebbd87cb..40c3e98b05 100644 --- a/docs/3.1.0/configuration/layout.html +++ b/docs/3.1.0/configuration/layout.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/configuration/legend.html b/docs/3.1.0/configuration/legend.html index 692ed7bb5f..08f32fa630 100644 --- a/docs/3.1.0/configuration/legend.html +++ b/docs/3.1.0/configuration/legend.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/configuration/locale.html b/docs/3.1.0/configuration/locale.html index c436d404b3..c1bf17046b 100644 --- a/docs/3.1.0/configuration/locale.html +++ b/docs/3.1.0/configuration/locale.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/configuration/responsive.html b/docs/3.1.0/configuration/responsive.html index 3ffea17604..551dd62764 100644 --- a/docs/3.1.0/configuration/responsive.html +++ b/docs/3.1.0/configuration/responsive.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/configuration/title.html b/docs/3.1.0/configuration/title.html index ebc5abe3f0..c9707dccc3 100644 --- a/docs/3.1.0/configuration/title.html +++ b/docs/3.1.0/configuration/title.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/configuration/tooltip.html b/docs/3.1.0/configuration/tooltip.html index 345a3a0d89..5b0f632f3b 100644 --- a/docs/3.1.0/configuration/tooltip.html +++ b/docs/3.1.0/configuration/tooltip.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/developers/api.html b/docs/3.1.0/developers/api.html index 478e10ca5a..aa45c70c60 100644 --- a/docs/3.1.0/developers/api.html +++ b/docs/3.1.0/developers/api.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/3/2021, 2:16:26 PM
- + diff --git a/docs/3.1.0/developers/axes.html b/docs/3.1.0/developers/axes.html index cb521094c1..01242dcfe0 100644 --- a/docs/3.1.0/developers/axes.html +++ b/docs/3.1.0/developers/axes.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/developers/charts.html b/docs/3.1.0/developers/charts.html index d8e31aca1f..e1326f71ed 100644 --- a/docs/3.1.0/developers/charts.html +++ b/docs/3.1.0/developers/charts.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/developers/contributing.html b/docs/3.1.0/developers/contributing.html index c126200827..2d1896695e 100644 --- a/docs/3.1.0/developers/contributing.html +++ b/docs/3.1.0/developers/contributing.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/3.1.0/developers/index.html b/docs/3.1.0/developers/index.html index 859fc96d5c..ca877127fb 100644 --- a/docs/3.1.0/developers/index.html +++ b/docs/3.1.0/developers/index.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/developers/plugins.html b/docs/3.1.0/developers/plugins.html index 5b4c3730c2..8c0bc90c96 100644 --- a/docs/3.1.0/developers/plugins.html +++ b/docs/3.1.0/developers/plugins.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/4/2021, 11:48:59 PM
- + diff --git a/docs/3.1.0/developers/publishing.html b/docs/3.1.0/developers/publishing.html index 5375f06bd3..fdffc0e096 100644 --- a/docs/3.1.0/developers/publishing.html +++ b/docs/3.1.0/developers/publishing.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/developers/updates.html b/docs/3.1.0/developers/updates.html index bca12c1afa..d18585357a 100644 --- a/docs/3.1.0/developers/updates.html +++ b/docs/3.1.0/developers/updates.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/3.1.0/general/accessibility.html b/docs/3.1.0/general/accessibility.html index 9ca373c0c5..2bf39031af 100644 --- a/docs/3.1.0/general/accessibility.html +++ b/docs/3.1.0/general/accessibility.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/general/colors.html b/docs/3.1.0/general/colors.html index a9e49743f1..e9bf868b37 100644 --- a/docs/3.1.0/general/colors.html +++ b/docs/3.1.0/general/colors.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/general/data-structures.html b/docs/3.1.0/general/data-structures.html index a1eaa138e0..eae7ba1dae 100644 --- a/docs/3.1.0/general/data-structures.html +++ b/docs/3.1.0/general/data-structures.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/general/fonts.html b/docs/3.1.0/general/fonts.html index 9ac2348aaa..61d56ff68b 100644 --- a/docs/3.1.0/general/fonts.html +++ b/docs/3.1.0/general/fonts.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/3.1.0/general/options.html b/docs/3.1.0/general/options.html index 6ab668f76d..4aabf2c293 100644 --- a/docs/3.1.0/general/options.html +++ b/docs/3.1.0/general/options.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/general/padding.html b/docs/3.1.0/general/padding.html index baad5f68b2..82e3d2b929 100644 --- a/docs/3.1.0/general/padding.html +++ b/docs/3.1.0/general/padding.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/general/performance.html b/docs/3.1.0/general/performance.html index 1422f869fb..58df0060e1 100644 --- a/docs/3.1.0/general/performance.html +++ b/docs/3.1.0/general/performance.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/getting-started/index.html b/docs/3.1.0/getting-started/index.html index 483f1a8a17..91e20b76d0 100644 --- a/docs/3.1.0/getting-started/index.html +++ b/docs/3.1.0/getting-started/index.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/6/2021, 6:54:18 PM
- + diff --git a/docs/3.1.0/getting-started/installation.html b/docs/3.1.0/getting-started/installation.html index defdae711a..cc6b79ce14 100644 --- a/docs/3.1.0/getting-started/installation.html +++ b/docs/3.1.0/getting-started/installation.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/3.1.0/getting-started/integration.html b/docs/3.1.0/getting-started/integration.html index 236f67f70d..6fadd19a32 100644 --- a/docs/3.1.0/getting-started/integration.html +++ b/docs/3.1.0/getting-started/integration.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/getting-started/usage.html b/docs/3.1.0/getting-started/usage.html index 10f0c6e694..837e0767e0 100644 --- a/docs/3.1.0/getting-started/usage.html +++ b/docs/3.1.0/getting-started/usage.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/getting-started/v3-migration.html b/docs/3.1.0/getting-started/v3-migration.html index 836404e70d..6e3cc1d22a 100644 --- a/docs/3.1.0/getting-started/v3-migration.html +++ b/docs/3.1.0/getting-started/v3-migration.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/index.html b/docs/3.1.0/index.html index 13ed987acc..5cca29b62d 100644 --- a/docs/3.1.0/index.html +++ b/docs/3.1.0/index.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 3/30/2021, 10:32:39 AM
- + diff --git a/docs/3.1.0/samples/advanced/data-decimation.html b/docs/3.1.0/samples/advanced/data-decimation.html index e85558ec2a..8909977c32 100644 --- a/docs/3.1.0/samples/advanced/data-decimation.html +++ b/docs/3.1.0/samples/advanced/data-decimation.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/3/2021, 1:06:31 PM
- + diff --git a/docs/3.1.0/samples/advanced/derived-axis-type.html b/docs/3.1.0/samples/advanced/derived-axis-type.html index 70c9c51e64..9986afcc02 100644 --- a/docs/3.1.0/samples/advanced/derived-axis-type.html +++ b/docs/3.1.0/samples/advanced/derived-axis-type.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/samples/advanced/derived-chart-type.html b/docs/3.1.0/samples/advanced/derived-chart-type.html index 1951f4bc0f..5036b9c90b 100644 --- a/docs/3.1.0/samples/advanced/derived-chart-type.html +++ b/docs/3.1.0/samples/advanced/derived-chart-type.html @@ -7,8 +7,8 @@ - - + +
- + diff --git a/docs/3.1.0/samples/advanced/linear-gradient.html b/docs/3.1.0/samples/advanced/linear-gradient.html index fff98b7f92..8c82ab4c99 100644 --- a/docs/3.1.0/samples/advanced/linear-gradient.html +++ b/docs/3.1.0/samples/advanced/linear-gradient.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/advanced/programmatic-events.html b/docs/3.1.0/samples/advanced/programmatic-events.html index d00fb97a02..f168e6a40e 100644 --- a/docs/3.1.0/samples/advanced/programmatic-events.html +++ b/docs/3.1.0/samples/advanced/programmatic-events.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/advanced/progress-bar.html b/docs/3.1.0/samples/advanced/progress-bar.html index c9839d884d..dca5e79abc 100644 --- a/docs/3.1.0/samples/advanced/progress-bar.html +++ b/docs/3.1.0/samples/advanced/progress-bar.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 10:06:29 AM
- + diff --git a/docs/3.1.0/samples/advanced/radial-gradient.html b/docs/3.1.0/samples/advanced/radial-gradient.html index 18501a7cc3..877f68014f 100644 --- a/docs/3.1.0/samples/advanced/radial-gradient.html +++ b/docs/3.1.0/samples/advanced/radial-gradient.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/animations/delay.html b/docs/3.1.0/samples/animations/delay.html index ae322b3e0a..1dcc41352b 100644 --- a/docs/3.1.0/samples/animations/delay.html +++ b/docs/3.1.0/samples/animations/delay.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/animations/drop.html b/docs/3.1.0/samples/animations/drop.html index dda329c1e7..1cb989fc2e 100644 --- a/docs/3.1.0/samples/animations/drop.html +++ b/docs/3.1.0/samples/animations/drop.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 10:06:29 AM
- + diff --git a/docs/3.1.0/samples/animations/loop.html b/docs/3.1.0/samples/animations/loop.html index 89bcf6dbc8..69bbba76f2 100644 --- a/docs/3.1.0/samples/animations/loop.html +++ b/docs/3.1.0/samples/animations/loop.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 10:06:29 AM
- + diff --git a/docs/3.1.0/samples/animations/progressive-line.html b/docs/3.1.0/samples/animations/progressive-line.html index e87b2856ae..b5f2f146fe 100644 --- a/docs/3.1.0/samples/animations/progressive-line.html +++ b/docs/3.1.0/samples/animations/progressive-line.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/area/line-boundaries.html b/docs/3.1.0/samples/area/line-boundaries.html index 5b65a872d4..2f2ece169e 100644 --- a/docs/3.1.0/samples/area/line-boundaries.html +++ b/docs/3.1.0/samples/area/line-boundaries.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 10:06:29 AM
- + diff --git a/docs/3.1.0/samples/area/line-datasets.html b/docs/3.1.0/samples/area/line-datasets.html index 8af2560786..2a01a30fd8 100644 --- a/docs/3.1.0/samples/area/line-datasets.html +++ b/docs/3.1.0/samples/area/line-datasets.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/area/line-drawtime.html b/docs/3.1.0/samples/area/line-drawtime.html index 75d97f2fc3..eecf716594 100644 --- a/docs/3.1.0/samples/area/line-drawtime.html +++ b/docs/3.1.0/samples/area/line-drawtime.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/3/2021, 8:13:00 AM
- + diff --git a/docs/3.1.0/samples/area/line-stacked.html b/docs/3.1.0/samples/area/line-stacked.html index 6804aa4426..02ea8cd6bd 100644 --- a/docs/3.1.0/samples/area/line-stacked.html +++ b/docs/3.1.0/samples/area/line-stacked.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 10:06:29 AM
- + diff --git a/docs/3.1.0/samples/area/radar.html b/docs/3.1.0/samples/area/radar.html index 9431d67f58..459ddc273e 100644 --- a/docs/3.1.0/samples/area/radar.html +++ b/docs/3.1.0/samples/area/radar.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/bar/border-radius.html b/docs/3.1.0/samples/bar/border-radius.html index ddd3a0b2c4..a082053c8f 100644 --- a/docs/3.1.0/samples/bar/border-radius.html +++ b/docs/3.1.0/samples/bar/border-radius.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/bar/floating.html b/docs/3.1.0/samples/bar/floating.html index c077be94ad..b7778e1fa7 100644 --- a/docs/3.1.0/samples/bar/floating.html +++ b/docs/3.1.0/samples/bar/floating.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/bar/horizontal.html b/docs/3.1.0/samples/bar/horizontal.html index b467e35cef..de2c2b2979 100644 --- a/docs/3.1.0/samples/bar/horizontal.html +++ b/docs/3.1.0/samples/bar/horizontal.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/bar/stacked-groups.html b/docs/3.1.0/samples/bar/stacked-groups.html index 254c511355..acce9a4858 100644 --- a/docs/3.1.0/samples/bar/stacked-groups.html +++ b/docs/3.1.0/samples/bar/stacked-groups.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/bar/stacked.html b/docs/3.1.0/samples/bar/stacked.html index 79c07f6d2c..b51d4299a4 100644 --- a/docs/3.1.0/samples/bar/stacked.html +++ b/docs/3.1.0/samples/bar/stacked.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/bar/vertical.html b/docs/3.1.0/samples/bar/vertical.html index 7623ef7796..04349aa803 100644 --- a/docs/3.1.0/samples/bar/vertical.html +++ b/docs/3.1.0/samples/bar/vertical.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/legend/events.html b/docs/3.1.0/samples/legend/events.html index 35bebf8519..8910df319f 100644 --- a/docs/3.1.0/samples/legend/events.html +++ b/docs/3.1.0/samples/legend/events.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/3/2021, 8:13:38 AM
- + diff --git a/docs/3.1.0/samples/legend/html.html b/docs/3.1.0/samples/legend/html.html index 4c0c8bd130..dfaa66ca03 100644 --- a/docs/3.1.0/samples/legend/html.html +++ b/docs/3.1.0/samples/legend/html.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/3/2021, 4:10:39 PM
- + diff --git a/docs/3.1.0/samples/legend/point-style.html b/docs/3.1.0/samples/legend/point-style.html index b73d52e33d..960770e9d2 100644 --- a/docs/3.1.0/samples/legend/point-style.html +++ b/docs/3.1.0/samples/legend/point-style.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/legend/position.html b/docs/3.1.0/samples/legend/position.html index 4b8bb05ba6..7993713f15 100644 --- a/docs/3.1.0/samples/legend/position.html +++ b/docs/3.1.0/samples/legend/position.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/legend/title.html b/docs/3.1.0/samples/legend/title.html index cd2b058857..02598a9f96 100644 --- a/docs/3.1.0/samples/legend/title.html +++ b/docs/3.1.0/samples/legend/title.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/line/interpolation.html b/docs/3.1.0/samples/line/interpolation.html index ea5823d20b..387998e3bf 100644 --- a/docs/3.1.0/samples/line/interpolation.html +++ b/docs/3.1.0/samples/line/interpolation.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/line/line.html b/docs/3.1.0/samples/line/line.html index ce5867a1f3..e092baa7b4 100644 --- a/docs/3.1.0/samples/line/line.html +++ b/docs/3.1.0/samples/line/line.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 10:06:29 AM
- + diff --git a/docs/3.1.0/samples/line/multi-axis.html b/docs/3.1.0/samples/line/multi-axis.html index 1df0e91320..c7a19e40d9 100644 --- a/docs/3.1.0/samples/line/multi-axis.html +++ b/docs/3.1.0/samples/line/multi-axis.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/line/segments.html b/docs/3.1.0/samples/line/segments.html index 500121f8ed..64d5213d17 100644 --- a/docs/3.1.0/samples/line/segments.html +++ b/docs/3.1.0/samples/line/segments.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/8/2021, 6:02:12 PM
- + diff --git a/docs/3.1.0/samples/line/stepped.html b/docs/3.1.0/samples/line/stepped.html index a02b270a1e..fd4311bca7 100644 --- a/docs/3.1.0/samples/line/stepped.html +++ b/docs/3.1.0/samples/line/stepped.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 10:06:29 AM
- + diff --git a/docs/3.1.0/samples/line/styling.html b/docs/3.1.0/samples/line/styling.html index fc1dffc670..38368a0fd8 100644 --- a/docs/3.1.0/samples/line/styling.html +++ b/docs/3.1.0/samples/line/styling.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/other-charts/bubble.html b/docs/3.1.0/samples/other-charts/bubble.html index dbf5864e7c..a6d607c6d8 100644 --- a/docs/3.1.0/samples/other-charts/bubble.html +++ b/docs/3.1.0/samples/other-charts/bubble.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/other-charts/combo-bar-line.html b/docs/3.1.0/samples/other-charts/combo-bar-line.html index f74392e05c..ee8c1cc8cd 100644 --- a/docs/3.1.0/samples/other-charts/combo-bar-line.html +++ b/docs/3.1.0/samples/other-charts/combo-bar-line.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/other-charts/doughnut.html b/docs/3.1.0/samples/other-charts/doughnut.html index 0e6dc4dbe2..f971b29ee7 100644 --- a/docs/3.1.0/samples/other-charts/doughnut.html +++ b/docs/3.1.0/samples/other-charts/doughnut.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/other-charts/multi-series-pie.html b/docs/3.1.0/samples/other-charts/multi-series-pie.html index 204bf9042b..301aa1e1be 100644 --- a/docs/3.1.0/samples/other-charts/multi-series-pie.html +++ b/docs/3.1.0/samples/other-charts/multi-series-pie.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/other-charts/pie.html b/docs/3.1.0/samples/other-charts/pie.html index 67ec91d8f8..754a2b3014 100644 --- a/docs/3.1.0/samples/other-charts/pie.html +++ b/docs/3.1.0/samples/other-charts/pie.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/other-charts/polar-area.html b/docs/3.1.0/samples/other-charts/polar-area.html index d84afd7329..6b322e372c 100644 --- a/docs/3.1.0/samples/other-charts/polar-area.html +++ b/docs/3.1.0/samples/other-charts/polar-area.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/other-charts/radar-skip-points.html b/docs/3.1.0/samples/other-charts/radar-skip-points.html index e206525baa..8bf959353f 100644 --- a/docs/3.1.0/samples/other-charts/radar-skip-points.html +++ b/docs/3.1.0/samples/other-charts/radar-skip-points.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/other-charts/radar.html b/docs/3.1.0/samples/other-charts/radar.html index 5615899440..5981d42f04 100644 --- a/docs/3.1.0/samples/other-charts/radar.html +++ b/docs/3.1.0/samples/other-charts/radar.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/other-charts/scatter-multi-axis.html b/docs/3.1.0/samples/other-charts/scatter-multi-axis.html index 2c7a878abf..3175735367 100644 --- a/docs/3.1.0/samples/other-charts/scatter-multi-axis.html +++ b/docs/3.1.0/samples/other-charts/scatter-multi-axis.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/other-charts/scatter.html b/docs/3.1.0/samples/other-charts/scatter.html index 90bffa95a2..ffcf552f87 100644 --- a/docs/3.1.0/samples/other-charts/scatter.html +++ b/docs/3.1.0/samples/other-charts/scatter.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/other-charts/stacked-bar-line.html b/docs/3.1.0/samples/other-charts/stacked-bar-line.html index f831b33377..586cf2c5c8 100644 --- a/docs/3.1.0/samples/other-charts/stacked-bar-line.html +++ b/docs/3.1.0/samples/other-charts/stacked-bar-line.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/3/2021, 9:23:35 AM
- + diff --git a/docs/3.1.0/samples/scale-options/center.html b/docs/3.1.0/samples/scale-options/center.html index c23f46c39f..f7bca7fecb 100644 --- a/docs/3.1.0/samples/scale-options/center.html +++ b/docs/3.1.0/samples/scale-options/center.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/scale-options/grid.html b/docs/3.1.0/samples/scale-options/grid.html index b59c0bc059..081aa36055 100644 --- a/docs/3.1.0/samples/scale-options/grid.html +++ b/docs/3.1.0/samples/scale-options/grid.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/scale-options/ticks.html b/docs/3.1.0/samples/scale-options/ticks.html index dbe1f56925..5bfefa6e9c 100644 --- a/docs/3.1.0/samples/scale-options/ticks.html +++ b/docs/3.1.0/samples/scale-options/ticks.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/scale-options/titles.html b/docs/3.1.0/samples/scale-options/titles.html index e9baee8bd2..a08595a264 100644 --- a/docs/3.1.0/samples/scale-options/titles.html +++ b/docs/3.1.0/samples/scale-options/titles.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/10/2021, 3:58:11 PM
- + diff --git a/docs/3.1.0/samples/scales/linear-min-max-suggested.html b/docs/3.1.0/samples/scales/linear-min-max-suggested.html index 32bb32e0b8..92424f4ce8 100644 --- a/docs/3.1.0/samples/scales/linear-min-max-suggested.html +++ b/docs/3.1.0/samples/scales/linear-min-max-suggested.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/scales/linear-min-max.html b/docs/3.1.0/samples/scales/linear-min-max.html index 72f0cc5b85..4824e9ea3c 100644 --- a/docs/3.1.0/samples/scales/linear-min-max.html +++ b/docs/3.1.0/samples/scales/linear-min-max.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/scales/linear-step-size.html b/docs/3.1.0/samples/scales/linear-step-size.html index f58880116c..d0d7a6b673 100644 --- a/docs/3.1.0/samples/scales/linear-step-size.html +++ b/docs/3.1.0/samples/scales/linear-step-size.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/scales/log.html b/docs/3.1.0/samples/scales/log.html index 2574e7f702..70e164b77d 100644 --- a/docs/3.1.0/samples/scales/log.html +++ b/docs/3.1.0/samples/scales/log.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/scales/time-combo.html b/docs/3.1.0/samples/scales/time-combo.html index 835810990c..fa1d7583aa 100644 --- a/docs/3.1.0/samples/scales/time-combo.html +++ b/docs/3.1.0/samples/scales/time-combo.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/scales/time-line.html b/docs/3.1.0/samples/scales/time-line.html index 6f63783e92..5d9302d982 100644 --- a/docs/3.1.0/samples/scales/time-line.html +++ b/docs/3.1.0/samples/scales/time-line.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/scales/time-max-span.html b/docs/3.1.0/samples/scales/time-max-span.html index 2c4680b4df..44bf1aea18 100644 --- a/docs/3.1.0/samples/scales/time-max-span.html +++ b/docs/3.1.0/samples/scales/time-max-span.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/10/2021, 3:58:11 PM
- + diff --git a/docs/3.1.0/samples/scriptable/bar.html b/docs/3.1.0/samples/scriptable/bar.html index 5ff5ba3ddd..f1106a24fd 100644 --- a/docs/3.1.0/samples/scriptable/bar.html +++ b/docs/3.1.0/samples/scriptable/bar.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/scriptable/bubble.html b/docs/3.1.0/samples/scriptable/bubble.html index 8573c871e7..de6eba4ee9 100644 --- a/docs/3.1.0/samples/scriptable/bubble.html +++ b/docs/3.1.0/samples/scriptable/bubble.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/scriptable/line.html b/docs/3.1.0/samples/scriptable/line.html index 34cecd77ba..ef7354d690 100644 --- a/docs/3.1.0/samples/scriptable/line.html +++ b/docs/3.1.0/samples/scriptable/line.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/scriptable/pie.html b/docs/3.1.0/samples/scriptable/pie.html index 1df7bb438f..992c6b4642 100644 --- a/docs/3.1.0/samples/scriptable/pie.html +++ b/docs/3.1.0/samples/scriptable/pie.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/scriptable/polar.html b/docs/3.1.0/samples/scriptable/polar.html index 60a5116ca3..207790c414 100644 --- a/docs/3.1.0/samples/scriptable/polar.html +++ b/docs/3.1.0/samples/scriptable/polar.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/scriptable/radar.html b/docs/3.1.0/samples/scriptable/radar.html index c9e4e17ba3..0a45a0d195 100644 --- a/docs/3.1.0/samples/scriptable/radar.html +++ b/docs/3.1.0/samples/scriptable/radar.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/title/alignment.html b/docs/3.1.0/samples/title/alignment.html index c3ac6a050a..07c7fe218d 100644 --- a/docs/3.1.0/samples/title/alignment.html +++ b/docs/3.1.0/samples/title/alignment.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/tooltip/content.html b/docs/3.1.0/samples/tooltip/content.html index 9db8b56437..8fe82dd344 100644 --- a/docs/3.1.0/samples/tooltip/content.html +++ b/docs/3.1.0/samples/tooltip/content.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/tooltip/html.html b/docs/3.1.0/samples/tooltip/html.html index 05b9904c4b..041de02c32 100644 --- a/docs/3.1.0/samples/tooltip/html.html +++ b/docs/3.1.0/samples/tooltip/html.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/tooltip/interactions.html b/docs/3.1.0/samples/tooltip/interactions.html index e0d70dfe41..a5606a4acc 100644 --- a/docs/3.1.0/samples/tooltip/interactions.html +++ b/docs/3.1.0/samples/tooltip/interactions.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 5:25:14 PM
- + diff --git a/docs/3.1.0/samples/tooltip/point-style.html b/docs/3.1.0/samples/tooltip/point-style.html index fc9c224349..9ff36828c7 100644 --- a/docs/3.1.0/samples/tooltip/point-style.html +++ b/docs/3.1.0/samples/tooltip/point-style.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 8:04:39 AM
- + diff --git a/docs/3.1.0/samples/tooltip/position.html b/docs/3.1.0/samples/tooltip/position.html index cfacb918e6..a6aa8dd0c0 100644 --- a/docs/3.1.0/samples/tooltip/position.html +++ b/docs/3.1.0/samples/tooltip/position.html @@ -7,8 +7,8 @@ - - + +
Last Updated: 4/10/2021, 8:13:47 PM
Last Updated: 4/2/2021, 5:25:14 PM
- +